* read-rtl.c: Fix formatting.
[official-gcc.git] / gcc / ChangeLog
blobc0b86cc4a8d5a829f86e82f2fabc2b7c34b2bddd
1 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3         * read-rtl.c: Fix formatting.
4         * real.c: Likewise.
5         * recog.c: Likewise.
6         * regclass.c: Likewise.
7         * regmove.c: Likewise.
8         * reg-stack.c: Likewise.
9         * reload1.c: Likewise.
10         * reload.c: Likewise.
11         * resource.c: Likewise.
12         * rtlanal.c: Likewise.
13         * rtl.c: Likewise.
14         * rtl-error.c: Likewise.
16 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
19         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
21 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
23         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
24         use __SSE2__ macro instead.
25         * config/i386/xmmintrin.h: Likewise.
27 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
29         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
30         and use it in all invocations of these macros.  Clean up comments.
31         * rtl.c (rtl_check_failed_flag): Add an argument for the name
32         of the flag access macro whose check failed.
33         * doc/rtl.texi (Flags): Document additional flag uses.
35 2002-05-08  Robert Spier <rspier@pobox.com>
36             Neil Booth  <neil@daikokuya.demon.co.uk>
38         PR preprocessor/6521
39         * cppfiles.c (handle_missing_header): Don't do anything
40         different for <> includes.
41 doc:
42         * cppopts.texi: Update documentation for -MG.
44 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
46         * cpplex.c (cpp_interpret_charconst): Truncate as well as
47         sign-extend.
48 doc:
49         * cpp.texi: Clarify multichar charconst valuation.
51 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
53         * doc/invoke.texi: Document -mwindiss option.
55 2002-05-08  Jason Merrill  <jason@redhat.com>
57         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
59         * dwarf2out.c (gen_type_die): Abort on broken recursion.
61         PR c++/6381
62         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
63         REAL_CST.
65 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
67         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
68         little-endian multilibs to override arm/thumb multilibs.
69         Do not build hardware floating point multilibs, nor apcs-26
70         multilibs for the Thumb.
72 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
74         PR c/6569.
75         * varasm.c (mark_weak): New function.
76         (merge_weak): Use it.  Do not call declare_weak.
77         (declare_weak): Use merge_weak.
79 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
81         * cse.c (dead_libcall_p): Update counts.
82         (delete_trivially_dead_insns): Update call of dead_libcall_p.
84 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
86         * cfglayout.c (function_tail_eff_head): Rename to ...
87         (function_footer): ... this one.
88         (unlink_insn_chain): New functions.
89         (label_for_bb): Only call block_label and emit debug message.
90         (record_effective_endpoints): Actually unlink the headers and footers.
91         (fixup_reorder_cahin): Re-insert the unlinked sequences.
92         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
93         * cfglayout.h (struct reorder_block_def): New fields footer/header;
94         remove eff_head/eff_end.
95         * rtl.h (set_first_insn): Declare.
96         * emit-rtl.c (set_first_insn): New function.
98         * cfglayout.c (fixup_reorder_chain): Dump duplicated
99         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
100         cfg_layout_duplicate_bb): New global function.
101         (duplicate_insn_chain): New static function.
102         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
103         cfg_layout_duplicate_bb): Declare.
104         (struct reorder_block_def): Add "original" field.
105         * emit-rtl.c (emit_copy_of_insn_after): New function.
106         * rtl.h (emit_copy_of_insn_after): Declare.
108         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
109         (fixup_reorder_chain): properly handle edges to exit block.
111 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
112                                Jan Hubicka  <jh@suse.cz>
114         * basic-block.h (note_prediction_to_br_prob): declare.
115         * c-semantics.c: Inlucde predit.h
116         (expand_stmt): predict GOTO_STMT as not taken.
117         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
118         (cleanup_cfg): Do not free tail_recursion_list.
119         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
120         (flow_delete_block): Kill predictions past end of basic block.
121         * output.h (delete_unreachable_blocks): Declare.
122         * predict.c (predicted_by_p, process_note_predictions,
123         process_note_prediction, last_block_p): New function.
124         (estimate_probability): Bypass loop on PRED_CONTINUE;
125         do not handle noreturn heuristics; kill PRED_RETURN; add
126         PRED_EARLY_RETURN.
127         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
128         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
129         * predict.h (IS_TAKEN): New constant.
130         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
131         * rtl.c (NOTE_INSN_PREDICTION): New.
132         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
133         New macro.
134         (insn_note): add NOTE_INSN_PREDICTION.
135         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
136         CFG; free tail_recursion_label_list.
137         * stmt.c: Include predict.h;
138         (return_prediction): New.
139         (expand_value_return): Use it.
140         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
142 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
144         * config/mips/mips.md: Name the unspecs with define_constant.
145         (*HILO_delay): Rename to 'hilo_delay' (no star).
146         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
147         (reload_outdi, reload_outsi): Likewise.
149 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
151         * toplev.c: Fix formatting.
153 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
155         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
156         * configure.in (ac_rtlflag_checking): New.
157         * doc/install.texi (--enable-checking): Document RTL flag checking.
159 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
161         * c-common.c (c_common_init): Set options->unsigned_wchar.
162         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
163         group target dependencies.
164         (init_builtins, cpp_handle_option): Update.
165         * cpplex.c (cpp_interpret_charconst): Update.
166         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
167         signed_char to unsigned_char, group target dependencies.
168         * defaults.h (WCHAR_UNSIGNED): Remove.
169         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
170 config:
171         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
172         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
173         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
174         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
175         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
176 doc:
177         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
179 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
181         * fixinc/inclhack.def (windiss_math1): New fix.
182         (windiss_math2): Likewise.
183         (windiss_valist): Likewise.
184         * fixinc/fixincl.x: Regenerated.
186 2002-05-07  Andreas Jaeger  <aj@suse.de>
188         * genautomata.c (output_internal_min_issue_delay_func): Add
189         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
190         (output_internal_trans_func): Likewise.
192 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
194         * pa.c (hppa_profile_hook): Use force_reg to get the address
195         of the profile hook into an appropriate pseudo register.
197 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
199         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
200         (LINK_START_SPEC): Handle it.
201         (LINK_OS_SPEC): Likewise.
202         (CPP_SPEC): Likewise.
203         (STARTFILE_SPEC): Likewise.
204         (LIB_SPEC): Likewise.
205         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
206         all platforms.
207         (CRTSAVRES_DEFAULT_SPEC): New macro.
208         (LIB_WINDISS_SPEC): New macro.
209         (CPP_OS_WINDISS_SPEC): Likewise.
210         (STARTFILE_WINDISS_SPEC): Likewise.
211         (ENDFILE_WINDISS_SPEC): Likewise.
212         (LINK_START_WINDISS_SPEC): Likewise.
213         (LINK_OS_WINDISS_SPEC): Likewise.
214         * config/rs6000/windiss.h: New file.
216 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
218         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
220 2002-05-06  David S. Miller  <davem@redhat.com>
222         * config/sparc/sparc.md (shift insns): Do not mask off
223         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
224         take care of it.
226 2002-05-06  Richard Henderson  <rth@redhat.com>
228         PR c++/6212
229         * expr.c (highest_pow2_factor_for_type): New.
230         (expand_assignment): Use it.
232 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
234         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
235         unspec_volatile.
236         ("altivec_mfvscr"): Same.
238 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
240         * rtl.h (struct rtx_def): Update comments.
241         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
242         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
243         RTL_FLAG_CHECK macros with list of expected RTL codes.
244         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
245         (rtl_check_failed_flag): New.
246         * reload1.c (reload): Use REG macro before changing rtx to MEM.
247         (reload_cse_noop_set_p): Check rtx code before using access macro.
248         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
249         before using access macro.
251 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
253         * doc/rtl.texi (Flags): Update to reflect current usage.
255 2002-05-06  Roger Sayle  <roger@eyesopen.com>
257         PR opt/3995
258         * fold-const.c (sign_bit_p): New function.
259         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
260         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
261         Reapply fold when converting (A & C) == C into (A & C) != 0.
262         (fold_binary_op_with_conditional_arg): Fix typo in comment.
264 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
266         * c-common.c (warn_multichar): New.
267         (c_common_init): Set CPP's warn_multichar.
268         * c-common.h (warn_multichar): New.
269         * c-decl.c (warn_multichar): Remove.
270         * c-lex.c (lex_charconst): Update.
271         * c-tree.h (warn_multichar): Remove.
272         * cppexp.c (eval_token): Sign-extend charconst value.
273         * cppinit.c (cpp_create_reader): Set warn_multichar.
274         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
275         each character.  Update prototype.  Sign-extend the result.
276         * cpplib.h: Fix conditions.
277         (struct cpp_options): Add new warning flag.
278         (cpp_interpret_charconst): Update prototype.
279 doc:
280         * cpp.texi: Update documentation.
282 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
284         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
285         Fix typo in usage of allof instead of unit.
287 2002-05-06  Richard Henderson  <rth@redhat.com>
289         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
290         and any jump or call for IN.
292 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
294         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
295         -msse2.
296         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
298 2002-05-06  Roger Sayle  <roger@eyesopen.com>
300         * fold-const.c (lshift-double): Cast the high word to an unsigned
301         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
302         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
303         avoid compiler warning.  (fold): Remove redundant code from
304         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
306 2002-05-06  Jeff Law  <law@redhat.com>
308         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
309         * pa.c (pa_adjust_cost): Remove all true dependency cost
310         adjustments.  Also remove support for non-DFA scheduling.
311         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
312         to adjust true dependency costs.  Update various comments.
313         (7100lc, 7200, 7300 scheduling): Simplify by combining the
314         FP ALU & MPY units into a single unit.
316 2002-05-06  Catherine Moore  <clm@redhat.com>
318         * config/v850/v850.c (compute_register_save_size): Make sure
319         to count all of the registers that will be saved.
321 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
323         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
325 2002-05-06  David S. Miller  <davem@redhat.com>
327         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
328         allow result to overlap input operands in memory.
330 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
332 doc:
333         * cpp.texi: Update multichar charconst docs.
335 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
337         * cpplex.c (cpp_interpret_charconst): Sign-extend each
338         character.  Don't ignore excess characters.  Treat
339         multicharacter character constants as signed.
340         (cpp_parse_escape): Clarify diagnostic.
342 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
344         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
345         use add instead of shift.
346         (ashldi3_sp64): Likewise.
347         (ashlsi3_const1, ashldi3_const1): Remove.
348         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
349         * config/sparc/sparc.c (const1_operand): New.
351 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
353         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
355 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
357         PR target/6561
358         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
360 2002-05-05  Richard Henderson  <rth@redhat.com>
362         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
363         memory latency adjustments.
364         (alpha_variable_issue): Remove.
365         (alpha_use_dfa_pipeline_interface): New.
366         (alpha_multipass_dfa_lookahead): New.
367         * config/alpha/alpha.md: Remove define_function_unit scheduling;
368         include new dfa scheduling.
369         (attr type): Add none.
370         (blockage): Use it.
371         * config/alpha/ev4.md: New.
372         * config/alpha/ev5.md: New.
373         * config/alpha/ev6.md: New.
375 2002-05-05  David S. Miller  <davem@redhat.com>
377         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
379 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
381         * cse.c: Fix formatting.
382         * emit-rtl.c: Likewise.
384 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
386         * genautomata.c (initiate_states): Add additional guard to
387         initialize `units_array'.
389 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
391         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
392         process_unit_to_form_the_same_automaton_unit_lists,
393         form_the_same_automaton_unit_lists
394         check_unit_distributions_to_automata): New prototypes and
395         functions.
396         (check_automata): Rename it into `check_automata_insn_issues'.
397         (unit_decl): New fields `the_same_automaton_unit' and
398         `the_same_automaton_message_reported_p'.
399         (unit_decl_t): New typedef.
400         (the_same_automaton_lists): New gloval variable.
401         (unit_regexp, unit_set_el, units_array, units_cmp,
402         output_get_cpu_unit_code_func): Use the typedef.
403         (evaluate_max_reserv_cycles): Increment
404         `description->max_insn_reserv_cycles'.
405         (initiate_states): Don't increment `max_cycles_num'.
406         (transform_insn_regexps): Move code around transformation of
407         regexps from `generate'.
408         (generate): Remove call of `transform_insn_regexps'.
409         (expand_automata): Call `transform_insn_regexps' and
410         `check_unit_distributions_to_automata'.  Check errors before
411         `generate'.
413         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
414         automaton `ultrasparc3_1'.
416 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
418         * c-common.c (c_common_init): Set up CPP arithmetic.
419         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
420         something reasonable for the host.
421         (sanity_checks): Add checks.
422         (cpp_read_main_file): Call sanity_checks() from here...
423         (cpp_post_options): ... not here.
424         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
425         * cpplib.h (struct cpp_options): New member int_precision.
427 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
429         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
431 2002-05-04  David S. Miller  <davem@redhat.com>
433         * config/sparc/linux.h, config/sparc/linux64.h
434         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
436         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
437         more RTX codes.
438         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
440         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
441         of SETs.
443 2002-05-05  Tim Josling  <tej@melbpc.org.au>
445         * treelang; New directory for new sample language treelang.
447 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
449         * Makefile.in (c-lex.o): Update.
450         * c-lex.c: Include target.h.
451         (cb_register_builtins): New.
452         (init_c_lex): Set builtins callback.
453         * c-lex.h (cpp_define, cpp_assert): New prototypes.
454         * cppinit.c (init_builtins): Use callback, including for
455         GXX_WEAK.
456         * cpplib.h (struct cpp_callbacks): New member.
457         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
458         (TARGET_INITIALIZER): Update.
459         * target.h (struct gcc_target): New hook.
460         * tree.c (default_register_cpp_builtins): New.
461         * tree.h (default_register_cpp_builtins): New.
462 doc:
463         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
465 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
467         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
468         (cpp_post_options): Move sanity checks to...
469         (sanity_checks): New.
470         * cpplex.c (maybe_read_ucs): Fix prototype.
471         (parse_string, cpp_parse_escape): Cast for %c format specifier.
472         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
473         if necessary.
475 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
477         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
478         builtins.  Use V2DI patterns instead of TI for logical operations.
479         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
480         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
481         (ix86_expand_builtins): Change the pattern used for movntdq.
482         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
483         sse2_nandv2di3): New patterns.
484         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
485         on operands.
486         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
487         (cvtdq2pd): Correct mode on operand 1.
488         (sse2_umulsidi3): Describe without unspec.
489         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
490         machine modes.
491         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
492         (ashlv2di3): Likewise, from sse2_ashlv2di3.
493         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
494         ashlv4si3, ashlv2di3): Use SImode for shift count.
495         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
496         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
497         New patterns.
498         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
499         New typedefs.
500         (__m128i, __m128d): New macros.
501         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
502         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
503         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
504         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
505         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
506         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
507         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
508         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
509         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
510         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
511         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
512         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
513         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
514         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
515         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
516         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
517         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
518         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
519         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
520         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
521         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
522         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
523         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
524         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
525         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
526         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
527         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
528         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
529         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
530         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
531         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
532         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
533         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
534         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
535         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
536         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
537         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
538         functions.
539         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
540         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
542 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
544         * dwarf2out.c: Fix formatting.
545         * varasm.c: Likewise.
547 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
549         PR c/6543
550         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
551         clobber and use result as temporary value.
553 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
555         * expr.c (force_operand): Use expand_simple_* to handle more
556         cases.
558 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
560         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
561         and sign-extension.
562         (lex_charconst): Update for change in prototype of
563         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
564         appropriately.
565         * cpphash.h (BITS_PER_CPPCHAR_T): New.
566         * cppinit.c (cpp_create_reader): Initialize them for no
567         change in semantics.
568         (cpp_post_options): Add sanity checks.
569         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
570         and truncation issues.  Calculate in type cppchar_t.
571         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
572         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
573         run-time dependent precision correctly.  Return whether the
574         result is signed or not.
575         * cpplib.c (dequote_string): Use cppchar_t; update.
576         * cpplib.h (cppchar_signed_t): New.
577         struct cpp_options): New precision members.
578         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
579         * cppexp.c (eval_token): Update.
581 2002-05-03  David S. Miller  <davem@redhat.com>
583         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
584         * config/sparc/sparc.c (sparc_rtx_costs): New function
585         implementing RTX_COSTS and CONST_COSTS.
586         * config/sparc/sparc.h (CONST_COSTS): Delete.
587         (RTX_COSTS_CASES): Define.
588         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
589         the work.
591         * config/sparc/sparc.md (DFA schedulers): Split out...
592         * config/sparc/cypress.md, config/sparc/hypersparc.md,
593         config/sparc/sparclet.md, config/sparc/supersparc.md,
594         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
596         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
597         checks on it, always defined for Sparc.
599         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
600         Tweak, and add more detailed comments.
602 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
604         * Re-apply patch accidentally reverted with
605         DFA scheduler merge: remove all rules and variables to slurp
606         source files out of libiberty and rebuild them with HOST_CC.
607         ($(HOST_PREFIX_1)varray.o): New rule.
608         (genattrtab rule): Word wrap.
610 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
612         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
613         (CPP_SUBTARGET_SPEC): Define.
614         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
615         cpp_subtarget specs.
616         (CPP_SPEC): Redefine to include %(cpp_subtarget).
618 2002-05-03  David S. Miller  <davem@redhat.com>
620         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
621         * target.h (struct gcc_target): Delete cycle_display member.
623         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
624         (rtx_needs_barrier): Delete reference to cycle_display unspec.
625         (ia64_sched_reorder2): Mention need for cycle display handling
626         once such notes exist.
628 2002-05-03  Richard Henderson  <rth@redhat.com>
630         * real.c (etoasc): Strip most trailing zeros for clarity.
631         * sched-vis.c: Include real.h.
632         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
633         * Makefile.in (sched-vis.o): Add real.h.
635 2002-05-03  David S. Miller  <davem@redhat.com>
637         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
638         no longer needed.
640 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
642         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
643         when we get an out of range literal.
644         (altivec_expand_ternop_builtin): Same.
645         (altivec_expand_unop_builtin): Same.
646         (altivec_expand_builtin): Same, for dss.
647         (altivec_expand_builtin): Use trees instead of rtl when
648         determining literal argument validity.
650 2002-05-03  David S. Miller  <davem@redhat.com>
652         Delete cycle display scheduling hook.
653         * config/ia64/ia64.c (ia64_cycle_display,
654         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
655         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
656         and use emit_insn_before instead of ia64_emit_insn_before.
657         * config/ia64/ia64.md (unspec usage): Delete cycle display.
658         (cycle_display): Delete insn pattern.
659         * config/sparc/sparc.md (unspec usage): Delete cycle display.
660         (cycle_display): Delete insn pattern.
661         * config/sparc/sparc.c (sparc_cycle_display,
662         TARGET_SCHED_CYCLE_DISPLAY): Delete.
663         * doc/md.texi (cycle_display): Don't mention.
664         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
666 2002-05-03  Richard Henderson  <rth@redhat.com>
668         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
669         * recog.h: Declare them.
671         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
672         * config/sparc/sparc.md: Use store_data_bypass_p instead.
673         * config/sparc/sparc-protos.h: Update.
675 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
677         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
678         -D__arch64__.  Add -D_LP64.
679         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
680         from sparc.h.
681         (CPP_ARCH64_SPEC): Likewise.
682         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
683         (NO_BUILTIN_SIZE_TYPE): Undef.
685 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
687         * genautomata.c (min_issue_delay_pass_states): Change return type
688         in the prototype.
689         (min_issue_delay_pass_states): Change the algorithm.
690         (min_issue_delay): Set up min_insn_issue_delay for the state.
691         (output_min_issue_delay_table): Interchange the nested loops and
692         and initiate min_insn_issue_delay for states.
694 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
696         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
697         jump is simplejump.
699 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
701         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
702         sequence.
704 2002-05-03  Richard Henderson  <rth@redhat.com>
706         PR opt/6534
707         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
708         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
709         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
710         code before JUMP, not EARLIEST.
712 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
714         * c-format.c (check_format_info_main): Don't check for presence of
715         parameter for * width until after operand number has been read,
716         and only check for it if format parameters are available.
717         Fixes PR c/6547.
719 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
721         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
722         (LINK_SPEC): Undef before defining.
724 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
726         PR preprocessor/6489
727         * tradcpp.c (fixup_newlines): New.
728         (main, finclude): Use it.
730 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
732         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
733         * config/mips/mips.c (mips_unique_section): Strip encoding from
734         decl name.
736 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
738         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
739         mode.
741 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
743         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
744         (Specific): Removed buildstats references.
745         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
746         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
747         Accomodate Solaris versions beyond 8.
748         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
749         (Specific, *-*-solaris2.8): Removed, obsolete.
751 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
753         PR target/6542
754         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
755         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
756         fill leaf_reg_remap with identity.
757         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
759 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
761         * config/h8300/crti.asm: Remove trailing spaces.
762         * config/h8300/h8300.c: Likewise.
763         * config/h8300/lib1funcs.asm: Likewise.
765 2002-05-02  Jason Merrill  <jason@redhat.com>
767         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
768         * c-decl.c (c_init_decl_processing): Use it.
769         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
770         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
771         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
773 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
775         * regrename.c: Fix formatting.
776         * tree.c: Likewise.
778 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
780         * i386.md (attribute memory): Handle compares properly.
782 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
784         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
785         to none.
787 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
789         * function.c: Fix formatting.
791 2002-05-02  Jan Hubicka  <jh@suse.cz>
793         * haifa-sched.c (schedule_insn): Print table of instructions and
794         reservations.
795         (sched_block): Do not print ready list at verbosity level 1.
796         * sched-vis.c (print_insn): Make global.
797         * sched-ebb.c (ebb_print_insn): Rename from...
798         (print_insn): ... this one.
799         * sched-int.h (print_insn): Declare
801 2002-05-02  Richard Henderson  <rth@redhat.com>
803         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
804         emitted by cycle_display.
806 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
808         * doc/install.texi (*-*-freebsd*): Update to latest status.
810 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
812         PR target/6540
813         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
814         * config/float-sparc.h: Assume 128-bit long double if
815         __LONG_DOUBLE_128__ is defined.
817 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
819         * genattrtab.c (write_function_unit_info): Add a dummy element
820         when num_units == 0.
822 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
824         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
825         TYPE_MODE (double_type_node) instead of DFmode.
827 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
829         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
830         jumps post reload.
831         * toplev.c (rest_of_compilation): Revert Richard's patch.
833 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
835         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
837 2002-05-02  Catherine Moore  <clm@redhat.com>
839         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
841 2002-05-02  Kazu Hirata  <kazu@hxi.com>
843         * combine.c: Fix comment typos.
844         * expr.c: Likewise.
845         * genautomata.c: Likewise.
846         * stmt.c: Likewise.
847         * tree.h: Likewise.
849 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
851         * doc/install.texi: State GNAT version requirements.
853 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
855         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
856         of the frame pointer or arg pointer register which strict register
857         checking is not enabled.
859 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
861         * gcc.dg/altivec-8.c: New.
863         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
864         PRE_INC and PRE_DEC for altivec modes.
866 2002-05-01  Bruce Korb  <bkorb@gnu.org>
868         * fixinc/check.tpl(set-writable): make sure the function exists first
869         * fixinc/inclhack.def(alpha_assert): fix test_text
870         * fixinc/tests/base/assert.h: add in missing result
872 2002-05-01  Jeff Law  <law@redhat.com>
874         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
875         'T' constraint.
877 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
879         * dbxout.c (dbxout_type): Emit size information for range types,
880         as well, but only when using GDB extensions.
882 2002-05-01  Richard Henderson  <rth@redhat.com>
884         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
885         target-independent gnu binutils date test.
887 2002-05-01  Richard Henderson  <rth@redhat.com>
889         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
890         info before expunging the block.
892 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
894         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
895         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
896         -M -or -MM is in effect.
898 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
900         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
901         A29k configurations.
902         * doc/install.texi: Update to match.
904 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
906         PR bootstrap/6514
907         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
908         for duplicates. Always loop over whole list.
910 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
912         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
914 2002-05-01      Joel Sherrill <joel@OARcorp.com>
916         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
917         support routines.
919 2002-05-01      Joel Sherrill <joel@OARcorp.com>
921         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
923 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
925         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
926         (nabs_nopower): Same.
927         (floatdisf2): New pattern.
928         (absdi2): Convert to define_insn_and_split.
929         (nabsdi2): Same.
930         (trunctfsf2): Same.
931         (floatditf2): Same.
932         (floatsitf2): Same.
933         (fix_trunctfdi2): Same.
934         (fix_trunctfsi2): Same.
936 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
938         * doc/install.texi: Update Texinfo version requirement
939         documentation.
941 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
943         PR target/6512, PR target/5628
944         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
945         when memory is not aligned.
946         (movdf_insn_v9only_vis): Likewise.
947         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
948         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
949         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
951 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
953         * gcc.dg/altivec-7.c: New.
955         * config/rs6000/altivec.h: Cleanup.
957 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
959         * doc/invoke.texi (Option Summary): Add -mvrsave=.
960         (RS/6000 and PowerPC Options): Document -mvrsave=.
962         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
963         (rs6000_altivec_vrsave_string): Same.
964         (rs6000_override_options): Call rs6000_parse_vrsave_option.
965         (rs6000_parse_vrsave_option): New.
966         (rs6000_stack_info): Only generate vrsave instructions when
967         TARGET_ALTIVEC_VRSAVE.
969         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
970         (rs6000_altivec_vrsave_string): Define extern.
971         (rs6000_altivec_vrsave): Same.
972         (TARGET_ALTIVEC_VRSAVE): New.
974 2002-04-30  Richard Henderson  <rth@redhat.com>
976         PR opt/6516
977         * toplev.c (rest_of_compilation): Don't run cross-jump before
978         bb-reorder.
980 2002-04-30  Tom Rix  <trix@redhat.com>
982         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
983         check which_alternative.
985 2002-04-30  Kazu Hirata  <kazu@hxi.com>
987         * cpplex.c: Fix comment formatting.
988         * function.c: Likewise.
989         * integrate.c: Likewise.
990         * regrename.c: Likewise.
991         * sibcall.c: Likewise.
992         * simplify-rtx.c: Likewise.
993         * tree-inline.c: Likewise.
995 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
997         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
998         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
999         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
1000         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
1001         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
1002         * pa/x-ada: New file.  Define ADA_CFLAGS.
1004 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
1006         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
1007         from MMIX_LAST_REGISTER_FILE_REGNUM.
1008         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
1009         (struct machine_function): New member highest_saved_stack_register
1010         previously static variable in mmix.c.
1011         (MACHINE_DEPENDENT_REORG): Define.
1012         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
1013         (MMIX_OUTPUT_REGNO): New.
1014         (mmix_target_asm_function_prologue): Move calculation of last used
1015         saved-stack-register into...
1016         (mmix_machine_dependent_reorg): New function.  Update to also handle
1017         !TARGET_ABI_GNU.
1018         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
1019         register names, simplify somewhat by new variable regno.
1020         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
1021         register.
1022         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
1023         emitting register names.
1024         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
1025         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
1026         Remove fixed FIXME.
1027         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
1028         Declare.
1030         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
1032 2002-04-30  Richard Henderson  <rth@redhat.com>
1034         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
1035         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
1036         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
1037         emit_tfmode_cvt): New.
1038         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
1039         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
1040         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
1041         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
1042         * config/sparc/sparc-protos.h: Update.
1044 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
1046         * install.texi (Final install): Add to the list of info to include
1047         in a report of a successful bootstrap, and add link to 3.1 list.
1049 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
1051         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
1052         (mode): Add vector modes
1053         (i387): Kill attribute.
1054         (unit): New attribute.
1055         (length_immediate): Grok new types.
1056         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
1057         (modrm): Use "unit".
1058         (memory): Handle MMX/SSE properly.
1059         (scheduling descriptions): Kill uses of fop1.
1060         (sse, mmx, fp patterns): Set type and mode properly.
1062 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
1064         * pa.c (override_options): Default to PA8000 scheduling.
1065         * doc/invoke.texi (HP-PA options): Mention newly added 7300
1066         scheduling parameter.
1068         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
1069         handling of double precision multiplies.
1071         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
1072         fpdiv and fpsqrt instructions.
1073         (7200 & 7300 scheduling): Fix typo in handling of
1074         store-load and store-store penalties.
1076 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1078         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
1079         mips.  Add two missing commas.
1081 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
1083         * doc/contrib.texi (Contributors): Update Paolo Carlini's
1084         and Benjamin Kosnik's entries.
1086 2002-04-29  David S. Miller  <davem@redhat.com>
1088         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
1089         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
1090         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
1091         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1093 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1095         * combine.c (find_split_point): Use gen_int_mode.
1097 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
1099         Merging code from dfa-branch:
1101         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1103         * genautomata.c (output_reserv_sets): Fix typo.
1105         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
1107         * genautomata.c (output_reserv_sets): Remove
1108         next_cycle_output_flag.
1110         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
1112         * sched-rgn.c (init_ready_list): Make the DFA code handle
1113         USE/CLOBBER insns in the same way as the traditional
1114         scheduler.
1115         (new_ready): Similarly..
1117         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
1119         * haifa-sched.c (schedule_block): Change the DFA state only after
1120         issuing insn.
1122         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
1124         * pa.c (hppa_use_dfa_pipeline_interface): New function.
1125         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1126         (override_options): Add PA7300 scheduling support.
1127         (pa_adjust_cost): Update various comments.  Properly
1128         handle anti and output dependencies when using the
1129         DFA scheduler.
1130         (pa_issue_rate): Add PA7300 scheduling support.
1131         (pa_can_combine_p): Call extract_insn before calling
1132         constrain_operands (taken from mainline tree).
1133         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
1134         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
1135         descriptions using DFA descriptions.  Add PA7300
1136         scheduling support.
1138         2002-03-30  David S. Miller  <davem@redhat.com>
1140         Add UltraSPARC-III DFA scheduling support.
1141         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
1142         Update FP conditional move on register insn patterns to use it, as
1143         appropriate.
1144         (define_attr cpu): Add ultrasparc3.
1145         (define_attr us3load_type): New, update integer load patterns to
1146         set it, as appropriate.
1147         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
1148         (rest): Add UltraSPARC3 scheduling description.
1149         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
1150         (PROCESSOR_ULTRASPARC3): New.
1151         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
1152         ({ASM,CPP}_CPU_SPEC): Likewise.
1153         (REGISTER_MOVE_COST): Likewise.
1154         (RTX_COSTS): Likewise.
1155         * config/sparc/sparc.c (sparc_override_options,
1156         sparc_initialize_trampoline, sparc64_initialize_trampoline,
1157         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1158         sparc_issue_rate): Likewise.
1159         * config/sparc/sol2.h: Likewise.
1160         * config/sparc/sol2-sld-64.h: Likewise.
1161         * config/sparc/linux64.h: Likewise.
1163         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
1165         * doc/md.texi: Add comments about usage the latency time for the
1166         different dependencies and about case when two or more conditions
1167         in different define_insn_reservations returns TRUE for an insn.
1169         * doc/md.texi: Add reference for automaton based pipeline
1170         description.
1172         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
1174         * doc/passes.texi: Add missed information about genattrtab.
1176         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
1178         * genautomata.c (output_automata_list_transition_code): Check
1179         automata_list on NULL.
1181         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
1183         * genautomata.c (output_insn_code_cases,
1184         output_automata_list_min_issue_delay_code,
1185         output_automata_list_transition_code,
1186         output_automata_list_state_alts_code): Comment the functions.
1188         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
1190         * genautomata.c (automata_list_el_t): New typedef.
1191         (get_free_automata_list_el,free_automata_list_el,
1192         free_automata_list, automata_list_hash, automata_list_eq_p,
1193         initiate_automata_lists, automata_list_start, automata_list_add,
1194         automata_list_finish, finish_automata_lists,
1195         output_insn_code_cases, output_automata_list_min_issue_delay_code,
1196         output_automata_list_transition_code,
1197         output_automata_list_state_alts_code, add_automaton_state,
1198         form_important_insn_automata_lists): New functions and prototypes.
1199         (insn_reserv_decl): Add members important_automata_list and
1200         processed_p.
1201         (ainsn): Add members important_p.
1202         (automata_list_el): New structure.
1203         (first_free_automata_list_el, current_automata_list,
1204         automata_list_table): New global variables.
1205         (create_ainsns): Initiate member important_p.
1206         (output_internal_min_issue_delay_func): Generate the switch and
1207         call output_insn_code_cases.
1208         (output_internal_trans_func, output_internal_state_alts_func):
1209         Ditto.
1210         (generate): Call initiate_automata_lists.
1211         (automaton_states): New global variable.
1212         (expand_automata): Call form_important_insn_automata_lists.
1213         (write_automata): Call finish_automata_lists.
1215         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
1217         * genautomata.c (add_excls, add_presence_absence): Check that
1218         cpu units in the sets belong the same automaton.
1220         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
1221         about that cpu units in the sets belong the same automaton.
1223         * doc/md.texi: Ditto.
1225         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
1226                     Nitin Gupta  <niting@noida.hcltech.com>
1228         * config/sh/sh.c (sh_use_dfa_interface): New function.
1230         (sh_issue_rate): New Function.
1231         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
1232         TARGET_SCHED_ISSUE_RATE: define.
1234         * config/sh/sh.md: Add DFA based pipeline description for SH4.
1236         (define_attr insn_class): New attribute used for DFA
1237          scheduling.
1238         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
1239         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
1240          cmpeqdi_t): Likewise.
1242         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
1243          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
1244          ex_group.
1245         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
1247         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
1249         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
1250         break.
1252         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
1254         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
1255         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
1256         necessary.
1257         (output_dfa_start_func): Initiate new variable insn_codes_length,
1258         (write_automata): Output definition of the new variable.
1260         2001-10-02  David S. Miller  <davem@redhat.com>
1262         * haifa-sched.c (advance_one_cycle): New function.
1263         (schedule_block): Use it.
1264         (queue_to_ready): Use it, and also make sure to advance the DFA
1265         state on all stall cycles, not just those where insn_queue links
1266         are found.
1268         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
1270         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
1271         non-zero if the highest-priority instruction could be scheduled.
1272         (choose_ready): Remove last argument from max_issue call.
1274         2001-09-28  David S. Miller  <davem@redhat.com>
1276         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
1277         ultrasparc and 3 for other multi-issue sparcs.
1279         2001-09-27  David S. Miller  <davem@redhat.com>
1281         * config/sparc/sparc.md (cycle_display): New pattern.
1282         * config/sparc/sparc.c (sparc_cycle_display): New.
1283         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
1285         2001-09-25  David S. Miller  <davem@redhat.com>
1287         Convert all of Sparc scheduling to DFA
1288         * config/sparc/sparc.md: Kill all define_function_unit
1289         directives and replace with DFA equivalent.
1290         * config/sparc/sparc.c (ultrasparc_adjust_cost,
1291         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
1292         ultra_fpmode_conflict_exists, ultra_find_type,
1293         ultra_build_types_avail, ultra_flush_pipeline,
1294         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
1295         ultrasparc_variable_issue, ultrasparc_sched_init,
1296         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
1297         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
1298         ultra_cur_hist, ultra_cycles_elapsed): Kill.
1299         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1300         ultrasparc_store_bypass_p): New.
1301         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
1302         Declare.
1304         2001-09-24  David S. Miller  <davem@redhat.com>
1306         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
1307         ready->vec[foo] not ready[foo].
1309         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
1311         * doc/md.texi: Correct examples for define_insn_reservations
1312         `mult' and `div'.
1314         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
1316         * genautomata.c (create_automata): Print message about creation of
1317         each automaton.
1318         (generate): Remove printing meease about creation of
1319         automata.
1321         2001-09-05  David S. Miller  <davem@redhat.com>
1323         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
1324         * config/sparc/linux64.h: Likewise.
1326         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
1328         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
1329         schedule_block, sched_init, sched_finish): Add missed calls of
1330         use_dfa_pipeline_interface.
1332         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
1333         Ditto.
1335         * sched-vis.c (get_visual_tbl_length): Ditto.
1337         2001-08-27  Richard Henderson  <rth@redhat.com>
1339         * genattr.c (main): Emit state_t even when not doing scheduling.
1341         2001-08-27  Richard Henderson  <rth@redhat.com>
1343         * genautomata.c (expand_automata): Always create a description.
1345         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
1347         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
1348         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
1349         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
1350         RTL constructions.
1352         * genattr.c (main): New variable num_insn_reservations.  Increase
1353         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
1354         pipeline hazard recognizer interface.
1356         * genattrtab.h: New file.
1358         * genattrtab.c: Include genattrtab.h.
1359         (attr_printf, check_attr_test, make_internal_attr,
1360         make_numeric_value): Move protypes into genattrtab.h.  Define them
1361         as external.
1362         (num_dfa_decls): New global variable.
1363         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
1364         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
1365         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
1366         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
1368         * genautomata.c: New file.
1370         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
1372         * sched-int.h: (curr_state): Add the external definition for
1373         automaton pipeline interface.
1374         (haifa_insn_data): Add comments for members blockage and units.
1376         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1377         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1378         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1379         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1380         TARGET_SCHED_DFA_POST_CYCLE_INSN,
1381         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1382         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1383         macros.
1384         (TARGET_SCHED): Use the new macros.
1386         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1387         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1388         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1389         dfa_bubble): New members in gcc_target.sched.
1391         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1392         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1393         (insn_queue): Redefine it as pointer to array.
1394         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1395         INSN_QUEUE_SIZE.
1396         (max_insn_queue_index_macro_value): New variable.
1397         (curr_state, dfa_state_size, ready_try): New varaibles for
1398         automaton interface.
1399         (ready_element, ready_remove, max_issue): New function prototypes
1400         for automaton interface.
1401         (choose_ready): New function prototype.
1402         (insn_unit, blockage_range): Add comments.
1403         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
1404         FUNCTION_UNITS_SIZE == 0.
1405         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
1406         actual_hazard, potential_hazard): Add comments.
1407         (insn_cost): Use cost -1 as undefined value.  Remove
1408         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
1409         pipeline interface.
1410         (ready_element, ready_remove): New functions for automaton
1411         interface.
1412         (schedule_insn): Add new code for automaton pipeline interface.
1413         (queue_to_ready): Add new code for automaton pipeline interface.
1414         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
1415         (debug_ready_list): Print newline when the queue is empty.
1416         (max_issue): New function for automaton pipeline interface.
1417         (choose_ready): New function.
1418         (schedule_block): Add new code for automaton pipeline interface.
1419         Print ready list before scheduling each insn.
1420         (sched_init): Add new code for automaton pipeline interface.
1421         Initiate insn cost by -1.
1422         (sched_finish): Free the current automaton state and finalize
1423         automaton pipeline interface.
1425         * sched-rgn.c: Include target.h.
1426         (init_ready_list, new_ready, debug_dependencies): Add new code for
1427         automaton pipeline interface.
1429         * sched-vis.c: Include target.h.
1430         (get_visual_tbl_length): Add code for automaton interface.
1431         (target_units, print_block_visualization):  Add comments.
1433         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
1434         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
1435         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
1436         (getruntime.o, genautomata.o): New entries.
1437         (genattrtab.o): Add new dependency file genattrtab.h.
1438         (genattrtab): Add new dependencies.  Link it with `libm.a'.
1439         (getruntime.o, hashtab.o): New entries for canadian cross.
1441         * doc/md.texi: Description of automaton based model.
1443         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
1444         Add comments.
1445         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1446         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1447         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1448         TARGET_SCHED_DFA_POST_CYCLE_INSN,
1449         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1450         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1451         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
1452         hook descriptions.
1453         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1454         MAX_DFA_ISSUE_RATE): New macro descriptions.
1456         * doc/contrib.texi: Add dfa based scheduler contribution.
1458         * doc/gcc.texi: Add more information about genattrtab.
1460 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1462         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
1463         adjust_address_nv call.
1465 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
1467         * doc/install.texi (Testing): Provide additional information, and
1468         a stronger encouragement, for running the testsuites.
1470 2002-04-29  DJ Delorie  <dj@redhat.com>
1472         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
1473         given in upper case.
1475 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1477         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
1478         Solaris 2 <widec.h> if missing.
1479         * fixinc/fixincl.x: Regenerate.
1480         * fixinc/tests/base/widec.h: New file.
1482 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
1484         * toplev.c (f_options): Add "profile" switch so that
1485         -fno-profile can be used to disable -p.
1487 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
1489         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
1490         UV2DImode.
1491         * tree.c (build_common_tree_nodes_2): Likewise.
1492         * tree.h (enum tree_index): Likewise.
1493         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
1495         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
1496         entries.
1497         (init_mmx_sse_builtins): Initialize SSE2 builtins.
1498         (ix86_expand_builtin): Add support for SSE2 builtins.
1499         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
1500         (VALID_SSE_REG_MODE): Use it.
1501         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
1502         (enum ix86_builtins): Add SSE2 builtins.
1503         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
1504         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
1505         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
1506         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
1507         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
1508         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
1509         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
1510         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
1511         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
1512         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
1513         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
1514         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
1515         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
1516         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
1517         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
1518         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
1519         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
1520         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
1521         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
1522         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
1523         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
1524         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
1525         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
1526         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
1527         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
1528         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
1529         lfence_insn): New patterns.
1530         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
1531         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
1533 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
1535         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
1537 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1539         * doc/contrib.texi (Contributors): Add Paolo Carlini and
1540         Janis Johnson.
1541         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
1542         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
1543         and CPU instead of cpu.
1545 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1547         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
1548         variables.
1549         (lang_independent_options): Add -fif-conversion, -fif-conversion2
1550         (rest_of_compilation): Do if conversion only when asked for.
1551         (parse_options_and_default_flags): Set new variables to 1 for -O1
1552         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
1554 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
1556         * i386.c (dbx64_register_map): Fix typo.
1558 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
1560         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
1561         real_one_half, real_bb_freq_max): New static variables.
1562         (debug_profile_bbauxs): Kill.
1563         (process_note_predictions): Kill unused variable.
1564         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
1565         volatile double.
1566         (propagate_freq): Use REAL_ARITHMETICS.
1567         (estimate_bb_frequencies): Likevise; init new static variables.
1568         * Makefile.in (predict.o): Add dependency on real.h
1570 2002-04-28  David S. Miller  <davem@redhat.com>
1572         PR target/6500
1573         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
1574         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
1575         several {reads,writes} instead.
1576         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
1577         Define.
1579 2002-04-27  David S. Miller  <davem@redhat.com>
1581         PR target/6494
1582         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
1583         of the stack bias.
1585         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
1586         including signal.h and sys/ucontext.h, not needed.
1588 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
1590         * varasm.c (output_constant_def): Correct test for not calling
1591         ENCODE_SECTION_INFO for INTEGER_CST.
1593 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1595         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
1596         keep most cases as function eval_token.
1597         (eval_token): New function.
1598         (_cpp_parse_expr): Read token here for improved diagnostics.
1599         Don't use op_as_text.  Detect bad ':' here.
1600         (reduce): Don't detect bad ':' here.
1601         (op_as_text): Remove.
1602         * cpphash.h (_cpp_test_assertion): Change prototype.
1603         * cpplib.c (_cpp_test_assertion): Change prototype.
1605 2002-04-28  Richard Henderson  <rth@redhat.com>
1607         PR c/5154
1608         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1609         (ggc_mark_rtx_children): New.
1611 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1613         PR target/6496
1614         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
1615         after call peepholes for UltraSPARC.
1616         (call + jump 64-bit peepholes): Remove.
1618 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1620         PR c/6497
1621         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1622         result as temporary value.
1624 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1626         PR c++/6396
1627         * toplev.c (rest_of_compilation): Only run regrename and copy
1628         propagation if optimizing.
1630 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1632         PR optimization/6475
1633         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1634         register of REGNO_DECL (i).
1635         * Makefile.in (reload1.o): Add $(TREE_H).
1637 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1639         * cppexp.c (lex): Update to use state.skip_eval.
1640         (struct op): Remove prio and flags members.
1641         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1642         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1643         (LEFT_ASSOC): New macro.
1644         (optab): New table of operator priorities and flags.
1645         (SHIFT): Update.
1646         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
1647         malloc-ed parser stack.
1648         (reduce): New; reduce the operator stack.
1649         (_cpp_expand_op_stack): Expand the operator stack as necessary.
1650         * cpphash.h (struct op): Predeclare.
1651         (struct cpp_reader): New members op_stack, op_limit.
1652         (struct lexer_state): New member skip_eval.
1653         (_cpp_parse_expr): Update.
1654         (_cpp_expand_op_stack): New.
1655         * cpplib.c (do_if): Update.
1656         * cppinit.c (cpp_create_reader): Create op stack.
1657         (cpp_destroy): And destroy it.
1658         * cpplib.h (CPP_LAST_CPP_OP): Correct.
1659         (TTYPE_TABLE): Correct.
1661 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1663         PR c/6343
1664         * c-decl.c (duplicate_decls): Call merge_weak.
1665         * c-pragma.c (apply_pragma_weak): Warn about misuse.
1666         * output.h (merge_weak): Prototype merge_weak.
1667         * varasm.c (merge_weak): New function.
1668         (declare_weak): Make sure we don't give an error on VAR_DECLs.
1669         Mark RTL with SYMBOL_REF_WEAK.
1671 2002-04-27  Kurt Garloff <garloff@suse.de>
1673         * tree-inline.c (inlinable_function_p): Improve heuristics
1674         by using a smoother function to cut down allowable inlinable size.
1675         * param.def: Add parameters max-inline-insns-single,
1676         max-inline-slope, min-inline-insns that determine the exact
1677         shape of the above function.
1678         * param.h: Likewise.
1680 2002-04-26  Richard Henderson  <rth@redhat.com>
1682         * c-parse.in (malloced_yyss, malloced_yyvs): New.
1683         (yyoverflow): Re-add.  Set them.
1684         (free_parser_stacks): New.
1685         * c-common.h: Declare it.
1686         * c-lex.c (c_common_parse_file): Call it.
1688 2002-04-26  Richard Henderson  <rth@redhat.com>
1690         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1691         for fallthru search.
1693 2002-04-26  Eric Christopher  <echristo@redhat.com>
1695         PR optimization/3700
1696         * config/mips/mips.c (mips_issue_rate): Define.  New function.
1697         (TARGET_SCHED_ISSUE_RATE): Use.
1699 2002-04-25  David S. Miller  <davem@redhat.com>
1701         PR target/6422
1702         * reorg.c (optimize_skip): Do not allow exception causing
1703         instructions to be considered for delay slots.
1704         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1705         (relax_delay_slots): Do not try to consider exception causing
1706         instructions as redundant.
1708 2002-04-26  Richard Henderson  <rth@redhat.com>
1710         PR c/5225
1711         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1713 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
1715         PR bootstrap/6445
1716         * config/i386/i386.md (untyped_call): Return the value in a float
1717         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1718         TARGET_80387.
1720 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
1722         * tree.c (tree_int_cst_lt): Compare constants whose types differ
1723         in unsigned-ness correctly.
1725 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1727         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1728         portable runtime model.
1730 2002-04-26  Richard Henderson  <rth@redhat.com>
1732         * c-parse.in (yyoverflow): Revert.
1734 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
1735             Richard Henderson  <rth@redhat.com>
1737         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
1738         result as temporary value.
1740 2002-04-26  Richard Henderson  <rth@redhat.com>
1742         PR c/3581
1743         * c-common.c (fix_string_type): Split out of ...
1744         (combine_strings): ... here.  Take a varray, not a tree list.
1745         (c_expand_builtin_printf): Use fix_string_type.
1746         * c-common.h: Update decls.
1747         * c-parse.in (string): Remove.  Update all uses to use STRING
1748         instead, and not call combine_strings.
1749         (yylexstring): New.
1750         (_yylex): Use it.
1751         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
1752         (build_asm_stmt): Likewise.
1753         * objc/objc-act.c (my_build_string): Use fix_string_type.
1754         (build_objc_string_object): Build varray for combine_strings.
1756 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
1758         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1759         x86-64.
1761 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1763         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1764         (HAVE_NO_R_OPERAND): Remove.
1765         (HAVE_VALUE): Remove.
1766         (op_to_prio): Update.
1767         (UNARY): Don't alter flags.
1768         (_cpp_parse_expr): want_value used to indicate whether
1769         a number or unary operator is expected next.  Distinguish
1770         unary and binary +/-.
1771         (op_as_text): Update for unary operators.
1773 2002-04-25  Richard Henderson  <rth@redhat.com>
1775         PR c/2161
1776         * c-parse.in (yyoverflow): New.
1778 2002-04-25  Richard Henderson  <rth@redhat.com>
1780         PR c/2098
1781         * c-common.c (shorten_compare): Simplfy conditions leading to
1782         the generation of a warning.
1784 2002-04-25  Richard Henderson  <rth@redhat.com>
1786         PR c/2035
1787         * expmed.c (extract_bit_field): Fall through to generic code rather
1788         than aborting on subreg special case.
1790 2002-04-25  David S. Miller  <davem@redhat.com>
1792         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1793         for DECL being NULL.
1795 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
1797         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1799 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
1801         * c-decl.c (grokdeclarator): Remove outdated ??? note
1802         on invalid declaration of flexible array members.
1804 2002-04-25  Richard Henderson  <rth@redhat.com>
1806         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1808 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
1810         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1811         needed by the compiler, even if they are used as global regs.
1813 2002-04-25  Matt Hiller  <hiller@redhat.com>
1815         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1816         functions.
1817         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1818         of the corresponding functions.
1819         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1820         New prototypes.
1822 2002-04-25  Matt Hiller  <hiller@redhat.com>
1824         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1826         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1827         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1828         registers, adjust comment accordingly.
1829         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1830         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1831         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1832         for coprocessor registers.
1833         (ADDITIONAL_REGISTER_NAMES): Include
1834         ALL_COP_ADDITIONAL_REGISTER_NAMES.
1836         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1837         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1838         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1839         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1840         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1842         (mips_char_to_class): Adjust comment to include coprocessor
1843         constraint letters.
1845         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1846         New functions.
1847         (mips_reg_names, mips_regno_to_class): Include coprocessor
1848         information.
1849         (mips_sw_reg_names): Ditto, make non-static.
1850         (mips_move_1word): Handle moves to and from coprocessor registers.
1851         (mips_move_2words): Handle moves to and from coprocessor
1852         registers.
1853         (mips_class_max_nregs, mips_register_move_cost): Handle
1854         coprocessor register classes.
1855         (override_options): Initialize mips_char_to_class and
1856         mips_hard_regno_mode_ok properly for coprocessor registers.
1858         * config/mips/mips.md (movdi_internal, movdi_internal2,
1859         movsi_internal1, movsi_internal2): Add constraint-sets for
1860         coprocessor registers.
1861         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1862         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1863         isn't mips.
1864         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1865         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1866         isn't mips.
1867         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1868         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1869         isn't mips.
1870         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1871         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1872         isn't mips.
1874         * doc/tm.texi: Document feature.
1876 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1878         * integrate.c (function_attribute_inlinable_p): Simplify.
1879         Check the table pointer is not NULL.
1881 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
1883         * doc/c-tree.texi: Fix typo in introduction.
1885 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1887         * c-common.h (c_common_parse_file): Update.
1888         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1889         * c-lex.c (YYDEBUG): Get from c-lex.h.
1890         (c_common_parse_file): Update.
1891         * c-lex.h (YYDEBUG, yydebug): New.
1892         * c-parse.in (YYDEBUG): Get from c-lex.h.
1893         (c_set_yydebug): Remove.
1894         * c-tree.h (c_set_yydebug): Remove.
1895         * langhooks-def.h (lhd_do_nothing_i): New.
1896         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1897         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1898         * langhooks.c  (lhd_do_nothing_i): New.
1899         (lhd_set_yydebug): Remove.
1900         * langhooks.h (struct lang_hooks): Update.
1901         * toplev.c (set_yydebug): New.
1902         (compile_file): Update call to parse_file hook.
1903         (decode_d_option): Update.
1904 objc:
1905         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1907 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
1909         * loop.c (load_mems): Don't change the interface of called functions.
1911         * calls.c (expand_call): Take current_function_pretend_args_size
1912         into account when setting argblock for sibcalls.
1914 2002-04-24  Matt Hiller  <hiller@redhat.com>
1916         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1917         * c-lex.c: Ditto.
1919         * cpplex.c (skip_line_comment): Process comment one multibyte
1920         character at a time rather than one char at a time, if
1921         appropriate.
1922         (parse_string): Process string one multibyte character at a time
1923         rather than one char at a time, if appropriate.
1924         * c-lex.c (lex_string): Lex and copy multibyte strings
1925         appropriately.
1926         * cpplib.h (cppchar_t): Change to unsigned.
1928 2002-04-24  Richard Henderson  <rth@redhat.com>
1930         PR c/3467
1931         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1932         for c99.
1934 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1936         * sh.c (sh_va_arg): If argument was passed by reference,
1937         dereference the pointer.
1939         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1941         * sh.md (divsi3_i4_media): Use match_operand for input values
1942         rather than hard registers.
1943         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1944         unnecessarily through hard registers.  Keep copies of pseudo
1945         registers outside of the libcall sequence.
1947         * sh.md (casesi_shift_media): Add modes.
1949         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1950         values in memory.
1952 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1954         * attribs.c (c_common_attribute_table): Move table and handlers
1955         to c-common.c.
1956         (format_attribute_table, lang_attribute_table,
1957         lang_attribute_common): Remove.
1958         (init_attributes): Replace NULL pointers with pointers to the
1959         empty table.
1960         (handle_packed_attribute, handle_nocommon_attribute,
1961         handle_common_attribute, handle_noreturn_attribute,
1962         handle_noinline_attribute, handle_always_inline_attribute,
1963         handle_used_attribute, handle_unused_attribute,
1964         handle_const_attribute, handle_transparent_union_attribute,
1965         handle_constructor_attribute, handle_destructor_attribute,
1966         handle_mode_attribute, handle_section_attribute,
1967         handle_aligned_attribute, handle_weak_attribute,
1968         handle_alias_attribute, handle_visibility_attribute,
1969         handle_no_instrument_function_attribute, handle_malloc_attribute,
1970         handle_no_limit_stack_attribute, handle_pure_attribute,
1971         handle_deprecated_attribute, handle_vector_size_attribute,
1972         vector_size_helper): Move to c-common.c.
1973         * c-common.c (c_common_attribute_table,
1974         handle_packed_attribute, handle_nocommon_attribute,
1975         handle_common_attribute, handle_noreturn_attribute,
1976         handle_noinline_attribute, handle_always_inline_attribute,
1977         handle_used_attribute, handle_unused_attribute,
1978         handle_const_attribute, handle_transparent_union_attribute,
1979         handle_constructor_attribute, handle_destructor_attribute,
1980         handle_mode_attribute, handle_section_attribute,
1981         handle_aligned_attribute, handle_weak_attribute,
1982         handle_alias_attribute, handle_visibility_attribute,
1983         handle_no_instrument_function_attribute, handle_malloc_attribute,
1984         handle_no_limit_stack_attribute, handle_pure_attribute,
1985         handle_deprecated_attribute, handle_vector_size_attribute,
1986         vector_size_helper): Move from attribs.c.
1987         * c-common.h (c_common_attribute_table,
1988         c_common_format_attribute_table): New.
1989         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1990         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1991         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1992         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1993         (LANG_HOOKS_INITIALIZER): Update.
1994         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1995         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1996         * target.h: Update comment.
1997         * tree.c (default_target_attribute_table): Remove.
1998         * tree.h (default_target_attribute_table, format_attribute_table,
1999         lang_attribute_table, lang_attribute_common): Remove.
2000 objc:
2001         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2002         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2004 2002-04-24  Jason Merrill  <jason@redhat.com>
2006         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2007         * dwarf2out.c (dwarf_attr_name): Support it.
2008         (gen_array_type_die): Emit it.
2009         (lookup_type_die): No special handling for VECTOR_TYPE.
2010         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2012 2002-04-24  Richard Henderson  <rth@redhat.com>
2014         * config/mips/mips.md (movdi_usd): Renumber.
2016 2002-04-24  David S. Miller  <davem@redhat.com>
2018         PR target/6420
2019         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2020         32-bit Sparc and current_function_returns_struct is true.
2022 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
2024         * loop.c (canonicalize_condition): Use gen_int_mode.
2026 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
2028         * config/rs6000/altivec.h: Cleanup file.  Add non individual
2029         variants.
2030         (vec_vaddubm): New.
2031         (vec_vadduhm): New.
2032         (vec_vadduwm): New.
2033         (vec_vaddfp): New.
2034         (vec_vaddcuw): New.
2035         (vec_vaddubs): New.
2036         (vec_vaddsbs): New.
2037         (vec_vadduhs): New.
2038         (vec_vadduws): New.
2039         (vec_vaddsws): New.
2040         (vec_vand): New.
2041         (vec_vandc): New.
2042         (vec_vavgub): New.
2043         (vec_vavgsb): New.
2044         (vec_vavguh): New.
2045         (vec_vavgsh): New.
2046         (vec_vavguw): New.
2047         (vec_vavgsw): New.
2048         (vec_vrfip): New.
2049         (vec_vcmpbfp): New.
2050         (vec_vcmpequb): New.
2051         (vec_vcmpequh): New.
2052         (vec_vcmpequw): New.
2053         (vec_vcmpeqfp): New.
2054         (vec_vcmpgefp): New.
2055         (vec_vcmpgtub): New.
2056         (vec_vcmpgtsb): New.
2057         (vec_vcmpgtuh): New.
2058         (vec_vcmpgtsh): New.
2059         (vec_vcmpgtuw): New.
2060         (vec_vcmpgtsw): New.
2061         (vec_vcmpgtfp): New.
2062         (vec_vcmpgefp): New.
2063         (vec_vcfux): New.
2064         (vec_vcfsx): New.
2065         (vec_vctsxs): New.
2066         (vec_vctuxs): New.
2067         (vec_vexptefp): New.
2068         (vec_vrfim): New.
2069         (vec_lvx): New.
2070         (vec_lvebx): New.
2071         (vec_lvehx): New.
2072         (vec_lde): Add vector float variant.
2073         (vec_lvewx): New.
2074         (vec_lvxl): New.
2075         (vec_vlogefp): New.
2076         (vec_vmaddfp): New.
2077         (vec_vmhaddshs): New.
2078         (vec_vmaxub): New.
2079         (vec_vmaxsb): New.
2080         (vec_vmaxuh): New.
2081         (vec_vmaxsh): New.
2082         (vec_vmaxuw): New.
2083         (vec_vmaxsw): New.
2084         (vec_vmaxsw): New.
2085         (vec_vmaxfp): New.
2086         (vec_vmrghb): New.
2087         (vec_vmrghh): New.
2088         (vec_vmrghw): New.
2089         (vec_vmrglb): New.
2090         (vec_vmrglh): New.
2091         (vec_vmrglw): New.
2092         (vec_vminub): New.
2093         (vec_vminsb): New.
2094         (vec_vminuh): New.
2095         (vec_vminsh): New.
2096         (vec_vminuw): New.
2097         (vec_vminsw): New.
2098         (vec_vminfp): New.
2099         (vec_vmladduhm): New.
2100         (vec_vmhraddshs): New.
2101         (vec_msumubm): New.
2102         (vec_vmsummbm): New.
2103         (vec_vmsumuhm): New.
2104         (vec_vmsumshm): New.
2105         (vec_vmsumuhs): New.
2106         (vec_vmsumshs): New.
2107         (vec_vmuleub): New.
2108         (vec_vmulesb): New.
2109         (vec_vmuleuh): New.
2110         (vec_vmulesh): New.
2111         (vec_vmuloub): New.
2112         (vec_mulosb): New.
2113         (vec_vmulouh): New.
2114         (vec_vmulosh): New.
2115         (vec_vnmsubfp): New.
2116         (vec_vnor): New.
2117         (vec_vor): New.
2118         (vec_vpkuhum): New.
2119         (vec_vpkuwum): New.
2120         (vec_vpkpx): New.
2121         (vec_vpkuhus): New.
2122         (vec_vpkshss): New.
2123         (vec_vpkuwus): New.
2124         (vec_vpkswss): New.
2125         (vec_vpkshus): New.
2126         (vec_vpkswus): New.
2127         (vec_vperm): New.
2128         (vec_vrefp): New.
2129         (vec_vrlb): New.
2130         (vec_vrlh): New.
2131         (vec_vrlw): New.
2132         (vec_vrfin): New.
2133         (vec_vrsqrtefp): New.
2134         (vec_vsel): New.
2135         (vec_vslb): New.
2136         (vec_vslh): New.
2137         (vec_vslw): New.
2138         (vec_vsldoi): New.
2139         (vec_vsl): New.
2140         (vec_vslo): New.
2141         (vec_vspltb): New.
2142         (vec_vsplth): New.
2143         (vec_vspltw): New.
2144         (vec_vspltisb): New.
2145         (vec_vspltish): New.
2146         (vec_vspltisw): New.
2147         (vec_vsrb): New.
2148         (vec_vsrh): New.
2149         (vec_vsrw): New.
2150         (vec_vsrab): New.
2151         (vec_vsrah): New.
2152         (vec_vsraw): New.
2153         (vec_vsr): New.
2154         (vec_vsro): New.
2155         (vec_stvx): New.
2156         (vec_stvebx): New.
2157         (vec_stvehx): New.
2158         (vec_stvewx): New.
2159         (vec_stvxl): New.
2160         (vec_vsububm): New.
2161         (vec_vsubuhm): New.
2162         (vec_vsubuwm): New.
2163         (vec_vsubfp): New.
2164         (vec_vsubcuw): New.
2165         (vec_vsububs): New.
2166         (vec_vsubsbs): New.
2167         (vec_vsubuhs): New.
2168         (vec_vsubshs): New.
2169         (vec_vsubuws): New.
2170         (vec_vsubsws): New.
2171         (vec_vsum4ubs): New.
2172         (vec_vsum4sbs): New.
2173         (vec_vsum4shs): New.
2174         (vec_vsum2sws): New.
2175         (vec_vsumsws): New.
2176         (vec_vrfiz): New.
2177         (vec_vupkhsb): New.
2178         (vec_vupkhpx): New.
2179         (vec_vupkhsh): New.
2180         (vec_vupklsb): New.
2181         (vec_vupklpx): New.
2182         (vec_vupklsh): New.
2183         (vec_vxor): New.
2185 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
2187         PR c/5430
2188         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
2189         added literals from substracted literals.
2190         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
2191         (fold) [associate]: Preserve MINUS_EXPR if needed.
2193 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
2195         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2196         are obsoleted.
2198 2002-04-23  Tom Tromey  <tromey@redhat.com>
2200         * gcc.c: Added --resource.  For PR java/6314.
2202 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
2204         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2205         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
2206         these libraries.
2208 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
2210         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2212 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
2214         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
2215         workaround.
2216         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
2217         (ix86_expand_clrstr): Fix typo.
2218         * loop.c (gen_load_of_final_value): New.
2219         (loop_givs_rescan, strength_reduce, check_dbra_loop):
2220         Use it.
2222 2002-04-23  Roger Sayle  <roger@eyesopen.com>
2224         * builtins.c (builtin_memset_gen_str): New function.
2225         (expand_builtin_memset): Optimize the case of constant length, but
2226         unknown value.
2228 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
2230         * config/rs6000/altivec.h (vec_step): Remove extraneous
2231         parentheses.
2232         (vec_ctu): Cast return.
2234 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
2236         PR target/6413
2237         * function.h: (struct function): Add profile_label_no field.
2238         (current_function_profile_label_no): Define.
2239         * function.c: (profile_label_no): New static var.
2240         (expand_function_start): Increment it, and copy to
2241         current_function_profile_label_no.
2242         * output.h (profile_label_no): Delete.
2243         * final.c (profile_label_no): Delete.
2244         (profile_function): Use current_function_profile_label_no.
2245         (final_end_function): Don't increment profile_label_no here.
2246         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
2247         profile_label_no with current_function_profile_label_no.
2248         * config/pa/pa.c (current_function_number): Delete.
2249         (pa_output_function_prologue): Don't output profile label here.
2250         (hppa_profile_hook): Use label_no param rather than
2251         current_function_number.
2252         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
2253         * config/pa/pa.h: .. here.
2254         (FUNCTION_PROFILER): Output profile label here.
2256 2002-04-22  Eric Christopher  <echristo@redhat.com>
2258         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
2259         patch of 2002-04-09 due to binutils issues.
2260         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
2262 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
2264         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
2265         constraint to 'o' for m=r and r=m alternatives.
2266         ("*movv8hi_internal1"): Same.
2267         ("*movv16qi_internal1"): Same.
2268         ("*movv4sf_internal1"): Same.
2270 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
2272         * rtl.h (RTX_FLAG): New macro.
2273         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
2274         * final.c (alter_subreg): Use macro to access rtx flag.
2275         * integrate.c (copy_rtx_and_substitute): Use new access macro.
2276         * print-rtl.c (print_rtx): Use new access macro.
2278         * cse.c (insert): Check rtx code before accessing flag.
2280         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
2281         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
2282         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
2283         convert_const_symbol_ref, make_canonical, make_alternative_compare,
2284         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
2285         simplify_test_exp, optimize_attrs, simplify_by_exploding,
2286         find_and_mark_used_attributes, unmark_used_attributes,
2287         add_values_to_cover, simplify_with_current_value,
2288         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
2289         copy_rtx_unchanging, main): Use new access macros.
2291 2002-04-22  Tom Rix  <trix@redhat.com>
2293         * expmed.c (init_expmed): Generate shifted constant once.
2295 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
2297         * c-lex.c (lex_charconst): Call convert to get constant in
2298         proper type; don't just smash the type field.
2299         Fixes PR c/6300.
2301         * config.gcc: Add list of obsolete configurations.  Disallow
2302         building these without --enable-obsolete.
2303         * doc/install.texi: Document --enable-obsolete and obsoletion
2304         policy.  Mention obsoletion of individual targets in
2305         appropriate places.
2307 2002-04-22  Richard Henderson  <rth@redhat.com>
2309         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
2311 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
2313         PR f/6138.
2314         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
2315         (walk_fixup_memory_subreg): Likewise.
2316         (fixup_var_refs_insn): Adjust accordingly.
2317         (fixup_var_refs_1): Likewise.
2319 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
2321         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
2322         LIBPATH_ARCH64_SPEC): Define.
2323         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
2324         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
2325         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
2326         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
2328 2002-04-22      Joel Sherrill <joel@OARcorp.com>
2330         * gthr-rtems.h: Correct prototypes to remove warnings.
2332 2002-04-22  Richard Henderson  <rth@redhat.com>
2334         PR c/6344
2335         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
2337         * gcse.c (free_insn_expr_list_list): New.
2338         (clear_modify_mem_tables): Use it.  Fix bit set usage.
2339         (canon_list_insert): Use EXPR_LISTs for expressions.
2340         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
2342 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2344         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
2345         file change and include code to _cpp_pop_buffer.
2346         * cpphash.h (struct pending_option): Predeclare.
2347         (struct cpp_reader): New member next_include_file.
2348         (_cpp_pop_file_buffer): Update.
2349         (_cpp_push_next_buffer): Update, rename.
2350         * cppinit.c (cpp_destroy): Free include chain and pending here.
2351         (cpp_finish_options): Simplify.
2352         (_cpp_push_next_buffer): Rename and clean up.
2353         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
2354         Clarify.
2355         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
2357 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
2359         * config/rs6000/altivec.h (vec_xor): Add variant for both args
2360         being vector signed int.
2361         (vec_andc): Same.
2362         (vec_xor): Add variant for both args being vector signed char.
2363         Remove redundant variant.
2364         (vec_andc): Same.
2366 2002-04-21  David S. Miller  <davem@redhat.com>
2368         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2369         compare mode in output RTL.
2371 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
2373         * config/rs6000/rs6000.c (rs6000_override_options): Correct
2374         style and formatting of previous patch.
2376 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
2378         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2379         flag_pic for ABI_AIX.
2381 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2383         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
2384         * cppfiles.c (read_include_file): Similarly.
2385         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
2386         uxstrdup ustrchr, ufputs): Similarly.
2387         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
2388         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
2389         cpp_ideq, parse_identifier, parse_number): Similarly.
2390         * cpplib.c (struct directive, dequote_string, D, run_directive,
2391         cpp_push_buffer): Similarly.
2392         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
2393         _cpp_create_definition, check_trad_stringification,
2394         cpp_macro_definition): Similarly.
2396 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2398         * cppmacro.c (funlike_invocation_p): Don't step back
2399         over CPP_EOF.
2401 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
2403         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2404         labelno.
2406 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
2408         * doc/invoke.texi: Remove Chill references.
2409         * doc/gcc.texi: Update last modified date.
2411 2002-04-20  Kazu Hirata  <kazu@hxi.com>
2413         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
2414         push and pop.  Replace add.l with add.w.
2416 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2418         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
2419         multiply instructions for H8/300H case.
2421 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2423         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
2424         Bum three instructions from each routine.
2426 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2428         * Makefile.in: Update.
2429         * decl.c (push_c_function_context, pop_c_function_context,
2430         mark_c_function_context): Rename for consistency.
2431         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
2432         * c-tree.h (push_c_function_context, pop_c_function_context,
2433         mark_c_function_context): Rename for consistency.
2434         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2435         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2436         * function.c (init_lang_status, save_lang_status,
2437         restore_lang_status, mark_lang_status, free_lang_status):
2438         Move to langhooks.h.
2439         (push_function_context_to, pop_function_context_from,
2440         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
2441         Update.
2442         * function.h (init_lang_status, save_lang_status,
2443         restore_lang_status, mark_lang_status, free_lang_status):
2444         Move to langhooks.h.
2445         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
2446         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2447         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
2448         LANG_HOOKS_FUNCTION_INITIALIZER): New.
2449         (LANG_HOOKS_INITIALIZER): Update.
2450         (lhd_do_nothing_f): New.
2451         * langhooks.h (struct lang_hooks_for_functions): New.
2452         (struct lang_hooks): New hooks.
2453         * langhooks.c (lhd_do_nothing_f): New.
2454 objc:
2455         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2456         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2458 2002-04-19  David S. Miller  <davem@redhat.com>
2460         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2461         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
2463 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
2465         PR optimization/3756
2466         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
2467         x = ((int) y < 0) ? cst1 : cst2.
2469 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
2471         PR c/6358
2472         * function.c: Reapply patch for c/6358.
2473         (expand_function_end): Copy decl_rtl's mode, not
2474         current_function_return_rtx mode.
2476 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
2478         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
2479         targets.
2481 2002-04-19  Tom Tromey  <tromey@redhat.com>
2483         * doc/install.texi (Specific): Update status of Solaris 2.8.
2484         For PR libgcj/6158.
2486 2002-04-19  Andreas Schwab  <schwab@suse.de>
2488         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
2489         (PUT_REAL): Restore old definition.
2491 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
2492             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2494         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
2495         binutils 2.11.2 and higher generate smaller binaries than Sun's
2496         native tools.
2498 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
2500         PR c++/6352
2501         * toplev.c (rest_of_compilation): Do not defer functions for which
2502         TREE_SYMBOL_REFERENCED has already been set.
2504 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
2506         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
2507         alternative.
2509 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2511         * builtins.c: Include langhooks.h.
2512         (lang_type_promotes_to): Remove.
2513         (expand_builtin_va_arg): Use new hook.
2514         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
2515         (simple_type_promotes_to): Move to c-typeck.c.
2516         * c-common.h (simple_type_promotes_to): Remove.
2517         * c-decl.c (duplicate_decls, grokdeclarator): Update.
2518         * c-format.c: Include langhooks.h.
2519         (check_format_types): Update.
2520         * c-tree.h (c_type_promotes_to): New.
2521         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
2522         (type_lists_compatible_p): Update.
2523         * langhooks-def.h (lhd_type_promotes_to): New.
2524         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
2525         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2526         * langhooks.c (lhd_type_promotes_to): New.
2527         * langhooks.h (struct lang_hooks_for_types): New hook.
2528         * tree.h (lang_type_promotes_to): Remove.
2529 objc:
2530         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
2532 2002-04-18  Richard Henderson  <rth@redhat.com>
2534         * function.c: Revert patch for c/6358.
2536 2002-04-18  Richard Henderson  <rth@redhat.com>
2538         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
2539         blocks.  Handle multiple references to the TRAP block.  Handle
2540         non-adjacent THEN and OTHER blocks.
2542 2002-04-18  Richard Henderson  <rth@redhat.com>
2544         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
2545         crash with no type for by-mode libcalls.
2547         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
2549 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
2551         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
2552         __xtensa_nonlocal_goto): Use a syscall instructions to flush
2553         the register windows.
2555 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
2557         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
2558         appropriate.  Document need for extended precision even when
2559         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
2560         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
2561         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
2562         instead of relying on later syntax error when REAL_WIDTH > 5.
2563         * real.c: Define NE based only on whether or not we have a
2564         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
2565         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
2566         define GET_REAL and PUT_REAL as simple memcpy operations; no
2567         need to byteswap or round.
2568         Use #error instead of #ifdef-ing out the entire file, for
2569         prompt error detection.
2571         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
2573 2002-04-18  David S. Miller  <davem@redhat.com>
2575         * config/sparc/sparc.h (BRANCH_COST): Define.
2577         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2578         does it.
2580 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
2582         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
2583         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
2584         propagate_block calls after relaxation loop using new variable
2585         stabilized_prop_flags.
2587 2002-04-18  Richard Henderson  <rth@redhat.com>
2589         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
2590         (ia64_va_arg): Expect variable sized types by reference.
2591         * config/ia64/ia64-protos.h: Update.
2592         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2593         ia64_function_arg_pass_by_reference.
2595 2002-04-18  Richard Henderson  <rth@redhat.com>
2597         * ifcvt.c: Include except.h.
2598         (block_has_only_trap): Break out from find_cond_trap.
2599         (find_cond_trap): Use it.  Always delete the trap block.
2600         (merge_if_block): Allow then block null.  Be less simplistic about
2601         what insns can end a block.
2602         * Makefile.in (ifcvt.o): Depend on except.h.
2604         * config/ia64/ia64.md (trap, conditional_trap): New.
2606 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2608         PR c/6358
2609         * function.c (assign_parms): Assign hard current_function_return_rtx
2610         register here...
2611         (expand_function_end): ...not here.
2613 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2615         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2616         * c-tree.h (c_incomplete_type_error): New.
2617         * c-typeck.c (require_complete_type, build_component_ref): Update.
2618         (incomplete_type_error): Rename.
2619         * langhooks-def.h (lhd_incomplete_type_error): New.
2620         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2621         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2622         * langhooks.c (lhd_incomplete_type_error): New.
2623         * langhooks.h (struct lang_hooks_for_types): New hook.
2624         * tree.c (size_in_bytes): Use new hook.
2625         * tree.h (incomplete_type_error): Remove.
2626 objc:
2627         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2629 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
2631         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2632         TARGET_FLOAT_FORMAT blocks.
2634 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2636         * doc/install.texi (Downloading the source): Do not mention Chill
2637         any longer, but mention Ada.
2638         (Configuration): Do not mention Chill any longer.
2640 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
2642         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2644 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
2646         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2647         in last patch.
2649 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2651         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2652         instead of unsigned_type.
2654 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2656         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2657         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2658         later.
2660 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
2662         * attribs.c (vector_type_node_list): New static variable.
2663         (handle_vector_size_attribute): Use it to avoid generating a
2664         new type node each time we are called.
2666         * combine.c (subst): Avoid trying to make a vector mode subreg of
2667         an integer constant.
2668         (gen_lowpart_for_combine): Likewise.
2670 2002-04-18  Roger Sayle  <roger@eyesopen.com>
2671             Jakub Jelinek  <jakub@redhat.com>
2673         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2674         for integer constant c (if x has unsigned type or sign bit is not
2675         set in c).  This folds the zero/sign extension into the bit-wise and
2676         operation.
2678 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2680         PR middle-end/6205
2681         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2682         otherwise xorps.
2684 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
2686         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2688 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
2690         * gcc.c (read_specs): Detect and fail if an attempt is made to
2691         rename a spec string to an already existing string.
2693 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2695         * config/s390/s390.c (legitimize_pic_address): Do not generate
2696         illegal address constant without CONST.
2698 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2700         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2701         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2703 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2705         PR optimization/6305
2706         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2707         to make sure previous reloads are taken into account.  Generate
2708         better code if one operand is an in-range immediate constant.
2710 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
2712         * doc/install.texi (Building): libgcj requires GNU make.
2714 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2716         PR bootstrap/6315
2717         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2718         even if hard quad and register is not floating.
2719         (movtf reg<-mem split): Disallow splitting if hard quad and
2720         register is floating.
2721         (movtf mem<-reg split): Likewise.
2722         * config/sparc/sparc.c (fp_register_operand): New predicate.
2723         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2725 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
2727         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2728         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2729         (unprotoize.o): Ditto.  Build from protoize.c.  Define
2730         UNPROTOIZE on command line.
2731         * protoize.c: Include cppdefault.h.  Delete include_defaults.
2732         (in_system_include_dir): Use cpp_include_defaults (defined in
2733         cppdefault.o).
2734         * unprotoize.c: Delete file.
2736 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
2738         * config/rs6000/altivec.h (vec_ld): Add array variants.
2739         (vec_lde): Same.
2740         (vec_ldl): Same.
2742 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
2743             Aldy Hernandez <aldyh@redhat.com>
2745         * config/rs6000/altivec.h: Define __ALTIVEC__.
2746         (bool): New.
2747         (__pixel): New.
2748         (pixel): New.
2749         (vec_cfux): New.
2750         (vec_vmaddfp): New.
2751         (vec_vsldoi): New.
2752         Add parentheses to all macro arguments.
2754 2002-04-16  Richard Henderson  <rth@redhat.com>
2756         PR c++/6320
2757         * except.c (remove_eh_handler): Insert inner regions at beginning
2758         of sibling chain.  Refactor expressions.
2760 2002-04-16  Richard Henderson  <rth@redhat.com>
2762         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2763         * config/sparc/sol2-gas-bi.h: New file.
2764         * config.gcc (sparc*-solaris): Add it as needed.
2765         * configure.in (AS_SPARC64_FLAG): Remove check.
2766         * config.in, configure: Regenerate.
2768         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2770 2002-04-16  Richard Henderson  <rth@redhat.com>
2772         * config/mips/mips.c (override_options): Don't override N32 for
2773         a 64-bit ISA.
2775         PR 6202
2776         * config/mips/mips.md (can_delay): Split out of existing define_delays.
2777         (HILO_delay): Set can_delay false.
2779 2002-04-16  Dale Johannesen <dalej@apple.com>
2781         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2782         instruction addresses.
2783         (rs6000_output_function_epilogue): Likewise.
2785 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
2787         * c-parse.in (poplevel, compstmt_start,
2788         compstmt_primary_start): Add ending ';', in accordance
2789         with POSIX.
2791 2002-04-16  Richard Henderson  <rth@redhat.com>
2793         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2794         Adjust tm_file order to get TARGET_DEFAULT set properly.
2795         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2796         * doc/install.texi (sparc-solaris): Update.
2798 2002-04-16  Dale Johannesen <dalej@apple.com>
2800         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2801         comparison operands do not match each other or if modes of
2802         conditions do not match result.
2804 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
2806         PR target/6305
2807         * config/s390/s390.md (mulsidi3): Set both subregs of the
2808         multiword register.
2810 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
2812         * config/rs6000/altivec.h (vec_addc): Type check.
2814 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2816         PR middle-end/6279
2817         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2819         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2821 2002-04-15  Richard Henderson  <rth@redhat.com>
2823         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2824         call_really_used_regs too.
2826 2002-04-15  Richard Henderson  <rth@redhat.com>
2828         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2830 2002-04-15  David S. Miller  <davem@redhat.com>
2832         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2833         as being CLOBBERed.
2835 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2837         PR c/6290
2838         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2839         CONST_VECTOR is { 0, ... 0 }.
2841 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
2843         * doc/install.texi (Installing GCC: Configuration): Clarify
2844         the only supported ways to configure gcc.
2846 2002-04-15  Roland McGrath  <roland@frob.com>
2848         * config.gcc (alpha*-*-gnu*): New target configuration.
2849         * config/alpha/gnu.h: New file for it.
2850         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2852 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
2854         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2855         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2856         * tree.h (expand_start_stmt_expr): Update prototype.
2857         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2858         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2859         on the STMT_EXPR created for the inline function.
2861 2002-04-15  Richard Henderson  <rth@redhat.com>
2863         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2864         config/i386/linux-aout.h, config/i386/linux-oldld.h,
2865         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2866         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2867         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2868         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2869         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2870         Define __gnu_linux__, not gnu_linux.
2871         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2873 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
2875         Remove Chill front end.
2876         * gcc.c (default_compilers): Remove Chill entries.
2877         * ch: Remove directory.
2878         * doc/frontends.texi: Remove information about Chill.
2879         * doc/sourcebuild.texi: Likewise.
2880         * doc/standards.texi: Likewise.
2882 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
2884         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2885         (LONGLONG_STANDALONE): Define.
2887 2002-04-15  David S. Miller  <davem@redhat.com>
2889         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2890         Call emit_library_call with LCT_NORMAL.
2891         (sparc_initialize_trampoline): Use LCT_foo instead of
2892         magic constant in emit_library_call invocations.
2893         (sparc64_initialize_trampoline): Likewise.
2894         (sparc_profile_hook): Likewise.
2895         * config/sparc/sparc.md: Likewise.
2897         * config/sparc/sparc.c (sparc_extra_constraint_check):
2898         Fix type of argument 'c'.
2899         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2900         Likewise.
2902 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2904         * diagnostic.h (output_buffer_state): Redefine.
2905         (output_format_decoder): New macro.
2906         (output_prefixing_rule): Likewise.
2907         (output_line_cutoff): Likewise.
2908         (diagnostic_format_decoder): Adjust.
2909         (diagnostic_prefixing_rule): Likewise.
2910         (diagnostic_line_cutoff): Likewise.
2911         (diagnostic_state): Likewise.
2912         (diagnostic_kind_count): Likewise.
2913         (diagnostic_buffer): Now a macro.
2915         * diagnostic.c (diagnostic_buffer): Remove definition.
2916         (output_is_line_wrapping): Adjust.
2917         (set_real_maximum_length): Likewise.
2918         (output_set_maximum_length): Likewise.
2919         (init_output_buffer): Likewise.
2920         (lhd_print_error_function): Likewise.
2921         (output_do_verbatim): Likewise.
2923 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2925         * cpperror.c (print_location): Don't print include chain
2926         if line == 0.
2927         (cpp_begin_message): Update to use DL_ macros.
2928         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2929         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2930         cpp_notice, cpp_notice_from_errno): Remove.
2931         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2932         level.
2933         (cpp_errno): New.
2934         * cppexp.c (CPP_ICE): Remove.
2935         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2936         lex, integer_overflow, _cpp_parse_expr): Update.
2937         * cppfiles.c (read_include_file, find_include_file,
2938         handle_missing_header, _cpp_read_file, remap_filename): Update.
2939         * cpphash.h (enum error_type): Remove.
2940         (_cpp_begin_message): Update.
2941         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2942         cpp_handle_option, cpp_post_options): Update.
2943         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2944         skip_whitespace, parse_identifier, parse_slow, parse_string,
2945         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2946         cpp_interpret_charconst): Update.
2947         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2948         lex_macro_node, do_undef, glue_header_name, parse_include,
2949         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2950         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2951         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2952         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2953         _cpp_pop_buffer, do_diagnostic): Update.
2954         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2955         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2956         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2957         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2958         cpp_notice, cpp_notice_from_errno): Remove.
2959         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2960         level.
2961         (cpp_errno): New.
2962         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2963         collect_args, enter_macro_context, save_parameter, parse_params,
2964         _cpp_create_definition, check_trad_stringification,
2965         cpp_macro_definition): Update.
2966         * cppmain.c (cpp_preprocess_file): Update.
2967         * fix-header.c (read_scan_file): Update.
2969 2002-04-14  Andreas Schwab  <schwab@suse.de>
2971         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2973 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2975         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2977 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2979         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2980         not gnu_hurd.
2982 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2984         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2986 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2988         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2989         sparc-elf and sparc-rtems targets.
2991 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2993         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2994         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2995         * arm/linux-elf.h: Likewise.
2996         * cris/aout.h: Likewise.
2997         * cris/linux.h: Likewise.
2998         * i370/linux.h: Likewise.
2999         * i386/gnu.h: Likewise.
3000         * i386/linux-aout.h: Likewise.
3001         * i386/linux-oldld.h: Likewise.
3002         * i386/linux.h: Likewise.
3003         * i386/linux64.h: Likewise.
3004         * ia64/linux.h: Likewise.
3005         * m68k/linux-aout.h: Likewise.
3006         * m68k/linux.h: Likewise.
3007         * mips/linux.h: Likewise.
3008         * pa/pa-linux.h: Likewise.
3009         * pj/linux.h: Likewise.
3010         * rs6000/sysv4.h: Likewise.
3011         * s390/linux.h: Likewise.
3012         * sh/linux.h: Likewise.
3013         * sparc/linux-aout.h: Likewise.
3014         * sparc/linux.h: Likewise.
3015         * sparc/linux64.h: Likewise.
3016         * xtensa/linux.h: Likewise.
3018 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
3020         * stmt.c (check_unique_operand_names): Expect operand names to
3021         be strings rather than identifiers.  Use simple_cst_equal to
3022         compare them.
3023         (resolve_operand_name_1): Make same identifier to string change here.
3024         * c-parse.in (asm_operand): Convert a named operand into a string.
3025         * cp/parse.y (asm_operand): Likewise.
3027 2002-04-13  Andreas Schwab  <schwab@suse.de>
3029         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3031 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
3033         Revert these changes:
3035         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
3037         PR c++/5571
3038         * stor-layout.c (layout_decl): Reset the RTL for the decl.
3040 2002-04-12  Richard Henderson  <rth@redhat.com>
3042         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
3043         (sparc*-*-solaris): Clean up header files.
3044         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
3045         and plan on generating 64-bit code.
3046         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
3047         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
3048         * config/sparc/sol2-sld-64.h: Rename ...
3049         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
3050         for AS_SPARC64_FLAG not defined.
3051         * config/sparc/sol2-gld-bi.h: New.
3052         * config/sparc/sol2-sld.h: Remove.
3053         * config/sparc/sol26-sld.h: New.
3054         * config/sparc/sol2.h: Tidy comments.
3055         * doc/install.texi: Document sparc-solaris configury changes.
3057 2002-04-12  Richard Henderson  <rth@redhat.com>
3059         * recog.c (offsettable_address_p): Match the logic in adjust_address.
3061         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3062         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
3064 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3066         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3068 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
3070         * pa.c (pa_can_combine_p): Call extract_insn before calling
3071         constrain_operands.
3073 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
3075         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
3076         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
3077         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3078         (CPP_PREDEFINES): Handle __declspec.
3079         * config/i386/t-interix (USER_H): Remove.
3081 2002-04-12  DJ Delorie  <dj@redhat.com>
3083         * integrate.c (compare_blocks): Make comparisons safe for when
3084         sizeof(int) < sizeof(char *).
3085         (find_block): Likewise.
3087 2002-04-12  Jan Hubicka  <jh@suse.cz>
3088             David Edelsohn  <edelsohn@gnu.org>
3090         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
3091         registers.
3092         (symbol_ref_operand): New.
3093         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
3094         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
3096 2002-04-12  Andreas Schwab  <schwab@suse.de>
3098         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
3099         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
3100         overrides the definition in config/svr4.h.
3102 2002-04-12      Eric Norum <eric.norum@usask.ca>
3104         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
3105         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
3106         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
3107         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
3108         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
3109         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
3110         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
3111         definitions to config/rtems.h and make the targets more similar.
3113 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3115         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
3116         POINTERS_EXTEND_UNSIGNED.
3117         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
3118         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
3120         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3121         not specified.
3123 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
3125         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
3126         depends on TARGET_SHMEDIA, not TARGET_SH5.
3128 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
3130         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
3131         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
3133 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
3135         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
3136         no r0 clobber.
3138 2002-04-12  Andreas Schwab  <schwab@suse.de>
3140         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3142 2002-04-12  Richard Henderson  <rth@redhat.com>
3144         PR bootstrap/4191
3145         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3147         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3148         modes spanning multiple hard regs.
3150         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3152 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3154         * pa.c (pa_output_function_prologue): Don't accumulate the total
3155         number of code bytes when using TARGET_64BIT, or gas, SOM and not
3156         the portable runtime.
3157         (output_deferred_plabels): Handle 64bit plabels.
3158         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
3159         generating pic code using the GAS assembler for object formats that
3160         are not SOM (ie., ELF32 and ELF64).
3161         (output_millicode_call): Check attribute type if attribute length is 28.
3162         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
3163         dbr_sequence_length once.
3164         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
3165         dbr_sequence_length once.
3166         * pa.h (TARGET_SOM): Define if not defined.
3167         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
3168         with GAS and not SOM.
3169         (jump, call_internal_reg, call_value_internal_reg): Likewise.
3170         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
3172 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3174         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
3175         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
3176         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
3177         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
3178         elfos.h and dbxelf.h values are fine now.
3179         * config/i386/freebsd.h, config/alpha/freebsd.h
3180         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
3182 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3184         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
3185         or set Acpu or Amachine.  Reformat.
3186         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3187         define.
3188         (LINK_SPEC): Do not need to undef.
3189         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
3190         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
3191         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3192         define.
3193         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
3194         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
3195         (LINK_SPEC): Do not need to undef.
3196         (DONT_USE_BUILTIN_SETJMP): Do not define.
3197         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
3198         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
3199         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
3200         Remove trailing spaces.
3201         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
3202         __ELF__, or set Acpu or Amachine.  Reformat.
3203         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3204         define.
3206 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3208         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3209         all other *-*-freebsd* targets.
3211 2002-04-11  Richard Henderson  <rth@redhat.com>
3213         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
3215 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3217         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
3218         Include {cpu}/{cpu}.h thru tm_file.
3219         (alpha*-*-linux*ecoff): Remove target.
3220         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
3221         (LINK_SPEC): Remove, is not OS independent.
3222         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
3223         (LINK_SPEC): Do not need to #undef any longer.
3224         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
3225         any longer.
3226         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
3227         __ELF__.
3228         (LINK_SPEC): Moved here from alpha/elf.h.
3229         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
3230         SUB_CPP_PREDEFINES.
3231         * config/alpha/linux-ecoff.h: Remove.
3232         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
3233         (CPP_SPEC): Define _POSIX_SOURCE as needed.
3234         (CPP_SUBTARGET_SPEC): Do not define.
3235         (LINK_SPEC): Do not need to #undef any longer.
3236         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
3237         * config/alpha/vms.h: Likewise.
3239 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
3241         * doc/extend.texi: Remove old claim that typedefs cannot have
3242         an alignment attribute.
3244 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
3246         PR optimization/6177
3247         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
3248         bitpos is 0 and bitsize CONCAT size.
3250 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
3252         PR c/6223
3253         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
3255 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
3257         * config/alpha/freebsd.h: Minor reformatting.
3258         (CPP_SPEC): Define ELF and add cpp_subtarget.
3259         (ASM_SPEC): No longer needed.
3261 2002-04-11  Richard Henderson  <rth@redhat.com>
3263         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
3264         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
3265         (dimode mem/zero splitter): New.
3267 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
3269         * config/cris/cris.c (cris_override_options): Tweak error message
3270         for PIC not implemented.
3272         * config/cris/cris.h: Tweak comments related to parameter-passing.
3274         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
3276 2002-04-10  Richard Henderson  <rth@redhat.com>
3278         * except.c (add_ehl_entry): Allow duplicates after landing pad
3279         creation.
3281 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
3283         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
3285 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
3287         * c-decl.c (c_init_decl_processing): Move generation of
3288         decls for g77_integer_type_node and friends from here ...
3289         * c-common.c (c_common_nodes_and_builtins): ... to here.
3291 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
3293         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
3294         is only used as frame pointer when frame_pointer_needed is true.
3296 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
3298         PR target/817
3299         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
3300         for the fact that the pool entry uses two words.
3301         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
3302         1k bytes.
3303         (movdf_soft_insn): Similarly.
3304         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
3305         for the fact that the pool entry uses three words.
3307 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
3309         * config/mips/mips.c (mips_va_arg): When using the struct version
3310         of the EABI va_list, allow arguments in the register save area to
3311         take up less room than a stack argument.
3313 2002-04-10  Richard Henderson  <rth@redhat.com>
3315         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
3316         if EXPAND_INITIALIZER.
3318 2002-04-09  Richard Henderson  <rth@redhat.com>
3320         * config/alpha/alpha.md (movdi_er_maybe_g): New.
3321         * config/alpha/alpha.c (alpha_expand_mov): Use it.
3323 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
3325         PR optimization/6233
3326         * rtlanal.c (pure_call_p): New function.
3327         * rtl.h (pure_call_p): Declare.
3328         * loop.c (prescan_loop): Use it to set has_nonconst_call.
3329         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
3331 2002-04-09  Eric Christopher  <echristo@redhat.com>
3333         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
3334         information to .comm directive.
3336 2002-04-09  Richard Henderson  <rth@redhat.com>
3338         PR c/5078
3339         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3341 2002-04-09  Richard Henderson  <rth@redhat.com>
3343         * basic-block.h (flow_delete_block_noexpunge): Declare.
3344         (expunge_block_nocompact): Declare.
3345         * cfg.c (expunge_block_nocompact): Split out from ...
3346         (expunge_block): ... here.
3347         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
3348         (flow_delete_block_noexpunge): Split out from ...
3349         (flow_delete_block): ... here.
3350         * cfgcleanup.c (delete_unreachable_blocks): Compact while
3351         removing dead blocks.
3352         * except.c (exception_handler_labels): Remove.
3353         (exception_handler_label_map): New.
3354         (struct eh_region): Add aka member.
3355         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
3356         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
3357         (for_each_eh_label, for_each_eh_label_1): New.
3358         (init_eh): Register exception_handler_label_map.
3359         (free_eh_status): Use free_region.
3360         (find_exception_handler_labels): Use the map, not the list.
3361         (remove_exception_handler_label): Likewise.
3362         (maybe_remove_eh_handler): Likewise.
3363         (remove_eh_handler): Use the region aka bitmap.
3364         * except.h (exception_handler_labels): Remove.
3365         (for_each_eh_label): Declare.
3366         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
3367         * loop.c (invalidate_loops_containing_label): New.
3368         (find_and_verify_loops): Use it.  Use for_each_eh_label.
3369         * sched-rgn.c (is_cfg_nonregular): Use
3370         current_function_has_exception_handlers.
3372 2002-04-09  Richard Henderson  <rth@redhat.com>
3374         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
3375         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
3376         Do not return changed status.
3377         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
3378         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
3379         New functions that do return changed status.
3380         * sbitmap.h: Update decls.
3381         * gcse.c, lcm.c: Use _cg functions as needed.
3383 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3385         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
3386         (sh64-*-elf*, sh-*-rtemself*): Likewise.
3387         * config/sh/embed_bb.c: New file.
3388         * config/sh/embed-elf.h: New file.
3389         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
3390         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
3391         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3392         __PTRDIFF_TYPE__ .
3393         (SUBTARGET_CPP_PTR_SPEC): Don't define.
3394         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
3395         Add subtarget_asm_endian_spec.
3396         (ASM_SPEC): Use subtarget_asm_endian_spec.
3397         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
3398         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
3399         (WCHAR_UNSIGNED): Define.
3400         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
3401         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3402         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
3403         Fix value.
3404         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
3405         (sh_adjust_cost): Likewise.
3406         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3407         __PTRDIFF_TYPE__ .
3408         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
3409         (WCHAR_TYPE_SIZE): Likewise.
3410         (ASM_SPEC): Use subtarget_asm_endian_spec.
3411         (SH_ELF_WCHAR_TYPE): #undef/ #define.
3412         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
3413         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
3414         (MAX_WCHAR_TYPE_SIZE): Don't #define .
3415         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
3416         (USER_LABEL_PREFIX): Don't #undef /#define .
3417         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3418         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
3419         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
3420         (ASM_SPEC): Likewise.
3421         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
3422         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
3423         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
3424         (LIB2FUNCS_EXTRA): Define.
3425         * t-sh64 (LIB2FUNCS_EXTRA): Define.
3426         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
3427         (LIB1ASMFUNCS_CACHE): Define.
3428         (LIB2FUNCS_EXTRA): Redefine empty.
3430 2002-04-08  Richard Henderson  <rth@redhat.com>
3432         * reorg.c (get_branch_condition): Use reversed_comparison_code.
3434 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3436         * config/m68hc11/larith.asm (__map_data_section): Fix condition
3437         and optimize for size.
3438         (__do_global_ctors): Fix pointer comparison.
3439         (__do_global_dtors): Likewise.
3441 2002-04-09  David S. Miller  <davem@redhat.com>
3443         * config/sparc/sparc.c (sparc_extra_constraint_check): New
3444         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
3445         allow reloading pseudos.
3446         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
3447         * config/sparc/sparc-protos.h: Declare it.
3449         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3450         unsigned comparison warning.
3451         (output_restore_regs): Mark leaf_function as unused.
3453 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3455         * expr.c (is_aligning_offset): New function.
3456         (expand_expr, case COMPONENT_EXPR): Call it.
3458 2002-04-08  David S. Miller  <davem@redhat.com>
3460         PR target/6082
3461         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
3463         Make init_priority work on Sparc when using GNU ld.
3464         * config/sparc/linux.h, config/sparc/linux64.h,
3465         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
3466         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
3467         * config/sparc/sol2-gld.h: New file to do the same.
3468         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
3469         sparc/sol2-gld.h to tm_file.
3471         PR optimization/4328
3472         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
3473         * doc/md.texi: Document it.
3474         * config/sparc/sparc.md (movdi_insn_sp64_novis,
3475         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
3476         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
3477         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
3478         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
3480 2002-04-08  Andreas Jaeger  <aj@suse.de>
3482         * stmt.c (expand_asm_operands): Revert last patch from Richard
3483         Henderson.
3485 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3487         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
3488         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
3490 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3492         * doc/contrib.texi (Contributors): Add David O'Brien.
3494 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
3496         * configure.in (auto-build.h): Use target_alias and build_alias
3497         when running configure.
3498         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
3499         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
3500         * configure: Regenerate.
3502 2002-04-07  David S. Miller  <davem@redhat.com>
3504         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
3506 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3508         PR 5933
3509         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
3510         generating 32-bit pic code.
3512 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
3514         * cppinit.c (cpp_create_reader): Initialize
3515         discard_comments_in_macro_exp.
3516         (COMMAND_LINE_OPTIONS): Add "-CC" option.
3517         (cpp_handle_option): Handle "-CC" option.
3518         * cpplex.c (save_comment): If saving a C++ comment in
3519         a directive, convert it to a C comment.
3520         (_cpp_lex_direct): Pass second comment start character to
3521         save_comment to indicate comment type.
3522         * cpplib.c (_cpp_handle_directive): If processing
3523         a "#define" directive and discard_comments_in_macro_exp
3524         is false,  re-enable saving of comments.
3525         (lex_macro_node): If discard_comments_in_macro_exp is false,
3526         discard any comments before the macro identifier.
3527         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
3528         member.
3529         * cppmacro.c (cpp_get_token): If expanding a macro while
3530         processing a directive, discard any comments we might encounter.
3531         (parse_params): If discard_comments_in_macro_exp is false,
3532         ignore comments in the macro parameter list.
3533         * gcc.c (cpp_unique_options): Add "-CC" option.
3534         (option_map): Map "--comments-in-macros" to "-CC".
3535         * doc/cppopts.texi: Document "-CC" option.
3536         * f/lang-specs.h: Add "-CC" option.
3537         * testsuite/gcc.dg/cpp/maccom1.c: New test.
3538         * testsuite/gcc.dg/cpp/maccom2.c: New test.
3539         * testsuite/gcc.dg/cpp/maccom3.c: New test.
3540         * testsuite/gcc.dg/cpp/maccom4.c: New test.
3541         * testsuite/gcc.dg/cpp/maccom5.c: New test.
3542         * testsuite/gcc.dg/cpp/maccom6.c: New test.
3544 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3546         PR middle-end/6180
3547         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
3549 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
3551         PR c++/5571
3552         * stor-layout.c (layout_decl): Reset the RTL for the decl.
3554         PR opt/5120
3555         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
3556         RTX_UNCHANGING_P for the functions arguments when a tail call
3557         is made.
3559 2002-04-06  Jason Merrill  <jason@redhat.com>
3561         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
3562         (parse_options_and_default_flags): Set them appropriately.
3563         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
3565 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
3567         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
3568         here.
3570         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
3571         semicolon.
3573         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
3574         types come in by-reference.  Fix typo in comment.
3576 2002-04-05  David S. Miller  <davem@redhat.com>
3578         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
3579         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
3580         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
3581         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
3583 2002-04-05  David S. Miller  <davem@redhat.com>
3585         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
3586         are not going to emit return instructions, emit at least a nop
3587         for the sake of sane backtraces.
3589 2002-04-05  Richard Henderson  <rth@redhat.com>
3591         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3593 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
3595         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3597 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
3599         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
3600         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3601         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
3603 2002-04-05  Andreas Schwab  <schwab@suse.de>
3605         * c-convert.c: Include c-common.h.
3606         * Makefile.in (c-convert.o): Updated.
3608 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3610         * mklibgcc.in: Use separate libgcc.map for each multilib.
3611         * Makefile.in (distclean): Don't remove libgcc.map here.
3613 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3615         * Makefile.in (s-mlib): Handle --disable-multilib by separate
3616         genmultilib invocation.
3618 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
3620         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3621         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
3622         to num_gprs for symmetry.
3623         * config/mips/mips.c: Adjust accordingly.
3625 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3627         * c-common.c (truthvalue_conversion): Rename, update.
3628         * c-common.h (c_common_truthvalue_conversion): New.
3629         * c-convert.c (convert): Update.
3630         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3631         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3632         * c-typeck.c (build_binary_op, build_unary_op,
3633         build_conditional_expr): Update.
3634         * fold-const.c (constant_boolean_node, fold): Use langhook.
3635         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3636         * langhooks.h (struct lang_hooks): New hook.
3637         * stmt.c (expand_decl_cleanup): Use langhook.
3638         * tree.h (truthvalue_conversion): Remove.
3639 objc:
3640         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3642 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
3644         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3645         Add rules to make null object file.
3647 2002-04-04  Jim Blandy  <jimb@redhat.com>
3649         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3650         macro formal parameter names.
3652 2002-04-04  David S. Miller  <davem@redhat.com>
3654         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3656 2002-04-04  Richard Henderson  <rth@redhat.com>
3658         PR middle-end/5099
3659         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3660         Support copies into and out of memory.  Don't accept allows_reg
3661         and allows_mem as gospel.
3663 2002-04-04  Richard Henderson  <rth@redhat.com>
3665         PR opt/6165
3666         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3667         (write_dependence_p): Likewise.
3669 2002-04-04  Richard Henderson  <rth@redhat.com>
3671         * predict.c (estimate_bb_frequencies): Do frequency calculation
3672         with a volatile temporary.
3674 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
3676         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3678 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3680         PR c++/6119
3681         * final.c (final_start_function): Don't bump profile_label_no here...
3682         (final_end_function): ...but here.
3684 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3686         * config/sparc/sparc.md (pic): New attribute.
3687         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3688         into stack slots.
3689         (split after do_builtin_setjmp_setup): New.
3691 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3693         PR fortran/6106
3694         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3695         change.
3697 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3699         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3700         UNITS_PER_WORD for zero sized aggregates.
3702 2002-04-03  David S. Miller  <davem@redhat.com>
3704         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3705         one-character spec for this, just use %(link_gcc_c_sequence).
3707 2002-04-03  David S. Miller  <davem@redhat.com>
3709         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3710         handling.
3712 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3714         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3715         (DWARF_FRAME_RETURN_COLUMN): Move.
3716         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3717         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3718         * pa.c (except.h, predict.h): Include.
3719         (FRP): Delete.
3720         (store_reg_modify, set_reg_plus_d): Revise prototypes.
3721         (output_ascii): Add cast.
3722         (store_reg_modify): Revise to add frame notes.
3723         (set_reg_plus_d): Likewise.
3724         (compute_frame_size): Include space for eh data registers in frame if
3725         the current function calls eh_return.
3726         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
3727         function calls eh_return.  Save eh data registers if the current
3728         function calls eh_return.  Fix code to add frame notes.  Emit
3729         blockage to prevent insns with frame notes being scheduled in the
3730         delay slot of calls.
3731         (hppa_expand_epilogue): Restore eh data registers and do final stack
3732         adjustment if the current function calls eh_return.  Don't add frame
3733         notes.
3734         (output_call): Revise for change in length of call insn.  Don't do
3735         return pointer adjustment for an unconditional jump in the delay slot
3736         of a call when using frame notes.
3737         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
3738         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
3739         (ARG_POINTER_CFA_OFFSET): Define.
3740         * pa.md (return_external_pic): New pattern.
3741         (prologue): Correct formatting.  Use return_external_pic if current
3742         function calls eh_return.
3743         (call_internal_symref, call_value_internal_symref,
3744         sibcall_internal_symref, sibcall_value_internal_symref): Change default
3745         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
3746         respectively.
3747         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
3749         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
3750         list of targets to check using "nop" insn.
3751         * configure: Rebuilt.
3753 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
3755         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3757 2002-04-03  David S. Miller  <davem@redhat.com>
3759         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3760         library sequence passed to the linker.
3761         (LINK_COMMAND_SPEC): Use it.
3762         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3763         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3764         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3766 2002-04-03  Jason Merrill  <jason@redhat.com>
3768         * except.c (struct eh_status): Remove protect_list.
3769         (begin_protect_partials, end_protect_partials): Remove.
3770         (add_partial_entry): Remove.
3771         * except.h: Remove prototypes.
3773         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3774         expand_decl_cleanup_eh.
3776         PR c++/5636
3777         * tree.h (CLEANUP_EH_ONLY): New macro.
3778         * stmt.c (expand_decl_cleanup_eh): New fn.
3779         (expand_cleanups): Check CLEANUP_EH_ONLY.
3780         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3781         Use expand_decl_cleanup_eh.
3782         (expand_stmt): Adjust.
3783         * c-common.h: Adjust prototype.
3785 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
3787         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3788         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3789         (cris_target_asm_function_epilogue): Ditto.
3790         (cris_initial_frame_pointer_offset): Ditto.
3791         (cris_simple_epilogue): Ditto.
3792         (cris_expand_builtin_va_arg): Variable-size types come in
3793         by-reference.
3795 2002-04-03  David S. Miller  <davem@redhat.com>
3797         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3798         little-endian.
3799         (set_fast_math): Correct 'fsr' type.
3801 2002-04-03  Richard Henderson  <rth@redhat.com>
3803         PR opt/3569
3804         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3805         * toplev.c (check_global_declarations): Use it.
3806         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3807         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3808         (LANG_HOOKS_DECLS): Add it.
3809         * langhooks.c (lhd_warn_unused_global_decl): New.
3810         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3811         * c-objc-common.c (c_warn_unused_global_decl): New.
3812         * c-tree.h (c_warn_unused_global_decl): Declare.
3813         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3815 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3817         * langhooks-def.h (lhd_set_decl_assembler_name,
3818         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3819         (LANG_HOOKS_INITIALIZER): Update.
3820         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3821         * langhooks.h (struct lang_hooks): New hook.
3822         * tree.c (set_decl_assembler_name): Move to langhooks.c.
3823         (lang_set_decl_assembler_name): Remove.
3824         (init_obstacks): Don't set hook.
3825         (decl_assembler_name): New function.
3826         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3827         (decl_assembler_name): New.
3828         (lang_set_decl_assembler_name): Remove.
3830 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3832         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3833         works properly with .hidden symbols.
3834         * configure: Rebuilt.
3835         * config.in: Rebuilt.
3836         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3837         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3838         properly with .hidden symbols.
3840 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3842         PR middle-end/6102
3843         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3844         USE argument.
3846 2002-04-03  Richard Henderson  <rth@redhat.com>
3848         PR opt/4120
3849         * sched-rgn.c (sets_likely_spilled): New.
3850         (sets_likely_spilled_1): New.
3851         (add_branch_dependences): Use it.
3853 2002-04-02  Richard Henderson  <rth@redhat.com>
3855         PR opt/4311
3856         * loop.h (LOOP_FIRST_PASS): New.
3857         * loop.c (strength_reduce): Mind it when deciding to unroll.
3858         * toplev.c (rest_of_compilation): Set it.
3860 2002-04-02  David S. Miller  <davem@redhat.com>
3862         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3863         mems_ok_for_ldd_peep when the order of the loads being examined
3864         is reversed.
3865         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3866         existing comment to increase comprehension of this situation.
3868 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
3870         * config/sh/sh.md: Don't use union real_extract.
3872 2002-04-02  Richard Henderson  <rth@redhat.com>
3874         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3876 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3878         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3879         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3880         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3881         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3882         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3883         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3884         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3885         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3886         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3887         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3888         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3889         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3890         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3891         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3892         Include as many configury headers via tm_file as possible.  This
3893         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3894         * config/openbsd-oldgas.h: New file.
3895         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3896         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3897         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3898         config/i386/i386-coff.h, config/i386/i386-interix.h,
3899         config/i386/iscdbx.h, config/i386/linux-aout.h,
3900         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3901         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3902         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3903         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3904         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3905         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3906         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3907         config/i386/vxi386.h: Do not directly include configury headers.
3908         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3909         Directly include configury headers that are no longer automatically
3910         included by the above headers.
3911         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3912         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3913         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3914         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3915         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3916         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3917         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3918         (TARGET_VERSION): Define.
3919         * config/i386/beos-elf.h, config/i386/freebsd.h,
3920         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3921         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3922         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3923         config/i386/sco5.h, config/i386/sysv4.h
3924         (TARGET_VERSION): Do not need to protect.
3925         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3926         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3927         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3928         config/i386/i386-interix.h, config/i386/linux-aout.h,
3929         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3930         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3931         (YES_UNDERSCORES): Do not define - not needed.
3932         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3933         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3934         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3935         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3936         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3937         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3938         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3939         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3941 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3942             Richard Henderson  <rth@redhat.com>
3944         PR c/5484
3945         * function.c (assign_temp): Accept either type or decl argument.
3946         Detect variables whose size is too large to fit into an integer.
3947         * stmt.c (expand_decl): Pass the decl, not the type.
3949 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3951         * protoize.c: Match include directory usage with cppdefault.c.
3953 2002-04-03  Jeffrey A Law  (law@redhat.com)
3954             Hans-Peter Nilsson  <hp@bitrange.com>
3956         * combine.c (simplify_comparison): Avoid narrowing a comparison
3957         with a paradoxical subreg when doing so would drop signficant bits.
3959 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3961         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3962         if POINTERS_EXTEND_UNSIGNED is defined.
3964 2002-04-02  Richard Henderson  <rth@redhat.com>
3966         PR opt/3967
3967         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3968         replace regs.
3970 2002-04-02  Richard Henderson  <rth@redhat.com>
3972         * doc/standards.texi: Document required freestanding libc entry points.
3974 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3976         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3977         associated splitter.  Remove MQ constraint.
3978         (ctrdi_internal4): Correct CCmode clobber.
3980 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3982         * milli64.S ($$dyncall): New function.
3983         * t-linux (LIB1ASMFUNCS): Revise module list.
3984         (LIB1ASMSRC): Use pa/milli64.S.
3986 2002-04-02  Richard Henderson  <rth@redhat.com>
3988         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3989         rename solaris_sys_varargs_h.
3991 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3993         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3994         the same mode as its component.
3996 2002-04-02  Richard Henderson  <rth@redhat.com>
3998         PR opt/190
3999         * final.c (this_is_asm_operands): Export.
4000         * output.h (this_is_asm_operands): Declare.
4001         * config/i386/i386.c (print_operand): Error odd asm operands.
4003 2002-04-02  Richard Henderson  <rth@redhat.com>
4005         PR opt/420
4006         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4008 2002-04-01  Richard Henderson  <rth@redhat.com>
4010         PR target/1538
4011         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4012         * fixinc/fixincl.x: Rebuild.
4014 2002-04-01  Richard Henderson  <rth@redhat.com>
4016         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
4017         (atomic_alloc, atomic_free): New.
4018         (SIZE, MASK_FOR, PTR_IN): New.
4019         (emergency_reg_state, emergency_reg_state_free): New.
4020         (emergency_labeled_state, emergency_labeled_state_free): New.
4021         (reg_state_alloced, labeled_state_alloced): New.
4022         (alloc_reg_state, free_reg_state): New.
4023         (alloc_label_state, free_label_state, free_label_states): New.
4024         (push, pop, dup_state_stack, free_state_stack): Use them.
4025         (desc_label_state): Likewise.
4026         (uw_frame_state_for): Free label states and state stack.
4027         (uw_update_reg_address): Eliminate warnings.
4029 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
4031         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
4032         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
4034 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4036         * c-decl.c (grokdeclarator): Update.
4037         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4038         * c-tree.h (c_mark_addressable): New.
4039         * c-typeck.c (default_function_array_conversion, build_unary_op,
4040         build_array_ref, convert_for_assignment): Update.
4041         (mark_addressable): Rename.
4042         * calls.c (try_to_integrate, expand_call): Use langhook.
4043         * expr.c (expand_expr): Use langhook.
4044         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
4045         * langhooks.h (struct lang_hooks): New hook.
4046         * stmt.c (expand_asm_operands): Use langhook.
4047         * tree.h (mark_addressable): Remove.
4048 objc:
4049         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4051 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
4053         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
4054         in previous change.
4056 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
4058         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
4059         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
4061 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4063         * c-common.c (unsigned_conversion_warning, convert_and_check,
4064         unsigned_type, signed_type, shorten_compare,
4065         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
4066         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
4067         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
4068         New.
4069         * c-decl.c (grokdeclarator): Update.
4070         * c-format.c (check_format_types): Update.
4071         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4072         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4073         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
4074         * convert.c (convert_to_integer): Use new hooks.
4075         * expmed.c (make_tree): Use new hooks.
4076         * expr.c (store_expr): Use new hooks.
4077         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
4078         all_ones_mask_p, unextend, fold): Use new hooks.
4079         * langhooks.h (struct lang_hooks_for_types): New hooks.
4080         * tree.h (signed_or_unsigned_type, signed_type,
4081         unsigned_type): Remove.
4082 objc:
4083         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4084         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4086 2002-03-31  Richard Henderson  <rth@redhat.com>
4088         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
4089         (desc_frgr_mem): Fix reference to f16-f31.
4091 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4093         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
4094         RTVEC_ELT): Const-ify.
4095         * varray.h (VARRAY_CHECK): Const-ify.
4096         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
4097         ggc_mark_rtvec, ggc_mark): Const-ify.
4099 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4101         * diagnostic.c: Include langhooks-def.h.
4102         * Makefile.in (diagnostic.o): Update.
4104 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4106         * c-common.c (c_unsafe_for_reeval): Rename.
4107         * c-common.h (c_unsafe_for_reeval): Rename.
4108         * c-decl.c (finish_incomplete_decl): Rename.
4109         (c_init_decl_processing): Don't set langhook.
4110         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4111         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4112         * c-objc-common.c (c_objc_common_init): Don't set langhook.
4113         * c-tree.h (finish_incomplete_decl): Rename.
4114         * langhooks-def.h (lhd_unsafe_for_reeval): New.
4115         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
4116         (LANG_HOOKS_INITIALIZER): Update.
4117         * langhooks.c (lhd_unsafe_For_reeval): New.
4118         * langhooks.h (struct langhooks): New hooks.
4119         * toplev.c (incomplete_decl_finalize_hook): Remove.
4120         (wrapup_global_declarations): Update.
4121         * tree.c (lang_unsafe_for_reeval): Remove.
4122         (unsafe_for_reeval): Update.
4123         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
4124         Remove.
4125 objc:
4126         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4127         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4129 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4131         * diagnostic.c (print_error_function): Remove.
4132         (default_print_error_function): Rename.
4133         (report_error_function): Update.
4134         * diagnostic.h (print_error_function): Remove.
4135         (default_print_error_function): Remove.
4136         * langhooks-def.h (struct diagnostic_context): Predeclare.
4137         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
4138         (LANG_HOOKS_INITIALIZER): Update.
4139         * langhooks.h (struct diagnostic context): Predeclare.
4140         (struct lang_hooks): New hook.
4142 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4144         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
4145         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
4146         !flag_pic.
4147         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
4148         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
4149         of PIC_OFFSET_TABLE_REGNUM thruout.
4150         * config/rs6000/rs6000.md: Likewise.
4151         * config/rs6000/darwin.h: Likewise.
4153 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4155         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
4156         unsigned HOST_WIDE_INT, not unsigned int.
4158 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
4160         PR middle-end/6096, middle-end/6098, middle-end/6099
4161         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
4162         CODE_LABELs.
4163         (fill_slots_from_thread): Likewise.
4165 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
4167         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
4168         floating fields in float regs.
4169         (function_arg_record_value_2): Likewise.
4171 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
4173         * config/mmix/mmix.md (define_constants): Remove misleading
4174         FIXME.  Add MMIX_fp_rO_OFFSET.
4175         ("nonlocal_goto_receiver"): Don't have stack-frame address of
4176         saved rO as part of the pattern.  Remove FIXME.
4177         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
4178         here, at output-time.
4180 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
4182         PR middle-end/6100
4183         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
4184         REG_BR_PRED.
4185         (output_v9branch): Likewise.
4187 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
4189         * gcc.c: Revert previous patch for now.
4190         * config/i386/djgpp.h: Likewise.
4192 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
4194         * config/mmix/crti.asm (_init): Register _fini with atexit.
4195         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
4197 2002-03-31  Richard Henderson  <rth@redhat.com>
4199         PR target/3997
4200         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
4201         (ASM_OUTPUT_DEF_FROM_DECLS): New.
4203 2002-03-31  Richard Henderson  <rth@redhat.com>
4205         * libgcc2.c (__bb_exit_func): Make static.
4207         * config/alpha/alpha.md (trap): New.
4209 2002-03-31  Richard Henderson  <rth@redhat.com>
4211         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
4212         promoted argument types; build trap.
4213         (expand_builtin_trap): New.
4214         (expand_builtin): Use it.
4215         * stmt.c (expand_nl_goto_receivers): Likewise.
4216         * expr.h (expand_builtin_trap): Declare.
4217         * libfuncs.h (LTI_abort, abort_libfunc): New.
4218         * optabs.c (init_optabs): Init abort_libfunc.
4220 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
4222         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
4223         (LINK_COMMAND_SPEC): ... from here.
4224         (init_gcc_specs): Duplicate it here too, omitting
4225         shared_name in the second copy.
4226         (init_spec): Test for duplicate
4227         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
4229 2002-03-30  David S. Miller  <davem@redhat.com>
4231         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4232         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
4234 2002-03-30  Roger Sayle <roger@eyesopen.com>
4235             Richard Henderson  <rth@redhat.com>
4237         * regmove.c (combine_stack_adjustments_for_block): Avoid
4238         emitting a stack adjustment of zero bytes.  Let delete_insn
4239         update bb->head.
4241 2002-03-30  Richard Henderson  <rth@redhat.com>
4243         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
4244         (sparc_emitting_epilogue): New.
4245         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
4246         * config/sparc/sparc-protos.h: Update.
4247         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
4248         (TARGET_SWITCHES): Update.
4249         * config/sparc/sparc.md (return): Remove.
4250         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
4251         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
4252         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
4253         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4254         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
4255         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
4256         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
4257         Remove MASK_EPILOGUE.
4258         * doc/invoke.texi: Update.
4260 2002-03-30  Daniel Berlin  <dan@dberlin.org>
4262         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
4263         CPP will start the file for us.
4265 2002-03-30  Richard Henderson  <rth@redhat.com>
4267         PR target/5446
4268         * config/ia64/ia64.c (group_barrier_needed_p): Special case
4269         prologue_allocate_stack.
4270         (ia64_single_set): Use insn codes for recognition of special
4271         cases, not rtl matching.
4272         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
4274 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
4276         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
4278 2002-03-30  Richard Henderson  <rth@redhat.com>
4280         PR target/6032
4281         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
4282         or -fomit-frame-pointer with profiling.
4283         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4284         (FUNCTION_PROFILER): Do nothing.
4285         (PROFILE_HOOK): New.
4286         * config/sparc/sparc.c (sparc_override_options): Don't check
4287         code models for profiling.
4288         (sparc_function_profiler): Remove.
4289         (sparc_profile_hook): New.
4290         * config/sparc/sparc-protos.h: Update.
4292 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
4294         PR optimization/6086
4295         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
4296         of SUBREG of volatile MEM or because the MEM was mode dependent,
4297         return CLOBBER instead of unmodified SUBREG.
4299 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
4301         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
4302         when not optimizing.
4304         * toplev.c (rest_of_compilation): Cann mark_constant_function
4305         only when optimizing.
4307         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
4308         are NULL.
4310         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
4311         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
4312         (try_optimize_cfg): clear all AUX fields.
4314         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
4315         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
4316         (ix86_address_cost): Be prepared for SUBREGed registers.
4317         (legitimate_address_p): Accept SUBREGed registers.
4319 2002-03-29  Richard Henderson  <rth@redhat.com>
4321         PR target/5672
4322         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
4324 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4326         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
4327         for aggregate and TFmode types.
4329 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
4331         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
4333 2002-03-29  Richard Henderson  <rth@redhat.com>
4335         PR target/5886
4336         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
4337         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
4339 2002-03-29  Richard Henderson  <rth@redhat.com>
4341         PR target/6041
4342         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
4343         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
4344         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
4345         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
4346         conditional.
4347         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
4349 2002-03-29  Dale Johannesen <dalej@apple.com>
4351         * loop.c (combine_movables): Do allow combination of pseudos.
4353 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
4355         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
4356         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
4357         No functional change except ...
4358         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
4359         * doc/install.texi (*-*-freebsd*): Document port configuration.
4361 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4363         * Makefile.in (convert.o, calls.o, expmed.o): Update.
4364         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
4365         Use new hooks.
4366         * builtin-types.def (BT_PTRMODE): Update.
4367         * c-common.c (type_for_size): Rename c_common_type_for_size.
4368         (type_for_mode): Similarly.
4369         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
4370         Use new hook.
4371         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
4372         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
4373         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4374         Redefine.
4375         * c-typeck.c (common_type, comptypes, default_conversion):
4376         Use new hooks.
4377         * calls.c: Include langhooks.h.
4378         (emit_library_call_value_1): Use new hooks.  Avoid redundant
4379         calls.
4380         * convert.c: Include langhooks.h
4381         (convert_to_pointer, convert_to_integer): Use new hooks.
4382         * except.c (init_eh): Similarly.
4383         * expmed.c: Include langhooks.h.
4384         (expand_mult_add): Use new hooks.
4385         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
4386         try_casesi): Similarly.
4387         * fold-const.c (optimize_bit_field_compare, make_range,
4388         decode_field_reference, fold_truthop, fold): Similarly.
4389         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
4390         put_var_into_stack): Similarly.
4391         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
4392         LANG_HOOKS_TYPE_FOR_SIZE): New.
4393         (LANG_HOOKS_TYPES_INITIALIZER): Update.
4394         * langhooks.h (lang_hooks_for_types): New hooks.
4395         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
4396         * tree.c (get_unwidened, get_narrower): Similarly.
4397         * tree.h (type_for_mode, type_for_size): Remove.
4398         * varasm.c (force_const_mem): Use new hooks.
4399         * utils2.c (nonbinary_modular_operation): Update.
4400 objc:
4401         * objc-act.c (handle_impent): Update.
4402         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
4403         Redefine.
4405 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
4407         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
4408         * config/ia64/ia64.c (basereg_operand): New.
4409         * config/ia64/ia64-protos.h (basereg_operand): Declare.
4410         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
4412 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
4414         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
4415         unwind information when frame_pointer_needed.
4416         (mmix_assemble_integer): Tweak wording in comment.
4418 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4420         * Makefile.in (except.o): Update.
4421         * except.c: Include langhooks.h.
4422         (init_eh): Use langhook.
4423         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
4424         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
4425         (LANG_HOOKS_INITIALIZER): Update.
4426         * langhooks.h (lang_hooks_for_types): New.
4427         (struct lang_hooks): Add it.
4428         * tree.c (make_lang_type_fn, make_lang_type): Remove.
4429         * tree.h (make_lang_type_fn, make_lang_type): Remove.
4430 config:
4431         * alpha/alpha.c: Include langhooks.h.
4432         (alpha_build_va_list): Use langhook.
4433         * d30v/d30v.c: Include langhooks.h.
4434         (d30v_build_va_list): Use langhook.
4435         * i386/i386.c: Include langhooks.h.
4436         (ix86_build_va_list): Use langhook.
4437         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
4438         * s390/s390.c: Include langhooks.h.
4439         (s390_build_va_list): Use langhook.
4440         * stormy16/stormy16.c: Include langhooks.h.
4441         (stormy16_build_va_list): Use langhook.
4443 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
4445         PR c++/5964
4446         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
4447         attributes.
4448         (length): Compute variable length for branches/calls/jumps here.
4449         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
4450         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
4451         define branch_type attribute.
4452         (divsi3_sp32): Maximum length is 6 not 7.
4453         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
4454         call_address_untyped_struct_value_sp32,
4455         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
4456         * config/sparc/sparc.c (empty_delay_slot): New function.
4457         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
4458         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
4460 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
4462         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
4463         nonzero_bits if not needed.
4464         (nonzero_bits) [XOR]: Likewise.
4465         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
4466         reg_last_set_mode and mode are both MODE_INT, but not equal.
4467         (record_value_for_reg): Compute reg_last_set_nonzero_bits
4468         in nonzero_bits_mode for MODE_INT modes.
4470 2002-03-28  Richard Henderson  <rth@redhat.com>
4472         PR target/5715
4473         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
4474         to GAS.  Correct drift between alternatives.
4476 2002-03-28  Richard Henderson  <rth@redhat.com>
4478         PR target/6087
4479         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
4481 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
4483         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
4484         emulation to the linker.
4486 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
4488         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
4489         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4491 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
4493         * combine.c (simplify_and_const_int): Make sure to apply mask
4494         when force_to_mode returns a constant integer.  PR3311.
4496 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4498         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
4500 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4502         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
4503         and Objective-C Dialect Options.
4505 2002-03-28  Richard Henderson  <rth@redhat.com>
4507         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
4508         comparison should be done vs !=0 not >0 return code.  Tidy cases.
4510 2002-03-28  Richard Henderson  <rth@redhat.com>
4512         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
4513         on to c_expand_body.
4514         * c-tree.h (finish_function): Update decl.
4515         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
4517 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4519         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
4521 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
4523         * rtlanal.c: Include flags.h
4524         (may_trap_p): Do not mark FP operations if trapping
4525         if !flag_trapping_math
4526         * Makefile.in (rtlanal.o): Add dependency on flag.h
4527         * ifcvt.c (noce_operand_ok): Avoid the lameness.
4529 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
4531         * mips.md: Use dconst1, not 1.0, as first argument of
4532         REAL_VALUE_LDEXP.  Don't use union real_extract.
4534 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
4536         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
4537         rather than $target.  Heed program_prefix and
4538         program_transform_name.  Search for gas in cross-compiler case too.
4539         "test -x" rather than "test -f".
4540         (gcc_cv_ld): Likewise.
4541         (gcc_cv_nm): Heed program_prefix and program_transform_name.
4542         (gcc_cv_objdump): Likewise.
4543         * configure: Regenerate.
4545 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4547         * Makefile.in (attribs.o): Update.
4548         * attribs.c: Include langhooks.h.
4549         (decl_attributes): Use langhook.
4550         * c-decl.c (insert_default_attributes): Rename.
4551         * c-tree.h (c_insert_default_attributes): New.
4552         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
4553         (LANG_HOOKS_INITIALIZER): Update.
4554         * langhooks.h (struct lang_hooks): New hook.
4555         * tree.h (insert_default_attributes): Remove.
4556 objc:
4557         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4559 2002-03-27  Andreas Schwab  <schwab@suse.de>
4561         * config/i386/i386.c (classify_argument): Also check for
4562         QUAL_UNION_TYPE.
4564 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4566         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
4567         any more.
4569 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4571         * i960.md (ret): Set PC.
4572         (nonlocal_goto): Fix expander.
4573         * builtins.c (epxand_builin_longjmp): Check that we've emitted
4574         some jump or call.
4576 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
4578         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
4579         of libcall regions.
4581 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4583         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
4584         assigning to BLOCK_FOR_INSN directly.
4586 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
4588         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4590 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4592         * c-common.c (c_expand_expr): Fix prototype.
4593         * c-common.h (c_expand_expr): Always declare, update.
4594         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4595         * c-objc-common.c (c_objc_common_init): No global hook.
4596         * expr.c (expand_expr): Use langhook.
4597         * expr.h (enum expand_modifier): Conditionally declare.
4598         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
4599         (LANG_HOOKS_INITIALIZER): Update.
4600         * langhooks.c (lhd_expand_expr): New.
4601         * langhooks.h (struct lang_hooks): New hook.
4602         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
4603         (lang_independent_init): Don't default hook.
4604 objc:
4605         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4607 2002-03-27  Richard Henderson  <rth@redhat.com>
4609         PR target/6054
4610         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4611         TARGET_CONST_GP.  Simplify conditions.
4613 2002-03-27  Richard Henderson  <rth@redhat.com>
4615         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4616         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4617         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4619 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
4621         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4622         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4623         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4624         Remove unnecessary masks.
4625         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4626         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4627         -mwindows, -mdll switches and their negations.
4629 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4631         * gcc-common.c (lang_mark_false_label_stack): Remove.
4632         * ggc.h (lang_mark_false_label_stack): Similarly.
4634 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
4636         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4638         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4639         or __rtems_ is defined.
4641 2002-03-26  Richard Henderson  <rth@redhat.com>
4643         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4644         if a non-trivial load was emitted.
4645         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
4646         in high+extra+low case.
4648 2002-03-26  Richard Henderson  <rth@redhat.com>
4650         * config.gcc (sparc*-solaris): Use float_format=sparc.
4652 2002-03-26  Richard Henderson  <rth@redhat.com>
4654         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4655         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4656         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4657         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4658         (WINT_TYPE_SIZE): Fix at 32.
4660 2002-03-26  Richard Henderson  <rth@redhat.com>
4662         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4663         until after eh landing pad generation.
4664         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4665         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4667 2002-03-26  Richard Henderson  <rth@redhat.com>
4669         * expr.h (ADD_PARM_SIZE): One more convert for INC.
4671 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
4673         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
4674         and warning switches.
4675         (cc1_options):  Likewise.
4677 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
4679         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4680         Restore more of the signal context.  Set no_reg_stack_frame.
4681         * config/ia64/unwind-ia64.c (unw_state_record):
4682         Add no_reg_stack_frame, comments.
4683         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4684         (uw_update_context): Adjust bsp when unwinding from leaf,
4685         but not signal frame.
4687 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
4689         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4691 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4693         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4695 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4697         PR target/5621
4698         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4699         "Add a pool_range attribute", which was lost during the ARM/Thumb
4700         merge.
4702 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4704         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4705         a register into the MAC16 accumulator.
4707 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
4709         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4710         (Warning Options): Document -Wswitch-enum.
4711         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
4712         -Wswitch.
4713         (warn_switch_enum): Define variables.
4714         * flags.h (warn_switch_enum): Declare variables.
4715         * stmt.c (expand_end_case_type): When warn_switch_enum /
4716         -Wswitch-enum, perform switch checks.
4717         Fix PR c/5044.
4719 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4721         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4722         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4723         (reload_muladdsi_compare0_scratch): Delete.
4725 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
4727         * doc/install.texi (*-*-freebsd*): Update.
4729 2002-03-26  Richard Henderson  <rth@redhat.com>
4731         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4732         (SUB_PARM_SIZE): Cast DEC to ssizetype.
4734         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4735         types from the normal argument frame.
4737         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4738         variable sized objects by reference.
4739         (sparc_va_arg): Receive them by reference too.
4741 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
4743         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4744         code to not restoring global registers.
4746 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4748         * Makefile.in (ggc-common.o): Update.
4749         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
4750         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4751         * c-tree.h (c_mark_tree): New.
4752         * ggc-common.c: Include langhooks.h.
4753         (gcc_mark_trees): Use new langhook.
4754         * ggc-callbacks.c: Delete file.
4755         * ggc.h (lang_mark_tree): Remove.
4756         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
4757         (LANG_HOOKS_INITIALIZER): Update.
4758         * langhooks.h (struct lang_hooks): New hook.
4759 objc:
4760         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4762 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4764         * doc/cpp.texi: Exclude entire Top node from printed manual.
4765         Move option index after directive index.  Insert page breaks
4766         before GFDL and concept index.  Index environment variables
4767         with command line options.
4768         * doc/cppenv.texi: Use @vtable for environment variable list.
4769         Add paragraph explaining semantics of empty elements in path
4770         variables.  Exclude a cross-reference to Fishkill from the
4771         manpage.  Remove an unnecessary cross-reference of the entry
4772         right above the referer.  Don't use @anchor in text that goes
4773         into manpage.
4774         * doc/cppopts.texi: Cross-reference the environment variables
4775         section, not the specific environment variable, for consistency.
4777 2002-03-25  Richard Henderson  <rth@redhat.com>
4779         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4780         anywhere in the block.  Don't refer to insns that have been
4781         removed from the chain.  Iterate backward through the new insns.
4782         Don't refer to edges that have been removed.
4784 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
4786         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4787         test for overflow of constant.
4789 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
4791         PR target/2623
4792         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4793         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4794         these patterns on arm_archv4.
4796 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
4798         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4799         int".
4801 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4803         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
4804         float_handled, float_handler, float_signal, set_float_handler,
4805         and do_float_handler.  Set handler for SIGFPE to crash_signal.
4806         * toplev.h: Don't prototype do_float_handler.
4808         * c-lex.c: Fold parse_float into lex_number.  Make warning
4809         about portability of hex float constants more informative, and
4810         don't issue it on top of a syntax error.
4811         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4812         their callers.
4813         * real.h: Define REAL_VALUE_ABS here...
4814         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
4815         simplify_unary_real, simplify_binary_real, and
4816         simplify_binary_is2orm1 into their callers.
4817         * tree.c: Fold build_real_from_int_cst_1 into caller.
4819         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4821         * tsystem.h: Include float.h here...
4822         * libgcc2.c: ... not here.
4824 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
4826         Fixes for: PR bootstrap/3591, target/5676
4827         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4828         defined.  Do not disable exceptions or rtti.
4829         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4830         mcore.h.  Disable exceptions and rtti, since they are not
4831         supported by EPOC.
4833 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
4835         * c-decl.c (maybe_build_cleanup): Remove.
4836         * expr.c (expand_expr): Use langhook.
4837         * langhooks-def.h (lhd_return_null_tree,
4838         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4839         (LANGHOOKS_INITIALIZER): Update.
4840         * langhooks.c (lhd_return_null_tree): New.
4841         * langhooks.h (struct lang_hooks): New hook.
4842         * tree-inline.c (initialize_inlined_parameters): Use langhook.
4843         * tree.h (maybe_build_cleanup): Remove.
4845 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4847         * regrename.c (build_def_use): Move recog_memoized
4848         before extract_insn.
4850 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4852         PR target/6043
4853         * expr.c (emit_group_store): Handle storing into CONCAT.
4855 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4857         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4858         corresponding MATCH_DUP.
4860 2002-03-24  Richard Henderson  <rth@redhat.com>
4862         * unroll.c (unroll_loop): Zero label_map.
4864         * gcse.c: Include except.h.
4865         * Makefile.in (gcse.o): Update.
4867 2002-03-24  Richard Henderson  <rth@redhat.com>
4869         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4870         Do resolve_unique_section before shared data clause.
4872 2002-03-24  Richard Henderson  <rth@redhat.com>
4874         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4876 2002-03-24  Richard Henderson  <rth@redhat.com>
4878         * recog.c (peephole2_optimize): Split blocks when EH insns are
4879         generated in the middle of a block.  Do global life update if
4880         zapped EH edges.
4882 2002-03-24  Richard Henderson  <rth@redhat.com>
4884         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4886 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4888         preprocessor/3951
4889         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4890         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4891         (init_dependency_output): Don't make no_output decision here.
4893 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
4895         * stmt.c (check_for_full_enumeration_handling): Remove tests of
4896         warn_switch.  Update description.
4897         (expand_end_case_type): Call check_for_full_enumeration_handling
4898         when warn_switch.
4900 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4902         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4903         (m68hc11_split_move): Call it to see if the source and destination
4904         operands use the same direction auto inc/dec mode, otherwise make the
4905         source an offsetable memory operand and generate an add.
4907 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4909         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4910         register for operand 2.
4911         ("*subsi3_zero_extendqi"): Likewise.
4912         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4913         bits so that it is compatible with a pop.
4914         ("*andhi3_gen"): Likewise.
4915         ("xorhi3"): Likewise.
4917 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4919         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4920         -pedantic here...
4921         (cpp_post_options): ... not here.
4923 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4924             Aldy Hernandez  <aldyh@redhat.com>
4926         Removal of separate preprocessor cpp0.
4928         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4929         cpp0, install-common): Update.
4930         * c-common.c (flag_preprocess_only): New.
4931         (c_common_init): Preprocess for -E.
4932         * c-common.h (flag_preprocess_only): New.
4933         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4934         * c-objc-common.c (c_init_decl_processing): Exit quickly
4935         for NULL return from c_common_init.
4936         * cpplib.h (cpp_preprocess_file): New.
4937         * cppmain.c (main, general_init, pfile, progname): Remove.
4938         (do_preprocessing): Rename cpp_preprocess_file, don't call
4939         cpp_finish.  Don't close stdout here.
4940         (setup_callbacks): Update prototype.
4941         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4942         Update.
4943         * tradcpp.c (main): Ignore -quiet.
4944 objc:
4945         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4947 2002-03-24  Richard Henderson  <rth@redhat.com>
4949         PR optimization/5742
4950         * machmode.def: Add inner mode field to complex modes.
4951         * config/mips/mips.c (mips_function_value): Always define.  Add
4952         new argument to handle libcalls.
4953         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4954         (FUNCTION_VALUE): Likewise.
4955         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4956         * config/mips/mips-protos.h: Update.
4958 2002-03-23  Richard Henderson  <rth@redhat.com>
4960         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4961         * config/sparc/sparc-protos.h: Update.
4962         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4964 2002-03-23  Richard Henderson  <rth@redhat.com>
4966         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4967         _start or _init begins the text segment.
4969 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4971         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4972         not HOST_WIDEST_INT.
4973         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4975 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4977         PR java/5489
4978         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4979         operand argument to output_return_instruction.
4980         * arm.c (arm_print_operand, case 'd'): If the operand is
4981         const_true_rtx then just return.
4982         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4983         then abort.
4985 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4987         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4988         (Warning Options): Document -Wswitch-default.
4989         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4990         -Wswitch.
4991         (warn_switch_default): Define variable.
4992         (warn_switch): Update comment.
4993         * flags.h (warn_switch_default): Declare variable.
4994         (warn_switch): Update comment.
4995         * stmt.c (expand_end_case): Check for and, when
4996         warn_switch_no_default, warn of a missing default case.
4998 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
5000         * real.h (N): Special case 128 bit doubles.
5002         * combine.c (simplify_comparison): When widening modes, ignore
5003         sign extension on CONST_INTs.
5005 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
5007         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5008         passed to adjust_address.  Fix comment formatting.
5011 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
5013         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
5014         Always make REAL_VALUE_TYPE a struct containing an array of
5015         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
5016         big it is.  Don't declare or use union real_extract.
5018         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
5019         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
5020         (print_operand), config/arm/arm.c (output_move_double),
5021         config/arm/arm.md (consttable_4, consttable_8),
5022         config/romp/romp.c (output_fpops), config/s390/s390.h
5023         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
5024         (xtensa_output_literal): Don't use union real_extract.
5026         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
5027         (sfmode_constant_to_ulong), config/ns32k/merlin.h
5028         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
5029         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
5030         (PRINT_OPERAND): Don't use local version of union
5031         real_extract.
5033         * config/convex/convex.c (check_float_value), config/vax/vax.c
5034         (vax_float_literal), config/m88k/m88k.md (divdf3),
5035         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
5036         config/pdp11/pdp11.c (output_move_quad): Don't do host
5037         arithmetic on target floating point quantities.
5039         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
5040         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
5042         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
5043         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
5045         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
5046         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
5047         INFINITY.
5048         * print-rtl.c (print_rtx): Disable code which needs
5049         floating-point emulator.
5050         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
5051         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
5052         depending on HOST_FLOAT_FORMAT to be defined properly.
5054         * config/1750a/1750a.c (get_double, float_label): Delete.
5055         (print_operand): Delete huge commented-out chunk.  Use
5056         REAL_VALUE_TO_DECIMAL.
5057         * config/1750a/1750a-protos.h: Delete prototypes of deleted
5058         functions.
5059         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
5060         IEEE_FLOAT_FORMAT.
5061         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
5062         Use REAL_VALUE_TO_DECIMAL as ELF version does.
5063         * config/m88k/m88k.c (real_power_of_2_operand,
5064         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
5065         real_extract out of the union; run the input through
5066         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
5067         from that into the union.
5068         * config/pdp11/pdp11.c (output_move_double): Rearrange
5069         parentheses to make automatic indenter happy.
5071         * doc/tm.texi (Cross-compilation): Rename node to "Floating
5072         Point" and rewrite to describe current situation.  Also adjust
5073         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
5074         match code.
5075         * doc/rtl.texi: Adjust cross reference.
5077 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
5079         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
5080         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
5081         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
5082         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
5083         prevent use of sp as a reload register.
5084         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
5085         non_acc_reg_operand.
5086         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
5087         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
5088         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5089         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
5091 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5093         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
5094         * cpplex.c (unterminated): Delete.
5095         (parse_string): No string literal may extend over multiple
5096         lines.  Suppress the error when preprocessing assembly.
5097         * cppmain.c (scan_translation_unit): Strings are single-line.
5099         * doc/cpp.texi: Update to match.
5101 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
5103         PR optimization/5854
5104         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
5105         Shut up warnings.
5106         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
5107         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
5108         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
5109         const0 if scratch register was not allocated.
5110         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
5111         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
5112         with GEN_INT (...).
5113         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
5114         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
5115         with GEN_INT (...) everywhere.  Remove constraints in define_split
5116         patterns.
5117         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
5118         require scratch register for setting 0 into regs/non-pushable memory.
5120 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
5122         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
5123         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
5125 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
5127         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
5128         * cppinit.c (cpp_create_reader):  On by default.
5129         (cpp_handle_option):  Handle -W[no-]endif-labels.
5130         (cpp_post_options):  Also enable if -pedantic.
5131         * cpplib.c (do_else):  Use it.
5132         (do_endif):  Likewise.
5133         * doc/cppopts.texi:  Document new option.
5134         * doc/invoke.texi:  Document new option.
5136 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
5138         * config/i386/i386.c, config/i386/i386.md: Change all occurences
5139         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
5141 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
5143         * flow.c (calculate_global_regs_live): Clear aux fields of
5144         ENTRY and EXIT.
5146 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
5148         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
5149         REG or MEM subregs, pass rtx * instead of rtx to it.
5150         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
5151         rtx * instead of rtx to alter_subreg.
5152         * config/m32r/m32r.c (gen_split_move_double): Likewise.
5153         * config/pj/pj.c (pj_output_rval): Likewise.
5155 2002-03-22  Richard Henderson  <rth@redhat.com>
5157         PR target/3177
5158         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
5159         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
5160         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
5161         (ia64_expand_prologue): Look at int_regs, not words, for number
5162         of incomming int regs.
5164 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
5166         * expr.c (expand_expr): A RESULT_DECL is part of a call.
5168 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
5170         * toplev.c (flag_loop_optimize, flag_crossjumping):
5171         New static variables.
5172         (rest_of_compilation): Conditionalize crossjumping and
5173         loop optimizer.
5174         (parse_options_and_default_flags): Default loop_optimize and
5175         crossjumping.
5176         (lang_independent_options): Add -fcrossjumping and -floop-optimize
5177         * invoke.texi (crossjumping, loop-optimize): Document.
5179 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
5181         * real.c (eiisneg): Move outside #ifdef NANS.
5183 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5185         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
5186         frequencies match; avoid match on different loop depths.
5187         (try_crossjump_to_bb): Kill tests that no longer brings time
5188         savings.
5189         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
5190         updating code.
5191         (split_edge): Likewise.
5193         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
5194         variable.
5196         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
5197         * cfgrtl.c: Include insn-config.h
5198         (split_block) Dirtify block in presence of conditional execution
5200 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
5202         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
5203         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
5204         (function_arg): Constify CUMULATIVE_ARGS.
5205         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
5206         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
5207         (UNITS_PER_DOUBLE): New macro.
5208         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
5209         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
5210         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
5211         fp_regs and stack_words.
5212         (EABI_FLOAT_VARARGS_P): New macro.
5213         * config/mips/mips.c (struct mips_arg_info): New.
5214         (mips_arg_info): New function.
5215         (function_arg_advance): Use it.  Add adjustment instructions here
5216         rather than in function_arg.
5217         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
5218         for VOIDmode at the beginning of the function.
5219         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
5220         (function_arg_pass_by_reference): Likewise.
5221         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
5222         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
5223         (mips_va_start): Likewise.  Use the new stack_words field of
5224         CUMULATIVE_ARGS to set up overflow area.  Reformat.
5225         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
5226         doubles and other types, aligning the overflow pointer for non-doubles
5227         too.  Remove some code duplication.  Replace hard-coded constants.
5229 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
5231         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
5232         (CLASS_UNITS): Undefine.
5233         (CLASS_MAX_NREGS): Use FP_INC.
5234         * config/mips/mips.c (compute_frame_size): Likewise.
5235         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
5237 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5239         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
5240         prototype, and handle lexing numbers and identifiers.
5241         (parse_identifier): Update to new form of parse_slow.
5242         (parse_number): Fast path only, use parse_slow otherwise.
5243         (_cpp_lex_direct): Update calls to parse_number.
5245 2002-03-21  DJ Delorie  <dj@redhat.com>
5247         * bb-reorder.c (make_reorder_chain_1): Protect against
5248         when redundant edges are omitted.
5249         * predict.c (dump_prediction): Likewise.
5251 2002-03-21  Richard Henderson  <rth@redhat.com>
5253         PR target/5996
5254         * fixinc/inclhack.def (solaris_stdio_tag): New.
5255         * fixinc/fixincl.x: Regenerate.
5257 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
5259         PR c/5597
5260         * c-typeck.c (process_init_element): Flag non-static
5261         initialization of a flexible array member as illegal.
5263 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
5265         * config/rs6000/t-linux64: New.
5266         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
5267         t-ppccomm.  Use t-rs6000 and t-linux64.
5268         (powerpc64-*-gnu* <tmake_file>): Likewise.
5269         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
5270         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
5271         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
5273 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
5275         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
5276         flag_really_no_inline instead of optimize == 0.
5278         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
5280         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
5282         * flags.h (flag_really_no_inline): New.
5284         * c-common.c (c_common_post_options): Initialize
5285         flag_really_no_inline.
5287         * toplev.c (flag_really_no_inline): New.
5289 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
5291         * config/avr/avr.md (length): Fix length computation for
5292         conditional branches.
5294 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5296         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
5297         sdbout.o, profile.o): Update.
5298         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
5299         langhook.
5300         * c-common.h (gettags): Move here from tree.h.
5301         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
5302         insert_block, getdecls, kept_level_p, global_bindings_p): New.
5303         * dbxout.c (dbxout_init): Use getdecls langhook.
5304         * expr.c (expand_expr): Use insert_block langhook.
5305         * fold-const.c: Include langhooks.h.
5306         (fold_range_test, fold_binary_op_with_conditional_arg,
5307         fold): Use global_bindings_p langhook.
5308         * integrate.c (expand_inline_function): Use insert_block langhook.
5309         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
5310         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
5311         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
5312         LANG_HOOKS_GETDECLS): New.
5313         (LANG_HOOKS_INITIALIZER): Update.
5314         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
5315         langhook.
5316         * langhooks.h (struct lang_hooks_for_decls): New.
5317         (struct lang_hooks): Update.
5318         * profile.c: Include langhooks.h.
5319         (output_func_start_profiler): Use new langhooks.
5320         * sdbout.c: Include langhooks.h.
5321         (sdbout_init, sdbout_finish): Use getdecls langhook.
5322         * stmt.c: Include langhooks.h.
5323         (expand_fixup, fixup_gotos): Use new langhooks.
5324         * stor-layout.c: Include langhooks.h.
5325         (variable_size): Use global_bindings_p langhook.
5326         * toplev.c (compile_file): Use getdecls langhook.
5327         * tree-inline.c (remap_block): Use insert_block langhook.
5328         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
5329         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
5331 2002-03-21  Richard Henderson  <rth@redhat.com>
5333         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
5334         constants in .data when -fpic.
5336 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5338         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
5339         where appropriate.
5341 2002-03-21  Tom Tromey  <tromey@redhat.com>
5343         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
5345 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5347         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
5349         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
5351 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
5352             Richard Henderson  <rth@redhat.com>
5354         PR c/5354
5355         * c-common.c (c_expand_expr): Preserve result of a statement
5356         expression if needed.
5358 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
5360         PR bootstrap/4195
5361         * genrecog.c (maybe_both_true_mode): Remove.
5362         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
5363         * machmode.def (Pmode): Likewise.
5365 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
5367         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
5368         (nonlocal_mentioned_p_1): New function.
5369         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
5370         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
5371         (mark_constant_function): Recognize pure functions.
5372         * rtl.h (global_reg_mentioned_p): New prototype.
5373         * rtlanal.c (global_reg_mentioned_p,
5374         global_reg_mentioned_p_1): New function.
5376 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5378         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5379         UNIX assert.h.
5380         * fixinc/fixincl.x: Regenerate.
5382 2002-03-20  Jason Merrill  <jason@redhat.com>
5384         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5386 2002-03-20  Michael Meissner  <meissner@redhat.com>
5388         * doc/invoke.texi (Optimize Options): Document that -O2 sets
5389         -fstrict-aliasing.
5391 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
5393         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5394         ".literal_position" directive before the constant pool.
5396 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5398         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5399         Add Craig Rodrigues.
5400         Add Brad Lucier to testers.
5402 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
5404         PR target/4792
5405         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
5406         to if_then_else.
5407         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
5408         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
5409         instead of insn_extract.
5411 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
5413         PR bootstrap/4192
5414         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
5416         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
5417         stmt if some case has been output.
5419 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
5421         PR c/5972
5422         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
5423         movsfcc_1, movdfcc_1): Add %O2.
5424         * config/i386/i386.c (print_operand): Handle %ON.
5425         Print . before float condition codes in Sun as cmov syntax.
5426         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
5427         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
5428         no longer true.
5430 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
5432         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
5433         return instruction if PC was popped.
5435 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
5437         * config/xtensa/xtensa.md: Remove unused type attributes.
5438         (adddi_carry, subddi_carry): Change type attribute to "multi".
5440 2002-03-19  Dale Johannesen  <dalej@apple.com>
5442         PR optimization/5999, middle-end/5731
5443         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
5444         multiplications by reciprocals.
5446 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5448         * Makefile.in: Update.
5449         * c-common.c: Include langhooks.h.
5450         (inline_forbidden_p): Use new hook.
5451         * diagnostic.c: Include langhooks.h.
5452         (format_with_decl, announce_function,
5453         default_print_error_function): Use new hook.
5454         * dwarf2out.c (dwarf2_name): Use new hook.
5455         * function.c: Include langhooks.h.
5456         (init_function_start): Use new hook.
5457         * langhooks-def.h (lhd_decl_printable_name): New.
5458         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
5459         (LANGHOOKS_INITIALIZER): Update.
5460         * langhooks.c (lhd_decl_printable_name): New.
5461         * langhooks.h (struct lang_hooks): New hook.
5462         * toplev.c (decl_name, decl_printable_name): Remove.
5463         (open_dump_file): Use new hook.
5464         (process_options): Remove old hook.
5465         * tree.h (decl_printable_name): Remove.
5466 objc:
5467         * objc-act.c (objc_init): Remove old hook.
5468         (objc_printable_name): Export.
5469         * objc-act.h (objc_printable_name): New.
5470         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
5472 2002-03-19  Jim Blandy  <jimb@redhat.com>
5474         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
5475         the start_source_file debug hook, not the current line number.
5477 2002-03-19  Richard Henderson  <rth@redhat.com>
5479         * flow.c (EH_USES): Provide default.
5480         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
5481         * doc/tm.texi (EH_USES): New.
5483         * config/ia64/ia64.c (ia64_eh_uses): New.
5484         * config/ia64/ia64-protos.h: Update.
5485         * config/ia64/ia64.h (EH_USES): New.
5487 2002-03-19  Richard Henderson  <rth@redhat.com>
5489         * varasm.c (output_constant_def): Fix stupid typo.
5491 2002-03-19  Richard Henderson  <rth@redhat.com>
5493         PR 5879
5494         * except.c (current_function_has_exception_handlers): New.
5495         * except.h: Declare it.
5496         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
5497         Combine tests that disable all sibcalls for the function.
5499 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
5501         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
5502         for INTEGER_CST.
5504 2002-03-19  Richard Henderson  <rth@redhat.com>
5506         PR 5977, 5991
5507         * config/ia64/ia64.c: Revert 2002-03-01 patch.
5508         * config/ia64/ia64.h (INIT_EXPANDERS): New.
5510 2002-03-19  Jim Blandy  <jimb@redhat.com>
5512         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
5513         name, even if the replacement list contains no tokens, as required
5514         by Dwarf.
5516 2002-03-19  Jason Merrill  <jason@redhat.com>
5518         * varasm.c (globalize_decl): Get the name from the RTL, not
5519         DECL_ASSEMBLER_NAME.
5521         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
5523 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
5525         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
5526         subdi_carry): Define.
5528 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
5530         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
5531         about -fpic/-fPIC if extra_warnings set.
5533 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
5535         * expr.c (expand_expr): Sign-extend CONST_INT generated from
5536         TREE_STRING_POINTER.
5537         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
5539 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5541         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
5542         in favor of SP if FRAME_POINTER_REQUIRED is false.
5544 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
5546         * emit-rtl.c (gen_int_mode): New function.
5547         * rtl.h: Prototype for it.
5548         * combine.c (make_extraction, simplify_comparison), expmed.c
5549         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
5550         (convert_modes, store_field), optabs.c (expand_fix),
5551         simplify-rtx.c (neg_const_int, simplify_unary_real),
5553         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
5554         Use it instead of GEN_INT (trunc_int_for_mode (...)).
5556 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
5558         PR c/5656
5559         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
5560         convert_parm_for_inlining.
5561         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
5562         Define.
5563         * langhooks-def.h: Likewise.
5564         * objc/objc-lang.c: Likewise.
5565         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
5566         function.
5567         * tree-inline.c (initialize_inlined_parameters):
5568         Call convert_parm_for_inlining lang hook if needed.
5569         * c-typeck.c (c_convert_parm_for_inlining): New function.
5570         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
5572 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
5574         * calls.c (precompute_arguments): Do not assume that temporaries
5575         can be destroyed after expanding the argument.
5576         (expand_call): Likewise.
5578 2002-03-15  Eric Christopher  <echristo@redhat.com>
5580         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
5581         Fix register preference on last change.
5582         * config/mips/mips.c (mips_return_in_memory): New function.
5583         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
5584         * config/mips/mips-protos.h: Declare.
5585         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
5586         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
5588 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
5590         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
5591         a register too.
5592         (anddi3, iorsi3): Likewise.
5594         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
5595         use %gprel for symbols that are going to be placed in linkonce
5596         sections.
5598         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
5599         RETURN_ADDRESS_POINTER_REGNUM to $ra.
5600         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
5601         not needed.  Disregard leaf_function_p().
5602         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
5603         mips16 frame pointer.
5604         * config/mips/mips.md (store ra): Only to small SP offsets.
5605         2001-08-22  Graham Stott  <grahams@redhat.com>
5606         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
5607         return a REG rtx for the return address register.
5609 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
5611         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
5612         constant-pool addresses as "mode-dependent".
5613         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
5615 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
5617         PR target/5740
5618         * expr.c (emit_group_load): Use extract_bit_field if
5619         needed for CONCAT arguments.
5621 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
5623         PR target/4863
5624         * arm.md (tablejump): Make this a define_expand.  For PIC add the
5625         offset to the base of the table.
5626         (thumb_tablejump): Matcher for Thumb tablejump insn.
5627         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5628         as the difference of two labels.
5629         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5630         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5631         tables in the code.
5632         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5633         * arm.c (get_jump_table_size): If the table is not in the text
5634         section, return zero.
5636 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
5638         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5639         of gen_rtx_SUBREG.
5640         (arm_reload_out_hi): Use gen_lowpart instead of
5641         gen_rtx_SUBREG to access QImode components.
5642         * config/arm/arm.md: Disable zero_extend split for QImode
5643         subregs in BIG_ENDIAN mode.
5644         (storehi_bigend): Match use of least significant byte.
5645         (storeinthi): Remove extraneous SUBREG.
5646         Add missing construction of operands[2].
5647         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5648         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5649         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5651 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
5653         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5654         any_operand.
5656 2002-03-17  Richard Henderson  <rth@redhat.com>
5658         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5659         explicitly.
5661 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
5663         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5664         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5666 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5668         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5670         * predict.c (estimate_bb_frequencies): Delete unused variables.
5672 2002-03-17  Richard Henderson  <rth@redhat.com>
5674         * config/ia64/ia64.c (ia64_attribute_table): Move before
5675         targetm definition.  Make static.
5677 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5679         * c-common.h (yyparse, c_common_parse_file): New.
5680         * c-lang.c: Include c-common.h.
5681         (LANG_HOOKS_PARSE_FILE): Redefine.
5682         * c-lex.c: Include c-common.h.
5683         (yyparse): Rename c_common_parse_file.  Call yyparse.
5684         * c-parse.in (yyparse): Remove macro.
5685         * c-tree.h (yyparse_1): Remove.
5686         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5687         (LANG_HOOKS_INITIALIZER): Update.
5688         * langhooks.h (struct lang_hoooks): New hook parse_file.
5689         * toplev.c (compile_file): Use parse_file hook.
5690         * tree.h (yyparse): Remove.
5691         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5693 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
5695         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5696         float_truncate, not fix.
5697         ("*truncdfsf2_real"): Ditto.
5698         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5700         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5702 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
5704         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5705         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
5706         where appropriate.  Make the second reference to
5707         leaf_function_p a function call, as intended.  Reindented.
5709         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5710         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5712         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5713         add register to non-constant into sp.
5715         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5716         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5717         (mips16_gp_pseudo_rtx): Lose.
5718         (INIT_EXPANDERS): Deleted.
5719         * config/mips/mips.c (mips_init_machine_status): New.
5720         (mips_free_machine_status): New.
5721         (mips_mark_machine_status): New.
5722         (override_options): Set them.
5723         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5724         (struct machine_function): ... new.  Replaced all references.
5725         (mips_add_gc_roots): Don't mark them.
5726         (embedded_pic_fnaddr_reg): New, extracted from...
5727         (embedded_pic_offset): ... here.
5728         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5729         (movsi): Likewise.
5731 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5733         * cppinit.c: Revert -MD removal.
5735 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5737         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
5738         soft registers by default for 68HC12.
5739         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
5740         when compiling with -fomit-frame-pointer.
5741         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
5742         (expand_epilogue): Likewise.
5743         (m68hc11_gen_rotate): Use exg when rotating by 8.
5745 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5747         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
5748         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
5749         (splits): Remove unused add splits.
5750         ("*addhi3_68hc12"): Tune constraints.
5751         ("addhi_sp"): Try to use X instead of Y in all cases and if the
5752         constant fits in 8-bits and D is dead use abx/aby instructions.
5753         ("*addhi3"): Remove extern declaration of ix_reg.
5754         ("*subsi3"): Optimize and provide new split.
5755         ("subhi3"): Cleanup.
5756         ("*subhi3_sp"): Avoid saving X if we know it is dead.
5757         (arith splits): For 68hc12 save the address register on the stack
5758         and do the arithmetic operation with a pop.
5760 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5762         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5763         allocating QImode in address registers.
5764         ("*movqi_m68hc11"): Likewise.
5766 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
5768         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5770 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5772         * cppinit.c (print_help): Display -MD and -MMD.
5773         Don't display usage string.  Update assertion syntax and
5774         typo.
5775         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5776         (cpp_handle_option): Update.
5778 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
5780         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5781         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5782         and define it so that regardless of target CPU size,
5783         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5784         of "int" rather than "long."
5786 2002-03-15  Richard Henderson  <rth@redhat.com>
5788         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5789         size as a tree.
5791 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5793         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5794         ("tstqi" split): Avoid using memory for tstqi on address register.
5795         (splits): Remove constraints.
5796         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5797         ("cmpdf", "cmpsf"): Remove since not used.
5798         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5799         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5801 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5803         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5804         ("neghi2"): Tighten constraints.
5805         ("one_cmplsi2"): Optimize and simplify split.
5806         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5808 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5810         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5811         and split of AND operation to clear the upper bits.
5812         ("*logicalsi3_zextqi"): Likewise.
5813         ("*logicallhi3_zexthi_ashift8"): Likewise.
5814         ("*logicalsi3_silshr16"): Likewise.
5815         ("logicalsi3_silshl16"): Likewise.
5816         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5818 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5820         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5821         (m68hc11_indirect_p): New function.
5822         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5823         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5824         TARGET_M6812.
5825         (asm_print_register): Likewise.
5826         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5827         (m68hc11_indirect_p): Declare.
5828         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5829         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5830         (TARGET_SWITCHES): New option -mrelax.
5831         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5832         destination.
5833         ("iorsi3", "xorsi3"): Likewise.
5834         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5835         ("*andhi3_mem"): New to handle destination in memory with bclr
5836         and a scratch register.
5837         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5838         ("*andhi3_const"): New when operand2 is constant.
5839         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5840         ("*andhi3_gen"): Cleanup of the old "andhi3".
5841         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5842         ("xorqi3"): Update constraints.
5844 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5846         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5847         for reg_equiv_memory_loc when the operand is a register that does
5848         not get a hard register (stack location).
5849         (tst_operand): After reload, accept all memory operand.
5850         (symbolic_memory_operand): Fix detection of symbolic references.
5851         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5852         accept symbols and any constant.
5854 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5856         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5857         note on the insn that sets the soft frame register.
5858         (must_parenthesize): ix and iy are also reserved names.
5859         (print_operand_address): One more place where parenthesis are required
5860         to avoid confusion with register names.
5861         (m68hc11_gen_movhi): Allow push of stack pointer.
5862         (m68hc11_check_z_replacement): Fix handling of parallel with a
5863         clobber.
5864         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5865         the replacement register is.
5866         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5867         and D8_REGS classes.
5868         (MODES_TIEABLE_P): All modes are tieable except QImode.
5870 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5872         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5873         (___subdi3): Likewise.
5874         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5875         (__map_data_section): Optimize 68hc11 case.
5877 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5879         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5880         than a shift to avoid adding a register with itself.
5881         (m68hc11_memory_move_cost): Take into account NO_REGS.
5882         (m68hc11_register_move_cost): Update and use memory move cost
5883         for soft registers.
5884         (m68hc11_address_cost): Make cost of valid offset not 0 so that
5885         it gives more opportunities to cse to optimize.
5886         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5887         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5889 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
5891         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5892         * c-common.def (CLEANUP_STMT): New tree node.
5893         * c-common.h (CLEANUP_DECL): New macro.
5894         (CLEANUP_EXPR): Likewise.
5895         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5896         * expr.c (expand_expr): Tidy.
5897         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5898         * tree-inline.c (initialize_inlined_parameters): Clean up
5899         new local variables.
5901 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5903         PR bootstrap/4128
5904         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5905         before movrXX only, use reg_overlap_mentioned_p.
5906         Only special case NE if just one insn can be generated.
5908 2002-03-15  Jason Merrill  <jason@redhat.com>
5910         * varasm.c (assemble_variable): Call resolve_unique_section before
5911         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
5912         of error_mark_node.
5914 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5916         PR target/5170
5917         * arm.md (split pattern for thumb shiftable immediates): Add comment
5918         explaining non-obvious test.
5920 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5922         PR target/5712
5923         * arm.md (movaddr, movaddr_insn): Delete.
5925 2002-03-15  Jason Merrill  <jason@redhat.com>
5927         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5928         -fkeep-static-consts doesn't apply to comdats.
5930 2002-03-14  Richard Henderson  <rth@redhat.com>
5932         * c-decl.c: Include c-pragma.h.
5933         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5934         (finish_function): Tidy.
5935         * c-pragma.c: Include c-common.h.
5936         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5937         (handle_pragma_weak): Use them.
5938         (init_pragma): Register pending_weaks.
5939         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5940         * print-tree.c (print_node): Print DECL_WEAK.
5941         * varasm.c (mark_weak_decls): Remove.
5942         (remove_from_pending_weak_list): Remove.
5943         (add_weak): Remove.
5944         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5945         (weak_decls): Make a tree_list.
5946         (declare_weak): Cons weak_decls directly.
5947         (globalize_decl): Remove weak_decls elements directly.
5948         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5949         symbols.  Don't pretend to handle aliases.
5950         (init_varasm_once): Update weak_decls registry.
5951         * Makefile.in: Update dependencies.
5953 2002-03-14  Richard Henderson  <rth@redhat.com>
5955         PR target/5312
5956         * config/ia64/ia64.c: Include tm_p.h last.
5957         (gen_nop_type): Remove duplicate definition.
5958         (cycle_end_fill_slots): Set sched_data for second L slot.
5959         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5960         (nop_cycles_until): Fix typos.
5962 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5964         PR optimization/5891
5965         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5967 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5969         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5970           descriptors correctly.
5972 2002-03-14  Michael Meissner  <meissner@redhat.com>
5974         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5975         100, allowing MAX_UNROLLED_INSNS to be overridden.
5977         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5978         --param.
5980         * unroll.c (params.h): Include.
5981         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5983         * doc/invoke.texi (--param max-unroll-insns): Document.
5985         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5987 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5989         * arm.md: Fix warnings about constraints in peepholes and splits.
5991 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5993         * cpphash.h (struct lexer_state): Remove line_extension member.
5994         * cpplib.c (dequote_string, do_linemarker): New functions.
5995         (linemarker_dir): New data object.
5996         (DIRECTIVE_TABLE): No longer need to interpret #line in
5997         preprocessed source.  Delete obsolete comment about return
5998         values of handlers.
5999         (end_directive, directive_diagnostics, _cpp_handle_directive):
6000         Don't muck with line_extension.
6001         (directive_diagnostics): No need to issue warnings for
6002         linemarkers here.
6003         (_cpp_handle_directive): Issue warnings for linemarkers here,
6004         when appropriate.  Dispatch linemarkers to do_linemarker, not
6005         do_line.
6006         (do_line): Code to handle linemarkers split out to do_linemarker.
6007         Convert escape sequences in filename argument, both places.
6009         * cppmacro.c (quote_string): Rename cpp_quote_string and
6010         export.  All callers changed.
6011         * cpplib.h (cpp_quote_string): Prototype.
6012         * cppmain.c (print_line): Call cpp_quote_string on to_file
6013         before printing it.
6015         * doc/cpp.texi: Document that escapes are now interpreted in
6016         #line and in linemarkers, and that non-printing characters are
6017         converted to octal escapes when linemarkers are generated.
6019 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
6021         * emit-rtl.c (try_split): Use delete_insns.
6022         * recog.c (split_all_insns): Fix terminating condition.
6024 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
6025             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6027         PR target/5828
6028         * arm.c (arm_output_epilogue): Fix floating-point register save
6029         adjustment when using a frame pointer.
6031 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
6033         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
6034         * config/mips/mips.c (compute_frame_size): Retrofit them here.
6035         (save_restore_insns, mips_expand_epilogue): And here.
6036         (build_mips16_call_stub): And here.
6037         (mips_function_value): Use the new macros to decide whether a single
6038         or complex float can be returned in floating-point registers.  Return
6039         a parallel rtx in the complex case.
6041 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
6043         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
6044         call after liveness analysis.
6046         * recog.c (split_insn): Use delete_insn_and_edges.
6048         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
6049         instructions to have branch prediction notes.
6050         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
6052 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
6054         * configure.in: Don't pass -Wno-long-long to a ADA compiler
6055         that doesn't support it.
6056         * configure: Regenerate.
6058 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6060         PR target/5626
6061         * config/sparc/sparc.md (normal_branch, inverted_branch,
6062         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
6063         inverted_fp_branch): Adjust calls to output_cbranch.
6064         Set length attribute.
6065         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
6066         output_v9branch.  Set length attribute.
6067         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
6068         predicates.
6069         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
6070         (output_cbranch): Likewise.  Handle far branches.
6071         (output_v9branch): Handle far branches.
6072         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
6073         Adjust prototypes.
6074         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
6075         noov_compare64_op predicates.
6077 2002-03-13  Jason Merrill  <jason@redhat.com>
6079         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
6080         into the function and constify it.
6081         * gthr-dce.h, gthr-solaris.h: Likewise.
6083 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
6085         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
6086         * config/rs6000/rs6000.c (rs6000_va_arg): Use
6087         std_expand_builtin_va_arg if not ABI_V4.
6089 2002-03-13  Jason Merrill  <jason@redhat.com>
6091         * varasm.c (globalize_decl): New fn.
6092         (assemble_start_function): Use it.
6093         (asm_emit_uninitialized): Use it.
6094         (assemble_alias): Use it.
6095         (assemble_variable): Use it.
6097 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
6099         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
6100         2002-03-12 internal visibility change.
6101         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
6102         visibility into SYMBOL_REF_FLAG.
6104 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
6106         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
6107         VOIDmode operand.  Add compile-time optimization for constant results.
6109 2002-03-12  Jason Merrill  <jason@redhat.com>
6111         * c-typeck.c (convert_for_assignment): Don't allow conversions
6112         between pointers and references.  Only allow lvalues to convert to
6113         reference.
6115 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
6117         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
6118         before prologue, to avoid scheduling problems.
6120 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6122         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6123         (ELIMINABLE_REGS): Add sfp->sp.
6124         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
6126 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6128         PR optimization/5892
6129         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
6131 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6133         * loop.c (basic_induction_var): Don't call convert_modes if mode
6134         classes are different.
6136 2002-03-12  Richard Henderson  <rth@redhat.com>
6138         PR optimization/5901
6139         * function.c (reposition_prologue_and_epilogue_notes): Position
6140         the markers after/before the last/first insn not deleted.
6142 2002-03-12  Richard Henderson  <rth@redhat.com>
6144         PR optimization/5878
6145         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
6146         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
6147         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6149         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
6150         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
6151         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
6153         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
6154         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
6155         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
6156         also.  Don't set it if not flag_pic.
6157         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
6158         to be INVALID_REGNUM when not used.
6160 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
6162         * expmed.c (store_bit_field): Reset alias set for memory.
6163         (extract_bit_field): Same.
6165 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6167         * c-common.c (c_tree_code_type, c_tree_code_length,
6168         c_tree_code_name, add_c_tree_codes): Delete.
6169         * c-common.h (add_c_tree_codes): Delete.
6170         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
6171         Define.
6172         * c-objc-common.c (c_objc_common_init): Don't call
6173         add_c_tree_codes, instead set lang_unsafe_for_reeval.
6174         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
6175         objc_tree_code_name, add_objc_tree_codes): Delete.
6176         (objc_init): Don't call add_objc_tree_codes.
6177         * objc/objc-lang.c (tree_code_type, tree_code_length,
6178         tree_code_name): Define.
6179         * toplev.c (lang_independent_init): Don't set
6180         tree_code_length[IDENTIFIER_NODE].
6181         * tree.c (tree_code_type, tree_code_length, tree_code_name):
6182         Delete definitions, moved to language front-ends.
6183         * tree.def (IDENTIFIER_NODE): Hardwire the length.
6184         * tree.h (tree_code_type, tree_code_length, tree_code_name):
6185         Const-ify.
6186         (tree_code_length): Change type to unsigned char.
6188 2002-03-12  Richard Henderson  <rth@redhat.com>
6190         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
6191         internal visibility change.
6193 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
6195         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
6196         validize_mem() instead of change_address to avoid clobbering
6197         memory attributes.
6199 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6201         * c-lex.h (position_after_whitespace): Remove.
6203 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
6205         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
6206         (lex_string): Use unsigned char pointers.
6208 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
6210         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
6211         is not a valid memory_operand.
6213 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
6215         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
6216         * config/xtensa/lib1funcs.asm: Fix copyright to include
6217         special case for libgcc files.
6218         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
6219         (__divsi3): Likewise.
6220         (__umodsi3): Likewise.
6221         (__modsi3): Likewise.
6222         * config/xtensa/lib2funcs.S: Fix copyright to include
6223         special case for libgcc files.
6225 2002-03-12  Tom Rix  <trix@redhat.com>
6227         * collect2.c (resolve_lib_name): Move outside of
6228         OBJECT_FORMAT_COFF ifdef.
6229         (ignore_library): Same.
6231 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
6233         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
6235 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
6237         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
6238         to function_section before writing out the constant pool.
6240 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
6242         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
6243         zero_constant.
6244         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
6246 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
6248         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
6249         (adddi3): Likewise.
6250         (movdf): Likewise.
6251         (movdi): Likewise.
6252         (cmpsi splitter): Likewise.
6253         (modsi3): Fail if <= 0.
6254         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
6255         redundant test when HOST_BITS_PER_WIDE_INT != 32.
6256         (reg_or_sub_cint64_operand): Likewise.
6257         (num_insns_constant_wide): Optimize sign extension.
6258         (rs6000_legitimize_address): Likewise.
6260 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
6262         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6263         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6265 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
6267         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
6268         address calculation.
6270 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
6272         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
6273         scratch register to DImode / TImode.
6274         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
6275         register used does not overlap the target.
6277 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6279         * Makefile.in (debug.o): Depend on debug.h.
6280         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
6281         * debug.c (do_nothing_debug_hooks): Likewise.
6282         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
6283         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
6284         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
6285         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6286         * dwarfout.c (dwarf_debug_hooks): Likewise.
6287         * integrate.c (output_inline_function): Likewise.
6288         * objc/objc-act.c (synth_module_prologue): Likewise.
6289         * sdbout.c (sdb_debug_hooks): Likewise.
6290         * toplev.c (debug_hooks): Likewise.
6291         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6293 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6295         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
6296         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
6297         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
6298         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
6299         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
6300         * defaults.h (POINTER_SIZE): Define.
6301         * doc/tm.texi (POINTER_SIZE): Document default.
6303 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6305         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
6307 2002-03-11  Richard Henderson  <rth@redhat.com>
6309         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
6310         if rebuild_label_notes_after_reload.
6312 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
6314         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
6315         emit pic register load if "internal" visibility.
6316         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
6317         (cris_expand_builtin_va_arg): Do all computations on trees.
6319 2002-03-11  Richard Henderson  <rth@redhat.com>
6321         * rtlanal.c: Include recog.h.
6322         (keep_with_call_p): Fix thinko.
6323         * Makefile.in (rtlanal.o): Update dependencies.
6325 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
6327         * genflags.c (gen_insn): Use IS_VSPACE.
6328         * genoutput.c (output_insn_data): Likewise.
6329         (process_template): Likewise.
6331 2002-03-11  Richard Henderson  <rth@redhat.com>
6333         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
6335 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6337         * Makefile.in: Update.
6338         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
6339         Update documentation.
6340         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
6341         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
6343 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
6345         * Makefile.in: Give texi2pod its input file as a command line
6346         argument, not on stdin.
6348 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
6349             Daniel Berlin  <dan@dberlin.org>
6351         C++ alias analysis improvement.
6352         * alias.c (record_component_aliases): Record aliases for base
6353         classes too.
6355 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
6357         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
6359 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
6361         * toplev.c (vms_fopen): Remove, not needed.
6363         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
6365         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
6367         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
6368         for FP, already done later.
6370         * toplev.c (debug_args): Add entry for VMS_DEBUG.
6371         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
6373 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
6375         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
6376         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
6377         LARGEST_EXPONENT_IS_NORMAL for the given mode.
6378         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
6379         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
6380         (ediv, emul, eldexp, esqrt): Likewise.
6381         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
6382         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
6383         (saturate): New function.
6384         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
6385         (make_nan): Use a saturation value instead of a NaN if
6386         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
6387         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
6388         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
6389         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
6390         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
6391         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
6392         !ROUND_TOWARDS_ZERO.
6393         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
6394         (ROUND_TOWARDS_ZERO): Document.
6396 2002-03-11  Andreas Jaeger  <aj@suse.de>
6398         * cfg.c (dump_flow_info): Remove unused variable.
6400 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
6402         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
6403         computations on trees.
6405 2002-03-10  Richard Henderson  <rth@redhat.com>
6407         PR 5693:
6408         * reload.c (copy_replacements_1): New.
6409         (copy_replacements): Use it to recurse through the rtx.
6411 2002-03-10  Richard Henderson  <rth@redhat.com>
6413         * loop.c (strength_reduce): Compute number of iterations as
6414         unsigned HOST_WIDE_INT.
6416 2002-03-10  Richard Henderson  <rth@redhat.com>
6418         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
6419         to move away from the end of the block.
6421 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
6423         PR preprocessor/5899
6424         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
6426 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6428         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
6430         * attribs.c (decl_attributes): Fix signed/unsigned warning.
6432 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
6434         * config/mmix/mmix.c: Improve comments.
6435         (mmix_target_asm_function_prologue): Drop variable
6436         empty_stack_frame.  Don't allocate unused slot above fp.
6437         (mmix_target_asm_function_epilogue): Mirror prologue changes.
6438         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
6439         brace in first column.
6440         (enum reg_class): Ditto.
6441         (FIRST_PARM_OFFSET): Now 0.
6442         (USER_LABEL_PREFIX): Remove #if 0:d definition.
6444 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6446         * combine.c (make_extraction): Fix error in last change.
6448 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6450         * c4x.c (c4x_fp_reglist): Const-ify.
6451         * cris.c (cris_print_operand): Likewise.
6452         * i386.c (ix86_va_arg): Likewise.
6453         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
6454         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
6455         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
6456         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
6457         * mcore.h (regno_reg_class): Likewise.
6458         * mips.c (gen_int_relational): Likewise.
6459         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
6460         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
6461         * pdp11.c (move_costs): Likewise.
6462         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
6463         * s390.c (s390_branch_condition_mnemonic, regclass_map):
6464         Likewise.
6465         * s390.h (regclass_map): Likewise.
6466         * sh.c (shift_amounts): Likewise.
6467         * sh.md (rotlsi3): Likewise.
6469 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
6471         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
6472         (ne0+5): Use new clobber to generate proper shift pattern.
6473         Patch by Michael Matz <matz@kde.org>.
6475 2002-03-09  Andreas Schwab  <schwab@suse.de>
6477         * gcc.c (validate_all_switches): Also handle `%W{...}'.
6479 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
6481         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
6483 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
6485         PR middle-end/5877
6486         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
6487         even for non-representable constants.
6489 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6491         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
6492         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
6493         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
6494         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
6495         (pop_function_context): Compute MAY_SHARE parameter for
6496         fixup_var_refs.
6497         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
6498         (gen_mem_addressof): Call fixup_var_refs with new parm.
6500         * combine.c (make_extraction): Don't make extension of CONST_INT.
6502 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
6504         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
6505         in o32 and o64 ABIs.
6506         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
6507         but getting fixed-size structs passed in registers regardless of
6508         padding in o32 and o64 ABIs.
6510         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
6511         offset before loading address of argument passed by transparent
6512         reference.
6514 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6516         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
6518 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
6520         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
6521         marker such that registers after it are saved.
6523 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6525         * sparc.c (arith_4096_operand): Fix error in last change.
6527 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
6529         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
6530         defaults for MEABI.
6532 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
6534         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
6535         vectors.
6537 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
6539         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
6541 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
6543         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
6544         removed; fix return value.
6545         * combine.c (combine_instructions): Dirtify blocks where we failed to
6546         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
6547         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
6549 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6551         * gcse.c (insert_insn_end_bb): Fix typo in last change.
6553 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
6555         * recog.c (peephole2_optimize): Re-distribute EH edges.
6557 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6559         * expr.c (expand_expr): Use unsave lang hook.
6560         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
6561         (LANG_HOOKS_INITIALIZER): Update.
6562         * langhooks.h (struct lang_hooks): New hook unsave.
6563         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
6564         (unsave_expr_1): Remove unused lang_unsave_expr_now.
6565         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
6566         (unsave_expr_now): Remove.
6567         * tree.h (unsave_expr_now, lang_unsave,
6568         lang_unsave_expr_now): Remove.
6569         (lhd_unsave): New.
6571 2002-03-08  Andreas Jaeger  <aj@suse.de>
6573         * flow.c (propagate_block_delete_insn): Remove unused variable.
6575 2002-03-08  Kazu Hirata  <kazu@hxi.com>
6577         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
6578         insn length for memory load/store.
6580 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6582         * doc/install.texi (--with-libiconv-prefix): Document.
6584 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
6586         * doc/sourcebuild.texi: Fix typo.
6588 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
6590         PR c/3711
6591         * builtins.c (std_expand_builtin_va_arg): Do all computations on
6592         trees.
6594 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6596         * rtl.c (copy_most_rtx): Move from here ...
6597         * emit-rtl.c (copy_most_rtx): ... to here.
6599 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
6601         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
6602         SUBTARGET_CPP_SIZE_SPEC.
6603         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
6605         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6607 2002-03-07  Matt Hiller  <hiller@redhat.com>
6609         * gensupport.c (first_dir_md_include): Renamed from include;
6610         change all references.
6611         (last_dir_md_include): Renamed from last_include; change all
6612         references.
6613         (init_md_reader): Unconditionally initialize base_dir whether or
6614         not filename is a relative path.
6616 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
6618         * config/fp-bit.c (_unord_f2): Compile it in even if
6619         US_SOFTWARE_GOFAST is enabled.
6621         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6622         NULL_RTX.  Set all HFmode operations as NULL_RTX.
6623         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6624         NULL_RTX, try reversing the comparison and the operands.
6626 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
6628         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6629         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6630         and MATCH_OP_DUP.
6632 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
6634         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6636 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6638         * basic-block.h (fixup_abnormal_edges): Declare.
6639         * reload1.c (fixup_abnormal_edges): New function.
6640         * reg-stack.c (convert_regs): Use it.
6642         * gcse.c (insert_insn_end_bb): Handle trapping insns.
6644         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6646 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
6648         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6649         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6650         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6651         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6652         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6653         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6654         unless x and y could be infinite.
6655         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6656         Check that the common type of both arguments is a real, even for
6657         targets without unordered comparisons.  Allow an integer argument
6658         to be compared against a real.
6659         (expand_tree_builtin): Use expand_unordered_cmp.
6660         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6661         * cse.c (fold_rtx): Likewise.  Fix indentation.
6662         * fold-const.c (fold_real_zero_addition_p): New.
6663         (fold): Use it, and the new HONOR_... macros.
6664         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6665         * jump.c (reversed_comparison_code_parts): After searching for
6666         the true comparison mode, use HONOR_NANS to decide whether it
6667         can be safely reversed.
6668         (reverse_condition_maybe_unordered): Remove IEEE check.
6669         * simplify-rtx.c (simplify_binary_operation): Use the new macros
6670         to decide which simplifications are valid.  Allow the following
6671         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6672         and (a - -b) to (a + b).
6673         (simplify_relational_operation): Use HONOR_NANS.
6674         * doc/tm.texi: Document the MODE_HAS_... macros.
6676 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
6678         * combine.c (simplify_comparison): If simplifying a logical shift
6679         right and compare with constant, force the comparison to unsigned.
6681 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
6683         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6685         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6686         -mabi=no-altivec
6687         (alt_reg_names): Remove % for vrsave.
6689 2002-03-06  Richard Henderson  <rth@redhat.com>
6691         PR optimization/5844
6692         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
6693         if used indicates we've already emitted one copy of an operand.
6694         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6695         (gen_split): Supply a non-null used.
6697 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
6699         * reload1.c (reload): Unshare all rtl after reload is done.
6701         * simplify-rtx.c (simplify_plus_minus): Do not abort,
6702         but simply fail if the expression is too complex to simplify.
6703         (simplify_gen_binary): Handle simplify_plus_minus failures.
6705 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
6707         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6708         consistently call delete_trivially_dead_insns after CSE and GCSE;
6709         fix DFI_life dumping; do jump threading after liveness; do crossjumping
6710         after liveness2; update comment in last crossjumping.
6711         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6713 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
6715         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6716         after completing fast dead code elimination.
6718         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6719         COMPARE operator.
6721 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
6723         * version.c:  Fix misplaced leading blanks on first line.
6725 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
6727         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6729 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
6731         * cfgcleanup.c (mentions_nonequal_regs): New function.
6732         (thread_jump): Use it.
6733         * toplev.c (rest_of_compilation): Run jump threading after
6734         liveness.
6736 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6738         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
6739         patch.
6741 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6743         * predict.c (estimate_bb_frequencies): Do not reload the
6744         frequencies from notes.
6746 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
6748         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
6749         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
6751         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
6752         delete_noop_moves): Return indeger.
6753         * flow.c (ndead): New variable.
6754         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
6755         BB argument; update callers.
6756         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
6757         (life_analysis): Do not call purge_all_dead_edges.
6758         (update_life_info): Return number of deleted insns; print statistics.
6759         (update_life_info_in_dirty_blocks): likewise.
6760         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6761         return number of insns deleted.
6763         * cse.c: Include timevar.h
6764         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6765         iterate until stabilizes; print statistics; return number of killed
6766         insns.
6767         * Makefile.in: (cse.o): Add timevar.h dependency
6768         * rtl.h (delete_trivially_dead_insns): New.
6769         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6770         * toplev.c (rest_of_compilation): Update callers.
6772         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6773         (try_optimize_cfg): Do not update liveness.
6774         (cleanup-cfg): Loop until try_optimize_cfg and dead code
6775         removal stabilizes; use delete_trivially_dead_insns.
6777         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6779 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
6781         * cppmain.c (setup_callbacks): Disable #pragma and #ident
6782         callbacks when processing assembly language.
6784 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6786         * pa.h (ASM_FILE_END): Define.
6787         * som.h (ASM_FILE_END): Delete.
6789         * pa.c (function_arg): Don't pass floats in general registers in
6790         indirect calls if TARGET_ELF32.
6792 2002-03-05  Richard Henderson  <rth@redhat.com>
6794         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6796 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
6798         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6800 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6802         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6803         -r command line.  Don't hide any symbols if not building
6804         shared libgcc.
6806 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
6808         * cfg.c (dump_flow_info): Warn about profile mismatches.
6809         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6810         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6812 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6814         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6815         wide volatile memory by parts.
6817 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6819         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6820         is NULL.
6822 2002-03-05  Richard Henderson  <rth@redhat.com>
6824         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6826 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6828         * toplev.c (documented_lang_options): Document more
6829         language-specific options.
6830         * doc/invoke.texi (Warning Options): Correct documentation for
6831         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6832         * c-decl.c (c_decode_option): Use a table to handle warning options.
6834 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
6836         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6837         parameter to mmix_encode_section_info.
6838         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6839         relocatably.  Always produce ELF, not mmo if linking relocatably.
6840         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6841         first is non-zero, don't add symbol prefix.
6842         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6843         prototype accordingly.
6845 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
6847         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6849 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6851         * configure.in: Increase required makeinfo version to 4.1.
6852         * configure: Regenerate.
6854 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6856         * .cvsignore: Remove *.info* and genrtl*; these files are generated
6857         elsewhere now.
6859 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6861         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6862         * doc/invoke.texi: Fix @math uses.
6864 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6866         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6867         removal
6869 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
6871         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6872         (powerpc-*-eabisimaltivec*): Same.
6874         * config/rs6000/t-ppcendian: New.
6876 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6878         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6879         nonimmediate_src_operand and nonimmediate_lsrc_operand to
6880         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6882 2002-03-03  Richard Henderson  <rth@redhat.com>
6884         * toplev.c (rest_of_decl_compilation): Revert last two changes.
6886 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
6888         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6889         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6890         tree.c, config/m68k/m68k.c:
6891         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6892         REAL_ARITHMETIC blocks unconditional.  Delete some further
6893         #ifdef blocks predicated on REAL_ARITHMETIC.
6894         * flags.h, toplev.c: Delete remaining references to
6895         flag_pretend_float.
6897         * doc/invoke.texi: Remove documentation of -fpretend-float.
6898         * doc/tm.texi: Describe the various REAL_* macros as provided by
6899         real.h, not by the target configuration files.
6901         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6902         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6903         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6904         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6905         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6906         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6907         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6908         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6909         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6910         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6911         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6912         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6913         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6914         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6915         config/xtensa/xtensa.h:
6916         Do not define, undefine, or mention in comments any of
6917         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6918         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6919         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6920         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6921         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6922         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6923         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6924         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6925         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6927 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6929         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6930         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6931         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6932         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6933         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6934         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6935         Delete.
6936         * defaults.h (BITS_PER_WORD): Define.
6937         * doc/tm.texi (BITS_PER_WORD): Document default value.
6939         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6940         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6941         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6943 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6945         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6946         lieu of explicit sizeof/sizeof.
6947         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6948         ix86_expand_builtin): Likewise.
6949         * mips.c (mips_add_gc_roots): Likewise.
6950         * mmix.c (mmix_output_condition): Likewise.
6951         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6952         altivec_init_builtins): Likewise.
6953         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6954         * cppexp.c (Nsuff, parse_number): Likewise.
6955         * cppinit.c (builtin_array_end): Likewise.
6956         * gcc.c (n_default_compilers, process_command): Likewise.
6957         * genpreds.c (output_predicate_decls): Likewise.
6958         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6959         * lcm.c (N_ENTITIES): Likewise.
6960         * stor-layout.c (set_sizetype): Likewise.
6962 2002-03-03  Richard Henderson  <rth@redhat.com>
6964         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6965         for types or labels.
6967 2002-03-03  Richard Henderson  <rth@redhat.com>
6969         * c-decl.c (start_decl): Initialized variables are not common.
6971 2002-03-02  Per Bothner  <per@bothner.com>
6973         * gcc.c (option_map):  Suport new --bootclasspath option.
6974         --CLASSPATH is now just an alias for --classpath.
6976 2002-03-02  Richard Henderson  <rth@redhat.com>
6978         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6979         load if "internal" visibility.
6980         * doc/extend.texi: Document visibility meanings.
6982 2002-03-02  Richard Henderson  <rth@redhat.com>
6984         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6985         to functions as well.
6987 2002-03-02  Richard Henderson  <rth@redhat.com>
6989         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6990         (handle_visibility_attribute): Don't call assemble_visibility.
6991         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6992         without asmspec.  Invoke assemble_alias when needed.
6993         * varasm.c (maybe_assemble_visibility): New.
6994         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6996 2002-03-02  Richard Henderson  <rth@redhat.com>
6998         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6999         invoke ENCODE_SECTION_INFO with first call flag.
7001         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7002         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7003         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
7004         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
7005         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7006         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7007         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
7008         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
7009         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
7010         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
7011         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7012         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
7013         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7014         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
7015         config/mcore/mcore-protos.h, config/mcore/mcore.c,
7016         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
7017         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
7018         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7019         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
7020         config/sh/sh.h, config/sparc/sparc.h,
7021         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7022         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
7023         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
7024         FIRST argument.  As needed, examine it and do nothing.
7026         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
7027         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7028         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
7030         * config/arm/t-pe (pe.o): Add dependencies.
7032 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7034         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
7035         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
7036         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
7037         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
7038         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
7039         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
7040         * defaults.h (BITS_PER_UNIT): Define.
7041         * doc/tm.texi (BITS_PER_UNIT): Document default value.
7043 2002-03-02  Kazu Hirata  <kazu@hxi.com>
7045         * config/h8300/h8300-protos.h: Add a prototype for
7046         compute_a_shift_length.
7047         * config/h8300/h8300.c (h8300_asm_insn_count): New.
7048         (compute_a_shift_length): Likewise.
7049         (h8300_adjust_insn_length): Do not adjust insn length of shift
7050         insns.
7051         * config/h8300/h8300.md (anonymous shift patterns): Use
7052         compute_a_shift_length.
7054 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7056         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
7057         trunc_int_for_mode.
7059         * emit-rtl.c (offset_address): Call update_temp_slot_address.
7061 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7063         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
7064         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
7065         * flags.h (flag_zero_initialized_in_bss): Declare.
7066         * toplev.c (flag_zero_initialized_in_bss): New flag.
7067         (lang_independent_options): Add flag_zero_initialized_in_bss.
7068         * tree.c (initializer_zerop): New function.
7069         * tree.h (initializer_zerop): Declare.
7070         * varasm.c (assemble_variable): If we can emit bss, put zero
7071         initializers in the bss section.
7073 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
7075         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
7076         like more than one symbol per .weak directive.
7078 2002-03-01  Richard Henderson  <rth@redhat.com>
7080         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
7081         adjust argument_pointer by pretend_args_size.
7082         (ia64_va_start): Adjust va_start address by -pretend_args_size.
7084 2002-03-01  Kazu Hirata  <kazu@hxi.com>
7086         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
7088 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
7090         * toplev.c (rest_of_compilation): Delete dead jumptables before
7091         loop.
7092         * flow.c (delete_dead_jumptables): Make global.
7093         * rtl.h (delete_dead_jumptables): Declare.
7095 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
7097         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
7098         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
7099         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
7101 2002-03-01  Kazu Hirata  <kazu@hxi.com>
7103         * config/h8300/h8300-protos.h: Fix formatting.
7104         * config/h8300/h8300.c: Likewise.
7105         * config/h8300/h8300.h: Likewise.
7107 2002-03-01  Kazu Hirata  <kazu@hxi.com>
7109         * config/h8300/h8300.c (print_operand): Support 16-bit
7110         constant addresses.
7111         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
7113 2002-02-28  Richard Henderson  <rth@redhat.com>
7115         * expmed.c (store_bit_field): Prevent generation of CONCATs;
7116         pun complex values as integers; use gen_lowpart instead of
7117         gen_rtx_SUBREG.
7118         (extract_bit_field): Likewise.
7120 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
7121             David Edelsohn  <edelsohn@gnu.org>
7123         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
7124         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
7125         (SUPPORTS_WEAK): Likewise.
7126         * output.h (add_weak): Add tree param.
7127         * varasm.c (add_weak): Likewise.  Save decl.
7128         (struct weak_syms): Add decl field.
7129         (mark_weak_decls): New function.
7130         (init_varasm_once): ggc_add_root mark_weak_decls.
7131         (assemble_start_function): Use ASM_WEAKEN_DECL.
7132         (assemble_variable): Likewise.
7133         (assemble_alias): Likewise.
7134         (declare_weak): Pass decl to add_weak.
7135         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
7136         (remove_from_pending_weak_list): Declare and define for
7137         ASM_WEAKEN_DECL.
7138         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
7139         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
7140         * defaults.h (SUPPORTS_WEAK): Likewise.
7141         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7142         .weak for code sym.  Do emit .size for descriptor sym.
7143         (ASM_DECLARE_FUNCTION_SIZE): Define.
7144         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
7145         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
7146         .lglobl unless TARGET_XCOFF.  Formatting fixes.
7147         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7148         .weak for code sym.
7149         (HANDLE_PRAGMA_WEAK): Remove.
7150         (ASM_WEAKEN_LABEL): Remove.
7151         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
7153 2002-03-01  Jason Merrill  <jason@redhat.com>
7155         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
7156         (TARGET_EXPR_CLEANUP): New macro.
7158 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
7160         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
7161         to take ptr_extend into account as third type of extension.
7162         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
7163         fields used by SUBREG_PROMOTED_UNSIGNED_P.
7164         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
7165         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
7166         * calls.c (precompute_arguments): Use new macro.
7167         (expand_call): Ditto.
7168         * combine.c (nonzero_bits): Ditto.
7169         (record_promoted_value): Ditto.
7170         * expr.c (store_expr): Ditto.
7171         (expand_expr): Ditto.
7172         * function.c (assign_parms): Ditto.
7174 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
7176         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
7177         override -shared and -shared-libgcc.
7179 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
7181         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
7182         of "ultrasparc".
7183         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
7184         to be broken.
7186 2002-02-28  Richard Henderson  <rth@redhat.com>
7188         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
7189         4 cycle latency from MM producers.
7190         (ia64_internal_sched_reorder): Likewise with pipeline flush.
7192 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7194         * mklibgcc.in: Don't use GNU make extension.
7196 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7198         * c-parse.in (STATIC): New terminal.
7199         (scspec): New non-terminal.  Update productions accordingly.
7200         (program): Remove bogus ifc / end ifc.
7201         (array_declarator): Simplify production using STATIC.
7203 2002-02-28  Jim Meyering  <meyering@lucent.com>
7205         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
7206         \a still means TARGET_BELL.
7208 2002-02-28  Richard Henderson  <rth@redhat.com>
7210         * haifa-sched.c (sched_emit_insn): New.
7211         (schedule_block): Use last_scheduled_insn to track last insn.
7212         * sched-int.h (sched_emit_insn): Prototype.
7213         * config/ia64/ia64.c (last_issued): Remove.
7214         (ia64_variable_issue): Don't set it.
7215         (nop_cycles_until): Use sched_emit_insn.
7217 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
7219         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
7220         extended constants.
7222 2002-02-28  Kazu Hirata  <kazu@hxi.com>
7224         * config/h8300/h8300.c: Fix formatting.
7225         * config/h8300/h8300.h: Likewise.
7227 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7229         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
7230         which may overwrite the high byte of the frame pointer.
7232 2002-02-28  Bo Thorsen  <bo@suse.de>
7234         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
7235         (STARTFILE_SPEC): Add 64 bit files.
7236         (ENDFILE_SPEC): Likewise.
7238 2002-02-28  Jason Merrill  <jason@redhat.com>
7240         * c-decl.c (finish_function): Only warn about missing return
7241         statement with -Wreturn-type.
7243 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7245         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
7247         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
7248         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
7250 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
7252         * basic-block.h (BB_REACHABLE): Renumber.
7253         (BB_DIRTY, BB_NEW): New flags.
7254         (clear_bb_flags): Declare.
7255         (update_life_info_in_dirty_blocks): Declare.
7256         * cfg.c (clear_bb_flags): New function.
7257         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
7258         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
7259         reorder_insns, emit_insn_after): Mark block as dirty.
7260         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
7261         (update_life_info_in_dirty_blocks): New function.
7262         * recog.c (apply_change_group): Dirtify block.
7264         * cse.c (cse_insn): Reorder emitting of jump insn to keep
7265         cfg consistent.
7266         * gcse.c (delete_null_pointer_checks): Likewise.
7268         * toplev.c (dump_file_index): Move cse2 after bp,
7269         add DFI_null
7270         (dump_file_info): Similary.
7271         (rest_of_compilation): Avoid most of CFG rebuilds;
7272         do first if converision after null pointer checks, do cse2
7273         after branch prediction; avoid full liveness rebuild after
7274         initializing subregs.
7275         * invoke.texi (-d options): Document -du, renumber.
7277         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
7278         (notice_new_block): Do not set BB_UPDATE_LIFE.
7279         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
7280          merge_blocks_move_successor_nojumps, merge_blocks,
7281          try_crossjump_to_edge): Likewise.
7282         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
7283         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
7284         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
7285         (merge_of_block): Do not use life_data_ok.
7286         (find_if_case_1): Do not use SET_UPDATE_LIFE.
7287         (if_convert): Use BB_DIRTY mechanizm to update life.
7288         * lcm.c (optimize_mode_switching): Update
7289         update_life_info_in_dirty_blocks
7291 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7293         * Makefile.in (integrate.o): Update.
7294         * c-decl.c (copy_lang_decl): Rename.
7295         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7296         * integrate.c: Include langhooks.h.
7297         (copy_decl_for_inlining): Update to use langhook.
7298         * langhooks-def.h (lhd_do_nothing_t,
7299         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
7300         (LANG_HOOKS_INITIALIZER): Update.
7301         * langhooks.c (lhd_do_nothing_t): New.
7302         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
7303         * tree.h (copy_lang_decl): Remove.
7304 objc:
7305         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7307 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
7309         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
7310         POST_DEC, and POST_MODIFY.
7312 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
7314         * c-typeck.c (digest_init): Remove unused parameter; all
7315         callers changed.
7317 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
7319         * expmed.c (expand_shift): Correctly test for low part of a
7320         subreg.
7322 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
7324         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
7325         insn UIDs with insn addresses.
7327 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
7329         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
7330         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
7331         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
7332         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
7333         gcc.c, toplev.c: Delete code implementing -traditional mode.
7335         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
7336         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
7337         Document removal of -traditional mode for compilation, and
7338         remove documentation only relevant to that mode.
7340         * config/nextstep.h, config/ptx4.h, config/svr4.h,
7341         config/convex/convex.h, config/d30v/d30v.h,
7342         config/i386/dgux.h, config/i386/osf1elf.h,
7343         config/i386/osfelf.h, config/i386/osfrose.h,
7344         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
7345         config/m68k/hp310.h, config/m88k/dgux.h,
7346         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
7347         config/m88k/m88k.h, config/m88k/openbsd.h,
7348         config/mips/abi64.h, config/mips/osfrose.h,
7349         config/mips/svr4-5.h, config/mips/svr4-t.h,
7350         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7351         config/stormy16/stormy16.h: Remove all references to
7352         -traditional from target specs.  Delete all mention of the
7353         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
7354         delete a couple of commented-out definitions of
7355         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
7356         to -traditional.
7358         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
7359         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
7361 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
7363         * mklibgcc.in: Don't use \n in a line subject to
7364         interpretation by echo.
7366 2002-02-27  Graham Stott  <grahams@redhat.com>
7368         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
7369         Constify NAME.
7371         * loop.c (prescan_loop): Handle PARALLEL.
7373         * unroll.c (loop_iterations): Return 0 if the add_val for
7374         a BIV is REG.
7376         * final.c (output_operand_lossage): Constify PFX_STR.
7378         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7380 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
7382         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7383         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7385 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
7387         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7389 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7391         * cpplex.c (_cpp_lex_token): Handle directives in macro
7392         arguments.
7393         * cpplib.c (_cpp_handle_directive): Save and restore state
7394         if parsing macro args when entering a directive.
7395         * cppmacro.c (collect_args): No need to handle directives
7396         in macro arguments.
7397         (enter_macro_context, replace_args): Use the original macro
7398         definition in case it was redefined whilst collecting arguments.
7399 doc:
7400         * cpp.texi: Update.
7402 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
7404         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
7405         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
7406         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
7407         method on AIX.
7408         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
7409         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
7410         (load_toc_v4_PIC_2): Same.
7412 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
7414         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
7416 2002-02-26  Richard Henderson  <rth@redhat.com>
7418         * config/alpha/alpha.md (ashldi_se): Re-enable.
7420 2002-02-26  Richard Henderson  <rth@redhat.com>
7422         * config/alpha/alpha.c (alpha_encode_section_info): Examine
7423         MODULE_LOCAL_P; improve commentary.
7425 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
7427         * doc/cpp.texi: Clarify documentation of relationship between
7428         #line and #include.
7430 2002-02-26  Kazu Hirata  <kazu@hxi.com>
7432         * config/h8300/h8300-protos.h: Update the prototype for
7433         compute_logical_op_length.  Add the prototype for
7434         compute_logical_op_cc.
7435         * config/h8300/h8300.c (compute_logical_op_length): Figure out
7436         code from operands.
7437         (compute_logical_op_cc): New.
7438         * config/h8300/h8300.md: Combine all the logical op patterns
7439         in HImode and SImode.  Use compute_logical_op_cc.
7441 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
7443         * config/i386/i386.c (print_operand): Don't append ATT-style
7444         length suffixs to x87 opcodes when in Intel mode.
7446 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
7448         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
7449         (init_emit_once): Update calls.
7450         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
7451         (init_syntax_once): Prototype.
7453 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7455         * pa-linux.h (LIB_SPEC): Update definition.
7456         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7458 2002-02-26  Richard Henderson  <rth@redhat.com>
7460         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
7461         if we emitted a stop bit.
7463 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
7465         * configure.in (libgcc_visibility): Substitute.
7466         * configure: Rebuilt.
7467         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
7468         defined symbols .hidden.
7470 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
7472         * attribs.c (c_common_attribute_table): Add visibility.
7473         (handle_visibility_attribute): New function.
7474         * varasm.c (assemble_visibility): New function.
7475         * output.h (assemble_visibility): Add prototype.
7476         * tree.h (MODULE_LOCAL_P): Define.
7477         * crtstuff.c (__dso_handle): Use visibility attribute.
7478         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
7479         for MODULE_LOCAL_P symbols too.
7480         * config/ia64/ia64.c (ia64_encode_section_info): Handle
7481         MODULE_LOCAL_P symbols the same way as local symbols.
7482         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
7483         into .sdata/.sbss by the user.
7484         * doc/extend.texi (Function Attributes): Document visibility
7485         attribute.
7487 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
7489         PR debug/5770
7490         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
7491         STRING_CST initializer spanning the whole variable without
7492         embedded zeros.
7493         If expand_expr returned MEM, don't use it.
7495 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
7497         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
7498         generate a die for the lexical block.
7500 2002-02-26  Kazu Hirata  <kazu@hxi.com>
7502         * config/h8300/h8300-protos.h: Add a prototype for
7503         compute_logical_op_length.
7504         * config/h8300/h8300.c (compute_logical_op_length): New.
7505         * config/h8300/h8300.md (anonymous logical patterns): Use
7506         compute_logical_op_length for length.
7508 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
7510         * dwarf2out.c (modified_type_die): Do not call type_main_variant
7511         for vectors.
7512         (gen_type_die): Same.
7514         * attribs.c (handle_vector_size_attribute): Set debug information.
7516 2002-02-26  Daniel Egger  <degger@fhm.edu>
7518         * config/rs6000/rs6000.md: Swap define_insn attributes to
7519         fix incorrect generation of merge high instructions instead
7520         of merge low.
7522 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
7524         * c-typeck.c (really_start_incremental_init): Use
7525         bitsize_zero_node for vectors.
7527 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
7529         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
7530         ("*set_vrsave_internal"): Same.
7532 2002-02-25  Richard Henderson  <rth@redhat.com>
7534         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
7535         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
7537 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7539         PR target/5755
7540         * config/i386/i386.c (ix86_return_pops_args): Only pop
7541         fake structure return argument if it was passed on the stack.
7543 2002-02-25  Jason Merrill  <jason@redhat.com>
7545         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
7546         RESULT_DECL.
7548 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
7550         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
7551         link with shared_name only.
7552         * doc/invoke.texi (Link Options): Document new behavior.
7554 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
7556         * c-typeck.c (push_init_level): Handle vectors.
7558 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
7560         * config/sparc/sparc.c (const64_high_operand): Zero-extend
7561         operands of SPARC_SETHI_P.
7562         (input_operand): Likewise.
7563         (sparc_emit_set_const32): Likewise.
7564         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
7565         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
7566         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
7567         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
7568         (movdi_insn_sp64_vis): Likewise.
7569         (movdi split, movdf split): Use SETHI32.
7570         * doc/md.texi: Document SPARC constraints L, M and N.
7572 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
7574         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
7575         ("*set_vrsave_internal"): use mfspr for Darwin.
7577         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
7578         gen_get_vrsave_internal.
7580 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7582         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
7584 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7586         * cpplex.c (cpp_interpret_charconst): Get signedness or
7587         otherwise of wide character constants correct.
7588         * cppexp.c (lex): Get signedness of wide charconsts correct.
7590 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7592         * optabs.c (widen_operand): Only call convert_modes for
7593         promoted SUBREG if signedness matches.
7594         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
7596 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7598         * cpplib.c (glue_header_name): Use local buffer to build up
7599         header name.
7601 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7603         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7605 2002-02-23  Kazu Hirata  <kazu@hxi.com>
7607         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
7608         H8/300[HS] separately.
7609         * config/h8300/h8300.md: Remove the early clobber constraint
7610         from bit field patterns.
7612 2002-02-23  Kazu Hirata  <kazu@hxi.com>
7614         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7615         register_operand.
7616         (mulhisi3): Likewise.
7617         (umulqisi3): Likewise.
7618         (umulhisi3): Likewise.
7620 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7622         * cppinit.c (output_deps): Correct test for stdout output.
7623         (init_dependency_output): Cure warning.
7625 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7627         * expr.c (store_expr): When converting expression to promoted
7628         equivalent type, allow using SUBREG_REG of TARGET as the target
7629         of the expansion of EXP.
7630         * loop.c (basic_induction_var, case SUBREG): Always look inside.
7631         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7632         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7633         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7634         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7636 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
7638         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7639         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7640         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7642 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
7644         PR optimization/5747
7645         * loop.c (scan_loop): Update reg info if move_movables created new
7646         pseudos.
7648 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
7650         * gcc.c (init_gcc_spec): Revert last change.
7652 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
7654         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7655         gpc_reg_operand constraint.
7657 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
7659         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7660         Simplify comparison of `low'.
7661         (add_operand): Fix formatting.
7662         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7663         (mask_operand): Disallow mask to wrap in 64-bit mode.
7664         (rs6000_stack_info): Remove redundant test setting push_p.
7665         (output_toc): Fix formatting.
7666         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7667         cc_reg_not_cr0_operand constraint.
7668         (booldi3, boolcdi3 splitters): Same.
7670 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
7672         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7674 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
7676         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7677         gcc invoked with -shared-libgcc.
7679 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
7681         PR c++/5748
7682         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7683         decl if any of elements was TREE_USED.
7685 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
7687         * config/sparc/sol2.h: Don't include sys/mman.h.
7688         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7689         (arith_4096_operand): Don't throw high bits away.
7690         (const64_operand): Take sign extension of CONST_INTs into account.
7691         (const64_high_operand, sparc_emit_set_const32): Likewise.
7692         (GEN_HIGHINT64): Likewise.
7693         (sparc_emit_set_const64_quick1): Likewise.
7694         (const64_is_2insns): Likewise.
7695         (print_operand): Use trunc_int_for_mode for sign extension.
7696         * config/sparc/sparc.h (SMALL_INT32): Likewise.
7697         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7698         chars.  Assume CONST_INT is already properly sign-extended.
7699         (movdi split): Sign-extend each SImode part.
7700         (andsi3 split): Don't mask high bits off, so that result
7701         remains properly sign-extend.
7702         (iorsi3 split): Likewise.
7703         (xorsi3 split): Likewise.
7705 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
7707         * fold-const.c (fold): Fix typo in comments.
7709 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7711         * Makefile.in (langhooks.o): Update dependencies.
7713 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7715         * langhooks.c: Include flags.h.
7717 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
7719         * testsuite/gcc.dg/attr-alwaysinline.c: New.
7721         * c-common.c (c_common_post_options): Set inline trees by
7722         default.
7724         * doc/extend.texi (Function Attributes): Document always_inline
7725         attribute.
7726         Update documentation about inlining when not optimizing.
7728         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7730         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7731         unless DECL_ALWAYS_INLINE.
7733         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7734         unless DECL_ALWAYS_INLINE.
7735         (c_disregard_inline_limits): Disregard if always_inline set.
7737         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7738         Disregard if always_inline set.
7739         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
7740         unless DECL_ALWAYS_INLINE.
7742         * attribs.c (handle_always_inline_attribute): New.
7743         (c_common_attribute_table): Add always_inline.
7745         * config/rs6000/altivec.h: Add prototypes for builtins
7746         requiring the always_inline attribute.
7748 2002-02-21  Eric Christopher  <echristo@redhat.com>
7750         * expmed.c (store_bit_field): Try to simplify the subreg
7751         before generating a new one when when the mode size of
7752         value is less than maxmode.
7754 2002-02-21  Richard Henderson  <rth@redhat.com>
7756         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
7757         than gen_rtx_PLUS to form the sum.
7758         * explow.c (force_reg): Rearrange to not allocate new pseudo
7759         when force_operand returns a register.
7760         * expr.c (expand_assignment): Allow offset_rtx expansion to
7761         return a sum.  Do not force addresses into registers.
7762         (expand_expr): Likewise.
7763         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7764         to canonicalize arithmetic that didn't simpify.
7765         (simplify_plus_minus): New argument force; update
7766         all callers.  Don't split CONST unless we can do something with it,
7767         and wouldn't lose the constness of the operands.
7769         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7770         that we generated earlier.
7772 2002-02-21  Tom Tromey  <tromey@redhat.com>
7774         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7775         (output_line_info): Use constant `1', with a long explanatory
7776         comment.
7777         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7779 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
7781         * jump.c (redirect_jump): If old label has no UID, don't try to
7782         delete it.
7784 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
7786         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7787         If input is constant, do shifts at compile time.
7789 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7791         * doc/extend.texi: Fix some more overfull hboxes.
7793 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7795         PR optimization/4994
7796         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7797         register moves.
7799 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7801         PR c++/4574
7802         * expr.h (expand_and): Add mode argument.
7803         * expmed.c (expand_and): Add mode argument.
7804         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7805         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7806         * except.c (expand_builtin_extract_return_addr): Likewise.
7807         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7808         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7809         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7810         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7811         * config/c4x/c4x.md: Use GEN_INT (x) instead of
7812         gen_rtx (CONST_INT, VOIDmode, x).
7814 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7816         PR c/4697:
7817         * stmt.c (warn_if_unused_value): Move side effects test once more.
7819 2002-02-20  Torbjorn Granlund  <tege@swox.com>
7821         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7822         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7824 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
7826         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7827         SUBREG or ZERO_EXTEND.
7829 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
7831         * sh.h (current_function_anonymous_args): Remove.
7832         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7833         of current_function_varargs and current_function_stdarg is set.
7834         * sh.c (sh_expand_prologue): Check current_function_varargs /
7835         current_function_stdarg / TARGET_SH5 instead of
7836         current_function_anonymous_args.
7838         * sh64.h (TARGET_VERSION): Define.
7840 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
7842         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7843         VRSAVE_REGNO on TARGET_ALTIVEC.
7845 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
7847         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7848         bits of SImode const_int.
7849         (includes_rshift_p): Likewise.
7850         (print_operand): Call mask_operand and mask64_operand with correct
7851         mode.
7852         (rs6000_output_function_epilogue): Pad traceback table to word.
7853         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7854         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7855         mask64_operand with correct mode.
7856         (FUNCTION_ARG_REGNO_P): Correct parentheses.
7858 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7860         PR debug/4461
7861         * varasm.c (get_pool_constant_mark): New.
7862         * rtl.h (get_pool_constant_mark): Add prototype.
7863         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7864         be represented if it has not been output.
7866 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7868         * combine.c (do_SUBST): Sanity check substitutions of
7869         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7870         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7871         CONST_INT into its operand.
7872         (known_cond): Likewise, for ZERO_EXTEND.
7873         * simplify-rtx.c (simplify_unary_operation): Fix condition to
7874         allow for simplification of wide modes.  Reject CONST_INTs in
7875         ZERO_EXTEND when their actual mode is not given.
7877 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7879         * c-decl.c (pushdecl): If no global declaration is found for an
7880         extern declaration in block scope, try a limbo one.
7882 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7884         PR c++/4401
7885         * c-common.c (pointer_int_sum): Moved from...
7886         * c-typeck.c (pointer_int_sum): ...here.
7887         * c-common.h (pointer_int_sum): Add prototype.
7889 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7891         PR c++/5713
7892         * c-decl.c (duplicate_decls): Return 0 if issued error about
7893         redeclaration.
7895 2002-02-20  Roger Sayle  <roger@eyesopen.com>
7896             Jakub Jelinek  <jakub@redhat.com>
7898         PR c/4389
7899         * tree.c (host_integerp): Ensure that the constant integer is
7900         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7901         when pos is zero or non-zero respectively.  Clarify comment.
7902         * c-format.c (check_format_info_recurse): Fix host_integerp
7903         usage; the pos argument should be zero when assigning to a
7904         signed HOST_WIDE_INT.
7906 2002-02-20  Richard Henderson  <rth@redhat.com>
7908         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7909         of the operand, rather than assuming TImode.
7910         (ix86_expand_binop_builtin): Cope with commutative patterns
7911         using nonimmediate_operand for both operands.
7912         (ix86_expand_timode_binop_builtin): Likewise.
7913         (ix86_expand_store_builtin): Validate operand 1.
7914         (ix86_expand_unop1_builtin): Likewise.
7916 2002-02-20  Philip Blundell  <philb@gnu.org>
7918         PR 5705
7919         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7921 2002-02-20  Richard Henderson  <rth@redhat.com>
7923         PR c/5615
7924         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7926 2002-02-20  Tom Tromey  <tromey@redhat.com>
7928         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7929         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7930         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7931         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7932         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7933         unconditionally.
7935 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7937         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7938           for (const_int 0) in X not just INTVAL.
7940 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7942         * doc/extend.texi: Avoid or reduce overfull hboxes.
7944 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7946         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7947         operations if the field does not start at a mode boundary.
7949 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7951         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7952         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7953         Also done for -Acpu and -Amachine.
7955 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7957         * cppinit.c (init_dependency_output): Take deps output file
7958         from -o if none given with -MF.  Suppress normal output.
7959         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7960         * doc/cpp.texi, doc/invoke.texi: Update.
7962 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7964         * toplev.c (output_quoted_string): Write unprintable
7965         characters with octal escapes.
7967 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7969         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7970         really_call_used[VRSAVE_REGNO] if not Altivec.
7972 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7974         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7975         MODE_MASK.
7976         (constant_pool_expr_1): Fix formatting.
7977         (rs6000_legitimize_reload_address): Likewise.
7979 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7981         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7982         now that we have one.
7984 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7986         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7987         end of first block of bitfields (which was only seven bits);
7988         rename dummy to unused_1; remove comment which is no longer true.
7990 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7992         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7994 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7996         PR 5399
7997         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7998         if generating PIC.
8000         PR 5054
8001         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8002         arm_is_longcall_p rather than inspecting call-type cookie
8003         directly.
8004         (call_value_insn) [TARGET_THUMB]: Likewise.
8006 2002-02-19  Graham Stott  <grahams@redhat.com>
8008         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8010 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
8012         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8013         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8014         (FP_SAVE_INLINE): Delete.
8016         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
8017         * config/rs6000/eabi.asm: Remove ABI save restore routines.
8018         * config/rs6000/t-ppccomm: Build crtsavres.o.
8019         * config/rs6000/crtsavres.asm: New file.
8021 2002-02-19  Philip Blundell  <philb@gnu.org>
8023         * config/arm/arm.c (use_return_insn): Don't reject interrupt
8024         functions.
8025         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
8026         (output_return_instruction): Allow interrupt functions to return with
8027         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
8028         (arm_expand_prologue): Subtract 4 before stacking LR in an
8029         interrupt function.
8031 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
8033         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
8034         decl, not just FUNCTION_DECL.
8035         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
8036         (arm_assemble_integer): Likewise.
8037         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
8038         marked local.
8040 2002-02-19  matthew green  <mrg@eterna.com.au>
8042         * config.gcc (sparc-*-netbsdelf*): Enable target.
8043         (sparc64-*-netbsd*): New target.
8044         * config/sparc/netbsd-elf.h: New file.
8045         * config/sparc/t-netbsd64: New file.
8047 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
8049         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
8051 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
8053         * doc/invoke.texi: explicitly list the style guidelines that
8054         -Weffc++ checks for.
8056 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
8058         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
8060 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8062         PR other/5718
8063         * gcc.c (cpp_unique_options): Treat -o as indicating object file
8064         only if not -E.  If -E, pass -o through to the preprocessor.
8066 2002-02-19  Kazu Hirata  <kazu@hxi.com>
8068         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
8069         register number with an appropriate macro.
8071 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
8073         * doc/rtl.texi (Constants): Close @code tag.
8075 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
8077         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
8078         ("mmx_uavgv4hi3"): Same.
8079         ("pmulhrwv4hi3"): Same.
8081         * tree-inline.c (walk_tree): Handle vectors.
8083         * c-common.c (constant_expression_warning): Handle vectors.
8084         (overflow_warning): Same.
8086         * sched-deps.c (sched_analyze_2): Handle vectors.
8088         * rtlanal.c (rtx_unstable_p): Handle vectors.
8089         (rtx_varies_p): Same.
8090         (count_occurrences): Same.
8091         (regs_set_between_p): Same.
8092         (modified_between_p): Same.
8093         (modified_in_p): Same.
8094         (volatile_insn_p): Same.
8095         (volatile_refs_p): Same.
8096         (side_effects_p): Same.
8097         (may_trap_p): Same.
8098         (inequality_comparisons_p): Same.
8099         (replace_regs): Same.
8100         (computed_jump_p_1): Same.
8102         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
8103         argument.
8104         (inner_mode_array): New.
8105         (copy_rtx): Handle vectors.
8106         (copy_most_rtx): Same.
8107         (rtx_equal_p): Same.
8108         (get_mode_alignment): Adjust for vectors.
8110         * resource.c (mark_referenced_resources): Handle vectors.
8111         (mark_set_resources): Same.
8113         * reload1.c (eliminate_regs): Handle vectors.
8114         (elimination_effects): Same.
8115         (scan_paradoxical_subregs): Same.
8117         * reload.c (subst_reg_equivs): Handle vectors.
8119         * regrename.c (scan_rtx): Handle vectors.
8121         * regclass.c (reg_scan_mark_refs): Handle vectors.
8123         * recog.c (find_single_use_1): Handle vectors.
8125         * local-alloc.c (equiv_init_varies_p): Handle vectors.
8126         (contains_replace_regs): Same.
8127         (memref_referenced_p): Same.
8129         * integrate.c (copy_rtx_and_substitute): Handle vectors.
8130         (subst_constants): Same.
8132         * genattrtab.c (attr_copy_rtx): Handle vectors.
8133         (encode_units_mask): Same.
8134         (clear_struct_flag): Same.
8135         (count_sub_rtxs): Same.
8137         * gcse.c (want_to_gcse_p): Handle vectors.
8138         (oprs_unchanged_p): Same.
8139         (hash_expr_1): Same.
8140         (oprs_not_set_p): Same.
8141         (expr_killed_p): Same.
8142         (compute_transp): Same.
8143         (store_ops_ok): Same.
8145         * function.c (purge_addressof_1): Do not allow paradoxical subregs
8146         of vectors.
8147         (fixup_var_refs_1): Same.
8148         (instantiate_virtual_regs_1): Same.
8150         * fold-const.c (operand_equal_p): Handle vectors.
8151         (fold): Same.
8152         (rtl_expr_nonnegative_p): Same.
8154         * flow.c (mark_used_regs): Handle vectors.
8156         * df.c (df_uses_record): Handle vectors.
8158         * cselib.c (cselib_subst_to_values): Handle vectors.
8159         (cselib_mem_conflict_p): Same.
8160         (hash_rtx): Same.
8162         * cse.c (canon_reg): Handle vectors.
8163         (fold_rt): Same.
8164         (cse_process_notes): Same.
8165         (count_reg_usage): Same.
8166         (canon_hash): Same.
8168         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
8170         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
8172         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
8173         (gen_rtx): Handle CONST_VECTOR.
8174         (gen_const_vector_0): New.
8175         (copy_rtx_if_shared): CONST_VECTORs can be shared.
8176         (reset_used_flags): Same.
8177         (copy_insn_1): Same.
8178         (initializer_constant_valid_p): Handle VECTOR_CST.
8180         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
8182         * doc/rtl.texi (Constants): Document const_vector.
8183         (CONST0_RTX): Update for vectors.
8184         (RTL sharing): Same.
8186         * print-tree.c (print_node): Add case for VECTOR_CST.
8188         * tree.h (TREE_VECTOR_CST_ELTS): New.
8189         (struct tree_vector): New.
8190         (union tree_node): Add vector node.
8191         (build_vector): Add prototype.
8193         * tree.def (VECTOR_CST): New.
8195         * tree.c (build_vector): New.
8197         * expmed.c (make_tree): Handle CONST_VECTOR.
8199         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
8200         (CONST_VECTOR_ELT): New.
8201         (CONST_VECTOR_NUNITS): New.
8203         * machmode.h (GET_MODE_INNER): New.
8204         (DEF_MACHMODE): Accept 8th arg.
8206         * machmode.def: Add 8th argument for vector inner mode.
8207         Add inner vector modes for vectors.
8209         * rtl.def (VEC_CONST): Remove.
8210         (CONST_VECTOR): New.
8212         * expr.c (clear_storage): Allow vectors.
8213         (is_zeros_p): Handle VECTOR_CST.
8215         * varasm.c (output_constant_pool): Handle vectors.
8216         (rtx_const): Add veclo and vechi fields.
8217         (kind): Add RTX_VECTOR.
8218         (decode_rtx_const): Add case for vector.
8220         * config/rs6000/rs6000-protos.h: Add zero_constant.
8222         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
8223         constants.  Force easy vector constants into memory.
8224         (easy_vector_constant): New.
8225         (emit_easy_vector_constant): New.
8226         (rs6000_legitimize_reload_address): Do not generate bad reloads on
8227         darwin.
8229         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
8230         instruction does.
8231         ("altivec_lvxl"): Same.
8232         (altivec_lvebx): Same.
8233         (altivec_lvehx): Same.
8234         (altivec_lvewx): Same.
8235         ("*movv4si_const0"): New.
8236         ("*movv4sf_const0"): New.
8237         ("*movv8hi_const0"): New.
8238         ("*movv16qi_const0"): New.
8240 2002-02-18  Kazu Hirata  <kazu@hxi.com>
8242         * config/h8300/h8300.c (notice_update_cc): Use
8243         cc_status.value2.
8245 2002-02-18  Kazu Hirata  <kazu@hxi.com>
8247         * config/h8300/h8300.md (divmod patterns): Change the
8248         constraints for operands[1] to register_operand.
8250 2002-02-18  Kazu Hirata  <kazu@hxi.com>
8252         * config/h8300/h8300-protos.h: Remove the prototype for
8253         p_operand.
8254         * config/h8300/h8300.c (p_operand): Remove.
8255         * config/h8300/h8300.md: Replace p_operand with
8256         const_int_operand.
8258 2002-02-18 Philip Blundell <pb@nexus.co.uk>
8260         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
8261         comment.
8262         (output_return_instruction): Allow use of LDR to unstack
8263         return addresss even for interrupt handlers or when
8264         interworking.  If compiling for ARMv5, use interworking-safe
8265         return instructions by default.  Remove duplicated code and
8266         lengthy "strcat" sequences.
8268 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8270         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
8271         (LINK_EH_SPEC): Define.
8272         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
8274 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
8276         * config/s390/s390.c (s390_emit_prologue): Do not set the
8277         frame_related flag for call-clobbered registers.
8279 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8281         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
8282         (construct_container): Fix handling of SSE operands.
8283         (ix86_expand_builtin): Fix handling of 64bit pointers.
8284         (mmx_maskmovq_rex): New pattern.
8286 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8288         * regrename.c (kill_set_value): Handle subregs properly.
8290 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
8292         * objc/objc-act.c (handle_impent): Remove leading '*'
8293         from objc_class_name.
8295 2002-02-17  Richard Henderson  <rth@redhat.com>
8297         * config/alpha/alpha.c (some_small_symbolic_operand,
8298         some_small_symbolic_operand_1, split_small_symbolic_operand,
8299         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
8300         Handle small SYMBOL_REFs anywhere, not just inside memories.
8301         * config/alpha/alpha-protos.h: Update.
8302         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8303         * config/alpha/alpha.md (small symbolic operand splitter): Update.
8305 2002-02-17  Roland McGrath  <roland@frob.com>
8307         * config.gcc (powerpc-*-gnu-gnualtivec*,
8308         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
8309         * config/rs6000/gnu.h: New file.
8310         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
8311         Grok "gnu" in rs6000_abi_name.
8312         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
8313         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
8314         Grok -mcall-gnu analogous to -mcall-linux et al.
8315         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8316         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
8317         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
8319 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
8321         PR c/3444:
8322         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
8323         shortening.
8325 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8327         * config/cris/cris.h: Undefine STARTFILE_SPEC and
8328         ENDFILE_SPEC before (re)defining them.
8330 2002-02-17  Kazu Hirata  <kazu@hxi.com>
8332         * config/h8300/h8300.c: Fix formatting.
8333         * config/h8300/h8300.h: Likewise.
8335 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8337         * doc/tm.texi: Explain why empty strings should not be
8338         marked for translation.
8340 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8342         * final.c (output_operand_lossage): Changed to accept
8343         printf style arguments. Change calls where necessary.
8344         * output.h (output_operand_lossage): Change declaration
8345         accordingly. Update copyright.
8346         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
8347         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
8348         Update copyright date where necessary.
8350         * config/i386/i386.c (print_operand): Likewise. Remove use of
8351         sprintf.
8353         * config/cris/cris.c (cris_operand_lossage): Likewise.
8354         Rename parameter so that exgettext recognizes it as
8355         translatable message.
8356         (LOSE_AND_RETURN): Rename parameter to msgid.
8358 2002-02-17  Kazu Hirata  <kazu@hxi.com>
8360         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
8361         hard coded register number with an appropriate macro.
8362         (HARD_REGNO_MODE_OK): Likewise.
8363         (ARG_POINTER_REGNUM): Likewise.
8364         (STATIC_CHAIN_REGNUM): Likewise.
8365         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8366         * config/h8300/h8300.md (define_constants): Define more
8367         register numbers.
8369 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8371         * config/i386/i386.h: Don't mark empty strings for translation.
8373 2002-02-16  H.J. Lu <hjl@gnu.org>
8375         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8377 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
8379         * cppinit.c (merge_include_chains): Check for brack being
8380         NULL before attempting to merge it with qtail.
8382 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8384         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8385         DBX_DEBUG.
8387 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8389         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8391 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8393         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
8394         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
8395         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
8397 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8399         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
8400         now only if !TARGET_FIX.
8401         (*movsi_nt_vms_fix): New pattern.
8403 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
8405         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
8406         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
8407         (alpha_sa_mask, alpha_sa_size): Reflect above change.
8408         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
8409         (alpha_start_function, alpha_expand_epilogue): Likewise.
8410         (unicosmk_gen_dsib): Likewise.
8412 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8414         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
8416 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
8418         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
8419         check_and_change_labels, s390_final_chunkify): Delete.
8420         (s390_split_branches, s390_chunkify_pool): New functions.
8421         (s390_function_prologue): Call them.
8423         * config/s390/s390.h (S390_REL_MAX): Delete.
8424         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
8426         * config/s390/s390.md (cjump, icjump, jump): Fix length
8427         attribute calculation.
8430 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
8432         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
8433         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
8435 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8437         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
8438         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8439         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
8441 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
8443         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
8445 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
8447         * reload.c (find_dummy_reload): Check that an output register
8448         is valid for its mode.
8450 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
8452         * combine.c (known_cond): After replacing the REG of a SUBREG, try
8453         to simplify it.
8455         * function.c (assign_parms): Demote promoted argument passed by
8456         transparent reference.
8458 2001-02-14      Joel Sherrill <joel@OARcorp.com>
8460         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
8461         -Acpu() and -Amachine() to eliminate warnings.
8463 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
8465         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
8467 2002-02-14  Kazu Hirata  <kazu@hxi.com>
8469         * config/h8300/h8300-protos.h: Update the prototype for
8470         const_costs.
8471         * config/h8300/h8300.c (const_costs): Treat SET as a little
8472         more expensive operation.
8473         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
8474         reference to const_costs.
8476 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
8478         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
8480 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
8482         PR c/5503:
8483         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
8484         use arguments from newtype.
8486 2002-02-13  Eric Christopher  <echristo@redhat.com>
8488         * config/mips/mips.c (override_options): Add check for march/mipsX
8489         on the same command line. Fix error message in cpu processing.
8490         Remove architecture and ISA checks.
8492 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
8494         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
8496         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
8498 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
8500         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
8501         alternatives.
8502         ("*movv8hi_internal1"): Same.
8503         ("*movv16qi_internal1"): Same.
8504         ("*movv4sf_internal1"): Same.
8506         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
8507         not push_reload for altivec modes.
8509 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
8511         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
8512         all RTEMS targets including removal of #includes from config/*/rtems*.h
8513         file and adding them to tm_file setting. Added xm_defines=POSIX to
8514         many targets.
8515         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
8516         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
8517         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
8518         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
8519         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
8520         config/m68k/rtemself.h: Ditto.
8521         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
8522         config/mips/rtems64.h: Ditto.
8523         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
8524         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
8525         Ditto.
8526         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
8527         config/sparc/rtemself.h: Ditto.
8528         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
8529         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
8530         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
8531         more like arm-elf.
8532         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
8533         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
8534         target made more similar to i386-elf.
8535         * config/i386/t-rtems-i386: Added soft float support and multilibs.
8536         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
8537         be similar to config/m68k/t-m68kelf.
8538         * gthr-rtems.h: Encapsulate with extern "C" for C++.
8540 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
8542         * regmove.c (kill_value): Handle subregs.
8544 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8546         * i386.md (mul patterns): Allow memory operand to be first;
8547         add expanders where needed; fix constraints.
8548         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
8549         Allow memory operand to be the first.
8551         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
8552         operands.
8554 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8556         PR c/5681:
8557         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
8558         GET_MODE (x).
8560 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8562         PR optimization/5547:
8563         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
8564         all valid IA-32 address modes involving non-scaled %ebx and
8565         GOT/GOTOFF as displacement.
8567 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
8569         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
8570         after emitting ltorg insns.
8572         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
8573         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
8574         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
8575         *abssf2): Fix "op_type" attribute.
8577 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
8579         * mkconfig.sh: Avoid using a subshell redirect.
8580         ($output.T): Change to $(output)T.
8581         (ENABLE_NLS): Remove unneeded undef.
8583         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
8584         * config/alpha/x-vms (libsubdir): Define.
8586         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
8587         register frame procedures. Optimize retrieving context.
8589         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
8590         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
8591         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
8593 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8595         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8596         Make same change as for find_base_value.
8598 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8600         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8601         of QImode and SImode.
8603 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8605         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
8606         length computation of movsi.
8607         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
8609 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8611         * config/h8300/h8300.md (subqi3): Tighten the predicate for
8612         operands[2] to register_operand.
8614 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8616         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8618 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
8620         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8621         for altivec_lvx* and altivec_stvx*.
8622         ("*movv4si_internal"): Add constraint for loading from GPRs.
8623         ("*movv8hi_internal1"): Same.
8624         ("*movv16qi_internal1"): Same.
8625         ("*movv4sf_internal1"): Same.
8627         * config/rs6000/rs6000.c (altivec_register_operand): New.
8629         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8630         altivec_register_operand.
8632 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
8634         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8635         handle SYMBOL_REF.
8637 2002-02-13  Stan Shebs  <shebs@apple.com>
8639         * c-typeck.c (digest_init): Handle vectors.
8640         (really_start_incremental_init): Same.
8641         (pop_init_level): Same.
8642         (process_init_element): Same.
8644         * varasm.c (output_constant): Same.
8646         * expr.c (clear_storage): Same.
8647         (store_constructor): Same.
8649 2002-02-12  Eric Christopher  <echristo@redhat.com>
8651         * explow.c (hard_function_value): Add comment explaining
8652         signed/unsigned comparison.
8654 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
8656         * jump.c (never_reached_warning): Add finish argument.
8657         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8658         real insn after end.
8659         * rtl.h (never_reached_warning): Adjust prototype.
8660         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8661         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8662         never_reached_warning.
8664 2002-02-12  Graham Stott  <grahams@redhat.com>
8666         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8668 2002-02-12  Kazu Hirata  <kazu@hxi.com>
8670         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8671         logical shifts on H8/300.
8672         (shift_alg_si): Improve several shifts on H8/300.
8673         (get_shift_alg): Likewise.
8675 2002-02-12  Graham Stott  <grahams@redhat.com>
8677         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8679 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8681         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8682         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8684 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
8686         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8687         non-CONST_INT through default_assemble_integer.
8688         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8689         <case 8>: Abort for CONST_DOUBLE.
8691 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8693         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8694         is specified.
8695         * config/pa/pa-linux.h (LIB_SPEC): Delete.
8696         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8698 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
8700         * config/stormy16/stormy16.md (zero_extendqihi2): New.
8702 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
8704         * regrename.c (regrename_optimize): Don't accept a
8705         part-clobbered register if the replaced register is not part
8706         clobbered.
8708         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8709         take padding into account when computing the argument value.
8711         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8713         * combine.c (try_combine): Apply substitutions in
8714         CALL_INSN_FUNCTION_USAGE too.
8716 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
8718         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8719         __builtin_altivec_abs*.
8720         (bdesc_abs): New.
8722         * config/rs6000/rs6000.h (rs6000_builtins): Add
8723         ALTIVEC_BUILTIN_ABS*.
8725         * config/rs6000/altivec.h: Use const char for builtins expecting
8726         literals.
8727         (vec_abs): New versions for C and C++.
8728         (vec_abss): Same.
8730 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8732         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8733         using Pmode.
8735 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8737         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
8738         constant definition from h8300.md.
8739         (FRAME_POINTER_REGNUM): Likewise.
8740         * config/h8300/h8300.md (define_constants): Add FP_REG.
8742 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8744         * config/h8300/h8300.c (print_operand): Remove redundant code.
8746 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8748         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
8749         * config/h8300/h8300.c (byte_reg): Make it static.
8751 2002-02-10  Richard Henderson  <rth@redhat.com>
8753         PR c/5623
8754         * c-typeck.c (incomplete_type_error): Handle flexible array members.
8756 2002-02-10  Richard Henderson  <rth@redhat.com>
8758         PR c++/5624
8759         * tree.c (append_random_chars): Don't abort if main_input_filename
8760         does not exist.
8762 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
8764         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8766 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8768         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8769         (pushhi1): Likewise.
8771 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8773         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8774         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8776 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
8778         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8779         remove MASK_VIS.
8780         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
8782 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8784         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8785         a half of an SImode register on H8/300.
8787 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
8789         * i386.md (movdi_2): Add missing '!'.
8791 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8793         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
8794         definitions.
8796 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8798         * config/h8300/h8300.md (length): Correct the distance valid
8799         for the short branch.
8801 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8803         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8805 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8807         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8808         registers in SImode.
8809         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8810         part-clobbered.
8812         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8813         patch.
8815         Contribute sh64-elf.
8816         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8817         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8818         (sh_cannot_modify_jumps_p): New function.
8819         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
8820         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8821         (sh_ms_bitfield_layout_p): New function.
8822         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
8823                     Zack Weinberg  <zack@codesourcery.com>
8824         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8825         expand_simple_binop instead of expand_binop.
8826         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
8827         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8828         use of .quad and .uaquad.
8829         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8830         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8831         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8832         * config/sh/sh.md (movdi_const, movdi_const_32bit,
8833         movdi_const_16bit): Make sure all CONSTs have modes.
8834         (sym2PIC): Ditto, but by adjusting all callers.
8835         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8836         if the prologue calls the SHmedia argument decoder or register
8837         saver.
8838         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8839         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8840         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8841         (sh_expand_epilogue): Don't emit USE of return target register.
8842         (prepare_move_operands): Legitimize DImode PIC addresses.
8843         (sh_media_register_for_return): Skip tr0, used to initialize the
8844         PIC register.
8845         (sh_expand_prologue): Remove explicit USE of return register.
8846         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
8847         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
8848         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8849         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8850         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8851         EXTRA_CONSTRAINT_T.
8852         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8853         (MOVI_SHORI_BASE_OPERAND_P): New.
8854         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8855         (EXTRA_CONSTRAINT_T): Define in terms of them.
8856         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8857         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8858         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8859         alternatives supporting TARGET_REGS.
8860         (UNSPEC_GOTPLT): New constant.
8861         (movdi split): Move incrementing of LABEL_NUSES...
8862         (movdi_const, movdi_const_32bit): Here.  Use
8863         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8864         (movdi_const_16bit): New.
8865         (call, call_value) [flag_pic]: Use GOTPLT.
8866         (call_pop, call_value_pop): New expands.
8867         (call_pop_compact, call_pop_rettramp): New insns.
8868         (call_value_pop_compact, call_value_pop_rettramp): New insns.
8869         (sibcall) [flag_pic]: Use GOT.
8870         (builtint_setjmp_receiver): Remove bogus, unused expand.
8871         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8872         (*pt, *ptb, ptrel): New insns.
8873         (sym2GOT): Handle DImode GOT.
8874         (sym2GOTPLT, symGOTPLT2reg): New expands.
8875         (sym2PIC): New expand.
8876         (shcompact_return_tramp): Use GOTPLT to return trampoline.
8877         (shcompact_return_tramp_i): Use return register explicitly.
8878         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8879         disable flag_reorder_blocks.
8880         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8881         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8882         clobbers, for clarity.
8883         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8884         restoring of r0 in macl as MAYBE_DEAD.
8885         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
8886         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8887         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8888         alter_subreg all over.
8889         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8890         reload, instead of emitting instructions that would require
8891         reloading.
8892         (casesi_load_media): Add missing modes.
8893         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
8894         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8895         as used if the argument decoder is called.
8896         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8897         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8898         Pmode, then extend it to DImode if necessary.
8899         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8900         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8901         constants in FPU-enabled SHmedia, let them be loaded from memory.
8902         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8903         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8904         Adjust whitespace in assembly output templates.
8905         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8906         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8907         mode of if_then_else.
8908         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
8909         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8910         sh.h.
8911         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
8912                     Joern Rennecke <amylaar@redhat.com>
8913         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8914         (SUBTARGET_CPP_PTR_SPEC): New.
8915         (SUBTARGET_CPP_SPEC): Remove.
8916         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8917         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8918         Fix typo in previous checkin.
8919         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8920         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8921         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8922                     Alexandre Oliva  <aoliva@redhat.com>
8923         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8924         what single FP register can hold for SHmedia target.
8925         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8926                     Alexandre Oliva  <aoliva@redhat.com>
8927         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8928         Do not split into SUBREG.
8929         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8930         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8931         and added new functions as specified in SH5 ABI r9.
8932         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8933         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8934         8-byte boundary.
8935         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8936         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8937         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8938         and consttable_window_ends.
8939         2001-06-03  Graham Stott  <grahams@redhat,com>
8940         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8941         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8942         * config/sh/sh.c (print_operand): Handle floating-point pair,
8943         vector and matrix registers.
8944         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8945         vector modes into account.
8946         * config/sh/sh.md (movv2sf): Split move between registers into
8947         movdf.
8948         (movv4sf, movv16sf): Introduce insns that get split only after
8949         reload.
8950         * config/sh/shmedia.h: Fix Copyright dates.
8951         * config/sh/ushmedia.h: Likewise.  Move loop counter
8952         declarations into conditionals that uses them.
8953         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8954         loop boundary.
8955         * config/sh/sshmedia.h: Fix Copyright dates.
8956         (sh_media_PUTCFG): Fix constraints.
8957         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8958         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8959         ptrmemfunc_vbit_in_delta for SH5.
8960         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8961         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8962         * invoke.texi: Likewise.
8963         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8964         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8965         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8966         GCC_pop_shmedia_regs_nofpu): New global symbols.
8967         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8968         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8969         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8970         compact function with nonlocal labels.
8971         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8972         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8973         (initial_elimination_offset): Account for their stack space.
8974         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8975         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8976         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8977         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8978         least one of the operands to be a register.
8979         (movv2sf): Likewise.  Renamed to movv2sf_i.
8980         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8981         prepare_move_operands() before emitting SHmedia insns.
8982         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8983         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8984         Don't save nor initialize r12.  Don't mis-align the stack.
8985         Pad the code with a nop.
8986         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8987         stack.
8988         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8989         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8990         [__SHMEDIA__]: Implement.
8991         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8992         * config/sh/sh.md: Set latency of `pt' closer to reality.
8993         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8994         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8995         Set move, load and store type attributes.
8996         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8997         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8998         profiling.
8999         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
9000         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
9001         * config/sh/sh.c (sh_media_register_for_return): New function.
9002         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
9003         branch-target register.
9004         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
9005         * config/sh/sh.md (return_media_i): Use any call-clobbered
9006         branch-target register.
9007         (return_media): If r18 wasn't copied in the prologue, copy it
9008         here.
9009         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
9010         Clear class FP0_REGS.
9011         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
9012         from elf.h.
9013         2001-03-08  DJ Delorie  <dj@redhat.com>
9014         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
9015         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
9016         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
9017         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
9018         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
9019         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
9020         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
9021         return value correctly for call_cookie.
9022         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
9023         * config/sh/crt1.asm (start): Modified so as to call
9024         ___setup_argv_and_call_main.
9025         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
9026         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
9027         SHmedia mode.
9028         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
9029         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
9030         (STRIP_NAME_ENCODING): Use it.
9031         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
9032         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
9033         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
9034         prepare_scc_operands().
9035         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
9036         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
9037         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
9038         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
9039         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
9040         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
9041         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
9042         used in shcompact_incoming_args.
9043         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
9044         change.
9045         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
9046         mode.
9047         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
9048         Adjust accordingly.
9049         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9050         Simplify.  Adjust.  Add sanity check.
9051         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
9052         FPU_SINGLE_BIT.
9053         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
9054         TARGET_SHCOMPACT.
9055         (udivsi3, divsi3): Use them.
9056         (force_mode_for_call): New insn.
9057         (call, call_value, sibcall_value): Emit it before SHcompact
9058         calls.
9059         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
9060         * config/sh/sh.md (call, call_value, sibcall): Make sure the
9061         call cookie is non-NULL before taking its value.
9062         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
9063         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
9064         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
9065         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
9066         block.
9067         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
9068         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
9069         temporary for stack adjusts.  Use MACL and MACH to pass
9070         arguments to shcompact_incoming_args.
9071         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
9072         clobber r1.
9073         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
9074         (nested_trampoline): Load static chain address into r1.
9075         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
9076         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
9077         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
9078         fp_arith_reg_operand().
9079         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
9080         * config/sh/sh.md (casesi): Sign-extend the first two operands,
9081         and use signed compares for them.
9082         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
9083         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
9084         ones properly aligned.
9085         (find_barrier): Account for extra alignment needed for 8-byte wide
9086         constants.
9087         (machine_dependent_reorg): Require a label for the second 4-byte
9088         constant after an 8-byte one.
9089         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
9090         change.
9091         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
9092         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
9093         last_float when switching float modes.
9094         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
9095         auto-increment for general-purpose registers.
9096         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
9097         result.
9098         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
9099         for stack adjust.
9100         * config/sh/sh.c (sh_builtin_saveregs): Support using all
9101         registers for varargs.
9102         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
9103         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
9104         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
9105         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
9106         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
9107         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
9108         call_cookie accordingly.
9109         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
9110         (SHCOMPACT_BYREF): Likewise.
9111         (SHCOMPACT_FORCE_ON_STACK): New macro.
9112         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
9113         (sh_builtin_saveregs): Likewise.
9114         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9115         shcompact_incoming_args): Use new shift values.  Support
9116         sequences of consecutive and non-consecutive pushes/pops.
9117         * config/sh/sh.md (return): Don't explicitly use PR_REG.
9118         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
9119         * config/sh/sh.h (TEXT_SECTION): Define.
9120         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
9121         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
9122         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
9123         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
9124         return values on FPU-enabled SHmedia.
9125         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
9126         FPU-enabled SHmedia.
9127         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
9128         value is returned in a non-FP reg and is not returned by
9129         reference.
9130         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
9131         jump_ind.
9132         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
9133         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
9134         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
9135         quad-aligned to be passed by callee-copy reference.
9136         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
9137         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
9138         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
9139         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
9140         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
9141         copying low-numbered FP regs to r7 and r8.
9142         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
9143         FP regs to general-purpose regs only if the copy was passed on the
9144         stack.
9145         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
9146         copying FP reg to r9.
9147         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
9148         copy FP regs to general-purpose regs only in outgoing calls.
9149         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
9150         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
9151         HOST_WIDE_INT.
9152         * config/sh/sh.h (struct sh_args): Document all fields.
9153         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
9154         passed partially on the stack should not consider making
9155         sibcalls.
9156         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
9157         stack_regs only for incoming calls.  When passing FP args,
9158         make sure there are FP regs available before modifying
9159         call_cookie.
9160         (SHCOMPACT_BYREF): Pass double args in general-purpose
9161         registers by reference.
9162         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
9163         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
9164         attempt to generate sibcalls if the caller got any arguments
9165         by reference.
9166         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
9167         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
9168         to 8-byte boundaries.
9169         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
9170         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
9171         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
9172         stored in the stack.
9173         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
9174         for the offsets to have the ISA bit set.
9175         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
9176         invocation.  Use beq instead of bgt to mark end of sequence of
9177         loads.
9178         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
9179         bgt to mark end of sequence of stores.
9180         * config/sh/sh.c (arith_operand): Don't check whether
9181         CONST_OK_FOR_J for now.
9182         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
9183         instead of long for conversion.
9184         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
9185         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
9186         before passing it to fprintf.
9187         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
9188         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
9189         Call set_fpscr before reading/writing SR.
9190         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
9191         Call set_fpscr.
9192         * config/sh/lib1funcs.asm: Add `.align 2' directives before
9193         SHmedia code.
9194         (FMOVD_WORKS): Define on SH5 with FPU.
9195         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
9196         setting.
9197         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
9198         _fpscr_values.
9199         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
9200         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
9201         address.
9202         (ia_main_table): Ditto.
9203         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
9204         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
9205         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
9206         the definitions from sh.h.
9207         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
9208         TARGET_SH5.
9209         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
9210         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
9211         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9212         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
9213         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
9214         Increment LABEL_NUSES.
9216         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
9217         TARGET_SH5.
9218         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
9219         defined.
9220         * config/sh/elf.h (SIZE_TYPE): Likewise.
9221         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9222         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9223         shcompact_incoming_args): Load switch table addresses using
9224         datalabel.
9225         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9226         (NO_BUILTIN_SIZE_TYPE): Define.
9227         (SIZE_TYPE): Don't define.
9228         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9229         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
9230         definition of __SH5__=32 for -m5-compact-nofpu.
9231         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
9232         ADDR_DIFF_VEC.
9233         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
9234         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
9235         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
9236         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
9237         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
9238         (INSN_LENGTH_ALIGNMENT): Likewise.
9239         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
9240         * config/sh/sh.md (call, call_value, sibcall): Simplify
9241         copying of non-branch-target register.
9242         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
9243         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
9244         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
9245         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
9246         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
9247         floating-point values as structs.
9248         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
9249         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
9250         general-purpose register.
9251         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
9252         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
9253         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
9254         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
9255         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
9256         (ENCODE_SECTION_INFO): Enclose variables and constants in
9257         DATALABEL unspecs.
9258         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
9259         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
9260         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
9261         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
9262         only for LABEL_REFs.  For SYMBOL_REFs, prepend
9263         SH_DATALABEL_ENCODING to the symbol name.
9264         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
9265         convert_mode().
9266         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
9267         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
9268         UNSPEC_DATALABEL.
9269         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
9270         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
9271         (DATALABEL_REF_P): Don't require CONST.
9272         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
9273         REL label.
9274         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
9275         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
9276         right.
9277         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
9278         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
9279         Use shallow_copy_rtx and PUT_MODE to change the mode of
9280         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
9281         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
9282         on SHmedia using GENERAL_REGs.
9283         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9284         bltu_media_i): Fix reversion of conditions.
9285         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
9286         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
9287         * config/sh/sh.c (output_far_jump): Save r13 in macl.
9288         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
9289         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
9290         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
9291         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
9292         (GCC_nested_trampoline): Likewise.
9293         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
9294         * config/sh/sh.c (gen_datalabel_ref): Define.
9295         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
9296         (INITIALIZE_TRAMPOLINE): Likewise.
9297         (TRAMPOLINE_ADJUST_ADDRESS): Define.
9298         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
9299         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
9300         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
9301         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
9302         (ic_invalidate): Adjust for SH5.
9303         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
9304         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
9305         _nested_trampoline.
9306         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
9307         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
9308         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
9309         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
9310         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
9311         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
9312         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
9313         * config/sh/sh.c (target_reg_operand): Match only target-branch
9314         registers and pseudos that aren't virtual registers.
9315         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9316         Copy operands that don't match target_reg_operand to pseudos.
9317         (call_media, call_value_media, sibcall_media): Use
9318         target_reg_operand instead of target_operand.
9319         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
9320         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
9321         * config/sh/sh.c (target_reg_operand): Match hardware registers
9322         other than branch-target registers.
9323         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
9324         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
9325         (fpscr_values) [SH5 == 32]: Define.
9326         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
9327         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9328         Handle function addresses coming in SUBREGs.
9329         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
9330         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9331         shcompact_return_trampoline): Use datalabel where appropriate.
9332         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
9333         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
9334         general-purpose register to copy one branch-target register to
9335         another.
9336         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
9337         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
9338         SYMBOL_REFs with VOIDmode.
9339         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9340         bltu_media_i): New insns.
9341         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
9342         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
9343         (INIT_CUMULATIVE_ARGS): Likewise.
9344         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
9345         * machmode.def (V16SFmode): New mode.
9346         * c-common.c (type_for_mode): Support V2SF and V16SF.
9347         * tree.c (build_common_tree_nodes_2): Likewise.
9348         * tree.h (tree_index): Likewise.
9349         * calls.c (emit_call_1): Take args_so_far.  Adjust all
9350         callers.  Introduce CALL_POPS_ARGS.
9351         * tm.texi (CALL_POPS_ARGS): Document.
9352         * config/sh/crt1.asm: Implement in SHmedia mode.
9353         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
9354         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
9355         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
9356         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
9357         Implement divsi and udivsi in SHmedia mode.  Introduce
9358         SHcompact trampolines.
9359         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
9360         only in SHmedia64.
9361         (regno_reg_class): Rewrite.
9362         (fp_reg_names): Remove.
9363         (sh_register_names, sh_additional_register_names): New.
9364         (print_operand): Added `u'.  Support SUBREGs in addresses.
9365         Add parentheses around shifted CONSTs.
9366         (output_file_start): Output .mode and .abi directives.
9367         (shiftcosts, addsubcosts, multcosts): Adjust.
9368         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
9369         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
9370         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
9371         bytes, not registers.  Take into account the need for the
9372         SHcompact incoming args trampoline.  Adjust all callers.
9373         (sh_expand_prologue): Take stack_regs into account.  Call
9374         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
9375         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
9376         stack aligned as per SH5 ABI.
9377         (sh_builtin_saveregs): Support SH5 ABI.
9378         (sh_build_va_list, sh_va_start): Likewise.
9379         (initial_elimination_offset): Take alignment into account.
9380         Compute location of PR according to the SH5 stack frame.
9381         (arith_reg_operand): Reject branch-target registers.
9382         (shmedia_6bit_operand): New.
9383         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
9384         (target_reg_operand): Match DImode only.  Accept SUBREGs.
9385         (target_operand): New.
9386         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
9387         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
9388         SIBCALL_REGS for SHmedia.
9389         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
9390         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
9391         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
9392         (TARGET_SWITCHES): New SH5 flags.
9393         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
9394         VALID_REGISTER_P to disable unsupported registers.
9395         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
9396         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
9397         (FUNCTION_ARG_PADDING): Define.
9398         (FASTEST_ALIGNMENT): Adjust.
9399         (SH_REGISTER_NAMES_INITIALIZER): New.
9400         (sh_register_names): Declare.
9401         (DEBUG_REGISTER_NAMES): Define.
9402         (REGISTER_NAMES): Define based on sh_register_names.
9403         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
9404         (sh_additional_register_names): Declare.
9405         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
9406         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
9407         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
9408         (REGISTER_NATURAL_MODE): Define.
9409         (FIRST_PSEUDO_REGISTER): Adjust.
9410         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
9411         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
9412         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
9413         (VECTOR_MODE_SUPPORTED_P): Define.
9414         (REG_CLASS_CONTENTS): Adjust.
9415         (SMALL_REGISTER_CLASSES): Adjust.
9416         (REG_ALLOC_ORDER): Adjust.
9417         (INDEX_REG_CLASS): Adjust.
9418         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
9419         (CONST_OK_FOR_LETTER_P): Adjust.
9420         (PREFERRED_RELOAD_CLASS): Adjust.
9421         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
9422         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
9423         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
9424         (FIRST_FP_PARM_REG): Adjust.
9425         (CALL_POPS_ARGS): Define.
9426         (FUNCTION_ARG_REGNO_P): Adjust.
9427         (struct sh_args): New fields.
9428         (GET_SH_ARG_CLASS): Adjust.
9429         (INIT_CUMULATIVE_ARGS): Adjust.
9430         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
9431         (FUNCTION_ARG_ADVANCE): Adjust.
9432         (FUNCTION_ARG): Adjust.
9433         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
9434         (FUNCTION_ARG_CALLEE_COPIES): Define.
9435         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
9436         (STRICT_ARGUMENT_NAMING): Define.
9437         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
9438         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
9439         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
9440         (SETUP_INCOMING_VARARGS): Adjust.
9441         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
9442         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
9443         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
9444         (SUBREG_OK_FOR_INDEX_P): Adjust.
9445         (EXTRA_CONSTRAINT_S): Update.
9446         (EXTRA_CONSTRAINT_T): New.
9447         (EXTRA_CONSTRAINT): Adjust.
9448         (GO_IF_LEGITIMATE_INDEX): Adjust.
9449         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
9450         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
9451         (MOVE_MAX): Adjust.
9452         (MAX_MOVE_MAX): Define.
9453         (Pmode): Adjust.
9454         (CONST_COSTS): Adjust.
9455         (REGISTER_MOVE_COST): Adjust.
9456         (BRANCH_COST): Adjust.
9457         (TEXT_SECTION_ASM_OP): Adjust.
9458         (DBX_REGISTER_NUMBER): Adjust.
9459         (ASM_OUTPUT_DOUBLE_INT): New.
9460         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
9461         (PREDICATE_CODES): Adjust.
9462         (PROMOTE_MODE): Adjust.
9463         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
9464         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
9465         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
9466         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
9467         (DR0_REG, DR2_REG, DR4_REG): Renumber.
9468         (TR0_REG, TR1_REG, TR2_REG): New.
9469         (XD0_REG): Renumber.
9470         (UNSPEC_COMPACT_ARGS): New.
9471         (type): Added pt and ptabs.
9472         (length): Default to 4 on SHmedia.  Default pt length to 12
9473         and     20 on SHmedia32 and SHmedia64, respectively.
9474         (pt): New function unit.
9475         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
9476         Add whitespace between operands of SHmedia instructions.
9477         (movdicc): Fix.
9478         (adddi3_media, addsi3_media): Adjust constraints.
9479         (subsi3) [SHmedia]: Force operand 1 into a register.
9480         (udivsi3_i1_media, udivsi3_i4_media): New.
9481         (udivsi3): Support SHmedia.
9482         (divsi3_i1_media, divsi3_i4_media): New.
9483         (divsi3): Support SHmedia.
9484         (anddi3, iordi3, xordi3): Adjust constraints.
9485         (zero_extendhidi2, zero_extendqidi2): New.
9486         (extendsidi2, extendhidi2, extendqidi2): New.
9487         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
9488         (pop_e, pop_fpul, pop_4): Likewise.
9489         (movsi_media): Support FP and BT registers.
9490         (movsi_media_nofpu): New.  Adjust splits to DImode.
9491         (lduw, ldub): Renamed to zero_extend* above.
9492         (movqi_media): Fix typo.
9493         (movdi_media): Support FP and BT registers.
9494         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
9495         (movdi_const_32bit): New.
9496         (shori_media): Require immediate operand.  Use `u' for output.
9497         (movdf_media, movsf_media): Simplified.
9498         (movdf_media_nofpu, movsf_media_nofpu): New.
9499         (movdf, movsf): Adjust
9500         (movv2sf, movv2sf, movv16sf): New.
9501         (beq_media, beq_media_i): Adjust constraints.  Don't use
9502         scratch BT register.
9503         (bne_media, bne_media_i): Likewise.
9504         (bgt_media, bgt_media_i): Likewise.
9505         (bge_media, bge_media_i): Likewise.
9506         (bgtu_media, bgtu_media_i): Likewise.
9507         (bgeu_media, bgeu_media_i): Likewise.
9508         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
9509         bunordered): Emit jump insn.  Force operands to registers when
9510         needed.
9511         (jump_media, jump): Simplify.
9512         (call_compact, call_compact_rettramp): New.
9513         (call_value_compact, call_value_compact_rettramp): New.
9514         (call_media, call_value_media): Simplify.
9515         (sibcall_compact, sibcall_media): New.
9516         (call, call_value): Adjust for SHmedia and SHcompact.
9517         (sibcall, sibcall_value, untyped_call): Likewise.
9518         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
9519         (indirect_jump): Adjust for SHmedia.
9520         (casesi_jump_media): New.
9521         (nop): Re-enable for SHmedia.
9522         (call_site): Restrict to SH1.
9523         (casesi): Adjust for SHmedia.
9524         (casesi_shift_media, casesi_load_media): New.
9525         (return): Explicitly use PR register.  Call return trampoline
9526         on SHcompact.
9527         (return_i): Explicitly use PR register.
9528         (shcompact_return_tramp, shcompact_return_tramp_i): New.
9529         (return_media): Adjust.
9530         (shcompact_incoming_args): New.
9531         (epilogue): Adjust.
9532         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9533         (movstrsi): Disable on SH5.
9534         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
9535         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
9536         (subsf3, subsf3_media): Likewise.
9537         (mulsf3, mulsf3_media, mac_media): Likewise.
9538         (divsf3, divsf3_media): Likewise.
9539         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
9540         (floatsisf2, fux_truncsfsi2): Likewise.
9541         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
9542         constraints.
9543         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
9544         (cmpunsf_media, cmpsf): Likewise.
9545         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
9546         (abssf2, abssf2_media): Likewise.
9547         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
9548         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
9549         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
9550         (floatsidf2, fix_truncdfsi2): Likewise.
9551         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
9552         constraints.
9553         (cmpeqdf_media, cmpgtdf_media): Likewise.
9554         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
9555         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
9556         (absdf2, absdf2_media): Likewise.
9557         (extendsfdf2, extendsfdf2_media): Likewise.
9558         (truncsfdf2, truncsfdf2_media): Likewise.
9559         * config/sh/sh64.h: New file.
9560         * config/sh/t-sh64: New file.
9561         * config/sh/shmedia.h: New file.
9562         * config/sh/ushmedia.h: New file.
9563         * config/sh/sshmedia.h: New file.
9564         * configure.in: Added sh64-*-elf.
9565         * configure: Rebuilt.
9566         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
9567         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
9568         (reg_class_from_letter): Use `b' for TARGET_REGS.
9569         (print_operand): Support `%M', `%m', `AND' and
9570         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
9571         (andcosts): Adjust for SHmedia.
9572         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
9573         Likewise.
9574         (target_reg_operand): New function.
9575         * config/sh/sh-protos.h (target_reg_operand): Declare.
9576         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
9577         FP registers on SH5.
9578         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
9579         on SH4.
9580         (TARGET_REGISTER_P): New macro.
9581         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
9582         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
9583         (EXTRA_CONSTRAINT_S): New macro.
9584         (EXTRA_CONSTRAINT): Adjust.
9585         (FLOAT_TYPE_SIZE): Define to 32.
9586         (Pmode): DImode on SHmedia.
9587         (CONST_COSTS): Adjust for SHmedia literals.
9588         (PREDICATE_CODES): Added target_reg_operand.
9589         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
9590         * config/sh/sh.md: Remove all attrs from SHmedia insns.
9591         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
9592         (cmpdi): Accept SHmedia.
9593         (movdicc_false, movdicc_true): New insns.
9594         (movdicc): New expand.
9595         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
9596         no_new_pseudos.
9597         (addsi3_media): Match `S' constraint.
9598         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
9599         (negdi2): Expand for SHmedia.
9600         (one_cmpldi2): New expand.
9601         (zero_extendsidi2): Change from expand to insn.
9602         (extendsidi2): Add constraints.
9603         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
9604         LD/ST address.  Fix SI immediate loading split.
9605         (movhi_media, movqi_media, lduw, ldub): New insns.
9606         (movhi, movqi): Accept SHmedia.
9607         (shori_media, movdi_media): Relax input constraints.  Split
9608         symbolic constants.
9609         (movdf_media, movsf_media): New insn.  New split to movdi.
9610         (movdf, movsf): Match on SHmedia.
9611         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
9612         bgeu_media): New insns and splits.  New insns with `_i' suffix.
9613         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
9614         (bunordered): New expand.
9615         (jump_compact): Renamed from `jump'.
9616         (jump_media): New insn.
9617         (jump): New expand.
9618         (call_media, call_value_media): New insns.
9619         (call, call_value): Adjust.
9620         (indirect_jump_compact): Renamed from `indirect_jump'.
9621         (indirect_jump_media): New insn.
9622         (indirect_jump): New expand.
9623         (untyped_call, return): Accept SHmedia.
9624         (return_media): New insn.
9625         (prologue, epilogue, blockage): Accept SHmedia.
9626         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9627         (sunordered): New expand.
9628         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9629         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9630         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9631         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9632         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9633         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9634         abssf2_media): New insns.
9635         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9636         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9637         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9638         floatdidf2, floatsidf2_media, fix_truncdfdi2,
9639         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9640         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9641         absdf2_media): New insns.
9642         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9643         (extendsfdf2_media, truncdfsf2_media): New insns.
9644         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
9645         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9646         * config/sh/sh.h (CONST_OK_FOR_J): Document.
9647         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9648         * config/sh/sh.md (adddi3): New expand.
9649         (adddi3_media, adddi3z_media): New insns.
9650         (adddi3_compact): Renamed from adddi3.
9651         (addsi3_media): Use add.l r63 to add constant zero.
9652         (subdi3): New expand.
9653         (subdi3_media): New insn.
9654         (subdi3_compact): Renamed from subdi3.
9655         (mulsidi3): New expand.
9656         (mulsidi3_media): New insn.
9657         (mulsidi3_compact): Renamed from mulsidi3.
9658         (umulsidi3): New expand.
9659         (umulsidi3_media): New insn.
9660         (umulsidi3_compact): Renamed from umulsidi3.
9661         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9662         (ashlsi3, ashrsi3, lshrsi3): Use them.
9663         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9664         (ashldi3, ashrdi3, lshrdi3): Use them.
9665         (zero_extendsidi2): New expand.
9666         (extendsidi2): New insn.
9667         (movsi_media): New insn.  Split to movdi to load constants.
9668         (movsi): Enable for shmedia.
9669         (movdi_media): New insn.  Use shori_media to load wide constants.
9670         (short_media): New insn.
9671         (movdi): Enable for shmedia.
9672         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
9673         * config/sh/sh.h (CPP_SPEC): Added `m5'.
9674         (SUBTARGET_CPP_SPEC): Added `!m5'.
9675         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9676         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
9677         to all other SH variants.
9678         (TARGET_DEFAULT): Set to SH1_BIT.
9679         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9680         (BITS_PER_WORD): Raise to 64 on shmedia.
9681         (MAX_BITS_PER_WORD): Change to 64.
9682         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9683         (INT_TYPE_SIZE): Keep as 32.
9684         (UNITS_PER_WORD): Raise to 8 on shmedia.
9685         (MIN_UNITS_PER_WORD): Keep as 4.
9686         (POINTER_SIZE): Raise to 64 on shmedia.
9687         (CONST_OK_FOR_J): New macro.
9688         (CONST_OK_FOR_LETTER_P): Use it.
9689         (processor_type): Add PROCESSOR_SH5.
9690         * config/sh/sh.md: Conditionalize all expands, insns and
9691         splits to TARGET_SH1.
9692         (cpu): Added sh5.
9693         (addsi3_compact): Renamed from...
9694         (addsi3): Now an expand.
9695         (addsi3_media, subsi3_media): New insns.
9696         (subsi3): Don't negate constants with SHmedia.
9698         * hooks.c: New file.
9699         * hooks.h: New file.
9700         * Makefile.in (HOOKS_H): New.
9701         (TARGET_DEF_H): Added $(HOOKS_H).
9702         (OBJS): Added hooks.o.
9703         (cfgcleanup.o, bb-reorder.o): Added target.h.
9704         (hooks.o): Added dependencies.
9705         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9706         (TARGET_INITIALIZER): this.
9707         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9708         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9709         * bb-reorder.c: Include target.h.
9710         (reorder_basic_blocks): Skip if cannot modify jumps.
9711         * cfgcleanup.c: Include target.h.
9712         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9714 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9716         * config/mips/mips.md (casesi_internal, casesi_internal_di):
9717         Protect jump delay slot instructions with .set noreorder and
9718         .set nomacro.
9720 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9722         * config/mips/mips.md (casesi_internal_di): Calculate
9723         the index into the target offset table correctly.
9725 2002-02-08  Richard Henderson  <rth@redhat.com>
9727         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9728         * final.c (output_addr_const): Accept and discard SUBREG.
9729         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9730         mark them unknown instead.
9731         (simplify_subtraction): Handle RTX_UNKNOWN.
9732         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9734 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
9736         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9738 2002-02-08  Richard Henderson  <rth@redhat.com>
9740         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
9742 2002-02-08  Andreas Jaeger  <aj@suse.de>
9744         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
9745         * config/i386/t-linux64: New file.
9747 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
9749         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
9750         * c-parse.in (compstmt): Clear last_expr_type.
9752 2002-02-07  Richard Henderson  <rth@redhat.com>
9754         * loop.c (strength_reduce): Sink final_value when not
9755         eliminating a biv.
9757 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
9759         * config/sparc/freebsd.h: Fix mismatched spec {.
9761 2002-02-07  Richard Henderson  <rth@redhat.com>
9763         * cfgrtl.c: Include recog.h and insn-config.h.
9764         (keep_with_call_p): Fix general_operand invocation.
9765         * Makefile.in (cfgrtl.o): Update dependencies.
9767 2002-02-07  Kazu Hirata  <kazu@hxi.com>
9769         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9770         comment.  Accept HImode only if TARGET_H8300.
9772 2002-02-07  Eric Christopher  <echristo@redhat.com>
9774         * config/mips/crtn.asm: Cleanup #ifdefs.
9776 2002-02-07  Eric Christopher  <echristo@redhat.com>
9778         * config/mips/crti.asm: Add changes for mips16. mips16 uses
9779         register 7 as RA instead of $31.
9780         * config/mips/crtn.asm: Ditto.
9781         * config/mips/mips.c (mips_move_2words): Add case for
9782         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9783         (compute_frame_size): Fix typo.
9784         (save_restore_insns): Ditto.  Make documentation about using
9785         register $7 as return register more precise.
9786         (mips_expand_epilogue): Fix comment. Add code to work around not
9787         being able to add to the stack pointer directly.
9788         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9789         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9790         epilogue.
9792 2002-02-07  Tom Rix  <trix@redhat.com>
9794         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9795         immediates in ldu and stdu DS opcode field.
9796         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9797         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9798         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9800 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
9802         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9803         offset for stack bias.
9805 2002-02-07  H.J. Lu <hjl@gnu.org>
9807         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9809 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
9811         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9813 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
9815         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9816         * i386.c (x86_order_regs_for_local_alloc): New global function.
9817         * i386.h (REG_ALLOC_ORDER): CLeanup.
9818         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9820 2002-02-07  Richard Henderson  <rth@redhat.com>
9822         PR optimization/2463
9823         * alias.c (find_base_value): Recall base values for fixed hard regs.
9824         * loop.c (loop_regs_update): Don't use single_set on non-insns.
9826 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
9828         * config/mips/mips.md (define_delay) [mips16]: Adjust required
9829         length.
9831 2002-02-06  Richard Henderson  <rth@redhat.com>
9833         PR c/5609
9834         * stmt.c (resolve_operand_name_1): Take more care with mixed
9835         named and unnamed operands.
9837 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
9838             Jan Hubicka  <jh@suse.cz>
9840         * loop.c (remove_constant_addition): Avoid clobbering a shared
9841         CONST expression.
9843 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9845         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9846         * config/s390/t-linux64: New file.
9847         * config/s390/libgcc-glibc.ver: New file.
9849 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9851         * config/s390/linux64.h: Delete file.
9852         * config/s390/s390x.h: New file.
9853         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9854         as target header file.
9855         * config/s390/linux.h (TARGET_VERSION): Define depending on
9856         DEFAULT_TARGET_64BIT.
9857         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9858         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9859         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9860         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9861         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9862         (EXTRA_SPEC): New define.
9863         * config/s390/s390.h (TARGET_VERSION): Define depending on
9864         DEFAULT_TARGET_64BIT.
9865         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9867 2002-02-06  Jason Merrill  <jason@redhat.com>
9869         * c-decl.c (finish_function): Warn about a non-void function with
9870         no return statement and no abnormal exit.
9871         (current_function_returns_abnormally): New variable.
9872         (start_function): Clear it.
9873         (struct c_language_function): Add returns_abnormally.
9874         (push_c_function_context): Save it.
9875         (pop_c_function_context): Restore it.
9876         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9877         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9878         an explicit return type.
9879         * c-tree.h: Declare current_function_returns_abnormally.
9880         (C_FUNCTION_IMPLICIT_INT): New macro.
9881         * c-typeck.c (build_function_call): Set it.
9882         (c_expand_return): Set current_function_returns_value even if the
9883         value is erroneous.
9885 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9887         PR c/5420:
9888         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9889         unsafe for reevaluation.
9891 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9893         PR c/5482:
9894         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9895         EXPR_STMT, but COMPOUND_STMT, recurse into it.
9897 2002-02-06  Richard Henderson  <rth@redhat.com>
9899         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9900         be a general_operand.  Dest for function value must be a pseudo.
9902 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9904         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9905         as SYMBOL_REFs from the constant pool.
9907 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
9909         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9910         passed by invisible reference.
9912 2002-02-05  Richard Henderson  <rth@redhat.com>
9914         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9916 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
9918         Implement using "base addresses" in insn operands as default.
9919         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9920         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9921         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9922         used to read the rtx value.
9923         (mmix_target_asm_function_epilogue): Fix spacing.
9924         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9925         (mmix_legitimate_address): Ditto.
9926         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9927         should be loaded with a GETA insn.  Don't allocate needless extra
9928         char for nul termination and fix misleading comment.
9929         (mmix_print_operand_address): Handle constants if
9930         TARGET_BASE_ADDRESSES.
9931         (mmix_output_register_setting): Use base addressing if
9932         TARGET_BASE_ADDRESSES and the number of insns is 3.
9933         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9934         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9935         to use R as constraint, add LDA to match s.
9936         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9937         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9938         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9939         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9940         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9941         order with other fixed registers.
9942         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9943         other parameter/call-clobbered registers.
9944         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9945         -mbase-addresses, -mno-base-addresses.
9946         (MMIX Options): Ditto.
9948 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9950         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9952 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9954         * config/rs6000/altivec.h: Change elem to _S_elem.
9956 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9958         * config/netbsd.h (WCHAR_TYPE): Define.
9959         (WCHAR_TYPE_SIZE): Ditto.
9960         (WINT_TYPE): Ditto.
9961         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9962         (WCHAR_UNSIGNED): Ditto.
9963         (WCHAR_TYPE_SIZE): Ditto.
9964         (WINT_TYPE): Ditto.
9965         * config/arm/netbsd.h: Likewise.
9966         * config/i386/netbsd-elf.h: Likewise.
9967         * config/i386/netbsd.h: Likewise.
9968         * config/m68k/netbsd-elf.h: Likewise.
9969         * config/m68k/netbsd.h: Likewise.
9970         * config/ns32k/netbsd.h: Likewise.
9971         * config/sparc/netbsd.h: Likewise.
9972         * config/vax/netbsd.: Likewise.
9974 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9976         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9977         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9978         (TARGET_INITIALIZER): this.
9979         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9980         (BITFIELD_NBYTES_LIMITED): Markup fix.
9981         * tree.h (default_ms_bitfield_layout_p): Declare.
9982         (record_layout_info): Added prev_field.
9983         * tree.c (default_ms_bitfield_layout_p): New fn.
9984         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9985         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9986         * stor-layout.c: Include target.h.
9987         (start_record_layout): Initialize prev_field.
9988         (place_field): Handle MS bit-field layout, and disregard
9989         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9990         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9991         * Makefile.in (stor-layout.o): Adjust dependencies.
9993 2002-02-05  Jason Merrill  <jason@redhat.com>
9995         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9997 2002-02-05  Andreas Jaeger  <aj@suse.de>
9999         * crtstuff.c: Fix comments.
10001 2002-02-05  Richard Henderson  <rth@redhat.com>
10003         PR fortran/3393
10004         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
10005         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10007         PR fortran/3392
10008         * config/mips/mips.c (function_arg): Handle TImode.
10009         (function_arg_advance): Likewise.
10011 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10013         * config/rs6000/altivec.h (vec_step_help): Rename to
10014         __vec_step_help.
10016 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10018         * config/rs6000/altivec.h: Fix typos.
10020 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
10022         * config/arm/netbsd.h: Correct a comment.
10024 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10026         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
10027         building void typed builtins.
10029         * config/rs6000/altivec.h (vec_ld*): Fix typos.
10030         (vec_step): Implement for C++.
10032 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10034         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
10036 2002-02-04  Richard Henderson  <rth@redhat.com>
10038         * combine.c (nonzero_bits): Re-introduce special case for
10039         sp/fp/ap wrt REGNO_POINTER_ALIGN.
10041 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10043         * doc/extend.texi: Warn about unsupported usage of altivec
10044         builtins.
10046         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
10047         (altivec_predicate_*): New.
10049         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
10050         Add C++ version of vec_*() functions.
10052         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
10053         (bdesc_2arg): Remove altivec predicates.
10054         (altivec_expand_builtin): Handle predicates.
10055         (altivec_init_builtins): Handle predicates.
10056         (altivec_expand_predicate_builtin): New.
10058 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10060         * pa.c (DO_FRAME_NOTES): Move forward.
10061         (store_reg): Revise handling of frame notes.
10062         (load_reg): Likewise.
10063         (set_reg_plus_d): Likewise.
10064         (hppa_expand_prologue): Likewise.
10065         (hppa_expand_epilogue): Likewise.
10067 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10069         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
10071 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
10073         PR c/4475, c++/3780:
10074         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
10075         * c-common.h (SWITCH_TYPE): Define.
10076         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
10077         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
10078         Rename spareness variable to sparseness.
10079         (expand_end_case_type): Renamed from expand_end_case, use orig_type
10080         if non-NULL instead of TREE_TYPE (orig_index).
10081         * tree.h (expand_end_case_type): Renamed from expand_end_case.
10082         (expand_end_case): Define using expand_end_case_type.
10083         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
10084         to expand_end_case_type.
10085         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
10087 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10089         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
10090         (BIGGEST_ALIGNMENT): Change to 128.
10092 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10094         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
10096 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10098         * pa.md (call_internal_reg_64bit): Remove unused variable.
10100 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
10102         * config/arm/arm.h (machine_function): Add uses_anonymous_args
10103         field.
10104         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
10105         * config/arm/arm.c (current_function_anonymous_args): Delete,
10106         replace uses with cfun->machine->uses_anonymous_args.
10107         (arm_reorg): Do not reset uses_anonymous_args.
10109         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
10110         any geenral register.
10112 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
10114         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
10115         the entry block.
10117 2002-02-04  Richard Henderson  <rth@redhat.com>
10119         * combine.c (force_to_mode): Remove STACK_BIAS code.
10120         (nonzero_bits): Likewise.  Replace sp/fp special case with
10121         REGNO_POINTER_ALIGN.
10123         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
10124         (HARD_FRAME_POINTER_REGNUM): New.
10125         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
10126         (FIXED_REGS, CALL_USED_REGS): Update.
10127         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
10128         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
10129         (HARD_REGNO_NREGS): Update for SFP.
10130         (STACK_POINTER_OFFSET): Include bias here ...
10131         (FIRST_PARM_OFFSET): ... not here.
10132         (STACK_BIAS): Remove.
10133         (INIT_EXPANDERS): New.
10134         (STARTING_FRAME_OFFSET): Do not include bias.
10135         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
10136         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
10137         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
10138         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
10139         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
10140         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
10141         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
10142         (MUST_SAVE_REGISTER): Likewise.
10143         (sparc_flat_function_prologue): Likewise.
10144         (sparc_flat_function_epilogue): Likewise.
10145         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
10146         (sparc_init_modes): SFP is GENERAL_REGS.
10147         (sparc_builtin_saveregs): SFP does not have bias applied.
10149 2002-02-04  Richard Henderson  <rth@redhat.com>
10151         * config/alpha/alpha.c (current_function_is_thunk): Don't check
10152         current_function_is_thunk.
10153         (alpha_sa_mask): Distinguish between current_function_is_thunk
10154         called from ASM_OUTPUT_MI_THUNK and not.
10155         (alpha_does_function_need_gp): Thunks always need gp.
10156         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10157         (alpha_output_mi_thunk_osf): New.
10158         * config/alpha/alpha-protos.h: Update.
10159         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
10161 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
10163         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
10164         function types, not when they're taken away.
10166 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
10168         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
10169         CODE_LABEL and jump table when replacing a table jump with a
10170         simple jump.
10172 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10174         * config/s390/s390-protos.h (legitimize_la_operand,
10175         s390_secondary_input_reload_class, s390_plus_operand,
10176         s390_expand_plus_operand): Add prototypes.
10178         config/s390/s390.c (s390_secondary_input_reload_class,
10179         s390_plus_operand, s390_expand_plus_operand): New functions.
10181         (struct s390_address): New member 'pointer'.
10182         (s390_decompose_address): Compute it.
10183         (legitimate_la_operand_p): Use it.
10184         (legitimize_la_operand): New function.
10185         (movti, movdi, movdf splitters): Call it.
10187         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
10188         (PREDICATE_CODES): Add s390_plus_operand.
10190         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
10191         (la_ccclobber): Allow GENERAL_REGS as output operand.
10193         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
10194         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
10195         (*la_64, *la_31, reload_indi, reload_insi): ... these.
10197 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10199         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
10200         register names for regular asm () construct.
10202 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
10204         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
10205         registers.
10207 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
10209         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
10210         pat for recog.
10212 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
10214         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
10215         constant pool to be identical by string address and index.
10217 2002-02-04  Anthony Green  <green@redhat.com>
10219         * output.h (SECTION_OVERRIDE): Define.
10220         * varasm.c (named_section): Obey SECTION_OVERRIDE.
10222 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
10224         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
10225         by existing arm*-*-netbsd* (a.out) target.
10226         (ns32k-*-netbsdelf*): Likewise.
10227         (sparc-*-netbsdelf*): Likewise.
10228         (vax-*-netbsdelf*): Likewise.
10230 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
10232         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
10233         headers and libobjc headers.
10235 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
10237         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
10238         (_mingw.h): Remove duplicate include.
10240 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
10242         * config.gcc: Set cpu_type to m68k for 68010, as well.
10243         (m68010-*-netbsdelf*): New...
10244         (m68k*-*-netbsdelf*): ...targets.
10245         * config/m68k/netbsd-elf.h: New file.
10247 2002-02-02  Kazu Hirata  <kazu@hxi.com>
10249         * config/h8300/h8300.c (hand_list): Move inside function_arg.
10251 2002-02-02  Kazu Hirata  <kazu@hxi.com>
10253         * config/h8300/h8300.c (h8_push_ops): Move inside
10254         h8300_init_once.
10255         (h8_pop_ops): Likewise.
10256         (h8_move_ops): Likewise.
10258 2002-02-02  Kazu Hirata  <kazu@hxi.com>
10260         * config/h8300/h8300.c (os_task): Make it static.
10261         (monitor): Likewise.
10262         (pragma_saveall): Likewise.
10264 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
10266         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
10267         constant is a valid sign-extension for Pmode.
10269 2002-02-02  Kazu Hirata  <kazu@hxi.com>
10271         * config/h8300/h8300.c: Fix formatting.
10273 2002-02-02  Kazu Hirata  <kazu@hxi.com>
10275         * config/h8300/h8300.md: Fix formatting.
10277 2002-02-02  Kazu Hirata  <kazu@hxi.com>
10279         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
10280         predicates of operands[1].  Split the patterns for each
10281         processor variant.
10283 2002-02-02  Kazu Hirata  <kazu@hxi.com>
10285         * config/h8300/h8300.md (xor patterns): Tighten the predicates
10286         of operands[1] to register_operand.
10288 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10290         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
10291         * cpphash.c (_cpp_init_hashtable): Similarly.
10292         * cppinit.c (cpp_create_reader): Default the signed_char flag.
10293         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
10294         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
10295         (cpp_handle_option): Handle the new options.
10296         * cpplex.c (cpp_interpret_charconst): Use new flag.
10297         * cpplib.h (struct cpp_options): New member signed_char.
10298         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
10299         (cpp_options): Handle -fsigned-char and -funsigned-char.
10300         (static_specs): Remove signed_char_spec.
10301         (do_spec1): Don't handle %c.
10302         * system.h: Poison SIGNED_CHAR_SPEC.
10303         * tradcif.y (yylex): Use flag_signed_char.
10304         * tradcpp.h (flag_signed_char): New.
10305         * tradcpp.c (flag_signed_char): New.
10306         (main): Handle new command-line options.
10307         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
10308 config:
10309         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
10310         * avr/avr.h: Remove old comments.
10311         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
10312         (CC1_SPEC): Pass -fsigned-char if -mic*.
10313         (SIGNED_CHAR_SPEC): Remove.
10314 doc:
10315         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
10317 2002-02-01  Eric Christopher  <echristo@redhat.com>
10319         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
10320         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
10321         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
10322         (ASM_OUTPUT_REG_POP): Ditto.
10324 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10326         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
10327         patch.
10329 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
10331         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
10333 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
10335         PR c/5304:
10336         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
10337         unconditionally.
10339 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
10341         * cfganal.c: Include tm_p.h.
10342         (keep_with_call_p): Fix the test that determines if a register holds
10343         the return value of a call.
10345 2002-02-01  DJ Delorie  <dj@redhat.com>
10347         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
10348         we are given conflicting registers, switch to the other one we
10349         had allocated for us.
10350         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
10351         as TImode so we know when the "other" register is available.
10353 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
10355         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
10356         sparc/sparc_bi.h.
10358 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
10360         * cfganal.c (keep_with_call_p): New function.
10361         (flow_call_edges_add): Prevent splitting a block between a call and
10362         a single-set instruction that should be kept in the same block.
10364 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10366         * doc/install.texi (avr): Update outdated URL.
10368 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
10370         * config/stormy16/stormy16.md (pushqi): New.
10371         (popqi): New.
10372         (pushhi): New.
10373         (pophi): New.
10374         (movhi): Remove stack operands.
10375         (movqi): Likewise.
10376         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10377         nonimmediate_nonstack_operand.
10378         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10379         New.
10380         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10381         New.
10383 2002-01-31  Jason Merrill  <jason@redhat.com>
10385         * Makefile.in (c-parse.c): Handle .output file.
10386         * objc/Make-lang.in (objc-parse.c): Likewise.
10388 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
10390         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
10391         the -me[lb] option is given.  Don't output the default flag
10392         twice.
10394 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
10396         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
10397         the primary source file; this has not been done yet.
10398         * c-decl.c (c_expand_body): Reset input_filename from
10399         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
10401 2002-01-31  Kazu Hirata  <kazu@hxi.com>
10403         * rtlanal.c (subreg_regno_offset): Do not use
10404         SUBREG_REGNO_OFFSET.
10405         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
10406         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
10408 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
10410         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
10411         version rather than GNATS version in --version output.
10413 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
10415         * ifcvt.c (noce_process_if_block): Make a copy of the destination
10416         when copying back from a temporary.
10418 2002-01-30  Richard Henderson  <rth@redhat.com>
10420         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
10421         and new_dest are the same.
10423 2002-01-30  Richard Henderson  <rth@redhat.com>
10425         PR opt/5076
10426         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
10427         * rtl.c (note_insn_name): Update.
10428         * emit-rtl.c (remove_unnecessary_notes): Kill it.
10429         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
10430         to perform loop rotation.
10431         (expand_exit_loop_top_cond): New.
10432         * tree.h (expand_exit_loop_top_cond): Declare it.
10433         * c-semantics.c (genrtl_while_stmt): Use it.
10434         (genrtl_for_stmt): Likewise.
10436 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
10438         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
10439         arguments to 64-bit boundaries on 64-bit ABIs.
10441 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
10443         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
10445 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
10447         * c-decl.c (grokdeclarator): Handle type being a typedef for an
10448         invalid type.
10450 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
10452         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
10453         * config/sparc/sparc_bi.h: Remove file.
10454         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
10456 2002-01-30  Richard Henderson  <rth@redhat.com>
10458         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
10460 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
10462         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
10464 2002-01-30  Jason Merrill  <jason@redhat.com>
10466         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
10467         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
10468         (reg_save): Use DW_CFA_offset_extended_sf instead.
10470         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
10472 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
10474         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
10475         in cselib_lookup.
10477 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
10479         * rs6000.md ("*call_value_local32"): Remove constraints.
10480         ("*call_value_local64"): Same.
10481         ("*call_value_indirect_nonlocal_aix32"): Same.
10482         ("*call_value_nonlocal_aix32"): Same.
10483         ("*call_value_indirect_nonlocal_aix64"): Same.
10484         ("*call_value_nonlocal_aix64"): Same.
10485         ("*call_value_nonlocal_sysv"): Same.
10487 2002-01-29  Richard Henderson  <rth@redhat.com>
10489         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
10491 2002-01-29  Richard Henderson  <rth@redhat.com>
10493         * expr.c (force_operand): Ignore flag_pic for detecting pic
10494         address loads.
10495         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
10496         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
10497         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
10498         instead of open-coded loop.
10499         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
10500         be fixed when in use.
10502 2002-01-29  Richard Henderson  <rth@redhat.com>
10504         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
10505         * sched-rgn.c (propagate_deps): Update them.
10506         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
10507         clobbers list when either gets too long.
10509 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
10511         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
10512         and INDEX_REGS the same as GENERAL_REGS.
10513         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
10515 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10517         * tree.c (build_nonstandard_integer_type): Correct prototype.
10519 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
10521         * config/s390/s390.md (movstrsico, movstrdix_64,
10522         movstrsix_31): Remove, replace by ...
10523         (movstrdi_short, movstrsi_short, movstrdi_long,
10524         movstrsi_long): ... these.  New.
10525         (movstrdi, movstrsi): Adapt.
10527         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
10528         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
10529         Remove unnecessary CC clobber.
10530         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
10531         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
10533         (divmoddi4): Don't partially initialize TImode register.
10535 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
10537         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
10539 2002-01-29  Richard Henderson  <rth@redhat.com>
10541         * flow.c (print_rtl_and_abort): Remove.
10542         (print_rtl_and_abort_fcn): Remove.
10543         (verify_local_live_at_start): Use dump_bb instead.
10544         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
10545         (verify_wide_reg_1): Return 2 on mode test failure.
10547 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10549         PR c/3325, c/3326, c/2511, c/3347
10550         * c-decl.c (enum_decl_context): Remove BITFIELD.
10551         (grokdeclarator): Take bitfield width as an input.
10552         Ensure bitfields are given the correct type.  Perform
10553         bitfield width validation with build_bitfield_integer_type
10554         rather than waiting for finish_struct.
10555         (grok_typename, grok_typename_in_parm_context, start_decl,
10556         push_parmdecl, grokfield, start_function): Update calls to
10557         grokdeclarator.
10558         (build_bitfield_integer_type): New function.
10559         (finish_struct): Move bitfield validation to grokdeclarator
10560         and build_bitfield_integer_type.
10561         * tree.c (build_nonstandard_integer_type): New function.
10562         * tree.h (build_nonstandard_integer_type): New prototype.
10563 objc:
10564         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
10566 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
10568         PR other/1502:
10569         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
10570         don't ignore unrecognized -W* options.
10571         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
10572         * cpplib.h (cpp_handle_option): Adjust prototype.
10573         * c-decl.c (c_decode_options): Pass 0 as last argument to
10574         cpp_handle_option.
10576         PR c/2896:
10577         * gcc.c (cpp_unique_options): Split from cpp_options.
10578         (cpp_options): Source cpp_unique_options.
10579         (default_compilers): Use cpp_unique_options instead of cpp_options
10580         when used together with cc1_options.
10581         (static_specs): Add cpp_unique_options.
10582         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
10583         when used together with cc1_options.
10585 2002-01-29  Kazu Hirata  <kazu@hxi.com>
10587         * config/h8300/h8300-protos.h: Update the prototype of
10588         output_a_shift.
10589         * config/h8300/h8300.c (output_a_shift): Remove an unused
10590         argument 'insn'.  Remove redundant code.
10591         * config/h8300/h8300.md: Adust to the new prototype of
10592         output_a_shift.
10594 2002-01-29  Kazu Hirata  <kazu@hxi.com>
10596         * config/h8300/h8300-protos.h: Update the prototypes of
10597         emit_a_rotate and expand_a_rotate.
10598         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
10599         first argument to 'enum rtx_code'.
10600         (expand_a_rotate): Likewise.
10602 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10604         * config/h8300/h8300-protos.h: Update the prototype of
10605         output_simode_bld.
10606         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10607         'log2'.
10608         * config/h8300/h8300.md: Adjust to the new prototype.
10610 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10612         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10613         redundant code.
10615 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10617         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10618         is a fixed register before returning pic_offset_table_rtx.
10619         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10620         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10622 2002-01-28  Jason Merrill  <jason@redhat.com>
10624         * dwarf2.h: Sync with src version.
10626 2002-01-28  Paul Koning  <pkoning@equallogic.com>
10628         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10629         BT_FN_VOID_PTR_VAR.
10630         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10631         * doc/extend.texi (__builtin_prefetch): Update documentation:
10632         first argument is now const void ptr.
10634 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10636         * config/h8300/h8300-protos.h: Remove an unused prototype.
10638 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
10640         * toplev.c (lang_independent_init): Round up identifier size.
10642 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
10644         * config.gcc: Revert previous change.
10646 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
10648         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10650 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
10652         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10653         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
10654         other non-elf netbsd config frags.
10655         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10656         collect2 will does that.
10657         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10658         shared-lib frobbing will work.
10660 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10662         * config/h8300/h8300.h: Fix formatting.
10663         * config/h8300/h8300.md: Likewise.
10665 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
10667         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10668         the old, removed AAA_standards fix.
10669         * fixinc/fixincl.x: Rebuilt.
10671 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
10673         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10674         atexit call in crtbegin, hooked in after call to frame_dummy;
10675         register EH before registering __fini__start.
10677 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
10679         * config/rs6000/altivec.h: Remove spurious semicolons.
10681 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10683         * config/h8300/h8300.md: Replace dead bit extraction patterns
10684         with ones that work.
10686 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10688         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10689         if not STRICT_ALIGNMENT.
10690         * rtl.h (MEM_ALIGN): Likewise.
10692 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10694         * doc/invoke.texi (-fdump-translation-unit): Revert this
10695         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10697 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10699         * config/h8300/h8300.md (define_constants): New.
10700         (anonymous patterns) Use defined constants appropriately.
10702 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10704         * config/h8300/h8300.c (function_arg): Remove redundant code.
10706 2002-01-26  Richard Henderson  <rth@redhat.com>
10708         * sched-deps.c (reg_pending_uses_head): New.
10709         (reg_pending_barrier): Rename from reg_pending_sets_all.
10710         (find_insn_list): Don't mark inline.
10711         (find_insn_mem_list): Remove.
10712         (add_dependence_list, add_dependence_list_and_free): New.
10713         (flush_pending_lists): Replace only_write param with separate
10714         for_read and for_write parameters.  Update all callers.  Use
10715         add_dependence_list_and_free.
10716         (sched_analyze_1): Do not add reg dependencies here; just set
10717         the pending bits.  Use add_dependence_list.
10718         (sched_analyze_2): Likewise.
10719         (sched_analyze_insn): Replace schedule_barrier_found with
10720         reg_pending_barrier.  Add all dependencies for pending reg
10721         uses, sets, and clobbers.
10722         (sched_analyze): Don't add reg dependencies for calls, just
10723         set pending bits.  Use regs_invalidated_by_call.  Treat
10724         sched_before_next_call as a normal list, not a fake insn.
10725         (init_deps): No funny init for sched_before_next_call.
10726         (free_deps): Free pending mems lists.  Don't zero reg_last.
10727         (init_deps_global): Init reg_pending_uses.
10728         (finish_deps_global): Free it.
10729         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
10730         (find_insn_mem_list): Remove.
10731         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10732         (propagate_deps): Use them.  Zero temp mem lists.
10734 2002-01-26  Richard Henderson  <rth@redhat.com>
10736         * Makefile.in (CRTSTUFF_CFLAGS): New.
10737         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
10738         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
10739         crtstuff.c instead of alpha assembly version.
10740         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
10741         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
10742         not FORCE_{INIT,FINI}_SECTION_ALIGN.
10743         (__do_global_dtors_aux): Mark used.
10744         (frame_dummy, __do_global_ctors_aux): Mark used.
10745         (fini_dummy, init_dummy): Remove.
10747         * config/alpha/crtbegin.asm: Remove file.
10748         * config/alpha/crtend.asm: Remove file.
10749         * config/alpha/t-crtbe: Remove file.
10750         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
10751         (LINK_EH_SPEC): New.
10753         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
10754         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
10755         calling constructors.
10756         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10758         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10759         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10760         CRT_END_INIT_DUMMY hack.
10761         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10762         FORCE_{INIT,FINI}_SECTION_ALIGN.
10764         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10765         FORCE_{INIT,FINI}_SECTION_ALIGN.
10767         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10768         invocation sequence.
10769         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10771         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10772         (FORCE_CODE_SECTION_ALIGN): New.
10774 2002-01-26  Richard Henderson  <rth@redhat.com>
10776         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10778 2002-01-26  Richard Henderson  <rth@redhat.com>
10780         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10781         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10783 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10785         * config/h8300/h8300.md: Remove bit extraction patterns that
10786         cannot be triggered.
10787         Restrict each bit extraction pattern to a variant on which the
10788         pattern is tested.
10790 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10792         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10794 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10796         * config/h8300/h8300.md: Remove bit test patterns that cannot
10797         be triggered.
10798         Restrict each bit test pattern to a variant on which the
10799         pattern is tested.
10801 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10803         * builtins.c (expand_builtin_strncat): Remove redundant check for
10804         INTEGER_CST.
10806 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10808         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10809         default setting.
10810         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10811         existing setting.
10813 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10815         * dbxout.c (dbxout_init): Use assemble_name rather than just
10816         stripping off the first character.
10817         (dbxout_source_file): Likewise.
10819 2002-01-25  DJ Delorie  <dj@redhat.com>
10821         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10822         using rtx_equal_p, not by comparing pointers.
10824 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
10826         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10827         for PIC_OFFSET_TABLE_REGNUM.
10828         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10830 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10832         * config.gcc (x86_64-*-freebsd*): New target.
10833         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10834         value.
10835         (i[34567]86-*-freebsd*): Don't include svr4.h.
10836         * config/i386/freebsd64.h: New file.
10838 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
10840         * config/alpha/x-vms (version): Make static.
10842         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10843         in previous checkin.
10845         * Makefile.in (install-headers-cp): New target.
10846         * config.gcc (alpha-dec-*vms*): Install headers with
10847         install-headers-cp
10849 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10851         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10852         avoid it's copies.
10854 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10856         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10857         of compare_tree_int.
10858         (expand_builtin_strncat): Likewise.
10859         * c-decl.c (finish_struct): Use tree_low_cst.
10860         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10861         * tree.c (compare_tree_int): Likewise.
10863 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
10865         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10866         adjustments even if they are implemented by more than two insns.
10868 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10870         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10871         * df.h (struct ref): Kill B.
10872         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10874         * basic-block.h (PROP_EQUAL_NOTES): New flag.
10875         * flow.c (propagate_one_insn): Use it.
10876         (mark_used_regs): Handle NIL.
10878 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10880         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10881         to help folding.
10883 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
10885         * rs6000.md (prefetch): Make address V4SI mode so that the address
10886         is restricted to legitimate form for instruction.
10888 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
10890         * doc/install.texi (xtensa-*-elf): New target.
10891         (xtensa-*-linux*): New target.
10892         * doc/contrib.texi: Add myself.
10894 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
10896         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10897         purpose register to hold an SImode (or smaller) value.
10899 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
10901         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10902         registry only.
10903         * crtstuff.c: Likewise.
10905 2002-01-25  Kazu Hirata  <kazu@hxi.com>
10907         * config/h8300/h8300.md (negation patterns): Tighten
10908         predicates to register_operand.
10910 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
10912         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10913         mode, not Pmode.
10915         * builtins.c (expand_builtin_prefetch): Same.
10917 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10919         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10920         modes.
10922 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10924         * config/h8300/h8300.c (print_operand): Remove support for
10925         operand character 'A'.
10926         * config/h8300/h8300.md (three anonymous patterns): Replace
10927         operand character 'A' with either 'T' or 'S'.
10929 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10931         * config/h8300/h8300.c (print_operand): Remove support for
10932         operand character 'U'.
10934 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10936         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10938 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10940         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10941         values to be assigned to the stack pointer.
10943 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10945         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10946         to const_double needs to be done right for big-endian systems.
10948 2002-01-24  Jason Merrill  <jason@redhat.com>
10950         PR c++/2432
10951         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10952         to can_throw_internal.
10954 2002-01-23  Richard Henderson  <rth@redhat.com>
10956         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10957         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10959 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10961         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10962         (symGOT2reg): Use them, then set as GOT value as unchanging.
10963         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10964         as a temporary, if possible.
10965         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10966         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10968 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10970         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10971         accept to accept 0x80 as operands[2].
10973 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10975         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10977 2002-01-23  Richard Henderson  <rth@redhat.com>
10979         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10981 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10983         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10984         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10985         an attribute.
10987 2002-01-23  Richard Henderson  <rth@redhat.com>
10989         * expr.c (move_by_pieces_1): Extend size before negation.
10991         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10992         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10993         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10994         * config/m68k/t-m68kelf: Likewise.
10996 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10998         * config/xtensa/elf.h: New file.
10999         * config/xtensa/lib1funcs.asm: New file.
11000         * config/xtensa/lib2funcs.S: New file.
11001         * config/xtensa/linux.h: New file.
11002         * config/xtensa/t-xtensa: New file.
11003         * config/xtensa/xtensa-config.h: New file.
11004         * config/xtensa/xtensa-protos.h: New file.
11005         * config/xtensa/xtensa.c: New file.
11006         * config/xtensa/xtensa.h: New file.
11007         * config/xtensa/xtensa.md: New file.
11008         * config.gcc (xtensa-*-elf*): New target.
11009         (xtensa-*-linux*): New target.
11010         * cse.c (canon_hash): Compare rtx pointers instead of register
11011         numbers.  This is required for the Xtensa port.
11012         * integrate.c (copy_insn_list): Handle case where the static
11013         chain is in memory and the memory address has to be copied to
11014         a register.
11015         * doc/invoke.texi (Option Summary): Add Xtensa options.
11016         (Xtensa Options): New node.
11017         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11019 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
11021         * diagnostic.c (internal_error): Do ICE suppression only
11022         when ENABLE_CHECKING is not defined.
11024         * c-typeck.c (require_complete_type): Return error_mark_node
11025         if type is error_mark_node.
11027 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
11029         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
11030         -Os and issue a warning.
11032 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
11034         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
11035         current (lack of) need for host configuration by hand.
11037         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
11038         references.  Documentation of some target macros moved from
11039         hostconfig.texi to tm.texi.
11041 2002-01-23  Will Cohen  <wcohen@redhat.com>
11043         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
11044         defined.
11046 2002-01-23  Kazu Hirata  <kazu@hxi.com>
11048         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
11049         operand[3].
11051 2002-01-23  Jason Merrill  <jason@redhat.com>
11053         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
11055         * function.c (assign_parms): Don't put args of inline functions
11056         into registers when not optimizing.
11058 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
11060         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
11061         (prologue_use): New pattern.
11062         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
11063         preference to gen_rtx_USE.
11064         (thumb_expand_prologue): Use gen_prologue_use in preference to
11065         gen_rtx_USE.
11066         (thumb_expand_epilogue): Use gen_prologue_use in preference to
11067         gen_rtx_USE.
11069 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
11071         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
11073 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11075         PR c/3504
11076         * doc/extend.texi: Correct documentation of __alignof__.
11078 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
11080         * params.h: Rename arguments of DEFPARAM so that it will be
11081         recognized as a translation keyword.
11083 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
11085         * extend.texi: Document altivec functions.
11086         Fix N-bit adjectives in X86 builtin documentation.
11088 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
11090         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
11091         auto_inc_dec values.
11093 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
11095         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
11096         after backslash.
11097         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
11099 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
11101         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
11103 2002-01-22  Richard Henderson  <rth@redhat.com>
11105         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
11106         copy_insn not copy_rtx.
11108 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
11110         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
11111         "nonzero" as that might add "1" bits.  Ensure "constop" is
11112         properly sign extened.
11113         (force_to_mode): Tweak for sign extended constop.
11115 2002-01-22  Richard Henderson  <rth@redhat.com>
11117         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
11118         for_each_rtx instead of assuming we're already looking at the MEM.
11119         (split_small_symbolic_mem_operand): Likewise.
11120         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11121         * config/alpha/alpha.md (small symbolic memory splitters): Update.
11123 2002-01-22  Richard Henderson  <rth@redhat.com>
11125         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
11126         sequence number for the literal.
11127         (divmoddi_internal_er): Likewise.
11129 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11131         PR java/4972
11132         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
11133         in LIBICONV variable.
11134         * configure: Regenerated.
11136 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
11138         * dependence.c (build_def_use): Remove array_idx.
11140         * dwarfout.c (last_filename): Remove.
11141         (output_compile_unit_die): Remove last_filename.
11143 2002-01-22  Roger Sayle  <roger@eyesopen.com>
11144             Richard Henderson  <rth@redhat.com>
11146         PR opt/3640
11147         * fold-const.c (fold): Optimize unsigned comparisons against
11148         UINT_MAX (and similar unsigned constants).
11150 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
11152         * Makefile.in (loop.o): Depend on OPTABS_H.
11153         * loop.c (emit_prefetch_instructions): Check the prefetch operand
11154         against the predicate.
11156         PR target/5379
11157         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
11158         for the address operand.
11160 2002-01-22  Richard Henderson  <rth@redhat.com>
11162         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
11164 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11166         PR other/5450
11167         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
11168         preprocessor flags.
11170 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
11172         * config.gcc (x86_64-*-netbsd*): New target.
11173         * config/i386/netbsd64.h: New file.
11175 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
11177         * regrename.c (kill_value): Fix typo.
11179 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
11181         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
11183         * config/rs6000/rs6000.h: Same.
11185         * function.c (instantiate_virtual_regs): Remove
11186         STARTING_FRAME_PHASE.
11187         (assign_stack_local_1): Same.
11188         Calculate frame phase.
11190 2002-01-22  Nick Clifton  <nickc@redhat.com>
11192         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
11193         variable declaration to outer scope in order to simplify
11194         future extensions.
11195         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
11196         arm_hard_regno_mode_ok.
11197         * config/arm/arm-protos.h: Add a prototype for
11198         arm_hard_regno_mode_ok.
11199         * config/arm/arm.c (soft_df_operand): Remove now redundant
11200         check for DImode values using IP_REGNUM.
11201         (nonimmediate_soft_df_operand): Remove now redundant check for
11202         DImode values using IP_REGNUM.
11203         (arm_hard_regno_mode_ok): New function. New check: make sure
11204         that DImode values are not stored in IP_REGNUM.
11206         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
11207         note with a USE.
11208         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
11210 2002-01-22  Jason Merrill  <jason@redhat.com>
11212         * c-semantics.c (genrtl_compound_stmt): Only check nesting
11213         consistency if this COMPOUND_STMT is scoped.
11215 2002-01-22  Kazu Hirata  <kazu@hxi.com>
11217         * predict.c: Fix formatting.
11218         * print-tree.c: Likewise.
11219         * protoize.c: Likewise.
11220         * real.h: Likewise.
11221         * rtl.h: Likewise.
11222         * sbitmap.h: Likewise.
11223         * scan.c: Likewise.
11224         * sched-deps.c: Likewise.
11225         * sched-vis.c: Likewise.
11226         * sdbout.c: Likewise.
11227         * sibcall.c: Likewise.
11228         * ssa.c: Likewise.
11229         * ssa-ccp.c: Likewise.
11230         * ssa-dce.c: Likewise.
11231         * stmt.c: Likewise.
11232         * stor-layout.c: Likewise.
11233         * system.h: Likewise.
11235 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11237         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
11238         if fits in bounds of base type.
11240         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
11241         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
11242         (add_bound_info, default): If can't find a context, make a
11243         SAVE_EXPR.
11244         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
11246 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
11248         * c-typeck.c (parser_build_binary_op): If result from
11249         build_binary_op is ERROR_MARK just return error_mark_node without
11250         further processing.
11252 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
11254         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
11255         Split a.out-specific bits into...
11256         * config/netbsd-aout.h: ...this.
11257         * config/netbsd-elf.h: New file.
11258         * config/alpha/netbsd-elf.h: Remove.
11259         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
11260         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
11261         (STARTFILE_SPEC): Remove redundant definition.
11262         (ENDFILE_SPEC): Likewise.
11263         (LINK_SPEC): Likewise.
11264         (CPP_SPEC): Likewise.
11265         (ASM_SPEC): Likewise.
11266         (LIB_SPEC): Likewise.
11267         (SWITCH_TAKES_ARG): Likewise.
11268         (TARGET_MEM_FUNCTIONS): Likewise.
11269         (CPP_PREDEFINES): Redefine.
11270         (ASM_FINAL_SPEC): Remove redefinition.
11271         (ASM_COMMENT_START): Redefine.
11272         (FUNCTION_PROFILER): Define.
11273         (TARGET_VERSION): Redefine.
11274         Comment and formatting cleanup.
11275         * config/i386/netbsd.h: Include <netbsd-aout.h>.
11276         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
11277         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
11278         big- or little-endian.
11279         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
11280         * config.gcc (*-*-netbsd*): Add definitions common to all
11281         NetBSD configs.
11282         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
11283         gnu_ld definitions.  Add netbsd-elf.h to and remove
11284         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
11285         tmake_file, and don't lose previous tmake_file contents.
11286         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
11287         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
11288         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
11289         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
11290         (mipsel-*-netbsd*): Rename this to...
11291         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
11292         mips/little.h to tm_file for mips*el-*.
11293         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
11294         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
11295         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
11297 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11299         * pa-protos.h (reg_before_reload_operand): New function prototype.
11300         * pa.c (reg_before_reload_operand): New function implementation.
11301         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
11302         contraints to "*m".
11304 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11306         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
11308 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11310         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
11311         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
11312         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
11313         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
11314         (ENDFILE_SPEC): Undefine.
11315         (STARTFILE_SPEC): Redefine for PA.
11317 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11319         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
11321 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
11323         * config.gcc: Add entries to supported PowerPC --with-cpu
11324         types.
11326 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
11328         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
11329         true for 64-bit mode only SSE registers in 32-bit mode.
11331 2002-01-21  Kazu Hirata  <kazu@hxi.com>
11333         * unwind-dw2.c: Fix formatting.
11334         * unwind-dw2-fde.c: Likewise.
11335         * unwind-dw2-fde.h: Likewise.
11336         * unwind-pe.h: Likewise.
11337         * varasm.c: Likewise.
11338         * varray.h: Likewise.
11340 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
11342         Remove workaround for register stack overwrite bug in mmix.
11343         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
11344         support for TARGET_REG_STACK_FILL_BUG.
11345         * config/mmix/mmix.h: Remove member has_call_without_parameters.
11346         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
11347         Delete.
11348         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
11349         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
11350         -mno-reg-stack-fill-bug-workaround.
11351         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
11352         machine member has_call_without_parameters.
11353         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
11354         -mreg-stack-fill-bug-workaround and
11355         -mno-reg-stack-fill-bug-workaround.
11356         (MMIX Options): Ditto.
11358 2002-01-21  Kazu Hirata  <kazu@hxi.com>
11360         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
11361         as appropriate.
11362         Remove redundant code.
11364 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11366         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11367         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11368         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11369         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
11370         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
11371         out target macro definitions and non-target-specific comments
11372         mostly taken from old versions of the manual.
11374 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11376         * config/h8300/h8300.h: Fix comment formatting.
11377         * config/ia64/aix.h: Likewise.
11378         * config/ia64/ia64-protos.h: Likewise.
11379         * config/ia64/ia64.c: Likewise.
11380         * config/ia64/ia64.h: Likewise.
11381         * config/ia64/ia64intrin.h: Likewise.
11382         * config/ia64/linux.h: Likewise.
11383         * config/ia64/unwind-aix.c: Likewise.
11384         * config/ia64/unwind-ia64.c: Likewise.
11386 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11388         * config/h8300/h8300.c: Revise comments about shift code.
11390 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11392         * config/h8300/h8300.c (function_arg): Update a comment.
11394 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11396         * config/h8300/h8300.md: Update the comments at the beginning
11397         of the file.
11399 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11401         * config/i370/i370.c: Fix comment formatting.
11402         * config/i370/i370.h: Likewise.
11403         * config/i370/i370.md: Likewise.
11404         * config/i370/linux.h: Likewise.
11406 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11408         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
11410         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
11411         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
11412         in incomplete case.
11414 2002-01-20  Graham Stott  <grahams@redhat.com>
11416         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
11418 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11420         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
11422 2002-01-19  Tom Rix  <trix@redhat.com>
11424         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
11426 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
11428         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
11430         * function.c (assign_stack_local_1): Adjust x_frame_offset with
11431         STARTING_FRAME_PHASE.
11432         (STARTING_FRAME_PHASE): New.
11433         (instantiate_virtual_regs): Check saneness of
11434         STARTING_FRAME_PHASE.
11436         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
11438 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
11440         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
11442 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11444         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
11445         be used for bootstrapping GCC 3.0.
11447 2002-01-18  Kazu Hirata  <kazu@hxi.com>
11449         * config/h8300/h8300.md: Fix an insn length.
11451 2002-01-18  Kazu Hirata  <kazu@hxi.com>
11453         * bitmap.h: Fix comment formatting.
11454         * combine.c: Likewise.
11455         * cppfiles.c: Likewise.
11456         * c-pragma.h: Likewise.
11457         * c-typeck.c: Likewise.
11458         * df.c: Likewise.
11459         * dwarf2out.c: Likewise.
11460         * function.c: Likewise.
11461         * gcc.c: Likewise.
11462         * genattrtab.c: Likewise.
11463         * gthr-win32.h: Likewise.
11464         * haifa-sched.c: Likewise.
11465         * predict.c: Likewise.
11466         * rtlanal.c: Likewise.
11467         * rtl.h: Likewise.
11468         * unwind-dw2-fde.h: Likewise.
11469         * unwind-pe.h: Likewise.
11470         * vmsdbgout.c: Likewise.
11472 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11474         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
11475         if type_required and passed decl.
11477 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
11479         * config.gcc (cpu_type): Include altivec.h in powerpc
11480         extra_headers.
11481         Same for darwin.
11483         * config/rs6000/altivec.h: New.
11485 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
11487         * doc/install.texi (*-ibm-aix*): Update assembler and exception
11488         handling information.
11489         * doc/trouble.texi (Interoperation): Add libstdc++ information
11490         for AIX.
11491         (Misunderstandings): Add template instantiation and static template
11492         member information for AIX.
11494 2002-01-17  Jason Merrill  <jason@redhat.com>
11496         * dbxout.c (dbxout_type): Support const and volatile.
11498         * except.c (add_partial_entry): Remove backwards compatibility code.
11499         (end_protect_partials): Likewise.
11501 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
11503         * config/ia64/ia64.md (prologue_use): New.
11504         * config/ia64/ia64.c (ia64_expand_prologue): Use
11505         gen_prologue_use instead of gen_rtx_USE.
11506         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
11507         as CODE_FOR_pred_rel_mutex.
11508         (ia64_sched_reorder2): Likewise.
11510 2002-01-16  Eric Christopher  <echristo@redhat.com>
11512         * config/mips/r3900.h: Reformat.
11513         (SUBTARGET_CPP_SIZE_SPEC): Remove.
11514         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
11515         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
11516         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
11517         * config/mips/t-elf: Remove mips3 multilib.
11519 2002-01-16  H.J. Lu <hjl@gnu.org>
11521         * config/mips/linux.h: Include "mips/abi64.h".
11523 2002-01-16  H.J. Lu <hjl@gnu.org>
11525         * config/mips/t-linux: New.
11527         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
11529         * config/mips/linux.h: Don't include "gofast.h".
11530         (INIT_SUBTARGET_OPTABS): Removed.
11532 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11534         * config/h8300/h8300-protos.h: Replace emit_a_shift with
11535         output_a_shift.
11536         * config/h8300/h8300.c: Likewise.
11537         * config/h8300/h8300.md: Likewise.
11539 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11541         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
11542         spaces after an opcode name.
11543         (pushqi1_h8300hs): Likewise.
11544         (pushhi1_h8300hs): Likewise.
11546 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11548         * doc/extend.texi: Replace "option" with "attribute"
11549         appropriately.
11551 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
11553         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
11554         (and:DI () (const_int -8)).
11555         (split_small_symbolic_mem_operand): Split
11556         (mem (and:DI () (const_int -8)).
11558 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
11560         PR target/5309:
11561         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
11562         same way as TYPE_IMUL.
11563         (ultrasparc_sched_reorder): Likewise.
11564         * config/sparc/sparc.md (type): Add comment to update
11565         ultrasparc_sched_reorder when making changes.
11567 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11569         * doc/invoke.texi: Change the dump file name of block
11570         reordering pass from 28.bbro to 29.bbro.
11571         Mention -dk option.
11573 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
11575         * i386.md (minsf splitter): Fix pasto.
11577 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
11579         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
11580         to frame pointer initialisation instruction.
11581         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
11582         initialisation instruction.
11583         (soft_df_operand): Do not accept the IP register.
11584         (nonimmediate_soft_df_operand): Do not accept the IP register.
11586 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
11588         PR target/5357:
11589         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
11590         MASK_V8 being both set.
11592 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
11594         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
11595         insn for GOT register; add REG_MAYBE_DEAD notes instead.
11596         config/s390/s390.md (call, call_value): Add GOT register to
11597         CALL_INSN_FUNCTION_USAGE where needed.
11598         (call_exp, call_value_exp): New.
11600 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
11602         * config/arm/arm.c: General formatting tidy up.
11604 2002-01-16  Graham Stott  <grahams@redhat.com>
11606         * calls.c (try_to_integrate): Use "(size_t)" intermediate
11607         cast and when casting an integer literal to "rtx" pointer.
11608         (expand_call): Likewise.
11609         * flow.c (try_pre_increment): Likewise.
11610         (find_use_as_address): Likewise.
11611         * integrate.c (expand_iline_function): Likewise.
11612         * regmove.c (try_auto_increment): Likewise.
11614 2002-01-16  Graham Stott  <grahams@redhat.com>
11616         * sched-rgn.c (passed): Use sbitmap_free.
11617         (header): Likewise.
11618         (inner): Likewise.
11619         (in_queue): Likewise.
11620         (in_stack): Likewise.
11622 2002-01-15  Eric Christopher  <echristo@redhat.com>
11624         * flow.c (propagate_one_insn): Change to use fatal_insn.
11626 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11628         * expmed.c (extract_fixed_bit_field): Remove unused code.
11629         * system.h: Poison SLOW_ZERO_EXTEND.
11630         * doc/tm.texi: Remove.
11631         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11632         * config/arm/arm.h: Likewise.
11633         * config/avr/avr.h: Likewise.
11634         * config/clipper/clipper.h: Likewise.
11635         * config/convex/convex.h: Likewise.
11636         * config/d30v/d30v.h: Likewise.
11637         * config/dsp16xx/dsp16xx.h: Likewise.
11638         * config/elxsi/elxsi.h: Likewise.
11639         * config/fr30/fr30.h: Likewise.
11640         * config/h8300/h8300.h: Likewise.
11641         * config/i370/i370.h: Likewise.
11642         * config/i386/i386.h: Likewise.
11643         * config/m68k/m68k.h: Likewise.
11644         * config/mips/mips.h: Likewise.
11645         * config/ns32k/ns32k.h: Likewise.
11646         * config/pdp11/pdp11.h: Likewise.
11647         * config/pj/pj.h: Likewise.
11648         * config/s390/s390.h: Likewise.
11649         * config/sh/sh.h: Likewise.
11650         * config/stormy16/stormy16.h: Likewise.
11651         * config/v850/v850.h: Likewise.
11652         * config/vax/vax.h: Likewise.
11653         * config/we32k/we32k.h: Likewise.
11655 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
11657         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11658         (altivec_lvsl): Change constraint to b.
11659         (altivec_lvsr): Same.
11660         (altivec_lvebx): Same.
11661         (altivec_lvehx): Same.
11662         (altivec_lvewx): Same.
11663         (altivec_lvxl): Same.
11664         (altivec_lvx): Same.
11665         (altivec_stvx): Add parallel.
11666         (altivec_stvxl): Same.
11667         (altivec_stvehx): Same.
11668         (altivec_stvebx): Same.
11669         (altivec_stvebx): Same.
11671 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
11673         * config.gcc: Change altivec.h to altivec-defs.h.
11675         * config/rs6000/altivec.h: Delete.
11677         * config/rs6000/altivec-defs.h: Add.
11679 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11681         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11682         and UMOD modes.
11684         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11685         less than or equal to eight bytes.
11687         * vax.md (andsi3): Remove constraints and change SET destination
11688         operand type to nonimmediate_operand.
11689         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
11690         when it is a CONST_INT.
11692 2002-01-15  Jason Merrill  <jason@redhat.com>
11694         * c-common.def (FILE_STMT): New code.
11695         * c-common.c (statement_code_p): It's a statement.
11696         * c-common.h (stmt_tree_s): Add x_last_filename.
11697         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11698         (last_expr_filename): New macro.
11699         * c-semantics.c (begin_stmt_tree): Initialize it.
11700         (add_stmt): If the filename changed, also insert a
11701         FILE_STMT.
11702         (expand_stmt): Handle seeing one.
11704 2002-01-15  Eric Christopher  <echristo@redhat.com>
11706         * flow.c (propagate_one_insn): Add error message and print out
11707         insn for debugging.
11709 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11711         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11712         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11713         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11714         TRAMPOLINE_ALIGNMENT.
11715         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
11716         to be in bits.
11717         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11718         PCC_BITFIELD_TYPE_MATTERS.
11719         * config/interix.h (STDC_VALUE): Remove.  Use
11720         STDC_0_IN_SYSTEM_HEADERS.
11721         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11722         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11723         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11725 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11727         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11728         not work on this platform currently.
11730 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11732         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11733         readonly_warning in _().
11735 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
11737         * gcc.c (delete_if_ordinary): Backout previous change.
11739 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11741         * config/h8300/h8300.c (print_operand): Remove support for
11742         unused operand characters.
11744         * read-rtl.c: Fix formatting.
11745         * real.c: Likewise.
11746         * recog.c: Likewise.
11747         * regclass.c: Likewise.
11748         * regmove.c: Likewise.
11749         * reg-stack.c: Likewise.
11750         * reload1.c: Likewise.
11751         * rtlanal.c: Likewise.
11753 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11755         * config/i386/i386.c: Fix formatting.
11757 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
11759         * c-typeck.c (process_init_element): Don't save_expr
11760         COMPOUND_LITERAL_EXPR if just its initializer will be used.
11762 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
11764         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11765         emit optional traceback table if optimize_size or TARGET_ELF.
11766         * config/rs6000/rs6000.md (prefetch): New.
11768 2002-01-15  Andreas Jaeger  <aj@suse.de>
11770         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11772 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11774         * mips-tfile.c: Fix formatting.
11776 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11778         * unroll.c (final_reg_note_copy): Fix previous commit.
11780 2002-01-14  Kazu Hirata  <kazu@hxi.com>
11782         * config/h8300/h8300-protos.h: Remove the prototype for
11783         eq_operator.
11784         * config/h8300/h8300.c (eq_operator): Remove.
11786 2002-01-14  Richard Henderson  <rth@redhat.com>
11788         * config/i386/i386.md (prefetch): Tidy.
11789         (prefetch_3dnow): Fix locality operand.
11791 2002-01-14  Richard Henderson  <rth@redhat.com>
11793         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11794         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11796 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
11798         * reload1.c (reload_combine): Pass reg_sum replacement through
11799         copy_rtx in loop performing multiple changes.
11801 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
11803         * except.c (remove_unreachable_regions): New.
11804         (free_eh_status): Clear exception_handler_labels.
11805         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11806         (find_exception_handler_labels): Don't add the same label more than
11807         once.
11808         (remove_exception_handler_label): Don't die if
11809         find_exception_handler_labels hasn't been called for the current
11810         function yet.
11812 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
11814         * toplev.c (rest_of_compilation): Rebuild jump labels after
11815         gcse.
11817 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
11819         * doc/extend.texi: Move documentation of X86 built-in functions
11820         here.
11821         * doc/invoke.texi: From here.
11822         * doc/sourcebuild.texi: Document location of documentation for
11823         machine built-in functions.
11825 2002-01-13  Christopher Faylor  <cgf@redhat.com>
11827         * cppfiles.c (TEST_THRESHOLD): New macro.
11828         (SHOULD_MMAP): Ditto.
11829         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11830         be used.
11832 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11834         * unroll.c (final_reg_note_copy): Properly handle
11835         REG_LABEL
11836         (unroll_loops): Fix LOOP_CONDITION heuristics.
11838 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
11840         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11841         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11843 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11845         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11846         threaded loop.
11848 2002-01-14  Tom Rix  <trix@redhat.com>
11850         * config/rs6000/rs6000.md: Fix typo with sradi.
11852 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
11854         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11855         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11856         (clrstrdi, clrstrsi): Adapt callers.
11858         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11860         (movti splitter): Never use register 0 as base register.
11862 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
11864         * combine.c (simplify_shift_const): Always generate new rtx
11865         for shift expression instead of reusing given expression.
11867 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11869         * config/alpha/alpha.c (alpha_expand_mov): Don't call
11870         alpha_legitimize_address unless mode is Pmode.
11872 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
11874         * doc/md.texi (Modifiers): Document the '*' constraint for the
11875         user.
11877         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11878         * doc/extend.texi (Function Attributes): 'interrupt' is valid
11879         for xstormy16 too.
11881 2002-01-13  Richard Henderson  <rth@redhat.com>
11883         * reload.c (find_reloads): Use a hard reg destination as reload reg
11884         for an input reload of the source.
11886 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11888         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11889         more generic.
11891 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
11893         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11894         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11896         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11898 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11900         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11902 2002-01-12  Tom Rix  <trix@redhat.com>
11904         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11905         TARGET_POWERPC64.
11907 2002-01-12  Richard Henderson  <rth@redhat.com>
11909         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11911         * doc/invoke.texi: Update Alpha options.
11913         * doc/invoke.texi: Update i386 built-in function lists.
11915 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11917         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11918         referencing outside.
11920 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11922         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11923         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11924         offsets, and change line folding.
11925         * optabs.c (expand_binop): Remove warnings.
11926         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11928 2002-01-12  Graham Stott <grahams@redhat.com>
11930         * attribs.c (handle_deprecated_attribute): constify WHAT.
11931         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11932         dangling else warning and constify WHAT.
11933         * except.h (struct function, struct inline_remap): Move
11934         struct tag forward defs before all prototypes.
11935         (duplicate_eh_regions): Whitespace.
11937 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11939         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11940         MODE_BASE_REG_CLASS.
11941         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11943 2002-01-12  Richard Henderson  <rth@redhat.com>
11945         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11946         (ix86_expand_vector_move): New.
11947         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11948         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11949         Remove old prefetch builtins.  Special case the logicals removed above.
11950         (ix86_expand_builtin): Likewise.
11951         (safe_vector_operand): Use V4SFmode, not TImode.
11952         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11953         (ix86_expand_timode_binop_builtin): New.
11954         * config/i386/i386-protos.h: Update.
11955         * config/i386/i386.h (enum ix86_builtins): Update.
11956         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11957         Use ix86_expand_vector_move in vector move expanders.
11958         (movti_internal, movti_rex64): Add xorps alternative.
11959         (sse_clrv4sf): Rename and adjust from sse_clrti.
11960         (prefetch): Don't work so hard.
11961         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11962         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11963         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11965 2002-01-11  Richard Henderson  <rth@redhat.com>
11967         * config/i386/mmintrin.h: New file.
11968         * config/i386/xmmintrin.h: New file.
11969         * config.gcc (i?86-*-*): Add extra_headers.
11970         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11971         truncation codes.
11972         (simplify_binary_operation): Handle saturating arithmetic codes.
11973         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11974         not the lowpart subreg.
11975         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11976         on error.
11977         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11979 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11981         * conflict.c (conflict_graph_compute): Free regsets when finished.
11982         * ssa.c (compute_coalesced_reg_partition): Likewise.
11984 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11986         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11987         every where we allocate a register.
11989 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11991         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11992         * lcm.c (compute_earliest, compute_farthest): Likewise.
11994 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11996         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11998 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
12000         * doc/rtl.texi (Insns): Fix 2 typos.
12002 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
12004         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
12005         options.  Use @table @gcctabopt for MMIX options.  Add index
12006         entries for MMIX options.  Start new paragraph with first
12007         heading of the machine-dependent options.
12009 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12011         PR other/5299
12012         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
12013         * combine.c (force_to_mode): Same.
12014         * reload1.c (clear_reload_reg_in_use): Same.
12016 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
12018         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12019         and 'subtargets'.
12021 2002-01-11  Andreas Jaeger  <aj@suse.de>,
12022             Brad Lucier <lucier@math.purdue.edu>
12024         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
12025         mcpu.
12027 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
12029         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
12030         Protect with IN_LIBGCC.
12031         (LINK_EH_SPEC): Add required trailing space.
12033 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
12035         * c-tree.h: Move function declarations so that they are listed
12036         under the filename which contains them.
12037         (check_identifier, finish_decl_top_level,
12038         lookup_name_current_level_global, shadow_record_fields): Remove.
12040 2002-01-11  Andreas Jaeger  <aj@suse.de>
12042         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
12043         march.
12045 2002-01-10  Richard Henderson  <rth@redhat.com>
12047         * config/alpha/alpha.c (print_operand): Add 'J'.
12048         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
12049         new operand with the sequence number for the lituse.  When splitting
12050         the insns, use gen_movdi_er_high_g and generate a sequence number.
12051         (gen_movdi_er_high_g): Print the sequence number if non-zero.
12053 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
12055         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
12056         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
12057         stvxl.
12058         (altivec_expand_builtin): Same.
12059         (altivec_expand_stv_builtin): New.
12061         * config/rs6000/rs6000.h (rs6000_builtins): Same.
12063         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
12064         ("altivec_lvehx"): New.
12065         ("altivec_lvewx"): New.
12066         ("altivec_lvxl"): New.
12067         ("altivec_lvx"): New.
12068         ("altivec_stvx"): New.
12069         ("altivec_stvebx"): New.
12070         ("altivec_stvehx"): New.
12071         ("altivec_stvewx"): New.
12072         ("altivec_stvxl"): New.
12074 2002-01-10  Richard Henderson  <rth@redhat.com>
12076         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
12077         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
12078         care not to delete instructions twice.
12080 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
12082         * toplev.c: Don't declare environ (it's not used anywhere).
12083         * configure.in: Don't check for declaration of environ.
12084         * config/i386/xm-mingw32.h: Don't #define environ.
12085         * config.in, configure: Regenerate.
12087 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
12089         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
12090         * configure: Regenerate.
12092         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
12093         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
12094         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
12095         alpha/xm-vms.h.
12096         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
12097         LIMITS_H_TEST here, not in m68k/x-next.
12098         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
12099         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
12101         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
12102         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
12103         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
12105         * config/i386/x-djgpp: Renamed i386/t-djgpp.
12106         * config/m88k/x-dolph: Renamed m88k/t-dolph.
12107         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
12108         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
12109         replacement of quadlib.asm with quadlib.c.
12111         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
12112         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
12113         config/rs6000/xm-beos.h: Delete file.
12115         * config.gcc: Update to match above changes.
12117 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12119         * config/h8300/h8300.h: Fix comment typos.
12120         * config/h8300/h8300.md: Likewise.
12121         * config/h8300/lib1funcs.asm: Likewise.
12123 2002-01-10  Dale Johannesen  <dalej@apple.com>
12125         PR optimization/5269
12126         * unroll.c (precondition_loop_p): Make *increment be the correct
12127         sign when n_iterations known, to avoid confusing caller.
12129 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12131         * doc/extend.texi (deprecated): Fix a typo.
12133 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12135         * basic-block.h (update_br_prob_note): Declare.
12136         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
12137         (try_forward_edges): Care negative frequencies and update note.
12138         (outgoing_edges_match): Tweek conditional merging heuristics.
12139         (try_crossjump_to_edge): use update_br_prob_note.
12140         * cfglayout.c (fixup_reorder_chain): Likewise.
12141         * cfrtl.c (update_br_prob_note): New.
12142         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
12144         * i386.c (ix86_decompose_address): Return -1 if address contains
12145         shift.
12146         (legitimate_address_p): Require ix86_decompose_address to return 1.
12148         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
12149         (cprop_insn): Likewise.
12151 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12153         * toplev.c: Fix formatting.
12154         * tree.c: Likewise.
12155         * tree-dump.c: Likewise.
12156         * unroll.c: Likewise.
12157         * unwind-dw2.c: Likewise.
12158         * unwind-dw2-fde.c: Likewise.
12159         * unwind-dw2-fde-glibc.c: Likewise.
12160         * unwind-sjlj.c: Likewise.
12162 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
12164         * doc/invoke.texi: Document PDP-11 options.
12166 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12168         * config/h8300/h8300.h: Fix formatting.
12170 2002-01-10  Ira Ruben   <ira@apple.com>
12172         Add __attribute__ ((deprecated)).
12173         * extend.texi: Document __attribute__ ((deprecated)).
12174         * invoke.texi: Document -Wno-deprecated-declarations.
12175         * testsuite/g++.dg/other/deprecated.C: New C++ test.
12176         * testsuite/gcc.dg/deprecated.c: New C test.
12177         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
12178         (c_common_attribute_table): Add "deprecated" entry.
12179         (handle_deprecated_attribute): New function.
12180         * c-decl.c (deprecated_states): New enum.
12181         deprecated_state: State of "deprecated" handling.
12182         (start_decl): Set deprecated_state based on attributes.
12183         (grokdeclarator): Test for deprecated uses, propagate attribute.
12184         * c-typeck.c (build_component_ref): Test for deprecated fields.
12185         (build_external_ref): Test for deprecated primaries.
12186         * diagnostic.c (warn_deprecated_use) New function to issue
12187         warnings about __attribute__ ((depricated)) references.
12188         * flags.h (warn_deprecated_decl): Extern declared for
12189         -W[no-]deprecated-declarations option.
12190         * print-tree.c (print_node): Show deprecated flag status.
12191         * toplev.c (warn_deprecated_decl): Defined.
12192         (W_options): Added "deprecated-declaration".
12193         * toplev.h (warn_deprecated_use): Extern declared.
12194         * tree.h (struct tree_common): Define deprecated_flag.
12195         (TREE_DEPRECATED): New macro to access flag.
12196         * cp/call.c (build_call): Test for deprecated calls.
12197         * cp/class.c (add_implicitly_declared_members): Set global
12198         flag to tell grokdeclarator to not issue deprecated warnings.
12199         * cp/cp-tree.h: Add extern for adding_implicit_members.
12200         * cp/decl.c (deprecated_states): New enum.
12201         (start_decl): Set deprecated_state based on attributes.
12202         (grokdeclarator): Test for deprecated uses, propagate attribute.
12203         * cp/lex.c (do_identifier): Test for deprecated primaries.
12204         * cp/typeck.c (build_component_ref): Test for deprecated fields.
12206 2002-01-10  Ira Ruben   <ira@apple.com>
12208         Fix to assign attributes to inline member functions.
12209         * cp/decl.c (start_method): Handle attrlist.
12211 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12213         * combine.c (expand_field_assignment): Use subreg_lsb().
12215 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
12217         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
12218         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
12219         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
12220         Recurse for any operand of AND as long as constant is non-zero.
12222 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12224         * config/h8300/h8300.md: Remove constraints from expanders.
12226 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12228         * varasm.c: Fix formatting.
12229         * varray.c: Likewise.
12230         * vmsdbgout.c: Likewise.
12231         * xcoffout.c: Likewise.
12233 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
12235         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
12236         update edge probabilities to match.
12238 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
12240         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
12241         dependencies.
12242         * doc/languages.texi, doc/sourcebuild.texi: New files.
12243         * doc/configfiles.texi: Make a subsubsection.  Update.
12244         * doc/configterms.texi: Add @node.  Remove warning that this isn't
12245         instructions for building GCC.
12246         * doc/makefile.texi: Make a subsection.
12247         * doc/gccint.texi: Update.
12249 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
12251         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
12253 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
12255         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
12257 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
12259         * optabs.c (expand_fix): Look for wider integer modes first.
12261         * i386.md (mov?f): Avoid the fake const double trick for medium
12262         memory model.
12263         (min?f*/max?f*): Prohibit memory operands for i387 variant.
12264         (fop_df_4): Disable for SSE compilation.
12266 2002-01-10  Graham Stott  <grahams@redhat.com>
12268         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
12269         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
12271 2002-01-10  Richard Henderson  <rth@redhat.com>
12273         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
12275 2002-01-10  Richard Henderson  <rth@redhat.com>
12277         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
12278         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
12280 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12282         * combine.c (can_combine_p): Fix a comment typo.
12284 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
12286         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
12287         empty list correctly.  Change loop index $t to $f for
12288         consistency with rest of Makefile.
12290 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
12292         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
12293         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12295         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
12296         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
12297         (altivec_init_builtins): Same.
12298         (altivec_expand_unop_builtin): Return NULL_RTX on error.
12299         (altivec_expand_binop_builtin): Same.
12300         (altivec_expand_ternop_builtin): Same.
12301         (bdesc_dst): New.
12303         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
12304         ("altivec_vctuxs"): Fix typo.
12305         ("altivec_vnmsubfp"): Same.
12306         ("altivec_dssall"): New.
12307         ("altivec_mfvscr"): New.
12308         ("altivec_dss"): New.
12309         ("altivec_lvsl"): New.
12310         ("altivec_lvsr"): New.
12311         ("altivec_dstt"): New.
12312         ("altivec_dstst"): New.
12313         ("altivec_dststt"): New.
12314         ("altivec_dst"): New.
12316         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
12317         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12319 2002-01-09  Richard Henderson  <rth@redhat.com>
12321         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
12323 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
12325         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
12326         function.
12327         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
12328         prototype.
12329         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
12331 2002-01-09  Kazu Hirata  <kazu@hxi.com>
12333         * read-rtl.c: Fix formatting.
12334         * real.c: Likewise.
12335         * regclass.c: Likewise.
12336         * regrename.c: Likewise.
12337         * reg-stack.c: Likewise.
12338         * reload1.c: Likewise.
12339         * reload.c: Likewise.
12340         * rtl.c: Likewise.
12342 2002-01-09  Kazu Hirata  <kazu@hxi.com>
12344         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
12345         to extract items in the expr_list chain.
12347 2002-01-09  Richard Henderson  <rth@redhat.com>
12349         * config/vax/vax.c (vax_rtx_cost): Never abort.
12351         * config/vax/vax.h (REAL_ARITHMETIC): Define.
12353 2002-01-09  Jan Hubicka  <jh@suse.cz>
12355         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
12357 2002-01-09  Richard Henderson  <rth@redhat.com>
12359         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
12360         Unify code from various alternatives.
12362 2002-01-09  Richard Henderson  <rth@redhat.com>
12364         * regrename.c (copy_value): Ignore the copy if the source register
12365         is present in the value chain with a narrower mode.
12367 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
12369         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
12370         for the c4x target. Also improve layout.
12372 2002-01-09  Richard Henderson  <rth@redhat.com>
12374         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
12375         * config/m32r/m32r.md (and ior xor splitters): Swap operands
12376         to match insn patterns.
12378 2002-01-09  Richard Henderson  <rth@redhat.com>
12380         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12381         (copyprop_hardreg_forward_1): Likewise.
12383 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12385         * pa.md (decrement_and_branch_until_zero): Change predicate for
12386         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12388 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12390         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12391         gets undefined. For Darwin.
12393 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12395         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12397 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12399         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12401 2002-01-08  Richard Henderson  <rth@redhat.com>
12403         * regrename.c (copy_value): Ignore overlapping copies.
12405 2002-01-08  Richard Henderson  <rth@redhat.com>
12407         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
12408         as needed to avoid shared structure.
12410 2002-01-08  Kazu Hirata  <kazu@hxi.com>
12412         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
12413         H8/300H and H8/S.
12415 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12417         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
12418         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
12419         documentation of obsolete macros.
12420         * system.h: Poison these macros.
12421         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
12422         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
12423         config/c4x/c4x.h, config/clipper/clipper.h,
12424         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
12425         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
12426         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
12427         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
12428         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12429         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12430         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12431         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
12432         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
12433         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12434         config/sparc/sparc.h, config/stormy16/stormy16.h,
12435         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
12436         definitions and commented out definitions of obsolete macros.
12437         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
12438         of MAX_INT_TYPE_SIZE.
12440 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
12442         * config/s390/s390.c (s390_preferred_reload_class): Never
12443         return ADDR_REGS if it isn't a subset of the given class.
12444         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
12445         FP_REGS, but all superclasses as well.
12447         * config/s390/s390.c (s390_function_profiler): Fix thinko.
12449         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
12450         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
12451         must not be a const_int.
12453 2002-01-08  Richard Henderson  <rth@redhat.com>
12455         * Makefile.in (toplev.o): Depend on options.h.
12456         (gcc.o): Depend on specs.h.
12458 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
12460         * expr.c (store_expr): Convert VOIDmode constants back to target's
12461         mode.
12463 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12465         * doc/invoke.texi: Markup gcc as @command.  Refer to
12466         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
12467         of http://gcc.gnu.org/thanks.html.
12469 2002-01-08  Dale Johannesen  <dalej@apple.com>
12471         * config/rs6000/rs6000.md: Add missing int register
12472         target case to movdf_low.
12474 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
12476         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
12477         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
12478         (cppinit.o): Depend on except.h.
12479         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
12480         s-specs): New rules.
12482         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
12483         Don't create specs.h/options.h/gencheck.h here.  Remove
12484         unnecessary variable settings from last argument of AC_OUTPUT.
12485         * config.in, configure: Regenerate.
12486         * intl.c: Hardcode package name as "gcc".
12488         * cppinit.c: Include except.h.
12489         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
12490         appropriate.
12491         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
12492         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
12493         (!)USING_SJLJ_EXCEPTIONS.
12494         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
12496 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12498         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
12499         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
12500         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
12501         documentation of obsolete macros.
12502         * system.h: Poison these macros.
12503         * config/d30v/d30v.h, config/ns32k/encore.h,
12504         config/stormy16/stormy16.h: Remove definitions and commented out
12505         definitions of obsolete macros.
12507 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
12509         * objc/objc-act.c (handle_class_ref): Mark the declaration of
12510         %sobjc_class_ref_%s as used - to prevent unwanted compiler
12511         warnings.
12513 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
12515         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
12516         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
12517         to insn adjusting stack/frame pointer.
12518         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
12519         accept operands that cause the insn to be non-splittable.
12521 2002-01-08  Graham Stott  <grahams@redhat.com>
12523         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
12524         (C_TYPE_FIELDS_VOLATILE): Likewise.
12525         (C_TYPE_BEING_DEFINED): Likewise.
12526         (C_IS_RESERVED_WORD): Likewise.
12527         (C_TYPE_VARIABLE_SIZE): Likewise.
12528         (C_DECL_VARIABLE_SIZE): Likewise.
12529         (C_MISSING_PROTOTYPE_WARNED): Likewise.
12530         (C_SET_EXP_ORIGINAL_CODE): Likewise.
12531         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
12532         parenthesis.
12533         (C_DECL_ANTICIPATED): Likewise.
12534         (c_build_type_variant): Add parenthesis.
12536 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12538         * gcc.c (option_map): Remove --version.
12539         (process_command): Handle -fversion following the GNU Coding
12540         Standards.  Partially addresses PR other/704.
12542 2002-01-08  Graham Stott  <grahams@redhat.com>
12544         * combine.c (combine_instructions): Fix typo.
12546 2002-01-08  Graham Stott  <grahams@redhat.com>
12548         * debug.h: Use "tree" and "rtx" throughout.
12550         * debug.c: Likewise.
12552 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
12554         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
12555         constant pool, use the pool's version of the symbol instead.
12557 2002-01-07  Richard Henderson  <rth@redhat.com>
12559         * regrename.c (find_oldest_value_reg): Ignore the value chain if
12560         the original register was copied in a mode with a fewer number of
12561         hard registers than the desired mode.
12562         (copyprop_hardreg_forward_1): Likewise.
12563         (debug_value_data): Fix loop test.
12564         * toplev.c (parse_options_and_default_flags): Reenable
12565         -fcprop-registers at -O1.
12567 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
12569         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
12570         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
12572         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
12573         predicates.
12575         * config/rs6000/rs6000.md: Add altivec predicate patterns.
12577 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12579         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
12580         (pa_output_function_prologue): Output local label at the beginning of
12581         the prologue when profiling.
12582         (hppa_profile_hook): Use the local label rather than the function label.
12583         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
12585 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
12587         * config/rs6000/rs6000.c (print_operand): Remove extra space.
12588         (altivec_expand_unop_builtin): Fix thinko.
12589         (altivec_expand_binop_builtin): Same.
12590         (altivec_expand_ternop_builtin): Same.
12591         (altivec_expand_builtin): Same.
12593 2002-01-07  Richard Henderson  <rth@redhat.com>
12595         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12597 2002-01-07  Jason Merrill  <jason@redhat.com>
12599         * unwind-dw2.c (execute_cfa_program): Use < again.
12601 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
12603         * predict.c (combine_predictions_for_insn): Avoid division by zero.
12605 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
12607         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12608         Don't allow -1 - x -> ~x simplifications in the first pass.
12610 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
12612         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12613         arguments.
12614         (altivec_expand_binop_builtin): Same.
12615         (altivec_expand_unop_builtin): Same.
12616         (print_operand): Fix typo.
12617         (bdesc_1arg): Add vupk* variants.
12619         * rs6000.h (rs6000_builtins): Add vupk* enums.
12621         * rs6000.md: Add altivec_vupk* variants.
12623 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
12625         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12626         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12627         and last update dates.
12629 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
12631         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12633 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12635         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12636         * config/avr/avr.h (CPP_SPEC): Likewise.
12637         (LINK_SPEC): Likewise.
12638         (CRT_BINUTILS_SPECS): Likewise.
12639         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12640         * doc/invoke.texi (AVR Options): Document them.
12642 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
12644         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12645         LABEL_NUSES.
12647 2002-01-07  Graham Stott  <grahams@redhat.com>
12649         * config/i386/i386.h: Update copyright date.
12650         (HALF_PIC_PTR): Add parenthesis.
12651         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12652         (CONSTANT_ALIGNMENT): Add parenthesis.
12653         (DATA_ALIGNMENT): Likewise.
12654         (LOCAL_ALIGNMENT): Likewise.
12655         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12656         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12657         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12658         (HARD_REGNO_NREGS): Add paranethesis.
12659         (VALID_SSE_REG_MODE): Whitespace.
12660         (VALID_MMX_REG_MODE): Whitespace.
12661         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12662         (ix86_hard_regno_mode_ok): Add parenthesis.
12663         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12664         (RETURN_IN_MEMORY): Whitespace.
12665         (N_REG_CLASSES): Add parenthesis.
12666         (INTEGER_CLASS_P): Add parenthesis and wrap.
12667         (FLOAT_CLASS_P): Likewise.
12668         (SSE_CLASS_P): Likewise.
12669         (MMX_CLASS_P): Likewise.
12670         (MAYBE_INTEGER_CLASS_P): Likewise.
12671         (MAYBE_FLOAT_CLASS_P): Likewise.
12672         (MAYBE_SSE_CLASS_P): Likewise.
12673         (MAYBE_MMX_CLASS_P): Likewise.
12674         (Q_CLASS_P): Likewise.
12675         (GENERAL_REGNO_P): Uppercase macro parameter.
12676         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12677         (FP_REGNO_P): Likewise.
12678         (ANY_FP_REGNO_P): Uppercase macro parameter.
12679         (SSE_REGNO_P): Likewise.
12680         (SSE_REGNO): Likewise.
12681         (SSE_REG_P): Likewise.
12682         (SSE_FLOAT_MODE_P): Likewise.
12683         (MMX_REGNO_P): Likewise.
12684         (MMX_REG_P):Likewise.
12685         (STACK_REG_P): Likewise.
12686         (NON_STACK_REG_P): Likewise.
12687         (STACK_TOP_P): Likewise.
12688         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12689         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12690         (SECONDARY_MEMORY_NEEDED): Likewise.
12691         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12692         (MD_ASM_CLOBBERS): Whitespace and wrap.
12693         (MUST_PASS_IN_STACK): Whitespace and wrap.
12694         (RETURN_POPS_ARGS): Add parenthesis.
12695         (INIT_CUMULATIVE_ARGS): Likewise.
12696         (FUNCTION_ARG): Likewise.
12697         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12698         (SETUP_INCOMING_VARARGS): Likewise.
12699         (BUILD_VA_LIST_TYPE):  Add parenthesis.
12700         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12701         parenthsis.
12702         (EXPAND_BUILTIN_VA_ARG): Likewise.
12703         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12704         (INITIALIZE_TRAMPOLINE): Add parenthesis.
12705         (INITIAL_ELIMINATION_OFFSET): Likewise.
12706         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12707         (REGNO_OK_FOR_BASE_P): Likewise.
12708         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12709         (REGNO_OK_FOR_DIREG_P): Likewise.
12710         (REG_OK_FOR_INDEX_P): Whitespace.
12711         (REG_OK_FOR_BASE_P): Whitespace.
12712         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12713         parenthesis.
12714         (FIND_BASE_TERM): Fix typo.
12715         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
12716         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12717         (SYMBOLIC_CONST; Whitespace.
12718         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
12719         (ENCODE_SECTION_INFO): Whitespace.
12720         (FINALIZE_PIC): Remove do { ... } while (0).
12721         (PROMOTE_MODE): Wrap in do { ... } while (0).
12722         (CONST_COSTS): Whitespace.
12723         (RTX_COSTS): Add paramethesis, whitespace and wrap.
12724         (REGISTER_MOVE_COST): Add parenthesis.
12725         (MEMORY_MOVE_COST): Likewise.
12726         (EXTRA_CC_MODES): Whitespace.
12727         (SELECT_CC_MODE): Add parenthesis and whitespace.
12728         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12729         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12730         (ASM_OUTPUT_LABEL): Add paramethesis.
12731         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12732         (ASM_OUTPUT_REG_POP): Likewise.
12733         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12734         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12736         * config/i386/i386.c: Update copyright.
12737         (CHECK_STACK_LIMIT): Add parenthesis.
12738         (AT_BP): Uppercase macro parameter.
12739         (x86_64_int_parameter_registers): Constify.
12740         (x86_64_int_return_registers): Likewise.
12741         (ix86_compare_op0): Use rtx.
12742         (construct_container): Constify INTREG parameter.
12743         (function_arg): Use rtx.
12745         * diagnostic.h: Update copyright date.
12746         (output_buffer_state): Add parenthesis.
12747         (output_buffer_format_args): Likewise.
12749         * combine.c (combine_instructions): Replace XEXP (links, 0)
12750         with link.
12752 2002-01-06  H.J. Lu <hjl@gnu.org>
12754         * cfgcleanup.c (thread_jump): Fix 2 typos.
12756 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
12758         * config.gcc: Add support for --enable-altivec.
12760 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12762         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12764 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
12766         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12767         __objc_class_name_*.
12769 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12771         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12773 2002-01-06  Richard Henderson  <rth@redhat.com>
12775         * reorg.c (emit_delay_sequence): Remove death notes, not merely
12776         nop them out.  Increment label reference count for REG_LABEL.
12777         (fill_slots_from_thread): Frob label reference count around
12778         delete_related_insns.
12780 2002-01-05  Richard Henderson  <rth@redhat.com>
12782         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12783         jump threading.
12785 2002-01-05  Richard Henderson  <rth@redhat.com>
12787         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12788         * integrate.c (output_inline_function): Likewise.
12789         * toplev.c (rest_of_compilation): Do it here instead.  Move call
12790         to remove_unnecessary_notes after emitting abstract instance.
12791         Force an emitted nested function to have its parent emited as well.
12792         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12793         for null.
12794         (rtl_for_decl_location): Do not look at reload data structures
12795         before reload has run.
12797 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12799         * cse.c: Fix formatting.
12800         * dwarf2asm.c: Likewise.
12801         * dwarf2out.c: Likewise.
12802         * explow.c: Likewise.
12803         * expmed.c: Likewise.
12804         * function.c: Likewise.
12805         * gcov.c: Likewise.
12806         * gencheck.c: Likewise.
12807         * genrecog.c: Likewise.
12808         * ggc-common.c: Likewise.
12809         * ggc-page.c: Likewise.
12810         * global.c: Likewise.
12812 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12814         * combine.c: Fix formatting.
12816 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
12818         PR middle-end/1557
12819         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12821 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
12823         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12824         as 1 for __powerpc64__ as well.
12826         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12828         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12829         return it.
12831 2002-01-05  Daniel Berlin  <dan@dberlin.org>
12833         * lcm.c: Revert change, due to performance regression it causes on
12834         SPEC because it's slightly more conservative (sigh, I hate
12835         edge-based LCM).
12837 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12839         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12841 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12843         * doc/cppinternals.texi: Update.
12845 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
12847         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12848         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12849         negatives.
12850         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
12851         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12852         kludge for pre-october-14th mmix versions to handle new-found bug
12853         with PUSHJ/PUSHGO and the register stack.
12854         * config/mmix/mmix.h (struct machine_function): Rename member
12855         has_call_value_without_parameters to has_call_without_parameters.
12856         All referers changed.
12857         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12858         TARGET_MASK_BRANCH_PREDICT): New macros.
12859         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12860         -mno-reg-stack-fill-bug-workaround.
12861         * config/mmix/mmix.md ("call"): Set struct machine member
12862         has_call_without_parameters.
12864 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12866         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12868 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12870         * cfgcleanup.c: Include tm_p.h
12871         (mark_effect): Fix handling of hard register; fix handling of SET
12873 2002-01-04  Kazu Hirata  <kazu@hxi.com>
12875         * config/h8300/h8300.md (anonymous patterns): Check that
12876         operands are registers before using REGNO on them.
12878 2002-01-03  Roland McGrath  <roland@frob.com>
12880         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12882 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
12884         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12885         * c-common.h (genrtl_expr_stmt_value): Likewise.
12886         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12887         (expand_expr_stmt_value): Add maybe_last argument.
12888         Don't warn about statement with no effect if it is the last statement
12889         in expression statement.
12890         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12891         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12892         expand_expr_stmt_value.
12893         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12894         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12895         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12896         as maybe_last to expand_expr_stmt_value.
12898 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
12900         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12901         be passed in, do not build it.
12902         (c_begin_if_stmt): New function.
12903         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12904         * c-common.h (c_expand_start_cond): Update prototype.
12905         (c_begin_if_stmt): Prototype new function.
12906         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12907         * c-parse.in (if_prefix): Use c_begin_if_stmt,
12908         c_begin_while_stmt and c_finish_while_stmt_cond.
12910 2002-01-04  William Cohen  <wcohen@redhat.com>
12912         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12913         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12914         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12915         * config/pa/som.h (ASM_FILE_START): Likewise.
12917 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12919         * lcm.c: Include df.h.
12920         Add available_transfer_function prototype.
12921         (compute_available): Rework to use iterative dataflow framework.
12922         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12923         with bb_info in df.h
12924         (available_transfer_function): New function.
12926         * Makefile.in (lcm.o): add df.h to dependencies.
12928 2002-01-04  Richard Henderson  <rth@redhat.com>
12930         * config/alpha/alpha.c (some_operand): Accept HIGH.
12931         (input_operand): Likewise; accept simple references to globals.
12932         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12933         (alpha_const_double_ok_for_letter_p): Likewise.
12934         (alpha_extra_constraint): Likewise.
12935         (alpha_preferred_reload_class): Likewise.  Do not force
12936         symbolic constants to memory.
12937         (alpha_legitimate_address_p): Accept simple references
12938         to small_symbolic_operand.
12939         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12940         called when no_new_pseudos.  Emit simple symbolic references.
12941         Split integers into low, high, and rest.
12942         (alpha_expand_mov): Use alpha_legitimize_address.
12943         (some_small_symbolic_mem_operand): New.
12944         (split_small_symbolic_mem_operand): New.
12945         * config/alpha/alpha-protos.h: Update.
12946         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12947         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12948         (EXTRA_CONSTRAINT): Likewise.
12949         (PREFERRED_RELOAD_CLASS): Likewise.
12950         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12951         (PREDICATE_CODES): Update.
12952         * config/alpha/alpha.md: New post-reload splitters to convert
12953         simplfied symbolic operands to the form that references $29.
12954         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12955         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12957 2002-01-03  Richard Henderson  <rth@redhat.com>
12959         * local-alloc.c (function_invariant_p): Update commentary.
12961 2002-01-04  H.J. Lu <hjl@gnu.org>
12963         * toplev.c (rest_of_compilation): Fix a typo when calling
12964         cleanup_cfg.
12966 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12968         * c-common.c: Fix formatting.
12969         * diagnostic.c: Likewise.
12970         * doloop.c: Likewise.
12971         * dwarf2out.c: Likewise.
12973 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12975         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12976         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12978 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12980         * cpperror.c: Update comments and copyright.
12981         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12982         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12984 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12986         * collect2.c (main): Use strcmp when testing for "-shared".
12988 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12990         * cppmacro.c: Don't include intl.h.  Update comments.
12991         (new_number_token): Allocate enough buffer for 64-bit unsigned
12992         integers; update prototype.
12993         * cppmain.c: Update comments.
12995 2002-01-03  William Cohen  <wcohen@redhat.com>
12997         * function.h (struct function): Add profile.
12998         (current_function_profile): New.
12999         doc/extend.texi: Update documentation.
13000         * final.c (final_start_function): Use current_function_profile
13001         instead of profile_flag.
13002         (profile_after_prologue): Likewise.
13003         * function.c (expand_function_start): Likewise.
13004         (expand_function_start): Likewise.
13005         * config/alpha/alpha.c (direct_call_operand):
13006         (alpha_does_function_need_gp): Likewise.
13007         (alpha_expand_prologue): Likewise.
13008         * config/arm/arm.c (arm_expand_prologue): Likewise.
13009         thumb_expand_prologue: Likewise.
13010         * config/d30v/d30v.c (d30v_stack_info): Likewise.
13011         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
13012         (fr30_expand_prologue): Likewise.
13013         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
13014         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
13015         * config/i386/i386.h (FINALIZE_PIC): Likewise.
13016         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
13017         * config/i960/i960.c (i960_output_function_prologue): Likewise.
13018         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13019         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
13020         (m32r_expand_prologue): Likewise.
13021         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
13022         (m88k_expand_prologue): Likewise.
13023         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
13024         * config/mips/mips.c (compute_frame_size): Likewise.
13025         (mips_expand_prologue): Likewise.
13026         (mips_can_use_return_insn): Likewise.
13027         * config/pa/elf.h (ASM_FILE_START): Likewise.
13028         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13029         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13030         * config/pa/som.h (ASM_FILE_START): Likewise.
13031         * config/romp/romp.c (romp_using_r14): Likewise.
13032         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
13033         (rs6000_stack_info): Likewise.
13034         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13035         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
13036         * config/v850/v850.c (compute_register_save_size): Likewise.
13038 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
13040         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
13041         gen_lowpart_common fails, use gen_lowpart_SUBREG.
13043 2002-01-03  Turly O'Connor  <turly@apple.com>
13045         * darwin.c (machopic_output_possible_stub_label): Don't generate
13046         stub routines for pseudo-stubs which we've just defined.
13048 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13050         * builtins.c: Fix formatting.
13051         * c-typeck.c: Likewise.
13052         * combine.c: Likewise.
13053         * expr.c: Likewise.
13054         * loop.c: Likewise.
13056 2002-01-03  Andreas Schwab  <schwab@suse.de>
13058         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
13059         and return true if _cpp_push_next_buffer pushed a new include
13060         file.
13061         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
13062         _cpp_pop_file_buffer did not push a new file.
13063         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
13065 2002-01-02  Eric Christopher  <echristo@redhat.com>
13067         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
13068         FIND_REG_INC_NOTE call. Update copyright.
13069         * loop.c (canonicalize_condition): Ditto.
13070         * reorg.c (delete_scheduled_jump): Ditto.
13072 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13074         * gcse.c: Fix formatting.
13076 2002-01-03  Graham Stott  <grahams@redhat.com>
13078         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
13079         forward defs for struct tags rtx_def, union_tree, rtvec_def
13080         also output corresponding typedefs for rtx, tree, and rtvec.
13082         * system.h: Move forward defs for struct tags rtx_def, union_tree,
13083         rtvec_def along with corresponding typedefs for rtx, tree, and
13084         rtvec to config.h, hconfig.h, tconfig.h.
13086 2002-01-03  Graham Stott  <grahams@redhat.com>
13088         * tree.h: Update copyright date.
13089         (IS_EXPR_CODE_CLASS): Add parenthesis.
13090         (TREE_SET_CODE): Add whitespace.
13091         (TREE_CHECK): Add parenthesis.
13092         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
13093         (CST_OR_CONSTRUCTOR_CHECK):
13094         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
13095         (TREE_SYMBOL_REFERENCED): Whitespace.
13096         (INT_CST_LT): Likewise.
13097         (INT_CST_LT_UNSIGNED): Likewise.
13098         (tree_real_cst): Unwrap comment.
13099         (tree_string): Likewise.
13100         (tree_complex): Likewise.
13101         (IDENTIFIER_POINTER): correct cast.
13102         (SAVE_EXPR_CONTEXT): Whitespace.
13103         (EXPR_WFL_FILENAME_NODE): Likewise.
13104         (EXPR_WFL_FILENAME): Remove parenthesis.
13105         (DECL_ORIGIN): Add parenthesis.
13106         (DECL_FROM_INLINE): Use NULL_TREE.
13107         (build_int_2): Whitespace.
13108         (build_type_variant): Add parenthesis.
13110         * gcc/jcf-parse.c: Update copyright date.
13111         (yyparse): Constify resource_filename.
13113 2002-01-03  Graham Stott  <grahams@redhat.com>
13115         * rtl.h: Update copyright date.
13116         (RTL_CHECK1): Wrap long line.
13117         (RTL_CHECK2): Likewise.
13118         (RTL_CHECKC1): Wrap long line and whitespace.
13119         (RTL_CHECKC2): Likewise.
13120         (XWINT): Whitespace.
13121         (XINT): Likewise.
13122         (XSTR): Likewise.
13123         (XEXP): Likewise.
13124         (XVEC): Likewise.
13125         (XMODE): Likewise.
13126         (XBITMAP): Likewise.
13127         (XTREE): Likewise.
13128         (XBBDEF): Likewise.
13129         (XTMPL): Likewise.
13130         (X0WINT): Likewise.
13131         (X0INT):Likewise.
13132         (X0UINT): Likewise.
13133         (X0STR): Likewise.
13134         (X0EXP): Likewise.
13135         (X0VEC): Likewise.
13136         (X0MODE): Likewise.
13137         (X0BITMAP): Likewise.
13138         (X0TREE): Likewise.
13139         (X0BBDEF): Likewise.
13140         (X0ADVFLAGS): Likewise.
13141         (X0CSELIB): Likewise.
13142         (X0MEMATTR): Likewise.
13143         (XCWINT): Likewise.
13144         (XCINT): Likewise.
13145         (XCUINT): Likewise.
13146         (XCSTR): Likewise.
13147         (XCEXP): Likewise.
13148         (XCVEC): Likewise.
13149         (XCMODE): Likewise.
13150         (XCBITMAP): Likewise.
13151         (XCTREE): Likewise.
13152         (XCBBDEF): Likewise.
13153         (XCADVFLAGS): Likewise.
13154         (XCCSELIB): Likewise.
13155         (XC2EXP): Likewise.
13156         (INSN_UID): Likewise.
13157         (PREV_INSN): Likewise.
13158         (PATTERN): Likewise.
13159         (INSN_CODE): Likewise.
13160         (PUT_REG_NOTE_KIND): Likewise.
13161         (CODE_LABEL_NUMBER): Likewise.
13162         (NOTE_SOURCE_FILE): Likewise.
13163         (NOTE_BLOCK): Likewise.
13164         (NOTE_EH_HANDLER): Likewise.
13165         (NOTE_RANGE_INFO): Likewise.
13166         (NOTE_LIVE_INFO): Likewise.
13167         (NOTE_BASIC_BLOCK): Likewise.
13168         (NOTE_EXPECTED_VALUE): Likewise.
13169         (NOTE_LINE_NUMBER): Likewise.
13170         (LABEL_NAME): Likewise.
13171         (LABEL_NUSES): Likewise.
13172         (LABEL_ALTERNATE_NAME): Likewise.
13173         (ADDRESSOF_DECL): Likewise.
13174         (JUMP_LABEL): Likewise.
13175         (LABEL_NEXTREF): Likewise.
13176         (REGNO): Likewise.
13177         (ORIGINAL_REGNO: Likewise.
13178         (HARD_REGISTER_NUM_P): Add parenthesis.
13179         (SUBREG_REG): Whitespace.
13180         (SUBREG_BYTE): Likewise.
13181         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
13182         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
13183         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
13184         (ASM_OPERANDS_INPUT_VEC): Likewise.
13185         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
13186         (ASM_OPERANDS_INPUT): Likewise.
13187         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
13188         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
13189         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
13190         (ASM_OPERANDS_INPUT_MODE): Likewise.
13191         (ASM_OPERANDS_SOURCE_FILE): Likewise.
13192         (ASM_OPERANDS_SOURCE_LINE): Likewise.
13193         (MEM_SET_IN_STRUCT_P): Minor reformat.
13194         (TRAP_CONDITION): Whitespace.
13195         (TRAP_CODE): Likewise.
13196         (COND_EXEC_TEST): Likewise.
13197         (COND_EXEC_CODE): Likewise.
13198         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
13199         (PHI_NODE_P): Add parenthesis.
13200         (plus_constant): Whitespace and add parenthesis.
13202 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13204         * config/avr/avr.c: Fix comment typos.
13205         * config/c4x/c4x.md: Likewise.
13206         * config/dsp16xx/dsp16xx.h: Likewise.
13207         * config/dsp16xx/dsp16xx.md: Likewise.
13208         * config/i386/i386.md: Likewise.
13209         * config/ia64/ia64.c: Likewise.
13210         * config/m32r/m32r.h: Likewise.
13211         * config/m68hc11/m68hc11.md: Likewise.
13212         * config/mmix/mmix.c: Likewise.
13213         * config/mn10200/mn10200.c: Likewise.
13214         * config/romp/romp.c: Likewise.
13215         * config/sh/sh.c: Likewise.
13216         * config/stormy16/stormy16.c: Likewise.
13217         * config/stormy16/stormy16.h: Likewise.
13218         * config/stormy16/stormy16.md: Likewise.
13220 2002-01-03  Graham Stott  <grahams@redhat.com>
13222         * loop.h: Update copyright date.
13223         (LOOP_MOVABLES): Fix typo.
13224         (LOOP_REGS): Likewise.
13225         (LOOP_IVS): Likewise.
13227 2002-01-03  Graham Stott  <grahams@redhat.com>
13229         * cppinit.c: Update copyright date.
13230         Don't include output.h
13231         * Makefile.in: Update copyright date.
13232         Update dependency.
13234 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13236         PR c/5226
13237         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
13238         (-pthread) Add to RS/6000 options.
13240 2002-01-02  Kazu Hirata  <kazu@hxi.com>
13242         * except.c: Fix comment typos.
13243         * loop.c: Likewise.
13244         * varasm.c: Likewise.
13245         * doc/tm.texi: Fix a typo.
13247 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
13249         * c-typeck.c (output_init_element): Allow initializing static storage
13250         duration objects with compound literals.
13252 2002-01-02  Richard Henderson  <rth@redhat.com>
13254         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
13255         after abusing it.
13257 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13259         * gcc.c (default_compilers): Const-ify.
13260         * mips-tdump.c (stab_names): Likewise.
13261         * mips-tfile.c (map_coff_types, map_coff_storage,
13262         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
13263         pseudo_ops_t, pseudo_ops): Likewise.
13264         * protoize.c (default_include): Likewise
13266         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
13267         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
13268         Add array size in declaration.
13269         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
13270         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
13271         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
13272         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
13273         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
13274         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
13275         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
13276         emtens, make_nan): Const-ify.
13277         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
13278         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
13280 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
13282         * config.gcc (ia64-*-*): Set extra_headers.
13283         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
13284         * config/alpha/t-osf: Remove.
13285         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
13287 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
13289         * config/rs6000/t-aix43: Revert previous change.
13291 2002-01-02  Jason Merrill  <jason@redhat.com>
13293         * c-decl.c (c_expand_body): Call outlining_inline_function when
13294         emitting an inline function out of line.
13296 2002-01-02  Richard Henderson  <rth@redhat.com>
13298         * dwarf2out.c (limbo_die_node): Add created_for member.
13299         (new_die): New argument created_for.  Update all callers.
13300         (mark_limbo_die_list): New.
13301         (dwarf2out_init): Register limbo_die_list as a root.
13302         (dwarf2out_finish): Force insert limbo dies into their function
13303         context.
13305 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
13307         PR c++/5089
13308         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
13310 2002-01-02  Kazu Hirata  <kazu@hxi.com>
13312         * config/h8300/fixunssfsi.c: Update copyright.
13313         Fix comment typos.
13314         Fix formatting.
13315         * config/h8300/h8300.c: Update copyright.
13316         Eliminate warnings.
13318 2002-01-02  Kazu Hirata  <kazu@hxi.com>
13320         * config/romp/romp.c: Fix comment formatting.
13321         * config/romp/romp.h: Likewise.
13322         * config/romp/romp.md: Likewise.
13323         * config/s390/s390.c: Likewise.
13324         * config/stormy16/stormy16.c: Likewise.
13325         * config/stormy16/stormy16.h: Likewise.
13327 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
13329         * c-common.h (genrtl_expr_stmt_value): Declare.
13330         * c-semantics.c (genrtl_goto_stmt): Redirect to...
13331         (genrtl_goto_stmt_value): ... this new function.  Pass new
13332         argument down to expand_expr_stmt_value, taking
13333         TREE_ADDRESSABLE into account.
13334         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
13335         STMT_EXPR as addressable, i.e., one whose result we want.
13336         * expr.c (expand_expr): Don't save expression statement value
13337         of labeled_blocks or loop_exprs.
13338         * stmt.c (expand_expr_stmt): Redirect to...
13339         (expand_expr_stmt_value): ... this new function.  Use new
13340         argument to tell whether to save expression value.
13341         (expand_end_stmt_expr): Reset last_expr_type and
13342         last_expr_value if we don't have either.
13343         * tree-inline.c (declare_return_variable): Mark its use
13344         statement as addressable.
13345         * tree.h: Document new use of TREE_ADDRESSABLE.
13346         (expand_expr_stmt_value): Declare.
13348 2002-01-01  Tom Rix  <trix@redhat.com>
13350         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
13351         rs6000_emit_allocate_stack.
13353 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
13355         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
13356         ${srcdir}/ginclude/ to every entry in extra_headers.
13357         * configure: Regenerate.
13358         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
13359         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
13360         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
13361         * ginclude/proto.h: Rename to config/convex/proto.h.
13363 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13365         * attribs.c (handle_vector_size_attribute): Use host_integerp
13366         and tree_int_cst; remove warnings.
13367         * caller-save.c (insert_restore): Add cast to get rid of warning.
13368         (insert_save): Likewise.
13369         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
13370         * regmove.c (find_matches): Add temporary var to kill a warning.
13372 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
13374         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
13375         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
13376         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
13377         (vms-dwarf2eh.o): Add Makefile rule.
13378         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
13379         * config/alpha/vms-dwarf2eh.asm: New file.
13381         * gcc.c (delete_if_ordinary): Delete all versions.
13383 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
13385         * config/mmix/mmix.md: Update FIXME to not mention
13386         define_constants.
13387         (MMIX_rJ_REGNUM): New define_constants constant.
13388         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
13389         "*movdicc_real"): Adjust contraints formatting.
13390         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
13391         for branch prediction.
13392         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
13393         output template.
13394         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
13395         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
13396         number.  Delete related FIXMEs.
13397         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
13398         from number to MMIX_rJ_REGNUM.
13399         (TARGET_MASK_BRANCH_PREDICT): New.
13400         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
13401         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
13402         value.  Add -mbranch-predict and -mno-branch-predict.
13403         (TARGET_VERSION): Drop date.
13404         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
13405         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
13406         for finding out global symbols.
13407         (mmix_asm_output_labelref): Revert condition for global symbol.
13408         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
13409         (mmix_print_operand_punct_valid_p): A '+' is valid.
13411 See ChangeLog.6 for earlier changes.