aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-05-06fold-const.c (lshift-double): Cast the high word to an unsigned ↵Roger Sayle2-13/+11
HOST_WIDE_INT when... * fold-const.c (lshift-double): Cast the high word to an unsigned HOST_WIDE_INT when extracting sign bit to avoid compiler warning. (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to avoid compiler warning. (fold): Remove redundant code from BIT_AND_EXPR as integer operands are canonicalized to be arg1. From-SVN: r53228
2002-05-06pa-protos.h (hppa_fpstore_bypass_p): Declare.Jeff Law4-112/+144
* pa-protos.h (hppa_fpstore_bypass_p): Declare. * pa.c (pa_adjust_cost): Remove all true dependency cost adjustments. Also remove support for non-DFA scheduling. * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism to adjust true dependency costs. Update various comments. (7100lc, 7200, 7300 scheduling): Simplify by combining the FP ALU & MPY units into a single unit. From-SVN: r53227
2002-05-06(compute_register_save_size): Make sureCatherine Moore2-6/+8
to count all of the registers that will be saved. From-SVN: r53226
2002-05-06* i386.c (q_regs_operand): Use ANY_QI_REGS_P.Jan Hubicka2-1/+5
From-SVN: r53224
2002-05-06* gcc.dg/cpp/charconst-3.c: Run, don't compile.Neil Booth2-1/+5
From-SVN: r53209
2002-05-06Daily bump.GCC Administrator2-2/+2
From-SVN: r53208
2002-05-06sparc.c (emit_soft_tfmode_libcall): Do not allow result to overlap input ↵David S. Miller2-2/+25
operands in memory. 2002-05-06 David S. Miller <davem@redhat.com> * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not allow result to overlap input operands in memory. From-SVN: r53204
2002-05-05cpp.texi: Update multichar charconst docs.Neil Booth4-8/+65
doc: * cpp.texi: Update multichar charconst docs. testsuite: * gcc.dg/cpp/charconst-3.c: New test. From-SVN: r53202
2002-05-05cpplex.c (cpp_interpret_charconst): Sign-extend each character.Neil Booth2-27/+29
* cpplex.c (cpp_interpret_charconst): Sign-extend each character. Don't ignore excess characters. Treat multicharacter character constants as signed. (cpp_parse_escape): Clarify diagnostic. From-SVN: r53200
2002-05-05sparc.md (ashlsi3): If shift count is const1_rtx, use add instead of shift.Jakub Jelinek4-20/+30
2002-05-05 Jakub Jelinek <jakub@redhat.com> * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx, use add instead of shift. (ashldi3_sp64): Likewise. (ashlsi3_const1, ashldi3_const1): Remove. * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand. * config/sparc/sparc.c (const1_operand): New. From-SVN: r53199
2002-05-05* config.gcc (alpha*-*-netbsd*): Don't use crtstuff.Jason Thorpe2-1/+4
From-SVN: r53198
2002-05-06re PR target/6561 (sparc-sun-solaris2.7 C testsuite failure ↵Jakub Jelinek2-0/+12
w/-mcpu=ultrasparc in execute/950511-1.c) PR target/6561 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2. From-SVN: r53197
2002-05-05alpha.c (alpha_adjust_cost): Remove everything but memory latency adjustments.Richard Henderson6-436/+547
* config/alpha/alpha.c (alpha_adjust_cost): Remove everything but memory latency adjustments. (alpha_variable_issue): Remove. (alpha_use_dfa_pipeline_interface): New. (alpha_multipass_dfa_lookahead): New. * config/alpha/alpha.md: Remove define_function_unit scheduling; include new dfa scheduling. (attr type): Add none. (blockage): Use it. * config/alpha/ev4.md: New. * config/alpha/ev5.md: New. * config/alpha/ev6.md: New. From-SVN: r53196
2002-05-05recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.David S. Miller2-0/+7
2002-05-05 David S. Miller <davem@redhat.com> * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL. From-SVN: r53195
2002-05-05add PR idJason Merrill1-0/+2
From-SVN: r53194
2002-05-05Adding .csvignore.Tim Josling2-0/+8
From-SVN: r53192
2002-05-05cse.c: Fix formatting.Kazu Hirata3-49/+57
* cse.c: Fix formatting. * emit-rtl.c: Likewise. From-SVN: r53191
2002-05-05genautomata.c (initiate_states): Add additional guard to initialize ↵Vladimir Makarov2-1/+7
`units_array'. 2002-05-05 Vladimir Makarov <vmakarov@redhat.com> * genautomata.c (initiate_states): Add additional guard to initialize `units_array'. From-SVN: r53188
2002-05-05genautomata.c (form_the_same_automaton_unit_lists_from_regexp, [...]): New ↵Vladimir Makarov3-48/+291
prototypes and functions. 2002-05-05 Vladimir Makarov <vmakarov@redhat.com> * genautomata.c (form_the_same_automaton_unit_lists_from_regexp, process_unit_to_form_the_same_automaton_unit_lists, form_the_same_automaton_unit_lists check_unit_distributions_to_automata): New prototypes and functions. (check_automata): Rename it into `check_automata_insn_issues'. (unit_decl): New fields `the_same_automaton_unit' and `the_same_automaton_message_reported_p'. (unit_decl_t): New typedef. (the_same_automaton_lists): New gloval variable. (unit_regexp, unit_set_el, units_array, units_cmp, output_get_cpu_unit_code_func): Use the typedef. (evaluate_max_reserv_cycles): Increment `description->max_insn_reserv_cycles'. (initiate_states): Don't increment `max_cycles_num'. (transform_insn_regexps): Move code around transformation of regexps from `generate'. (generate): Remove call of `transform_insn_regexps'. (expand_automata): Call `transform_insn_regexps' and `check_unit_distributions_to_automata'. Check errors before `generate'. * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into automaton `ultrasparc3_1'. From-SVN: r53187
2002-05-05c-common.c (c_common_init): Set up CPP arithmetic.Neil Booth7-50/+88
* c-common.c (c_common_init): Set up CPP arithmetic. * cppinit.c (cpp_create_reader): Default CPP arithmetic to something reasonable for the host. (sanity_checks): Add checks. (cpp_read_main_file): Call sanity_checks() from here... (cpp_post_options): ... not here. * cpplex.c (cpp_interpret_charconst): Get max_chars right. * cpplib.h (struct cpp_options): New member int_precision. testsuite: * gcc.dg/cpp/charconst.c: Update tests. From-SVN: r53186
2002-05-05install.texi (powerpc-*-linux-gnu*): Update build requirements.Franz Sirl2-3/+6
2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements. From-SVN: r53181
2002-05-052002-05-04 David S. Miller <davem@redhat.com>David S. Miller3-4/+3
* config/sparc/linux.h, config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice. From-SVN: r53179
2002-05-05sparc.c (sparc_rtx_costs): Describe costs of more RTX codes.David S. Miller3-6/+270
2002-05-04 David S. Miller <davem@redhat.com> * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of more RTX codes. * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes. From-SVN: r53178
2002-05-05recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL of SETs.David S. Miller2-8/+34
2002-05-04 David S. Miller <davem@redhat.com> * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL of SETs. From-SVN: r53177
2002-05-05Daily bump.GCC Administrator2-2/+2
From-SVN: r53175
2002-05-05Added comments in master changelogs on adding treelang directories.Tim Josling2-0/+9
From-SVN: r53170
2002-05-05Added new sample language treelang.Tim Josling20-0/+5383
From-SVN: r53169
2002-05-04Makefile.in (c-lex.o): Update.Neil Booth11-8/+79
* Makefile.in (c-lex.o): Update. * c-lex.c: Include target.h. (cb_register_builtins): New. (init_c_lex): Set builtins callback. * c-lex.h (cpp_define, cpp_assert): New prototypes. * cppinit.c (init_builtins): Use callback, including for GXX_WEAK. * cpplib.h (struct cpp_callbacks): New member. * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New. (TARGET_INITIALIZER): Update. * target.h (struct gcc_target): New hook. * tree.c (default_register_cpp_builtins): New. * tree.h (default_register_cpp_builtins): New. doc: * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document. From-SVN: r53165
2002-05-04cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.hNeil Booth4-35/+68
* cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h (cpp_post_options): Move sanity checks to... (sanity_checks): New. * cpplex.c (maybe_read_ucs): Fix prototype. (parse_string, cpp_parse_escape): Cast for %c format specifier. * cpplib.h (cppchar_t): Use unsigned long or unsigned long long if necessary. From-SVN: r53163
2002-05-04Fix bugs in SSE2 suppport and add SSE2 functions to xmmintrin.hBernd Schmidt4-46/+1227
From-SVN: r53161
2002-05-04dwarf2out.c: Fix formatting.Kazu Hirata3-87/+95
* dwarf2out.c: Fix formatting. * varasm.c: Likewise. From-SVN: r53160
2002-05-04rs6000.md (sCC pattern and splitter): Remove clobber and use result as ↵David Edelsohn2-15/+18
temporary value. * config/rs6000/rs6000.md (sCC pattern and splitter): Remove clobber and use result as temporary value. From-SVN: r53159
2002-05-04For PR java/6519:Mark Wielaard2-2/+9
* parse.y (build_string_concatenation): Return just op1 only when op2 is null and op1 is a STRING_CST, otherwise always construct a StringBuffer. From-SVN: r53158
2002-05-04expr.c (force_operand): Use expand_simple_* to handle more cases.Jan Hubicka2-43/+73
* expr.c (force_operand): Use expand_simple_* to handle more cases. From-SVN: r53154
2002-05-04*** empty log message ***Neil Booth1-0/+1
From-SVN: r53153
2002-05-04c-lex.c (lex_string): Let cpp_parse_escape handles truncation and ↵Neil Booth8-104/+149
sign-extension. * c-lex.c (lex_string): Let cpp_parse_escape handles truncation and sign-extension. (lex_charconst): Update for change in prototype of cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT appropriately. * cpphash.h (BITS_PER_CPPCHAR_T): New. * cppinit.c (cpp_create_reader): Initialize them for no change in semantics. (cpp_post_options): Add sanity checks. * cpplex.c (cpp_parse_escape): Handle precision, sign-extension and truncation issues. Calculate in type cppchar_t. (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove. (cpp_interpret_charconst): Calculate in type cppchar_t. Handle run-time dependent precision correctly. Return whether the result is signed or not. * cpplib.c (dequote_string): Use cppchar_t; update. * cpplib.h (cppchar_signed_t): New. struct cpp_options): New precision members. (cpp_interpret_charconst, cpp_parse_escape): Update prototypes. From-SVN: r53152
2002-05-04Daily bump.GCC Administrator2-2/+2
From-SVN: r53151
2002-05-03sparc-protos.h (sparc_rtx_costs): New.David S. Miller4-55/+87
2002-05-03 David S. Miller <davem@redhat.com> * config/sparc/sparc-protos.h (sparc_rtx_costs): New. * config/sparc/sparc.c (sparc_rtx_costs): New function implementing RTX_COSTS and CONST_COSTS. * config/sparc/sparc.h (CONST_COSTS): Delete. (RTX_COSTS_CASES): Define. (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do the work. From-SVN: r53147
2002-05-03sparc.md (DFA schedulers): Split out...David S. Miller8-518/+684
2002-05-03 David S. Miller <davem@redhat.com> * config/sparc/sparc.md (DFA schedulers): Split out... * config/sparc/cypress.md, config/sparc/hypersparc.md, config/sparc/sparclet.md, config/sparc/supersparc.md, config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here. From-SVN: r53146
2002-05-03sparc.c (LEAF_REGISTERS): Do not do ifdef checks on it, always defined for ↵David S. Miller2-4/+3
Sparc. 2002-05-03 David S. Miller <davem@redhat.com> * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef checks on it, always defined for Sparc. From-SVN: r53145
2002-05-03sparc.h (REG_ALLOC_ORDER, [...]): Tweak, and add more detailed comments.David S. Miller2-27/+65
2002-05-03 David S. Miller <davem@redhat.com> * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Tweak, and add more detailed comments. From-SVN: r53144
2002-05-04Re-apply patch accidentally reverted with DFA scheduler merge: remove all ↵Zack Weinberg2-84/+33
rules and variables to slurp source files out of libiberty and... * Re-apply patch accidentally reverted with DFA scheduler merge: remove all rules and variables to slurp source files out of libiberty and rebuild them with HOST_CC. ($(HOST_PREFIX_1)varray.o): New rule. (genattrtab rule): Word wrap. From-SVN: r53141
2002-05-04netbsd64.h (CPP_LP64_SPEC): Define.Jason Thorpe2-0/+26
* config/i386/netbsd64.h (CPP_LP64_SPEC): Define. (CPP_SUBTARGET_SPEC): Define. (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and cpp_subtarget specs. (CPP_SPEC): Redefine to include %(cpp_subtarget). From-SVN: r53140
2002-05-03ia64.c (ia64_emit_insn_before): Put it back.David S. Miller2-4/+22
2002-05-03 David S. Miller <davem@redhat.com> * config/ia64/ia64.c (ia64_emit_insn_before): Put it back. (rtx_needs_barrier): Delete reference to cycle_display unspec. (ia64_sched_reorder2): Mention need for cycle display handling once such notes exist. From-SVN: r53139
2002-05-03target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.David S. Miller3-8/+5
2002-05-03 David S. Miller <davem@redhat.com> * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete. * target.h (struct gcc_target): Delete cycle_display member. From-SVN: r53138
2002-05-03real.c (etoasc): Strip most trailing zeros for clarity.Richard Henderson4-8/+21
* real.c (etoasc): Strip most trailing zeros for clarity. * sched-vis.c: Include real.h. (print_value): Use REAL_VALUE_TO_DECIMAL as needed. * Makefile.in (sched-vis.o): Add real.h. From-SVN: r53137
2002-05-03haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change, no longer needed.David S. Miller2-11/+11
2002-05-03 David S. Miller <davem@redhat.com> * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change, no longer needed. From-SVN: r53136
2002-05-04rs6000.c (altivec_expand_binop_builtin): Error out when we get an out of ↵Aldy Hernandez2-6/+75
range literal. 2002-05-03 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out when we get an out of range literal. (altivec_expand_ternop_builtin): Same. (altivec_expand_unop_builtin): Same. (altivec_expand_builtin): Same, for dss. (altivec_expand_builtin): Use trees instead of rtl when determining literal argument validity. From-SVN: r53135
2002-05-03Delete cycle display scheduling hook.David S. Miller8-84/+20
2002-05-03 David S. Miller <davem@redhat.com> Delete cycle display scheduling hook. * config/ia64/ia64.c (ia64_cycle_display, TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete. (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display and use emit_insn_before instead of ia64_emit_insn_before. * config/ia64/ia64.md (unspec usage): Delete cycle display. (cycle_display): Delete insn pattern. * config/sparc/sparc.md (unspec usage): Delete cycle display. (cycle_display): Delete insn pattern. * config/sparc/sparc.c (sparc_cycle_display, TARGET_SCHED_CYCLE_DISPLAY): Delete. * doc/md.texi (cycle_display): Don't mention. * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise. From-SVN: r53134
2002-05-03recog.c (store_data_bypass_p, [...]): New.Richard Henderson6-73/+71
* recog.c (store_data_bypass_p, if_test_bypass_p): New. * recog.h: Declare them. * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove. * config/sparc/sparc.md: Use store_data_bypass_p instead. * config/sparc/sparc-protos.h: Update. From-SVN: r53132