aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-02-08jcf-io.c (java_or_class_file): Use libiberty's lbasename instead of basename ↵Roger Sayle2-1/+6
to avoid compiler warnings on Tru64. * jcf-io.c (java_or_class_file): Use libiberty's lbasename instead of basename to avoid compiler warnings on Tru64. From-SVN: r62582
2003-02-08clzsi2.c: Replace "GNU CC" with "GCC".Kazu Hirata13-49/+64
* config/h8300/clzsi2.c: Replace "GNU CC" with "GCC". * config/h8300/crti.asm: Likewise. * config/h8300/crtn.asm: Likewise. * config/h8300/ctzsi2.c: Likewise. * config/h8300/fixunssfsi.c: Likewise. * config/h8300/h8300-protos.h: Likewise. * config/h8300/h8300.c: Likewise. * config/h8300/h8300.h: Likewise. * config/h8300/h8300.md: Likewise. * config/h8300/paritysi2.c: Likewise. * config/h8300/popcountsi2.c: Likewise. * config/h8300/rtems.h: Likewise. From-SVN: r62581
2003-02-08invoke.texi: Documentation for my previous commit.Zdenek Dvorak3-4/+27
* doc/invoke.texi: Documentation for my previous commit. * doc/passes.texi: Ditto. From-SVN: r62580
2003-02-08cfgloop.h (fix_loop_placement, [...]): Declare.Zdenek Dvorak8-8/+1810
* cfgloop.h (fix_loop_placement, can_duplicate_loop_p, duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb): Declare. (DLTHE_FLAG_UPDATE_FREQ): New. * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to, loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs, rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements, fix_bb_placement, fix_bb_placements, place_new_loop, scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges): New static functions. (fix_loop_placement, can_duplicate_loop_p, duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb): New functions. * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize, unswitch_loops): Declare. * loop-init.c: New file. * loop-unswitch.c: New file. * Makefile.in (loop-init.o, loop-unswitch.o): New. * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New. * toplev.c (DFI_loop2): New dump. (flag_unswitch_loops): New. (lang_independent_options): Add it. (rest_of_compilation): Call new loop optimizer. (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3. From-SVN: r62578
2003-02-08clzsi2.c: New.Kazu Hirata6-1/+206
* config/h8300/clzsi2.c: New. * config/h8300/ctzsi2.c: Likewise. * config/h8300/paritysi2.c: Likewise. * config/h8300/popcountsi2.c: Likewise. * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files. From-SVN: r62577
2003-02-07- Add ctz patterns.David Edelsohn3-2/+6
From-SVN: r62572
2003-02-07rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.David Edelsohn3-6/+18
* config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define. * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2. (ffssi2): Use clz instead of unspec. (clzdi2): Rename from cntlzd2. (ffsdi2): Use clz instead of unspec. From-SVN: r62570
2003-02-08freebsd.h (LINK_SPEC): Weaken error to notice.Loren J. Rittle7-4/+17
* config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice. * config/ia64/freebsd.h (LINK_SPEC): Likewise. * config/sparc/freebsd.h (LINK_SPEC): Likewise. * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches. * gcc.dg/20021014-1.c: Annotate with expected notice text. From-SVN: r62567
2003-02-08Daily bump.GCC Administrator1-1/+1
From-SVN: r62566
2003-02-07* doc/trouble.texi: Document pitfalls of two-stage name lookup.Wolfgang Bangerth2-1/+94
From-SVN: r62558
2003-02-07gcse.c (local_cprop_find_used_regs): New.Richard Henderson2-2/+56
* gcse.c (local_cprop_find_used_regs): New. (local_cprop_pass): Use it. From-SVN: r62555
2003-02-07mips-tfile.c (parse_def): Parenthesize assignments to fix precedence bugs.Fred Fish2-6/+11
2003-02-04 Fred Fish <fnf@intrinsity.com> * mips-tfile.c (parse_def): Parenthesize assignments to fix precedence bugs. From-SVN: r62553
2003-02-07* genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.Segher Boessenkool2-1/+8
From-SVN: r62552
2003-02-07builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.Roger Sayle7-18/+139
* builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type. (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise. (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise. * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l builtin functions (and their __builtin_* variants). * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases. (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l} when not optimizing. * doc/extend.texi: Document new pow and atan2 builtins, and their float and long double variants. Realphabetize builtins. * testsuite/gcc.dg/builtins-4.c: New test case. From-SVN: r62551
2003-02-07* i386.md (sse2_nandv2di3): Fix.Jan Hubicka2-1/+5
From-SVN: r62550
2003-02-07i386.h (MS_AGGREGATE_RETURN): New define.Danny Smith4-6/+28
* config/i386/i386.h (MS_AGGREGATE_RETURN): New define. * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default definition. * config/i386/i386.h (ix86_return_in_memory): Return aggregate types of up to 8 bytes via registers if MS_AGGREGATE_RETURN. From-SVN: r62547
2003-02-07* i386.md (movdi_rex64_1): Fix mmx<->int move opcode.Jan Hubicka1-2/+2
From-SVN: r62544
2003-02-07i386.md (movdi_rex64_1): Fix mmx<->int move opcode.Jan Hubicka1-0/+4
* i386.md (movdi_rex64_1): Fix mmx<->int move opcode. [[Split portion of a mixed commit.]] From-SVN: r62543.2
2003-02-07cfg.c (dump_flow_info): Add back accidently deleted line.Daniel Berlin2-0/+5
2003-02-07 Daniel Berlin <dberlin@dberlin.org> * cfg.c (dump_flow_info): Add back accidently deleted line. From-SVN: r62542
2003-02-07* optabs.c (expand_float): Search wider integer modes first.Andrey Petrov2-4/+8
From-SVN: r62535
2003-02-07xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this based on preprocessor flag.Bob Wilson2-3/+10
* config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this based on preprocessor flag. From-SVN: r62534
2003-02-07gcse.c (implicit_sets): New.Roger Sayle2-1/+140
* gcse.c (implicit_sets): New. (compute_hash_table_work): Include them in hash table. (find_implicit_sets, fis_get_condition): New. (one_cprop_pass): Allocate and free implicit_sets; call find_implicit_sets before building hash table. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r62533
2003-02-07cp-simplify.c (genericize_try_block): Do genericize catch blocks.Jason Merrill1-0/+11
* cp-simplify.c (genericize_try_block): Do genericize catch blocks. [[Split portion of a mixed commit.]] From-SVN: r62528.2
2003-02-07* config/t-netbsd (USER_H): Revert previous change.Jason Thorpe2-4/+4
From-SVN: r62523
2003-02-07* doc/c-tree.texi (Namespaces): Fix typo.Gabor Greif2-2/+6
From-SVN: r62522
2003-02-0720020430-1.c: Fix dg command typos.Kaveh R. Ghazi3-4/+9
* gcc.dg/20020430-1.c: Fix dg command typos. * gcc.dg/20020503-1.c: Likewise. From-SVN: r62511
2003-02-07regrename.c (do_replace, [...]): Update register attributes.Jan Hubicka2-0/+10
* regrename.c (do_replace, find_oldest_value_reg, copyprop_hardreg_forward_1): Update register attributes. From-SVN: r62509
2003-02-07Daily bump.GCC Administrator1-1/+1
From-SVN: r62507
2003-02-06genautomata.c (VLA_PTR_CREATE, [...]): Use temporay variables starting with ↵Vladimir Makarov2-106/+146
underscore. 2003-02-06 Vladimir Makarov <vmakarov@redhat.com> * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay variables starting with underscore. (struct unit_usage): New structure. (unit_usages, cycle_alt_unit_usages): New global variables. (check_unit_distribution_in_reserv): Remove it. (store_alt_unit_usage): New function. (check_regexp_units_distribution): Rewrite it. From-SVN: r62500
2003-02-06re PR c++/8785 (ICE in tsubst, at cp/pt.c:6473)Volker Reichelt8-0/+111
PR c++/8785 * g++.dg/parse/fused-params1.C: New test. PR c++/8857 * g++.dg/parse/tmpl-tmpl-operator1.C: New test. PR c++/8921 * g++.dg/parse/non-dependent1.C: New test. PR c++/8928 * g++.dg/parse/dupl-tmpl-args1.C: New test. PR c++/9228 * g++.dg/parse/undefined7.C: New test. * g++.dg/parse/non-templ1.C: New test. PR c++/9229 * g++.dg/parse/too-many-tmpl-args1.C: New test. From-SVN: r62499
2003-02-06config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in target_cpu_default.John David Anglin4-19/+81
* config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in target_cpu_default. * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X) if not MASK_NO_SPACE_REGS. (output_call): Adjust return pointer, don't load new space register into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true. (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if TARGET_NO_SPACE_REGS is true. * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn conditions. (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true. (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is true. Use bve when TARGET_64BIT is true. From-SVN: r62497
2003-02-06* combine.c (nonzero_bits): Fix double break.Richard Henderson2-1/+4
From-SVN: r62495
2003-02-06Reverted erroneously applied patchTom Tromey1-29/+4
From-SVN: r62493
2003-02-06re PR c/9530 (ICE on missing return statement)Eric Botcazou4-8/+32
PR c/9530 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls from functions that return a float to functions that don't. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r62480
2003-02-06i386.c (x86_inter_unit_moves): New variable.Jan Hubicka8-37/+405
* i386.c (x86_inter_unit_moves): New variable. (ix86_secondary_memory_needed): Fix 64bit case, honor TARGET_INTER_UNIT_MOVES * i386.h (x86_inter_unit_moves): Declare. (TARGET_INTER_UNIT_MOVES): New macro. * i386.md (movsi_1): Cleanup constraints; disable when not doing inter-unit moves. (movsi_1_nointernunit): New. (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves. (movdi_1_rex64_nointerunit): New. (mivsf_1): disable when not doing inter-unit moves. (movsf_1_nointerunit): New. * basic-block.h (inside_basic_block_p): Declare. * cfgbuild.c (inside_basic_block_p): Make global. * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK. * scheudle-ebb.c (schedule_ebb): Return last basic block of trace; update CFG. (fix_basic_block_boundaries, add_missing_bbs): New. (rank): Use profile. (scheudle_ebbs): Rely on CFG; update coments. From-SVN: r62477
2003-02-06Makefile.in (host_hook_obj): New.Geoffrey Keating12-157/+471
* Makefile.in (host_hook_obj): New. (OBJS): Add $(host_hook_obj). (host_default.o): New rule. * config.gcc (host_hook_obj): New, default to host-default.o. (powerpc-*-darwin*): Use host-darwin.o. (out_host_hook_obj): New. * configure: Regenerate. * configure.in: Print information about out_host_hook_obj, substitute into output files. * host-default.c: New file. * hosthooks.h: New file. * toplev.c (general_init): Call host_hooks.extra_signals. * config/rs6000/host-darwin.c: New file. * config/rs6000/x-darwin: New file. * doc/hostconfig.texi: Add documentation for new host hook. Rearrange existing documentation. From-SVN: r62470
2003-02-06921206-1.c: Rename undeclared function from "pow" to "foo" to avoid ↵Roger Sayle2-1/+6
potential confusion... * gcc.c-torture/compile/921206-1.c: Rename undeclared function from "pow" to "foo" to avoid potential confusion with math built-ins. From-SVN: r62469
2003-02-06dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR with ↵Roger Sayle10-38/+51
*targetm.delegitimize_address. * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR with *targetm.delegitimize_address. (rtl_for_decl_location): Likewise. * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h. * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H) * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition. * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove prototype. * config/i386/i386.c (ix86_delegitimize_address): Renamed from i386_simplify_dwarf_addr. Made static. Prototyped. (TARGET_DELEGITIMIZE_ADDRESS): Update definition from i386_simplify_dwarf_addr to ix86_delegitimize_address. (ix86_find_base_term): Likewise. (maybe_get_pool_constant): Likewise. * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition. * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove prototype. * config/s390/s390.c (s390_delegitimize_address): Renamed from s390_simplify_dwarf_addr. Made static. Prototyped. (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address. From-SVN: r62468
2003-02-05Mark PR for last change.Richard Henderson1-0/+1
From-SVN: r62465
2003-02-05integrate.c (output_inline_function): Reset input_filename and lineno from ↵Richard Henderson2-0/+10
the decl before rest_of_compilation. * integrate.c (output_inline_function): Reset input_filename and lineno from the decl before rest_of_compilation. From-SVN: r62464
2003-02-0620020227-1.x: Update specific XFAIL conditions for SPARC targets.Kaveh R. Ghazi2-13/+30
* gcc.c-torture/execute/20020227-1.x: Update specific XFAIL conditions for SPARC targets. From-SVN: r62463
2003-02-06Daily bump.GCC Administrator1-1/+1
From-SVN: r62462
2003-02-05defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.Richard Henderson12-112/+126
* defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New. (CTZ_DEFINED_VALUE_AT_ZERO): New. * doc/rtl.texi, doc/tm.texi: Document them. * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness of the value at zero properly. * fold-const.c (tree_expr_nonnegative_p): Likewise. * simplify-rtx.c (simplify_unary_operation): Likewise. * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New. (CTZ_DEFINED_VALUE_AT_ZERO): New. * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove. (TARGET_EXPAND_BUILTIN): Remove. (def_builtin, arm_init_builtins, arm_expand_builtin): Remove. * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New. (enum arm_builtins): Remove. * config/arm/arm.md (UNSPEC_CLZ): Remove. (clzsi2): Rename from clz; use clz instead of unspec. (ctzsi2): New. * config/arm/arm-protos.h: Update. From-SVN: r62453
2003-02-05i386-protos.h (x86_emit_floatuns): Declare.Jan Hubicka4-0/+61
* i386-protos.h (x86_emit_floatuns): Declare. * i386.c (x86_emit_floatuns): New global function. * i386.md (floatunssisf2, floatunsdisf2, floatunsdidf2): New patterns. From-SVN: r62452
2003-02-05* cfgloopmanip.c (force_single_succ_latches): Fix missindentation.Zdenek Dvorak2-2/+8
From-SVN: r62451
2003-02-05unwind-ia64.c: include coretypes.h, tm.h to get config/ia64/linux.hHans Boehm2-0/+7
2003-02-04 Hans Boehm <Hans.Boehm@hp.com> * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get config/ia64/linux.h From-SVN: r62448
2003-02-05* cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.Roger Sayle2-2/+6
From-SVN: r62447
2003-02-05re PR rtl-optimization/8555 (ICE in gen_split_1231)Jakub Jelinek4-3/+33
PR optimization/8555 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case instead of aborting. * gcc.dg/20030204-1.c: New test. From-SVN: r62438
2003-02-05i386.md (UNSPEC_BSF): Remove.Richard Henderson2-86/+87
* config/i386/i386.md (UNSPEC_BSF): Remove. (ffssi2): Split into cmove and no_cmove insns and splitters; lose pentium float trick for now. (ffssi_1): Add * to name; use CTZ instead of UNSPEC. (ctzsi2, clzsi2, bsr): New. From-SVN: r62434
2003-02-04ia64.c (rtx_needs_barrier): Handle POPCOUNT, UNSPEC_GETF_EXP; remove ↵Richard Henderson3-10/+54
UNSPEC_POPCNT. * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT, UNSPEC_GETF_EXP; remove UNSPEC_POPCNT. * config/ia64/ia64.md (UNSPEC_POPCNT): Remove. (ffsdi2): Use popcount instead of unspec. (popcountdi2): Rename from *popcnt. (ctzdi2, clzdi2, getf_exp_tf): New. From-SVN: r62428