* dbxout.c (pending_bincls): Move decl down inside
[official-gcc.git] / gcc / ChangeLog
blob88b7b756e136adc3acf486cbe1382320642080ba
1 2003-07-03  Andreas Schwab  <schwab@suse.de>
3         * dbxout.c (pending_bincls): Move decl down inside
4         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
6 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
8         * rtl.h (NOTE_DATA): Refer to whole union.
9         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
11 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13         PR optimization/11381
14         * simplify-rtx.c (simplify_relational_operation): Check that
15         two equal operands have no side-effects before simplifying
16         the comparison.
18 2003-07-02  Jeff Law  <law@redhat.com>
20         * expr.c (do_store_flag): Remove special case folding for
21         single bit tests.  Instead call back into the commonized folder
22         routine.
23         * fold-const.c (fold_single_bit_test): New function, mostly
24         extracted from do_store_flag, with an additional case extracted
25         from fold.
26         (fold): Call fold_single_bit_test appropriately.
27         * tree.h (fold_single_bit_test): Prototype.
29 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
31         * system.h: Include filenames.h.
32         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
33         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
34         define based on HAVE_DOS_BASED_FILE_SYSTEM.
35         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
36         * config/i386/xm-mingw32.h: Don't define
37         HAVE_DOS_BASED_FILE_SYSTEM,
38         DIR_SEPARATOR, or DIR_SEPARATOR_2.
39         * doc/hostconfig.texi: Update to match.
41         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
42         config/i386/cygwin.h:
43         Use IS_ABSOLUTE_PATH throughout.
44         * gcc.c (DIR_UP): Delete, unused.
45         * protoize.c (IS_SAME_PATH): Define in terms of
46         FILENAME_CMP.
47         (is_abspath): Delete.
49 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
51         * config/i386/emmintrin.h: Fix comment typos.
52         * config/i386/i386.c: Likewise.
53         * config/i386/i386.h: Likewise.
54         * config/i386/sco5.h: Likewise.
55         * config/ia64/ia64.c: Likewise.
56         * config/ia64/itanium2.md: Likewise.
58 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
60         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
61         DBX_USE_BINCL.
62         (emit_bincl_stab): Same.
63         (emit_pending_bincls): Same.
65 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
67         * config/h8300/h8300.c (compute_mov_length): Fix the length of
68         loading CONST0_RTX (SFmode).
69         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
70         'G' to CONST0_RTX (SFmode).
71         * config/h8300/h8300.md (movsf_h8300): Change the first
72         constraint to 'G'.
73         (movsf_h8300h): Likewise.
75 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
77         * c-common.h (c_common_init_options): New prototype.
78         * c-opts.c (deferred_size): Remove.
79         (defer_opt): Array is now pre-allocated.
80         (c_common_init_options): Pre-allocate deferred_opts.  Make
81         lang_flags unsigned.
82         (push_command_line_options): Free deferred_opts.
83         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
84         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
85         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
86         * langhooks.h (struct lang_hooks): New prototype for init_options.
87         * main.c (main): Cast argv.
88         * opts.c (handle_option, handle_options): Update prototypes.
89         (decode_options): save_argc, save_argv are not global.  Constify.
90         * opts.h (decode_options): New prototype.
91         * toplev.c (general_init): New protoype.
92         (save_argv): Make static.
93         (save_argc): Remove.
94         (print_switch_values, general_init): Constify.
95         (toplev_main): Save argv.
96         * toplev.h (toplev_main): Update prototype.
97         (save_argc, save_argv): Remove.
99 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
101         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
102         (emit_bincl_stab): Same.
103         (emit_pending_bincls): Same.
105 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
107         PR c++/11072
108         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
110 2003-07-02  Andreas Schwab  <schwab@suse.de>
112         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
114 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
116         PR optimization/11210
117         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
118         about the behaviour with regard to bitfields.
119         * fold-const (decode_field_reference): Record outermost type in
120         case the expression is a NOP. Strip all NOPs. Set the signedness
121         to that of the outermost type (if any) when the bitsize is equal
122         to the size of the type.
124 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
126         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
127         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
128         (adddi3_internal_3, addsi3_internal_2): Likewise.
130 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
132         * config/mips/mips.c (machine_function): Add new fields:
133         ignore_hazard_length_p and all_noreorder_p.
134         (mips_flag_delayed_branch): New variable.
135         (override_options): Treat '/' as an operand punctuation character.
136         Set up mips_flag_delayed_branch.
137         (print_operand): Handle '/'.
138         (mips_output_function_prologue): Put the whole function in
139         .set noreorder and .set nomacro if all_noreorder_p is true.
140         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
141         (mips16_optimize_gp): Remove "first insn" parameter.
142         (mips16_lay_out_constants): New function, split out from mips_reorg.
143         (mips_avoid_hazard, mips_avoid_hazards): New functions.
144         (mips_reorg): For mips16 code, call mips16_lay_out_constant
145         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
146         do delayed-branch scheduling followed by hazard detection.
147         (mips_adjust_insn_length): Only account for hazards if
148         !ignore_hazard_length_p.
149         (mips_output_load_label): Add a nop to the o32 sequence if
150         the target suffers from load delays.
151         (mips_output_conditional_branch): Add %/ to the end of branches.
152         (mips_output_division): Fill the branch delay slot with %#.
153         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
154         instructions.  End all other %* branches with %/.
155         (ffssi2, ffsdi2): Fix lengths.
156         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
157         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
158         (fix_truncsfsi2_macro): Likewise.
159         (mov_lwl): Set hazard to "none".
160         (ashldi3_internal): Fill the branch delay slot with %#.
161         (ashrdi3_internal, lshrdi3_internal): Likewise.
162         (exception_receiver): Explicitly set $28.
163         (hazard_nop): New pattern.
165 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
167         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
168         before calling tree_inlinable_function_p.
170 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
172         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
173         <internal/stdio_core.h> too.
174         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
175         <internal/wchar_core.h> too.
176         Substitute va_list uses in inline definition.
177         * fixinc/fixincl.x: Regenerate.
179 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
181         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
182         Undef before redefinition.
183         (LABEL_AFTER_LOC): Likewise.
184         (DEFAULT_SIGNED_CHAR): Likewise.
185         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
186         Fix IRIX spelling.
188         * config/mips/iris3.h: Remove, unused.
189         * config/mips/iris4.h: Likewise.
191         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
193         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
194         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
195         target_cpu_default.
197         * config/mips/iris5.h: Move explicit includes ...
198         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
200         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
201         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
202         tm_defines.
204         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
205         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
206         target_cpu_default.
208         * config/mips/iris6.h: Fix IRIX spelling.
209         (MULTILIB_DEFAULTS): Undef before redefinition.
211         * config/mips/iris6.h: Move explicit includes ...
212         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
214 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
216         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
217         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
218         Use next_needed field instead of aux to maintain the queue.
219         * cgraph.h (cgraph_node): Add next_needed.
220         (cgraph_varpool_node): Add next_needed; remove aux.
221         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
223 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
225         * cgraphunit.c (cgraph_finalize_function): Set finalized.
226         (cgraph_finalize_function): Do not examine inlinablility.
227         (cgraph_finalize_compilation_unit): Do it here.
228         * cgraph.h (cgraph_local_info): Add finalized field.
230 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
232         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
233         (gt_pch_restore): Likewise.
235 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
237         * config/alpha/alpha.c: Fix comment typos.
238         * config/alpha/elf.h: Likewise.
239         * config/arm/arm.c: Likewise.
240         * config/arm/arm.h: Likewise.
241         * config/arm/arm.md: Likewise.
242         * config/arm/t-arm-coff: Likewise.
243         * config/arm/t-strongarm-pe: Likewise.
244         * config/arm/xscale-elf.h: Likewise.
245         * config/avr/avr.h: Likewise.
247 2003-07-01  Jeff Law  <law@redhat.com>
249         * stmt.c (any_pending_cleanups): Remove another redundant test.
251 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
252             J"orn Rennecke <joern.rennecke@superh.com>
254         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
255         for MEM case.
257 2003-07-01  Devang Patel  <dpatel@apple.com>
259         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
260         (binclstatus): New.
261         (struct dbx_file): New members - bincl_status, pending_bincl_name and
262         prev.
263         (pending_bincls): New.
264         (dbxout_init): Initialize new dbx_file members.
265         (dbxout_start_source_file): Same.
266         (emit_bincl_stab): New function.
267         (emit_pending_bincls): Same.
268         (emit_pending_bincls_if_required): Same.
269         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
270         processed.
271         (dbxout_begin_block): Emit pending BINCL stabs.
272         (dbxout_end_block): Same.
273         (dbxout_function_decl): Same.
274         (dbxout_continue): Same.
275         (dbxout_type): Same.
276         (dbxout_class_name_qualifiers): Same.
277         (dbxout_symbol): Same.
278         (dbxout_symbol_location): Same.
279         (dbxout_parms): Same.
281 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
283         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
284         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
286 2003-07-01  Andreas Jaeger  <aj@suse.de>
288         * fold-const.c: Convert prototypes to ISO C90.
289         * function.c: Likewise.
290         * function.h: Likewise.
292 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
294         * doc/contrib.texi: Fix typos.
295         * doc/invoke.texi: Likewise.
296         * doc/passes.texi: Likewise.
297         * doc/sourcebuild.texi: Likewise.
298         * doc/tm.texi: Likewise.
300 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
302         * basic-block.h: Fix comment typos.
303         * bb-reorder.c: Likewise.
304         * c-format.c: Likewise.
305         * cfgcleanup.c: Likewise.
306         * cfghooks.h: Likewise.
307         * cfgloop.c: Likewise.
308         * cfgloopmanip.c: Likewise.
309         * cfgrtl.c: Likewise.
310         * cgraph.h: Likewise.
311         * cgraphunit.c: Likewise.
312         * combine.c: Likewise.
313         * convert.c: Likewise.
314         * dbxout.c: Likewise.
315         * df.c: Likewise.
316         * df.h: Likewise.
317         * diagnostic.c: Likewise.
318         * dwarf2out.c: Likewise.
319         * et-forest.h: Likewise.
320         * flow.c: Likewise.
321         * fold-const.c: Likewise.
322         * function.h: Likewise.
323         * gcov-io.h: Likewise.
324         * gcov.c: Likewise.
325         * gcse.c: Likewise.
326         * genautomata.c: Likewise.
327         * ggc-common.c: Likewise.
328         * ggc-page.c: Likewise.
329         * loop-unroll.c: Likewise.
330         * loop-unswitch.c: Likewise.
331         * loop.c: Likewise.
332         * mips-tfile.c: Likewise.
333         * optabs.c: Likewise.
334         * ra-build.c: Likewise.
335         * ra-colorize.c: Likewise.
336         * ra-rewrite.c: Likewise.
337         * ra.h: Likewise.
338         * regmove.c: Likewise.
339         * reload.c: Likewise.
340         * rtlanal.c: Likewise.
341         * sched-ebb.c: Likewise.
342         * sched-int.h: Likewise.
343         * sched-vis.c: Likewise.
344         * sreal.c: Likewise.
345         * ssa-ccp.c: Likewise.
346         * ssa.c: Likewise.
347         * toplev.c: Likewise.
348         * tree-inline.c: Likewise.
349         * value-prof.c: Likewise.
350         * value-prof.h: Likewise.
352 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
354         * rtl.h (emit_line_note_after): Remove.
355         (emit_note_copy_after, emit_note_copy): New.
356         * emit-rtl.c (reorder_insns_with_line_notes): Replace
357         emit_line_note_after with emit_note_copy_after.
358         (emit_insn_after_with_line_notes): Likewise.
359         (emit_line_note_after): Kill.
360         (emit_note_copy_after): New.
361         (emit_note_copy): New.
362         * function.c (emit_return_into_block): Use emit_note_copy_after.
363         (thread_prologue_and_epilogue_insns): Likewise.
364         * integrate.c (expand_inline_function): Use emit_note_copy.
365         (copy_insn_list): Likewise.
366         * unroll.c (copy_loop_body): Likewise.
367         * cfglayout.c (duplicate_insn_chain): Likewise.
369 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
371         * c-tree.h (define_label): Replace filename and lineno arguments
372         with a location_t.
373         * c-decl.c (poplevel): Adjust define_label call.
374         (pop_label_level): Likewise.
375         (define_label): Replace filename and lineno arguments with a
376         location_t.
377         (store_parm_decls): Use DECL_SOURCE_LOCATION.
378         * c-parse.in (label): Adjust define_label call.
380 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
382         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
383         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
384         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
385         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
386         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
388 2003-07-01  Andreas Jaeger  <aj@suse.de>
390         * final.c: Convert prototypes to ISO C90.
391         * flow.c: Likewise.
392         * flags.h: Likewise.
393         * gcov-io.c: Likewise.
394         * gcov-io.h: Likewise.
396 2003-06-30  Bruno Haible  <bruno@clisp.org>
398         PR middle-end/6578
399         * libgcc2.c (__subvsi3): Remove simplification that would not work
400         when subtracting -0x80000000.
401         (__subvdi3): Remove simplification that would return a wrong result.
402         (__mulvsi3): Fix overflow check.
403         (__absvdi2): Fix simplification that would return a wrong result.
404         (__mulvdi3): Fix overflow check.
406 2003-06-30  Jeff Law  <law@redhat.com>
408         * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
409         was always passed in the value '1'.  Simplify body appropriately.
410         * tree.h (any_pending_cleanups): Corresponding changes.
411         * calls.c: (expand_call): Corresponding changes.
413 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
415         * combine.c (distribute_notes): Don't bother REG_WAS_0.
416         * cse.c (cse_insn): Likewise.
417         * final.c (final_scan_insn): Likewise.
418         * jump.c (duplicate_loop_exit_test): Likewise.
419         * rtl.c (reg_note_name): Remove REG_WAS_0.
420         * rtl.h (REG_WAS_0): Remove.
421         * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
422         * config/avr/avr.c (output_movqi): Don't use reg_was_0.
423         (output_movhi): Likewise.
424         (output_movsisf): Likewise.
425         (reg_was_0): Remove.
426         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
427         REG_WAS_0.
428         (m68hc11_gen_movqi): Likewise.
429         * config/vax/vax-protos.h: Remove the prototype for
430         reg_was_0_p.
431         * config/vax/vax.c (follows_p): Remove.
432         (reg_was_0_p): Likewise.
433         * config/vax/vax.md (movsi): Don't use reg_was_0_p.
434         (movhi): Likewise.
435         (movqi): Likewise.
436         * doc/rtl.texi (REG_WAS_0): Remove.
438 2003-06-30  Mark Mitchell  <mark@codesourcery.com>
440         * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
442 2003-06-30  Bob Wilson  <bob.wilson@acm.org>
444         * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
445         top-level include directory.
446         * config/xtensa/lib2funcs.S: Likewise.
447         * config/xtensa/xtensa.h: Likewise.
448         * config/xtensa/xtensa-config.h: Remove.
449         * doc/install.texi: Update location of "xtensa-config.h" header.
451 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
453         * config/s390/s390.c (s390_extra_constraint): New function.
454         * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
455         * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
456         * config/s390/s390.c (q_constraint): Remove.
457         * config/s390/s390-protos.h (q_constraint): Likewise.
458         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
459         (EXTRA_ADDRESS_CONSTRAINT): Define.
461         * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
462         (DISP_IN_RANGE, s390_short_displacement): New.
463         (legitimate_reload_operand_p): Support long displacements.
464         (s390_decompose_address): Likewise.
465         (legitimize_pic_address): Likewise.
466         (legitimize_address): Likewise.
467         (s390_fixup_clobbered_return_reg): Likewise.
468         (s390_emit_prologue, s390_emit_epilogue): Likewise.
469         (s390_output_mi_thunk): Likewise.
471         * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
472         (attr "atype", attr "length"): Add defaults for new op_types.
473         (all insns): Change op_type attribute where appropriate.
475         ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
476         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
477         "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
478         "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
479         "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
480         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
481         "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
482         "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
483         "*movdf_64", "*movdf_31", "*movsf",
484         "*load_multiple_si", "*store_multiple_di",
485         "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
486         "*la_64", "*la_31", "*la_31_and", "force_la_31",
487         "*addsi3_carry1_cc", *addsi3_carry1_cconly",
488         "*addsi3_carry2_cc", *addsi3_carry2_cconly",
489         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
490         "*addsi3_sign", "*addsi3_sub", "addsi3",
491         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
492         "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
493         "mulsi3"
494         "*andsi3_cc", "*andsi3_cconly", "andsi3",
495         "*andqi3_ss", "*andqi3_ss_inv",
496         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
497         "*iorqi3_ss", "*iorqi3_ss_inv",
498         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
499         "*xorqi3_ss", "*xorqi3_ss_inv",
500         "*tls_load_31"): Add alternatives for long-displacement instructions.
502         ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
503         "*load_multiple_di", "*store_multiple_di",
504         "*sethighqidi_64", "*zero_extendhisi2_31",
505         "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
506         "adddf3", "*adddf3", "*adddf3_ibm",
507         "addsf3", "*addsf3", "*addsf3_ibm",
508         "subdf3", "*subdf3", "*subdf3_ibm",
509         "subsf3", "*subsf3", "*subsf3_ibm",
510         "mulsi_6432", "divmoddisi3",
511         "muldf3", "*muldf3", "*muldf3_ibm",
512         "mulsf3", "*mulsf3", "*mulsf3_ibm",
513         "divdf3", "*divdf3", "*divdf3_ibm",
514         "divsf3", "div*sf3", "*divsf3_ibm",
515         "sqrtdf2", "sqrtsf2",
516         "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
517         "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
518         "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
519         and address constraints for instructions that do not accept long
520         displacements.
522 2003-06-30  Hartmut Penner  <hpenner@de.ibm.com>
523             Ulrich Weigand  <uweigand@de.ibm.com>
525         * config/s390/2084.md: New file.
526         * config/s390/s390.md: Include it.
527         * config/s390/s390.c (s390_adjust_priority): New function.
528         (TARGET_SCHED_ADJUST_PRIORITY): Define.
529         (s390_first_cycle_multipass_dfa_lookahead): New function.
530         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
531         (s390_sched_reorder2): New function.
532         (TARGET_SCHED_REORDER2): Define.
533         (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
534         (s390_issue_rate): Likewise.
536 Mon Jun 30 23:47:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
538         * Makefile.in (GTFILES): Add cgraph.h.
539         * cgraph.c (known_decls): Remove.
540         (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
541         cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
542         (cgraph_node): Do not allocate known_decls; use polutate hashtable.
543         (cgraph_varpool_node): Likewise; add next pointer.
544         (cgraph_varpool_nodes): New static variable.
545         * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
546         cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
547         cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
548         * gengtype.c (open_base_files): Include cgraph.h
550 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
552         * Changelog: Remove ">>>>>>>" from previous change.
554 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
556         * config/cris/cris.c: Fix spelling for "testcase".
557         * config/cris/cris.h: Likewise.
558         * config/cris/cris.md: Likewise.
559         * config/mmix/crti.asm: Likewise.
560         * config/mmix/mmix.h: Likewise.
561         * config/mmix/mmix.md: Likewise.
563 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
565         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
566         1.
568 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
570         * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
571         --with-mode configure options.
572         * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
573         (DRIVER_SELF_SPECS): Define.
574         * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
575         architecture to assembler.
576         (LINK_SPEC): Merge 31-bit and 64-bit variants.
577         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
578         * config/s390/s390.c (override_options): New default rules for
579         architecture mode and cpu architecture selection.
580         * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
581         new default rules.
583         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
584         * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
585         * config/s390/s390.c (override_options): Add "z990" to
586         processor_alias_table.
587         * doc/invoke.texi (-march): Document "z990" processor type.
589         * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
590         * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
591         (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
592         TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
593         * config/s390/s390.c (override_options): Replace enum pta_flags by
594         enum processor_flags.  Fill in s390_tune_flags and s390_arch_flags.
596         * config/s390/s390.c (s390_cpu): Rename to ...
597         (s390_tune): ... this.
598         * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
599         * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
600         * config/s390/s390.md (attr "cpu"): Likewise.
602 2003-06-30  Neil Booth  <neil@daikokuya.co.uk>
604         * c-common.c (enum c_language_kind, flag_objc): Remove.
605         (fix_string_type, check_case_value, c_common_nodes_and_builtins,
606         c_add_case_label, finish_label_addr_expr, boolean_increment):
607         Use c_dialect_ macros.
608         * c-common.h (enum c_language_kind): Extend.
609         (c_dialect_cxx, c_dialect_objc): New.
610         (flag_objc): Remove.
611         (c_common_init_options): Update prototype.
612         * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
613         macros.
614         * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
615         macros.
616         * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
617         * c-lang.c (c_init_options): Remove.
618         (c_language): Define.
619         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
620         * c-lex.c (lex_charconst): Use c_dialect_ macros.
621         * c-opts.c (lang_flags): Make function-local.
622         (c_common_init_options): Use c_dialect_ macros.  Handle
623         C++ diagnostic requirements.
624         (c_common_handle_option, c_common_post_options): Use flag_cxx.
625         * c-parse.in (init_reswords): Use c_dialect_objc ().
626         * c-pch.c (get_ident): Use c_language.
627         * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
628         * c-typeck.c (comptypes, build_c_cast): Similarly.
629         * objc/objc-lang.c (c_language): Define.
630         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
631         (objc_init_options): Remove.
633 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
635         * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
636         * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
638 2003-06-30  Wolfgang Bangerth  <bangerth@dealii.org>
640         * doc/sourcebuild.texi: Don't reference gnats.html any more.
642 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
644         * config/h8300/h8300.c (compute_mov_length): Fix length of
645         mov:SF on H8/300.
647 2003-06-30  Nick Clifton  <nickc@redhat.com>
649         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
650         constant.
652 Mon Jun 30 15:36:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
654         (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
656 2003-06-30 Hartmut Penner  <hpenner@de.ibm.com>
658         * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
659         (altivec_in_gprs_p): New function.
661         * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
662         prototype.
663         (altivec_in_gprs_p): New prototype.
665         * config/rs6000/altivec.md (*movv4si_internal): Change
666         multi-assembler alternative to '#'. Add postreload splitter to
667         handle this cases.
668         (*movv4hi_internal): Likewise.
669         (*movv4qi_internal): Likewise.
670         (*movv4sf_internal): Likewise.
672 2003-06-30  Jason Merrill  <jason@redhat.com>
674         * defaults.h (PUSH_ARGS_REVERSED): Define default here.
675         * calls.c: Not here.
677 2003-06-30  Ben Elliston  <bje@wasabisystems.com>
679         * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
680         (bad_signed_byte_operand): Likewise.
681         (arm_output_epilogue): Likewise.
682         (arm_final_prescan_insn): Likewise.
684 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
686         * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
688 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
690         * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
691         subsequent writes.
693 Mon Jun 30 10:03:02 CEST 2003  Jan Hubicka  <jh@suse.cz>
695         * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
696         in cfglayout mode.
698 Mon Jun 30 09:52:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
700         * i386.c (standard_80387_constant_p): Accept TFmode constants too.
701         (init_ext_80387_constants): Likewise.
702         (standard_80387_constant_rtx): Likewise.
703         * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
704         (atantf): Disable for !TARGET_128BIT_LONG_LONG
705         (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
706         (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
707         (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
708         (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
709         (frndinttf2): New.
710         (f2xm1tf2): New.
711         (exp?f2): Use expsf2_tf when needed.
712         (exp?f2_tf): New.
713         (exptf): New.
715 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
717         * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
718         statement from tmake_file set.
720 2003-06-29  James E Wilson  <wilson@tuliptree.org>
722         * reload.c (find_reloads): Change push_reloads to push_reload in
723         comment.
724         * reload1.c (eliminate_regs): Likewise.
725         (dump_needs): Delete prototype for deleted function.
727 2003-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
729         * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
730         format attributes.
731         * c-format.c (enum format_type): Add gcc_diag_format_type,
732         gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
733         (gcc_diag_length_specs, gcc_cdiag_length_specs,
734         gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
735         gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
736         gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
737         gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
738         (format_types_orig): Add new data.
739         (find_char_info_specifier_index, init_dynamic_diag_info): New
740         functions.
741         (handle_format_attribute): Update to handle new format attributes.
743 2003-06-29  Aaron W. LaFramboise  <awlaframboise@aol.com>
745         * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
747 2003-06-29  Dara Hazeghi  <dhazeghi@yahoo.com>
749         * doc/install.texi: Remove install documentation for obsoleted targets
750         i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
751         arm-*-aof.
752         Update information about IA64 toolchain, AIX make requirements,
753         and binutils for m68k-*-hpux and *-*-linuxaout targets.
755 Mon Jun 30 00:50:43 CEST 2003  Jan Hubicka  <jh@suse.cz>
757         * regmove.c (regmove_optimize): Don't try to make src and dst match
758         when they are in different modes.
760 Sun Jun 29 23:06:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
762         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
763         busy work when builtin is not supported by the backend.
765 2003-06-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
767         * loop.c (count_one_set): Fix detection of registers set in more
768         than one basic block.
770 2003-06-29  Andreas Jaeger  <aj@suse.de>
772         * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
773         * system.h: Poison OBJ_FORMAT_ROSE.
774         * doc/tm.texi (Macros for Initialization): Remove documentatin of
775         OBJECT_FORMAT_ROSE.
776         * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
777         * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
779 2003-06-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
781         * pa.c (update_total_code_bytes): New function.
782         (last_address): Number of bytes output for a function and its
783         associated thunks.
784         (compute_frame_size): Use BITS_PER_UNIT.
785         (pa_output_function_epilogue): Compute last_address.  Use
786         update_total_code_bytes.
787         (output_lbranch): Handle long branch on portable runtime.
788         (attr_length_millicode_call, attr_length_call,
789         attr_length_indirect_call): Only use total_code_bytes for calls in
790         the text section.
791         (output_call): Only use an indirect call sequence when the target is
792         not local.
793         (pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
794         test to determine when an IA-relative branch can be used.  Add various
795         long branch sequences.  Avoid using an indirect branch on all ports
796         except SOM.
798 2003-06-29  Ulrich Weigand  <uweigand@de.ibm.com>
800         * expr.c (clear_by_pieces): Fix prototype.
802 2003-06-29  Andreas Jaeger  <aj@suse.de>
804         * cse.c: Convert prototypes to ISO C90.
805         * cselib.c: Likewise.
806         * cselib.h: Likewise.
807         * dbxout.c: Likewise.
808         * debug.c: Likewise.
809         * df.c: Likewise.
810         * df.h: Likewise.
811         * dojump.c: Likewise.
812         * doloop.c: Likewise.
813         * dominance.c: Likewise.
814         * dwarf2asm.c: Likewise.
815         * dwarf2out.c: Likewise.
816         * dwarf2out.h: Likewise.
817         * dwarfout.c: Likewise.
818         * except.c: Likewise.
819         * except.h: Likewise.
820         * emit-rtl.c: Likewise.
821         * et-forest.c: Likewise.
822         * et-forest.h: Likewise.
823         * except.c: Likewise.
824         * explow.c: Likewise.
825         * expmed.c: Likewise.
826         * expr.c: Likewise.
827         * expr.h: Likewise.
829 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
831         * alloc-pool.c: Fix comment formatting.
832         * bitmap.c: Likewise.
833         * bitmap.h: Likewise.
834         * bt-load.c: Likewise.
835         * builtins.c: Likewise.
836         * caller-save.c: Likewise.
837         * cfganal.c: Likewise.
838         * cfgrtl.c: Likewise.
839         * collect2.c: Likewise.
840         * cse.c: Likewise.
841         * df.c: Likewise.
842         * diagnostic.c: Likewise.
843         * dwarf2out.c: Likewise.
844         * dwarfout.c: Likewise.
845         * expmed.c: Likewise.
846         * final.c: Likewise.
847         * flags.h: Likewise.
848         * fold-const.c: Likewise.
849         * gcc.c: Likewise.
850         * gcov-io.h: Likewise.
851         * gcov.c: Likewise.
852         * genattrtab.c: Likewise.
853         * genautomata.c: Likewise.
854         * libgcov.c: Likewise.
855         * mips-tfile.c: Likewise.
856         * optabs.c: Likewise.
857         * prefix.c: Likewise.
858         * rtlanal.c: Likewise.
859         * stmt.c: Likewise.
860         * stor-layout.c: Likewise.
861         * toplev.c: Likewise.
862         * varasm.c: Likewise.
863         * vmsdbgout.c: Likewise.
865 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
867         * expr.c (emit_single_push_insn): If padding is needed
868         downward, adjust the stack pointer first, and then store the
869         data into the stack location using an offset.
871 2003-06-29  Andreas Jaeger  <aj@suse.de>
873         * collect2.h: Convert prototypes to ISO C90.
874         * collect2.c: Likewise.
875         * conflict.c: Likewise.
876         * coverage.c: Likewise.
877         * convert.h: Likewise.
878         * convert.c: Likewise.
880 2003-06-29  Nathan Sidwell  <nathan@codesourcery.com>
882         * c-decl.c (c_init_decl_processing): Use a location_t. Set input
883         filename to <internal>.
884         * tree.c (make_node): Just copy the current location.
886 2003-06-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
888         PR optimization/11210
889         * fold-const (decode_field_reference): Revert 2003-06-26 patch.
891 2003-06-29  Neil Booth  <neil@daikokuya.co.uk>
893         * toplev.c (flag_dummy): Remove.
894         (f_options): Restore flag pointers.
896 2003-06-29  David Edelsohn  <edelsohn@gnu.org>
898         * config/rs6000/rs6000.c (processor_target_table): Add 970.
899         * config.gcc: Add 970.
901 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
903         * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
904         -1) with ggc_strdup.
905         * stmt.c (expand_asm_operands): Likewise.
906         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
908 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
910         * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
911         definition.
913 2003-06-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
915         * opts.c: Include insn-attr.h.
916         * Makefile.in (opts.o): Depend on INSN_ATTR_H.
918 2003-06-27  J"orn Rennecke <joern.rennecke@superh.com>
920         * flow.c (propagate_one_insn): Use proper test for a register
921         being part of the return value.
923 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
925         * config/avr/avr.c: Fix a comment typo.
927 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
929         * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
930         with avr_simplify_comparison_p.
931         * config/avr/avr.c: Likewise.
933 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
935         * builtins.c: Follow spelling conventions.
936         * cgraph.c: Likewise.
937         * cpplex.c: Likewise.
938         * config/arm/arm.c: Likewise.
939         * config/arm/iwmmxt.md: Likewise.
940         * config/c4x/c4x-modes.def: Likewise.
941         * config/c4x/c4x.c: Likewise.
942         * config/c4x/c4x.h: Likewise.
943         * config/c4x/c4x.md: Likewise.
944         * config/i386/i386-interix.h: Likewise.
945         * config/mips/mips.h: Likewise.
947 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
949         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
950         __mc68020__ on TARGET_68020.
952 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
954         * config/h8300/h8300.c: Fix a comment typo.
956 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
958         * c-parse.in (yylexstring): Use a location_t.
960         * diagnostic.h (diagnostic_set_info): Replace file and lineno
961         parameters with a location_t.
962         * diagnostic.c (diagnostic_set_info): Replace file and lineno
963         parameters with a location_t.
964         (inform, warning, pedwarn, error, sorry, fatal_error,
965         internal_error, warning_with_decl, pedwarn_with_decl,
966         error_with_decl): Adjust.
967         * c-error.c (pedwarn_c99): Adjust.
968         * c-format.c (status_warning): Adjust.
969         * rtl-error.c (file_and_line_for_asm): Rename to ...
970         (location_for_asm): Return a location_t.
971         (diagnostic_for_asm): Adjust.
973 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
975         * cpptrad.c (skip_macro_block_comment): New.
976         (copy_comment): Use it if appropriate.
978 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
980         * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
981         definition.
982         (store_killed_in_insn): Likewise.
983         * print-rtl.c (print_rtx): Likewise.
984         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
985         * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
986         (m68hc11_reassign_regs): Likewise.
987         (m68hc11_reorg): Likewise.
989 2003-06-28  Gabriel Dos Reis <gdr@integrable-solutions.net>
991         * diagnostic.c (output_integer_with_precision): New macro.
992         (output_format): Use it.  Handle more format specifiers.
993         (output_long_decimal): Remove.
994         (output_unsigned_decimal): Likewise.
995         (output_long_unsigned_decimal): Likewise.
996         (output_octal): Likewise.
997         (output_long_octal): Likewise.
998         (output_hexadecimal): Likewise.
999         (output_long_hexadecimal): Likewise.
1000         (output_long_long_decimal): Likewise.
1002 2003-06-28  Andreas Schwab  <schwab@suse.de>
1004         * config/ia64/ia64.md: Follow recent emit_note API change.
1006 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
1008         * c-parse.in (%union): Replace filename & lineno with location.
1009         (save_filename, save_lineno): Remove.
1010         (save_location): New.
1011         (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
1012         nested_function, notype_nested_function, if_prefix, lineno_stmt,
1013         lineno_label, label): Adjust.
1015 2003-06-28  Jakub Jelinek  <jakub@redhat.com>
1017         * builtins.c (c_strlen): Add only_value argument.
1018         Handle COND_EXPR and COMPOUND_EXPR.
1019         (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
1020         Adjust c_strlen callers.
1021         (expand_builtin_strcpy, expand_builtin_strncpy,
1022         expand_builtin_strcmp, expand_builtin_strncmp,
1023         expand_builtin_fputs, expand_builtin_sprintf,
1024         fold_builtin): Adjust c_strlen callers.
1026 2003-06-28  Josef Zlomek  <zlomekj@suse.cz>
1028         * bb-reorder.c (find_traces_1_round): Do not send basic block
1029         to next round when we are in the last round.
1031 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
1033         * Makefile.in: Update.
1034         * opts.c: Include tm_p.h.
1035         (handle_options): Make static.
1036         (decode_options): Copied from toplev.c.
1037         * opts.h (decode_options): New.
1038         * toplev.c (parse_options_and_default_flags): Move most to opts.c,
1039         some to...
1040         (general_init): ...here.
1041         (toplev_main): Use decode_options instead.
1042         * toplev.h (save_argc, save_argv): New.
1044 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1046         * explow.c (find_next_ref): Remove.
1047         * rtl.h: Remove the prototype for find_next_ref.
1049 2003-06-27  Roger Sayle  <roger@eyesopen.com>
1051         * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
1052         call to match recent API change.
1054 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
1056         * dbxout.c (flag_debug_only_used_symbols): Delete redundant
1057         declaration.
1059         * c-format.c (check_format_string, get_constant)
1060         * cfgrtl.c (rtl_split_edge):
1061         Mark the definition static, matching the forward declaration.
1063 2003-06-27  Gunther Nikl <gni@gecko.de>
1065         * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
1067         PR target/11014
1068         * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
1069         syntax for MIT / MOTOROLA.
1071         PR other/10240
1072         * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
1073         * configure: Rebuilt.
1075 2003-06-27  Chris Demetriou  <cgd@broadcom.com>
1077         * config/mips/mips.c (mips_build_va_list): Make padding in
1078         va_list structure explicit to avoid -Wpadded warnings.
1080 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
1082         * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
1083         * config/s390/s390.c (s390_secondary_output_reload_class): New function.
1084         * config/s390/s390-protos.h (s390_secondary_output_reload_class):
1085         Declare it.
1086         * config/s390/s390.md ("reload_outti", "reload_outdi",
1087         "reload_outdf"): New expanders.
1089         * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
1090         memory operands as source.
1091         ("movdi" + splitters): Likewise.
1092         ("movdf" + splitters): Likewise.
1093         * config/s390/s390.c (s390_split_ok_p): New function.
1094         * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
1096 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1098         * combine.c (force_to_mode): Replace the equality comparison
1099         of INTVALs with a pointer equality comparison.
1100         (simplify_comparison): Likewise.
1102 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1104         * jump.c (rtx_renumbered_equal_p): Replace an expression that
1105         is known to be 0 with 0.
1107 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1109         * gcse.c (expr_equiv_p): Replace expressions that are known to
1110         be 0 with 0.
1112 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1114         * cse.c (fold_rtx): Replace the equality comparison of INTVALs
1115         with a pointer equality comparison.
1117 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1119         * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
1120         are known to be not equivalent.
1122 2003-06-27  Richard Henderson  <rth@redhat.com>
1124         * config/alpha/alpha.c (function_arg): Don't pass small aggregates
1125         in floating point registers.  Validate that we don't receive complex
1126         values here.  Use #elif.
1127         (return_in_memory, function_value): New.
1128         (alpha_va_arg): Handle complex values as two arguments.
1129         * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
1130         (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
1131         (SPLIT_COMPLEX_ARGS): New.
1132         * config/alpha/alpha-protos.h: Update.
1134 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
1136         * ggc-page.c (inverse_table): Change type of mult to size_t.
1137         (compute_inverse): Compute inverse using size_t, not unsigned int.
1138         Compute inverse also for sizes larger than half a machine page.
1140 Fri Jun 27 18:36:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
1142         * toplev.c (rest_of_decl_compilation):  Only varpoolize argument
1143         when called before cgraph_optimize.
1145 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
1147         * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
1148         * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
1149         be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
1151 Fri Jun 27 17:41:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
1153         * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
1154         of known_decls.
1156 2003-06-27  Hans-Peter Nilsson  <hp@axis.com>
1158         * defaults.h (REGISTER_MOVE_COST): Define default here.
1159         * regclass.c: Don't define default REGISTER_MOVE_COST here.
1160         * reload.c, reload1.c: Ditto.
1162 2003-06-27  Richard Earnshaw <rearnsha@arm.com>
1164         * flags.h: Really install previous change.
1166 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1168         * rtl.h (emit_note): Remove FILE parameter.
1169         * emit-rtl.c (emit_line_note): Adjust emit_note call.
1170         (emit_note): Remove FILE parameter. Adjust.
1171         * builtins.c (expand_builtin_expect): Adjust emit_note call.
1172         * c-semantics.c (genrtl_scope_stmt): Likewise.
1173         (expand_stmt): Likewise.
1174         * cfglayout.c (reemit_insn_block_notes): Likewise.
1175         (duplicate_insn_chain): Likewise.
1176         * except.c (expand_eh_region_start, expand_eh_region_end,
1177         sjlj_emit_function_enter): Likewise.
1178         * explow.c (probe_stack_range): Likewise.
1179         * expr.c (emit_block_move_via_loop): Likewise.
1180         * function.c (init_function_start, expand_function_start,
1181         expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
1182         * integrate.c (expand_inline_function, copy_insn_list): Likewise.
1183         * reg-stack.c (compensate_edge): Likewise.
1184         * reload1.c (reload): Likewise.
1185         * rtlanal.c (hoist_insn_to_edge): Likewise.
1186         * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
1187         expand_loop_continue_here, expand_end_loop, expand_continue_loop,
1188         expand_exit_loop_top_cond, expand_value_return,
1189         expand_start_bindings_and_block, expand_end_bindings,
1190         expand_decl_cleanup, expand_start_case): Likewise.
1191         * unroll.c (copy_loop_body
1192         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
1193         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1194         * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
1195         rs6000_emit_allocate_stack, rs6000_output_function_prologue,
1196         rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
1197         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1198         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1200 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1202         * c-tree.h (grokfield): Remove unused filename and line parameters.
1203         * c-decl.c (grokfield): Remove unused filename and line parameters.
1204         * c-parse.in (component_decl): Adjust field grokking rules, adjust
1205         grokfield calls.
1206         (component_declarator): Likewise.
1207         (component_notype_declarator): Likewise.
1208         * objc/objc-act.c (build_module_descriptor): Adjust grokfield
1209         calls.
1210         (build_protocol_template, build_method_prototype_list_template,
1211         build_method_prototype_template, build_category_template,
1212         build_selector_template, build_class_template,
1213         build_super_template, build_ivar_template,
1214         build_ivar_list_template, build_method_list_template,
1215         build_method_template, add_instance_variable): Likewise.
1217 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1219         * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
1220         OP2 are known to be not equivalent.
1222 2003-06-26  Devang Patel <dpatel@apple.com>
1224         * final.c (debug_flush_symbol_queue): New function.
1225         (debug_queue_symbol): New function.
1226         (debug_free_queue): New function.
1227         (debug_nesting): New variable.
1228         (symbol_queue): New variable.
1229         (symbol_queue_index): Same.
1230         (symbol_queue_size): Same.
1231         * debug.h (debug_flush_symbol_queue): New.
1232         (debug_queue_symbol): New.
1233         (debug_free_queue): New.
1234         (debug_nesting): New.
1235         (symbol_queue_index): New.
1236         * dbxout.c (DBXOUT_DECR_NESTING): New macro.
1237         (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
1238         (dbxout_init): Delay symbol output.
1239         (dbxout_global_decl): Save, set and reset TREE_USED bit around
1240         dbxout_symbol() call.
1241         (dbxout_begin_function): Same.
1242         (dbxout_finish): Free symbol queue.
1243         (dbxout_type): Put appropriate symbols in queue.
1244         (dbxout_symbol): Put info for symbol's type in queue.
1245         Decrement/Increment nesting counts flush symbol queue appropriately.
1246         (dbxout_parms): Increment dbxout nesting.
1247         (dbxout_reg_parms): Same.
1248         * flags.h (flag_debug_only_used_symbols): New.
1249         * toplev.c (flag_debug_only_used_symbols): New variable.
1250         (lang_independent_options): Add entries for new option
1251         -feliminate-unused-debug-symbols.
1252         * common.opt: Add entry for -feliminate-unused-debug-symbols.
1253         * opts.c (common_handle_options): Same.
1254         * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
1255         -feliminate-unused-debug-symbols.
1256         * doc/invoke.texi (Debugging Options): Document
1257         -feliminate-unused-debug-symbols.
1259 2003-06-26  Roger Sayle  <roger@eyesopen.com>
1260             Jakub Jelinek  <jakub@redhat.com>
1262         * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
1263         obtain the format string instead of using TREE_STRING_POINTER and
1264         TREE_STRING_LENGTH.  Only optimize sprintf(dst,"%s",src) when the
1265         return value is unused or the length of src is a known constant.
1267 2003-06-26  Richard Henderson  <rth@redhat.com>
1269         * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
1271 2003-06-26  Richard Henderson  <rth@redhat.com>
1273         * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
1274         (ia64_split_call): Only load descriptor for GP register inputs.
1275         (ia64_expand_epilogue): Check current_frame_info.mask not
1276         current_function_is_leaf to restore ar.pfs.
1278 2003-06-26  Richard Henderson  <rth@redhat.com>
1280         * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
1281         instead of replacing it.
1283 2003-06-26  Richard Henderson  <rth@redhat.com>
1285         * flow.c (propagate_one_insn): Kill function return value
1286         registers across tail calls.
1288         * flow.c (propagate_one_insn): Preserve live-at-end registers
1289         across tail calls.
1291 2003-06-26  J"orn Rennecke <joern.rennecke@superh.com>
1293         * reload.c (can_reload_into): New function.
1294         (push_reload): Use it.
1296 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1298         * config/h8300/h8300.c (compute_a_rotate_length): Fix the
1299         references to the amount of a rotation.
1301 2003-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1303         * config/sh/coff.h: Don't include dbxcoff.h.
1304         * config.gcc: List it here.
1306 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1308         * postreload.c (reload_cse_simplify_set): Call cselib_lookup
1309         earlier.  Don't check if SRC is a constant.
1311 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1313         * Makefile.in (OBJS): Add postreload.o.
1314         Remove cselib.h from the dependency list for reload1.o.
1315         Add a dependency list for postreload.o.
1316         * reload.h: Change the comment for the prototype of
1317         reload_cse_regs.
1318         * reload1.c: Don't include cselib.h.
1319         (reload_cse_regs): Move to postreload.c
1320         (reload_cse_regs_1): Likewise.
1321         (reload_cse_noop_set_p): Likewise.
1322         (reload_cse_simplify_set): Likewise.
1323         (reload_cse_simplify_operands): Likewise.
1324         (RELOAD_COMBINE_MAX_USES): Likewise.
1325         (reload_combine_ruid): Likewise.
1326         (LABEL_LIVE): Likewise.
1327         (reload_combine): Likewise.
1328         (reload_combine_note_use): Likewise.
1329         (reload_combine_note_store): Likewise.
1330         (reg_set_luid): Likewise.
1331         (reg_offset): Likewise.
1332         (reg_base_reg): Likewise.
1333         (reg_mode): Likewise.
1334         (move2add_luid): Likewise.
1335         (move2add_last_label_luid): Likewise.
1336         (MODES_OK_FOR_MOVE2ADD): Likewise.
1337         (reload_cse_move2add): Likewise.
1338         (move2add_note_store): Likewise.
1339         (reload_cse_simplify): Likewise.
1340         * postreload.c: New.
1342 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1344         * config/avr/avr.c (final_prescan_insn): Remove support for
1345         -mrtl.
1346         * config/avr/avr.h (MASK_RTL_DUMP): Remove.
1347         (TARGET_RTL_DUMP): Likewise.
1348         (TARGET_SWITCHES): Remove -mrtl.
1350 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1352         * config/h8300/h8300-protos.h: Change emit_a_rotate to
1353         output_a_rotate.  Add a prototype for compute_a_rotate_length.
1354         * config/h8300/h8300.c (emit_a_rotate): Change to
1355         output_a_rotate.
1356         (compute_a_rotate_length): New.
1357         (h8300_adjust_insn_length): Remove.
1358         * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
1359         * config/h8300/h8300.md (adjust_length): Remove.
1360         (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
1361         (*rotlhi3_1): Likewise.
1362         (*rotlsi3_1): Likewise.
1364 2003-06-26  Roger Sayle  <roger@eyesopen.com>
1365             Richard Henderson  <rth@redhat.com>
1367         * builtins.c (expand_builtin_mathfn): Always stabilize the argument
1368         list against re-evaluation.  If expand_unop fails, call expand_call
1369         with the stabilized argument list rather than return NULL_RTX.
1370         (expand_builtin_mathfn2): Likewise, always stabilize the argument
1371         list, and call expand_call ourselves if expand_binop fails.
1373 2003-06-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1375         PR optimization/11210
1376         * fold-const (decode_field_reference): Strip only NOPs that
1377         don't affect the sign.
1379 2003-06-26  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
1381         * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
1382         (pop_fpscr, fpu_switch): Likewise.
1384 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1386         * value-prof.c: New.
1387         * value-prof.h: New.
1388         * Makefile.in (value-prof.o): New.
1389         (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
1390         (profile.o): Add value-prof.h and tree.h dependency.
1391         * flags.h (flag_profile_values): Declare.
1392         * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
1393         Add new counters.
1394         (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
1395         GCOV_COUNTER_V_DELTA): New counter sections.
1396         (__gcov_merge_single, __gcov_merge_delta): Declare.
1397         * flow.c (mark_used_regs): Set subregs_of_mode only when the
1398         structure is initialized.
1399         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
1400         * profile.c: Include value-prof.h and tree.h.
1401         (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
1402         gen_const_delta_profiler, instrument_values): New static functions.
1403         (get_exec_counts): Fix comment.
1404         (branch_prob): Invoke instrument_values.
1405         * toplev.c (flag_profile_values): New flag.
1406         * doc/invoke.texi (-fprofile-values): Document.
1408 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1410         * Makefile.in (cfgrtl.o): Add expr.h dependency.
1411         * cfgrtl.c: Include expr.h.
1412         (mark_killed_regs, safe_insert_insn_on_edge): New
1413         functions.
1414         * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
1415         * basic-block.h (safe_insert_insn_on_edge): Declare.
1417 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
1419         * c-opts.c (missing_arg): Make non-static.
1420         (c_common_handle_option): Don't check for missing arguments.
1421         * opts.c (handle_option): Check for missing arguments.
1423 2003-06-26  David Edelsohn  <edelsohn@gnu.org>
1425         * config/rs6000/power4.md (power4-veccomplex): Correct latency.
1427 2003-06-25  Loren James Rittle  <ljrittle@acm.org>
1429         * configure.in (ld_vers): Portability [sed].
1430         * configure: Regenerate with autoconf213.
1432 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
1434         * doc/extend.texi: Document new builtin functions for Intel
1435         Prescott New Intrunctions.
1437         * doc/invoke.texi: Document new command-line options, -mpni and
1438         -mno-pni, for Intel Prescott New Intrunctions.
1440         * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
1442         * config/i386/i386.c (override_options): Turn on MASK_SSE2
1443         for -mpni. Turn on MASK_SSE for -msse2.
1444         (bdesc_2arg): Add PNI builtins with 2 args.
1445         (bdesc_1arg): Add PNI builtins with 1 arg.
1446         (ix86_init_mmx_sse_builtins): Handle PNI builtins.
1447         (ix86_expand_builtin): Likewise.
1449         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
1450         MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
1451         MASK_TLS_DIRECT_SEG_REFS): Renumbered.
1452         (TARGET_PNI): New.
1453         (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
1454         -mpni and -mno-pni.
1455         (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
1456         (ix86_builtins): Add PNI builtins.
1457         (config/i386/i386.md): Add PNI patterns.
1459         * config/i386/pmmintrin.h: New file.
1461 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
1463         * config/h8300/h8300.md (call): Fix the insn lengths.
1464         (call_value): Likewise.
1466 Thu Jun 26 00:13:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
1468         * c-common.c (handle_used_attribute): Use mark_referenced.
1469         * varasm.c (mark_referenced): Break out from ...
1470         (assemble_name): ... here.
1471         * tree.h (mark_referenced): Declare.
1473 2003-06-25  Wolfgang Bangerth  <bangerth@dealii.org>
1475         * gccbug.in: Add PCH to list of categories.
1477 2003-06-25 Martin Schaffner <schaffner@gmx.li>
1479         * cppfiles.c: Clarify comments.
1480         * cpphash.h: Likewise.
1481         * cpplib.h: Likewise.
1482         * cppmacro.c: Likewise.
1483         * mkdeps.h: Likewise.
1485 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
1487         * c-opts.c (complain_wrong_lang, write_langs): Remove.
1488         (c_common_handle_option): Complaints about wrong language are
1489         handled in opts.c now.
1490         * opts.c (complain_wrong_lang, write_langs, handle_options): New.
1491         (find_opt): Fix thinko.
1492         (handle_option): Update prototype.  Complain about switches for
1493         a different front end.
1494         * opts.h (lang_names, handle_options): New.
1495         (handle_option): Remove.
1496         * opts.sh: Write out language names array.
1497         * toplev.c (parse_options_and_default_flags): Use handle_options.
1499 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
1501         * config/i386/i386.c (MASK_SSE1): Removed.
1502         (MASK_SSE164): Removed.
1503         (MASK_SSE264): Removed.
1504         (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
1505         MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
1506         with MASK_SSE2 | MASK_64BIT.
1507         (bdesc_1arg): Likewise.
1508         (ix86_init_mmx_sse_builtins): Likewise.
1510         * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
1511         (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
1512         -msse2.
1514 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1516         * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
1517         (HOST_WIDE_INT_PRINT_DEC_SPACE,
1518         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1519         HOST_WIDEST_INT_PRINT_DEC_SPACE,
1520         HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
1521         (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
1522         HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
1523         terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
1525         * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
1526         * ra-debug.c (dump_static_insn_cost): Likewise.
1528 2003-06-26  Nick Clifton  <nickc@redhat.com>
1530         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1531         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1532         Replace occurances of '???' with 'XXX' incase they are
1533         mistaken for trigraphs.
1534         (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
1535         does not have a register for the first operand.
1537 2003-06-25      Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1539         * config/sh/sh.c (sh_register_move_cost):
1540         Add case for moving between MAC_REGS.
1542 2003-06-25  Zack Weinberg  <zack@codesourcery.com>
1544         PR 10178
1545         * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
1546         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
1547         * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
1548         to true.
1549         * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
1550         return 0.
1552 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1554         * Makefile.in (bt-load.o): Depend on $(TM_P_H).
1555         * bt-load.c: Include "tm_p.h".
1557 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
1559         * config/h8300/h8300.c (compute_mov_length): Adjust for the
1560         new optimization.
1561         * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
1562         an SImode constant whose upper and lower are the same.
1564 Wed Jun 25 11:31:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
1566         * varasm.c (assemble_name): Mark needed variables even when
1567         global info is ready.
1569 2003-06-24  Jerry Quinn  <jlquinn@optonline.net>
1571         PR other/11280
1572         * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
1573         -freorder-functions description.
1575 2003-06-25  Josef Zlomek  <zlomekj@suse.cz>
1577         * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
1579 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
1581         * opts.c (common_handle_option): Add missing break;s.
1583 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
1585         * config/h8300/h8300-protos.h: Add a prototype for
1586         compute_mov_length.
1587         * config/h8300/h8300.c (compute_mov_length): New.
1588         * config/h8300/h8300.md (*movqi_h8300): Use it.
1589         (*movqi_h8300hs): Likewise.
1590         (movstrictqi): Likewise.
1591         (*movhi_h8300): Likewise.
1592         (*movhi_h8300hs): Likewise.
1593         (movstricthi): Likewise.
1594         (*movsi_h8300): Likewise.
1595         (*movsf_h8300): Likewise.
1596         (*movsi_h8300hs): Likewise.
1597         (*movsf_h8300hs): Likewise.
1599 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
1601         * jump.c (next_nondeleted_insn): Remove.
1602         * rtl.h: Remove the prototype for next_nondeleted_insn.
1604 2003-06-24  Roger Sayle  <roger@eyesopen.com>
1606         PR optimization/11311
1607         * builtins.c (powi_cost): Fix typo.  The number of multiplications
1608         required is the number to reduce the argument, result, plus the
1609         cost of calculating the residual, val [not n, the original value].
1611 2003-06-24  Roger Sayle  <roger@eyesopen.com>
1613         * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
1615 2003-06-24  Richard Henderson  <rth@redhat.com>
1616             (blame to: Loren James Rittle  <ljrittle@acm.org>)
1618         * real.h (ieee_extended_intel_96_round_53_format): New.
1619         * real.c (ieee_extended_intel_96_round_53_format): New.
1620         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
1621         for XFmode and TFmode.
1623 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
1625         * config/h8300/h8300.md (4 anonymous patterns): Give internal
1626         names.
1627         (movsi_h8300): Change the name to *movsi_h8300.
1628         (movsi_h8300hs): Change the name to *movsi_h8300hs.
1629         (movsf_h8300): Change the name to *movsf_h8300.
1630         (movsf_h8300hs): Change the name to *movsf_h8300hs.
1632 2003-06-24  Jakub Jelinek  <jakub@redhat.com>
1634         * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
1635         src twice.
1637 2003-06-24  J"orn Rennecke <joern.rennecke@superh.com>
1639         Back out these patches:
1640          2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
1641           * sh.h (OLD_ARG_MODE): New macro.
1642           (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
1643           (FUNCTION_ARG_1): Break out of:
1644           (FUNCTION_ARG).  Use OLD_ARG_MODE.
1645          2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
1646           * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
1647           of the generated register.
1649         * sh.h (FUNCTION_ARG_SCmode_WART): Define.
1650         (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
1651         an even number of floating point regs are in use, use the same
1652         sequence of argument passing registers for SCmode as would be
1653         used for two SFmode values.
1654         * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
1655         swap real / imaginary parts in incoming SCmode values passed
1656         in registers.
1658 2003-06-24  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1660         PR target/11260
1661         * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
1663 Tue Jun 24 18:49:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
1665         * Makefile.in (cgraph.o): Depend on output.h, not depend on
1666         tree-inline.h
1667         * cgraph.c: Do not include tree-inline.h; include output.h
1668         (known_fns): Rename to ...
1669         (known_decls): ... this one; update all uses.
1670         (cgraph_varpool_hash): New static variable.
1671         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
1672         variables.
1673         (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
1674         cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
1675         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
1676         New functions.
1677         * cgraph.h (cgraph_varpool_node): New structure.
1678         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
1679         (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
1680         cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
1681         cgraph_varpool_asemble_pending_decls): Declare.
1682         * cgraphunit.c (record_call_1): Notice variable references.
1683         (cgraph_finalize_compilation_unit): Assemble pending variables.
1684         * toplev.c (wrapup_global_declarations): Use varpool.
1685         (compile_file): Assemble pending declarations.
1686         (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
1687         * varasm.c (assemble_name): Notice varpool references.
1689 Tue Jun 24 13:52:11 CEST 2003  Jan Hubicka  <jh@suse.cz>
1691         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
1692         * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
1693         * varasm.c (assemble_variable): Call prepare_assemble_variable.
1695 2003-06-23  Roger Sayle  <roger@eyesopen.com>
1697         * builtins.c (expand_builtin): Use expand_builtin_pow to expand
1698         calls for pow, powf, powl and their __builtin_ variants.
1699         (expand_builtin_pow): If the second argument is a constant
1700         integer and compiling with -ffast-math, use expand_powi to
1701         generate RTL if powi_cost is less than POWI_MAX_MULTS.
1702         (powi_cost): New function to return the number of multiplications
1703         necessary to evaluate an Nth power, for integer constant N.
1704         (expand_powi): New function to expand the RTL for evaluating
1705         the Nth power of a floating point value, for integer constant N.
1707         * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
1709 Mon Jun 23 23:07:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
1711         * cgraph.c (cgraph_nodes_queue): Declare.
1712         (eq_node): Take identifier as p2.
1713         (cgraph_node): Update htab_find_slot_with_hash call.
1714         (cgraph_node_for_identifier): New.
1715         (cgraph_mark_needed_node): Move here from cgraphunit.c.
1716         * cgraph.h (cgraph_nodes_queue): Declare.
1717         (cgraph_node_for_identifier): Declare.
1718         * cgraphunit.c (cgraph_finalize_function): Collect entry points here
1719         instead of in cgraph_finalize_compilation_unit; constructors and
1720         destructors are entry points.
1721         (cgraph_finalize_compilation_unit): Reorganize debug outout;
1722         examine nested functions after lowerng; call collect_functions hook.
1723         (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
1724         (cgraph_finalize_compilation_unit): Do not collect entry points.
1725         * varasm.c: Include cgraph.h
1726         (assemble_name): Mark referenced identifier as needed.
1728         * cgraphunit.c (record_call_1): Use get_callee_fndecl.
1730 2003-06-23  Jakub Jelinek  <jakub@redhat.com>
1732         * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
1733         just SYMBOL_REF.
1734         * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
1735         mode, as it requires pic register loaded.
1737         * varasm.c (resolve_unique_section): Remove prototype.  No longer
1738         static.
1739         * tree.h (resolve_unique_section): New prototype.
1741 2003-06-23  Andreas Schwab  <schwab@suse.de>
1743         PR debug/9905
1744         * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
1745         recursing through first argument.
1747 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1749         * ChangeLog.1: Fix a typo.
1750         * cfgrtl.c: Fix comment typos.
1751         * dwarf2out.c: Likewise.
1752         * expmed.c: Likewise.
1753         * genrecog.c: Likewise.
1754         * jump.c: Likewise.
1755         * rtlanal.c: Likewise.
1756         * ssa-dce.c: Likewise.
1757         * toplev.c: Likewise.
1759 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1761         * doc/extend.texi: Fix typos.
1762         * doc/md.texi: Likewise.
1763         * doc/tm.texi: Likewise.
1765 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1767         * basic-block.h: Fix comment formatting.
1768         * bt-load.c: Likewise.
1769         * builtins.c: Likewise.
1770         * c-common.c: Likewise.
1771         * c-common.h: Likewise.
1772         * c-format.c: Likewise.
1773         * coverage.c: Likewise.
1774         * cpplib.h: Likewise.
1775         * cpppch.c: Likewise.
1776         * dbxout.c: Likewise.
1777         * diagnostic.c: Likewise.
1778         * dwarf2out.c: Likewise.
1779         * expr.c: Likewise.
1780         * fold-const.c: Likewise.
1781         * function.c: Likewise.
1782         * gcc.c: Likewise.
1783         * gcov-io.c: Likewise.
1784         * gcov-io.h: Likewise.
1785         * gcov.c: Likewise.
1786         * profile.c: Likewise.
1787         * real.h: Likewise.
1788         * sched-deps.c: Likewise.
1790 2003-06-23  Roger Sayle  <roger@eyesopen.com>
1791             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1793         * doc/contrib.texi (Contributors): Add a note on testing and
1794         remove duplicates from testers list.
1796 2003-06-23  Nick Clifton  <nickc@redhat.com>
1798         * read-rtl.c (read_braced_string): Check for EOF.  If
1799         encountered issue an error message.
1801 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1803         * doc/invoke.texi: Document dump options, dT and dW.
1805 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
1807         * genrecog.c (pred_table): Remove the entry for
1808         mode_independent_operand.
1809         * recog.c (next_insns_test_no_inequality): Remove.
1810         (mode_independent_operand): Likewise.
1811         * recog.h: Remove the prototype for mode_independent_operand.
1813 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1815         * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
1816         store into bit 0.
1817         * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
1818         second alternative to set_znv.
1819         (*extzv_1_r_inv_h8300hs): Likewise.
1821 2003-06-23  Hans-Peter Nilsson  <hp@bitrange.com>
1823         * configure.in (in_tree_gas): Find out here whether GAS is ELF,
1824         set in_tree_gas_is_elf accordingly.
1825         (in_tree_ld): Find out whether LD emulation is ELF, set
1826         in_tree_ld_is_elf accordingly.
1827         (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
1828         (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
1829         (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
1830         (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
1831         grepping gas/Makefile.
1832         (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
1833         $in_tree_ld_is_elf instead of grepping ld/Makefile.
1834         * configure: Regenerate.
1836 2003-06-22  Roger Sayle  <roger@eyesopen.com>
1838         * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
1839         up the stabilized argument list, not build_tree_list.
1840         (expand_builtin_strcpy): Construct new argument list manually
1841         instead of using chainon to modify the original argument list.
1842         (expand_builtin_stpcpy): Construct new argument list manually
1843         instead of using copy_list and chainon.
1844         (expand_builtin_sprintf): New function.  Optimize calls to
1845         sprintf when the format is "%s" or doesn't contain a '%'.
1846         (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
1847         expand_builtin_sprintf.
1849 2003-06-22  Andreas Schwab  <schwab@suse.de>
1851         * function.c (set_insn_locators): Mark as unused.
1853 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
1855         * common.opt: Add -finline-limit.
1856         * opts.c (common_handle_options): Handle it.
1857         * opts.sh: Temporary kludge for -finline-limit.
1858         * toplev.c (decode_f_option, independent_decode_option): Die.
1859         (parse_options_and_default_flags): No independent_decode_option.
1861 2003-06-22  Andreas Jaeger  <aj@suse.de>
1863         * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
1865 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1867         * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
1869 2003-06-22  Andreas Schwab  <schwab@suse.de>
1871         * doc/invoke.texi: Remove leading `-' from options in index.
1873 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1875         * bt-load.c: Follow spelling conventions.
1877 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1879         * expr.c (emit_move_insn_1): Fix a comment typo.
1881 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1883         * doc/invoke.texi: Alphabetize dump options.
1885 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1887         * doc/invoke.texi: Remove a duplicate -dk.
1889 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1891         * doc/invoke.texi: Update dump file names.
1893 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
1895         * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
1896         and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
1898 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
1900         * doc/rtl.texi: Fix the @findex for pre_modify.
1902 2003-06-22  Andreas Jaeger  <aj@suse.de>
1904         * caller-save.c: Convert to ISO C90.
1905         * calls.c: Likewise.
1906         * cfg.c: Likewise.
1907         * cfganal.c: Likewise.
1908         * cfgbuild.c: Likewise.
1909         * cfgcleanup.c: Likewise.
1910         * cfghooks.c: Likewise.
1911         * cfglayout.c: Likewise.
1912         * cfglayout.h: Likewise.
1913         * cfgloop.c: Likewise.
1914         * cfgloop.h: Likewise.
1915         * cfgloopanal.c: Likewise.
1916         * cfgloopmainip.c: Likewise.
1917         * cfgrtl.c: Likewise.
1919 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
1921         * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
1922         64-bit alignment.
1924 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
1926         * arm.md (all call_value patterns): Remove register constraints on
1927         value operand.
1929 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
1931         * common.opt: More -f switches.
1932         * opts.c (common_handle_options): Handle them.
1933         * toplev.c (time_report): Make extern.
1934         (f_options): USe flag_dummy.
1935         (decode_f_option): No need to use f_options now.
1936         * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
1937         flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
1939 2003-06-22  Andreas Jaeger  <aj@suse.de>
1941         * c-lex.c: Convert to ISO C90.
1942         * c-objc-common.c: Likewise.
1943         * c-opts.c: Likewise.
1944         * c-pch.c: Likewise.
1945         * c-ppoutput.c: Likewise.
1946         * c-pragma.h: Likewise.
1947         * c-pretty-print.c: Likewise.
1948         * c-pretty-print.h: Likewise.
1949         * c-semantics.c: Likewise.
1950         * c-tree.h: Likewise.
1951         * c-typeck.c: Likewise.
1953         * c-lang.c: Convert to ISO C90.
1955 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
1957         * opts.c (find_opt): Fix to always guarantee a find of a
1958         switch with joined parameter.
1959         * opts.h (struct cl_option): New member back_chain.
1960         * opts.sh: Update to calculate and add back_chain member.
1962 2003-06-22  Gabriel Dos Reis <gdr@integrable-solutions.net>
1964         * diagnostic.h (output_host_wide_integer): Declare.
1965         * diagnostic.c (output_long_long_decicaml): New function.
1966         (output_host_wide_integer): Likewise.
1967         (output_format): Use them.  Handle "%ll" and "%w".
1969 2003-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
1971         * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
1973 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
1975         * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
1976         * configure.in: Don't use gcc_AC_C_CHARSET.
1977         * configure, config.in: Regenerate.
1978         * config/i370/i370.c, config/i370/i370.h: Use
1979         (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
1980         instead of HOST_EBCDIC or !HOST_EBCDIC.  Clarify comments a tad.
1982 2003-06-21  Neil Booth  <neil@daikokuya.co.uk>
1984         * Makefile.in: Update.
1985         * common.opt: New switches.
1986         * opts.c: Include diagnostic.h.
1987         (common_handle_option): Handle new switches.
1988         * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
1989         flag_if_conversion2, flag_delete_null_pointer_checks,
1990         flag_rerun_cse_after_loop): Make extern.
1991         (flag_dummy): New.
1992         (f_options): Update to use flag_dummy for moved options.
1993         (decode_f_option): Some switches moved to opts.c.
1994         * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
1995         flag_if_conversion2, flag_delete_null_pointer_checks,
1996         flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
1997         flag_tracer, flag_thread_jumps, flag_unroll_loops,
1998         flag_unroll_all_loops, flag_unswitch_loops): New.
2000 Sat Jun 21 13:41:00 CEST 2003  Jan Hubicka  <jh@suse.cz>
2002         * i386.c (ix86_va_arg): Fix allocation of temporary slot.
2004 2003-06-20  Kazu Hirata  <kazu@cs.umass.edu>
2006         * config/h8300/h8300-protos.h: Add a prototype for
2007         same_cmp_preceding_p.
2008         * config/h8300/h8300.c (same_cmp_preceding): New.
2009         * config/h8300/h8300.md: Extend peephole2's that transform
2010         compare:SI into shorter sequences so that they can deal with
2011         signed comparisons.
2013 2003-06-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2015         * doc/contrib.texi (Contributors): Use Windows instead of Win32.
2017         Update Andreas Jaeger's entry.
2019         Merge the two entries of Kaveh Ghazi, David Edelsohn, and
2020         Loren J. Rittle.
2022 2003-06-21  Nathanael Nerode  <neroden@gcc.gnu.org>
2024         * mkconfig.sh: Add multiple inclusion guards to generated headers.
2026 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
2028         * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
2029         * common.opt: Add remaining -W options and -g.
2030         * diagnostic.c (warnings_are_errors): Remove.
2031         * flags.h: Make most warning flags boolean.
2032         * opts.c (common_handle_option): Handle remaining -W options, and -g.
2033         Move many warning flags from toplev.c, making them boolean.
2034         * toplev.c: Remove many warning flags.
2035         (decode_W_option): Remove.
2036         (decode_g_option): Make extern.  Error on unknown switch.
2037         (lang_independent_W_options): Use warn_dummy.
2038         (independent_decode_option): Just handle -f switches now.
2039         * toplev.h (decode_g_option): New.
2041 2003-06-20  Aldy Hernandez  <aldyh@redhat.com>
2043         PR/11092
2044         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
2045         vectors.
2047 2003-06-20  Kelley Cook  <kelleycook@wideopenwest.com>
2049         * opts.sh: Tweak awk script for portability.
2051 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
2053         PR c++/10888
2054         * tree-inline.c (expand_call_inline): Do not warn about failing to
2055         inline functions declared in system headers.
2056         * doc/invoke.texi (-Winline): Expand on documentation.
2058 2003-06-20  Richard Henderson  <rth@redhat.com>
2060         * config/alpha/alpha.c (alpha_file_start): Disable
2061         file_start_file_directive for ELF and not MDEBUG.
2063 2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
2065         * sh.h (ROUND_TYPE_ALIGN): Remove.
2067 2003-06-20  Richard Henderson  <rth@redhat.com>
2069         * hooks.c (hook_int_void_no_regs): Rename from
2070         hook_reg_class_void_no_regs; change return type.
2071         * hooks.h: Update.
2072         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
2073         * target.h (branch_target_register_class): Change return type to int.
2074         Add documentation.
2075         * config/sh/sh.c (sh_target_reg_class): Change return type.
2076         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2078 2003-06-20  Andreas Tobler <toa@pop.agri.ch>
2080         * c-format.c: Change _Bool to bool reverting part of the last
2081         patch.
2083 2003-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2085         * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
2086         strip name encoding.
2088 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2090         * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
2091         * configure: Regenerate.
2092         Fixes PR driver/9362.
2094 2003-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2096         * config/alpha/alpha.c (alpha_file_start): Fix typo.
2098 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2100         * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
2101         to ASM_OUTPUT_SOURCE_LINE.
2103 2003-06-20  Daniel Egger  <degger@fhm.edu>
2104             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2106         * doc/install.texi (Building): Correct and improve statement
2107         about parallel builds.
2109 2003-06-20  Andreas Jaeger  <aj@suse.de>
2111         * c-common.c: Change _Bool to bool reverting part of the last
2112         patch.
2114 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
2116         * tree.h (expand_function_end): Remove all parameters.
2117         * function.c (expand_function_end): Remove all parameters.
2118         Use input_location. Never expand_end_bindings.
2119         * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
2120         * coverage.c (create_coverage): Likewise.
2122 2003-06-20  Nick Clifton  <nickc@redhat.com>
2124         * doc/extend.texi (ARM Built-in Functions): New node.  Document
2125         ARM builtin functions for iWMMXt support.
2127 2003-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2129         * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
2130         SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
2131         (--with-as): Add @anchor.
2132         (--with-gnu-ld): Fix typo.
2133         (--with-ld): Add @uref to --with-as.
2135 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
2137         * doc/tm.texi: Uniformly use @defmac for macros, rather than
2138         @table items.  Minor formatting and editorial corrections.
2140 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
2142         * line-map.c, line-map.h: Convert to ISO prototypes.
2144 2003-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2146         * gcse.c (store_killed_in_insn): Fix.
2148 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
2150         * target.h (asm_out.file_start, file_start_app_off,
2151         file_start_file_directive): New hooks.
2152         * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2153         TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
2154         New hook-definition macros.
2155         * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
2156         * varasm.c (default_file_start): New.
2157         * output.h: Prototype it.
2158         * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
2159         * system.h: Poison ASM_FILE_START.
2161         * config/alpha/alpha.c (alpha_write_verstamp): Delete.
2162         (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
2163         (unicosmk_asm_file_start): Rename unicosmk_file_start,
2164         make static, take no arguments.
2165         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
2166         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
2167         * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
2168         TARGET_ASM_FILE_END.  Remove reference to ASM_FILE_START in
2169         comment.
2170         * config/arc/arc.c (arc_asm_file_start): Rename
2171         arc_file_start, take no arguments, make static.
2172         (TARGET_ASM_FILE_START): Set it.
2173         * config/arm/arm.c (aof_file_start): New static function.
2174         (TARGET_ASM_FILE_START): Set it, when appropriate.
2175         * config/arm/coff.h, config/arm/elf.h:
2176         Set TARGET_ASM_FILE_START_APP_OFF to true.
2177         * config/avr/avr.c (asm_file_start): Rename avr_file_start,
2178         take no arguments, make static.
2179         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2180         Set them.
2181         * config/c4x/c4x.c (c4x_file_start): New static function.
2182         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2183         Set them.
2184         * config/cris/cris.c (cris_file_start): New static function.
2185         (TARGET_ASM_FILE_START): Set it.
2186         * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
2187         dsp16xx_file_start, make static.
2188         (luxworks_dsp16xx_file_start): Delete.
2189         (TARGET_ASM_FILE_START): Set it.
2190         * config/h8300/h8300.c (asm_file_start): Rename
2191         h8300_file_start, make static, take no arguments.
2192         (TARGET_ASM_FILE_START): Set it.
2193         * config/i370/i370.c (i370_file_start): New static function.
2194         (TARGET_ASM_FILE_START): Set it.
2195         * config/i386/i386.c (x86_file_start): New static function.
2196         (TARGET_ASM_FILE_START): Set it.
2197         * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
2198         X86_FILE_START_FLTUSED): New macros, default to false.
2199         * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
2200         * config/i386/sysv4.h, config/i386/sco5.h: Override
2201         X86_FILE_START_VERSION_DIRECTIVE to true.
2202         * config/ia64/ia64.c (ia64_file_start): New static function.
2203         (TARGET_ASM_FILE_START): Set it.
2204         (emit_safe_across_calls): Take no arguments.
2205         * config/ia64/ia64.md: Update to match.
2206         * config/m32r/m32r.c (m32r_asm_file_start): Rename
2207         m32r_file_start, make static, take no arguments.
2208         (TARGET_ASM_FILE_START): Set it.
2209         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
2210         m68hc11_file_start, make static, take no arguments.
2211         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2212         (print_options): Delete.
2213         * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
2214         (TARGET_ASM_FILE_START_APP_OFF): Set.
2215         * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
2216         m68k_hp320_file_start.
2217         * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
2218         Make static, take no arguments.
2219         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2220         * config/mmix/mmix.c (mmix_asm_file_start): Rename
2221         mmix_file_start, make static, take no arguments.
2222         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2223         * config/mn10300/mn10300.c (asm_file_start): Rename
2224         mn10300_file_start, make static, take no arguments.
2225         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2226         * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
2227         * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
2228         pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
2229         pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
2230         pa_hpux64_hpas_file_start): New static functions.
2231         * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
2232         * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
2233         pa_linux_file_start.
2234         * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
2235         pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
2236         appropriate.
2237         * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
2238         * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
2239         (rs6000_file_start): Make static, take no arguments.  Reset
2240         default_cpu under certain conditions.
2241         (rs6000_xcoff_file_start): New function.
2242         * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
2243         * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
2244         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
2245         * config/sh/sh.c (output_file_start): Rename
2246         sh_file_start, make static, take no arguments.  Merge in old
2247         code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
2248         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2249         * config/sh/sh.c (TARGET_ELF): Define to 0.
2250         * config/sh/elf.h (TARGET_ELF): Redefine to 1.
2251         * config/v850/v850.c (asm_file_start): Delete.
2252         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2253         * config/vax/vax.c (vax_file_start): New static function.
2254         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
2256         * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
2257         * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
2258         * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
2259         * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
2260         * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
2261         * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
2263         * config/darwin.h, config/elfos.h, config/alpha/elf.h
2264         * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
2265         * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
2266         * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
2267         * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
2268         * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
2269         * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
2270         * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
2271         * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
2272         * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
2273         * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
2274         * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
2275         * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
2276         * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
2277         * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
2278         * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
2279         * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
2280         * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
2282         * config/alpha/alpha-protos.h, config/arc/arc-protos.h
2283         * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
2284         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2285         * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
2286         * config/mips/mips-protos.h, config/mmix/mmix-protos.h
2287         * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
2288         * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
2290         * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
2291         Remove reference to ASM_FILE_START in comment.
2292         * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
2293         * config/arm/linux-gas.h, config/arm/netbsd-elf.h
2294         * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
2296 2003-06-19  Graeme Peterson <gp@qnx.com>
2298         * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
2299         SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
2300         sysroot_hdrs_suffix_spec): New.
2301         (static_specs): Initialize new variables.
2302         (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
2303         * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
2304         New macros.
2306 2003-06-19  Andreas Jaeger  <aj@suse.de>
2308         * c-aux-info.c: Convert to ISO C90.
2309         * c-pragma.c: Likewise.
2310         * c-common.c: Likewise.
2311         * c-common.h: Likewise.
2312         * c-convert.c: Likewise.
2313         * c-cppbuiltin.c: Likewise.
2314         * c-dump.c: Likewise.
2315         * c-decl.c: Likewise
2316         * c-format.c: Likewise.
2317         * c-incpath.c: Likewise.
2318         * c-incpath.h: Likewise.
2320 2003-06-19  Roger Sayle  <roger@eyesopen.com>
2322         * builtins.c (expand_errno_check): Assume that flag_errno_math
2323         and HONOR_NANS have been tested before calling here.  Only try
2324         to set errno ourselves if the decl can't throw an exception.
2325         (expand_builtin_mathfn): Move the code to stabilize the arg
2326         after the main switch, so that that its only done when needed.
2327         BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
2328         Don't modify the original expr when stabilizing the argument.
2329         (expand_builtin_mathfn_2): Likewise, move the code to stabilize
2330         the args after the main switch, and don't modify the orginal exp.
2332 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
2334         * expr.c (const_vector_from_tree): Initialize remaining elements
2335         to 0.
2337 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
2339         * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
2340         Change "fix" to "float".
2342 2003-06-19  Andreas Jaeger  <aj@suse.de>
2344         * c-tree.h: Remove declaration of poplevel.
2346         * tree.h: Remove declaration of approx_sqrt.
2348         * c-lex.c: Remove redundant declaration of asm_out_file.
2350         * flags.h: Remove declaration of warn_unknown_pragma and
2351         main_input_filename.
2353         * rtl.h: Remove functions from fold-const.c since they're already
2354         declared in tree.h.
2356         * regs.h: Remove redundant declaration of reg_names.
2358         * bt-load.c (migrate_btr_defs): Correct printf arguments.
2360         * protoize.c: Fix breakage from last patch.
2362 2003-06-19  J"orn Rennecke <joern.rennecke@superh.com>
2364         * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
2365         has been included.
2367 2003-06-18  James A Morrison <ja2morri@student.math.uwaterloo.ca>
2369         * config/sparc/sparc.c: Update copyright year.
2371 2003-06-19  David Edelsohn  <edelsohn@gnu.org>
2373         * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
2374         to ABI_V4.
2376 2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2378         PR bootstrap/4068
2379         * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
2381 2003-06-19  Kazu Hirata  <kazu@cs.umass.edu>
2383         * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
2384         to the end of the file.  Remove unnecessary prototypes.
2386 2003-06-19  Hans-Peter Nilsson  <hp@axis.com>
2388         * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
2389         calls to insn_default_latency and result_ready_cost.  Initialize
2390         def_latency to 1.
2392 2003-06-18  Richard Henderson  <rth@redhat.com>
2394         * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
2395         (_Unwind_FindEnclosingFunction): Implement.
2397 2003-06-18  Kazu Hirata  <kazu@cs.umass.edu>
2399         * toplev.c (rest_of_handle_sched): Hide the entire function if
2400         INSN_SCHEDULING is not defined.
2401         (rest_of_compilation): Call rest_of_handle_sched() only when
2402         INSN_SCHEDULING is defined.
2404 2003-06-18  Stephen Clarke <stephen.clarke@superh.com>
2405             J"orn Rennecke <joern.rennecke@superh.com>
2407         * bt-load.c: New file.
2408         * Makefile.in (OBJS): Include bt-load.o
2409         (bt-load.o): Add dependencies.
2410         * flags.h (flag_branch_target_load_optimize): Declare.
2411         (flag_branch_target_load_optimize2): Likewise.
2412         * hooks.c (hook_reg_class_void_no_regs): New function.
2413         (hook_bool_bool_false): Likewise.
2414         * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
2415         * rtl.h (branch_target_load_optimize): Declare.
2416         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
2417         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2418         (TARGET_INITIALIZER): Include these.
2419         * target.h (struct gcc_target): Add branch_target_register_class
2420         and branch_target_register_callee_saved members.
2421         * toplev.c (enum dump_file_index): Add DFI_branch_target_load
2422         (dump_file) Add "tars" entry.
2423         (flag_branch_target_load_optimize): New variable.
2424         (flag_branch_target_load_optimize2): Likewise.
2425         (lang_independent_options): Add entries for new options.
2426         (rest_of_compilation): Call branch_target_load_optimize.
2427         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
2428         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2429         * doc/invoke.texi: Document -fbranch-target-load-optimize and
2430         -fbranch-target-load-optimize2.
2431         * rtl.h (epilogue_completed): Declare.
2432         * recog.c (epilogue_completed): New variable.
2433         * toplev.c (rest_of_compilation): Set it.
2434         * flow.c (mark_regs_live_at_end): Use it.
2435         * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
2436         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2437         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2438         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2440         * sh.c (shmedia_space_reserved_for_target_registers): New variable.
2441         (sh_target_reg_class): New function.
2442         (sh_optimize_target_register_callee_saved): Likwise.
2443         (shmedia_target_regs_stack_space): Likewise.
2444         (shmedia_reserve_space_for_target_registers_p): Likewise.
2445         (shmedia_target_regs_stack_adjust): Likewise.
2446         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
2447         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2448         (calc_live_regs): If flag_branch_target_load_optimize2 and
2449         TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
2450         for target registers, make sure that we save all target registers.
2451         (sh_expand_prologue, sh_expand_epilogue): Take target register
2452         optimizations into account.  Collapse stack adjustments if that
2453         is beneficial.
2454         (initial_elimination_offset): Reserve space for target registers
2455         if necessary.
2456         * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
2457         (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
2459 2003-06-18  Nick Clifton  <nickc@redhat.com>
2461         * config.gcc: Add an extra_header for ARM targets.
2462         Support configuring with --with-cpu=iwmmxt.
2463         * doc/invoke.texi: Document new value for -mcpu= ARM switch.
2464         * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
2465         names.  Fix formatting.
2466         * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
2467         names.
2468         * config/arm/arm-protos.h (arm_emit_vector_const): New
2469         prototype.
2470         (arm_output_load_gr): New prototype.
2471         * config/arm/arm.c (extra_reg_names1): Delete.
2472         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
2473         * arch_is_iwmmxt): Define.
2474         (all_cores, all_architecture): Add entry for iwmmxt.
2475         (arm_override_options): Add support for iwmmxt.
2476         (use_return_insn, arm_function_arg, arm_legitimate_index_p,
2477         arm_print_value, arm_rtx_costs_1, output_move_double,
2478         arm_compute_save_reg_mask, arm_output_epilogue,
2479         arm_get_frame_size, arm_expand_prologue, arm_print_operand,
2480         arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
2481         Likewise.
2482         (arm_init_cumulative_args): Count iwmmxt registers.
2483         (arm_function_ok_for_sibcall): Return false of sibcall_blocked
2484         has been set.
2485         (struct minipool_node): Add fix_size field.
2486         (add_minipool_forward_ref): Add support for 8-byte aligning of
2487         the pool.
2488         (add_minipool_backward_ref, add_minipool_offsets,
2489         dump_minipool, push_minipool_fix): Likewise.
2490         (struct builtin_description): New struct.
2491         (builtin_description): New array of iwmmxt builtin functions.
2492         (arm_init_iwmmxt_builtins): New function.
2493         (arm_init_builtins): New function.
2494         (safe_vector_operand): New function.
2495         (arm_expand_binop_builtin): New function.
2496         (arm_expand_unop_builtin): New function.
2497         (arm_expand_builtin): New function.
2498         (arm_emit_vector_const): New function.
2499         (arm_output_load_gr): New function.
2500         * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
2501         TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
2502         TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
2503         DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
2504         (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
2505         (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
2506         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
2507         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2508         REG_CLASS_FOR_LETTER): Add iwmmxt registers.
2509         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
2510         registers unless the iwmmxt target is selected.
2511         (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
2512         FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
2513         IS_IWMMXT_GR_REGNUM): Define.
2514         (FIRST_PSEUDO_REGISTER): Bump to 63.
2515         (struct machine_function): Add sibcall_blocked field.
2516         (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
2517         nargs fields.
2518         (enum arm_builtins): New enum list.
2519         * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
2520         UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
2521         UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
2522         UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
2523         (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
2524         VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
2525         (movv2si, movv4hi, movv8qi): New expands for vector moves.
2526         Include iwmmxt.md.
2527         * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
2528         multilib.
2529         (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
2530         * config/arm/mmintrin.h: New ARM specific header file.
2531         * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
2533 2003-06-18  J"orn Rennecke <joern.rennecke@superh.com>
2535         * toplev.c (Remaining -d letters summary): Update.
2537 2003-06-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2539         * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
2540         argument.
2541         (function_arg): Handle CALL_LIBCALL flag.
2542         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
2543         prototype.
2544         * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
2545         (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2546         (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
2547         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2549 2003-06-18  Neil Booth  <neil@daikokuya.co.uk>
2551         * Makefile.in: Update.
2552         * common.opt: New options.
2553         * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
2554         set_Wunused): New.
2555         (common_handle_option): Handle new options.
2556         * toplev.c (set_target_switch): Export.
2557         (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
2558         (decode_W_option): -Wunused and -Wextra handled in opts.c now.
2559         (independent_decode_option): More options handled in opts.c now.
2560         Change prototype.
2561         * toplev.h (set_target_switch): New.
2563 2003-06-17  Robert Abeles  <rabeles@archaelogic.com>
2565         PR debug/4252
2566         * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
2567         to dump_switch_p().
2568         * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
2569         from static strings in dump_files.
2571 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2573         * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
2574         VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
2575         libiberty macros.
2577 2003-06-17  Jason Merrill  <jason@redhat.com>
2579         PR c++/10929
2580         * tree-inline.c (expand_call_inline): Don't warn about failing to
2581         inline a function which was made inline by -finline-functions.
2583 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2585         * config/h8300/h8300-protos.h: Update to ISO C.
2586         * config/h8300/h8300.c: Likewise.
2587         * config/h8300/h8300.h: Likewise.
2588         * config/h8300/h8300.md: Likewise.
2590 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2592         * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
2593         * configure: Regenerate.
2594         * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
2596 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
2598         * install.texi (Testing): Add information on how to run Java
2599         runtime tests separately.
2601 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2603         * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
2605         * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
2606         (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
2608 2003-06-17  Christopher Faylor  <cgf@redhat.com>
2610         * doc/install.texi: Add msvc rebuild caveat.
2612 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2614         * config/sh/coff.h: Replace Hitachi with Renesas.
2615         * config/sh/elf.h: Likewise.
2616         * config/sh/embed-elf.h: Likewise.
2617         * config/sh/lib1funcs.asm: Likewise.
2618         * config/sh/sh-protos.h: Likewise.
2619         * config/sh/sh.c: Likewise.
2620         * config/sh/sh.h: Likewise.
2621         * config/sh/sh.md: Likewise.
2623 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2625         * ChangeLog.3: Fix comment typos.
2626         * ChangeLog.6: Likewise.
2627         * config/d30v/d30v.c: Likewise.
2628         * config/h8300/h8300.md: Likewise.
2629         * config/m32r/m32r.md: Likewise.
2630         * config/mips/mips.c: Likewise.
2631         * config/mips/mips.md: Likewise.
2632         * config/ns32k/NOTES: Likewise.
2634 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
2635             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2637         * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
2638         to run Java runtime tests separately.
2640 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2642         * config/h8300/h8300-protos.h: Update a comment.
2644 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
2646         * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
2647         are aligned like integral modes.
2648         (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
2650         * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
2651         (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
2652         * sh.md (*pt): Remove.
2654         * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
2656         * sh.md (return_media_rte): New pattern.
2657         (return_media): Use it.
2659 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
2661         * doc/contrib.texi: Replace Hitachi with Renesas.
2662         * doc/install.texi: Likewise.
2663         * doc/invoke.texi: Likewise.
2665 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
2667         * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
2668         behaviour.
2670 2003-06-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2672         * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
2674         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
2675         2003-01-23 patch. Corrected to handle kernels with changed ucontext.
2677         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
2678         -msdata=eabi usages.
2680         * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
2682 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2684         * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
2685         * fixinc/gnu-regex.c: Don't define `volatile'.
2686         * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
2687         * ggc-simple.c: Likewise.
2688         * system.h: Don't define `volatile'.
2690         * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
2691         * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
2692         call these macros.
2693         * config.in, configure: Regenerated.
2695 2003-06-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2697         * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
2698         Handle POINTERS_EXTEND_UNSIGNED.
2700 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2702         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
2703         !TARGET_IRIX6]: Define as NULL.
2705 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2707         * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
2709 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2711         * dbxout.c (dbxout_source_line_counter): New global variable.
2712         Mark it with GTY(()).
2713         (dbxout_source_line): Increment dbxout_source_line_counter
2714         and pass it to ASM_OUTPUT_SOURCE_LINE.
2715         * sdbout.c (sdbout_source_line_counter): New global variable.
2716         Mark it with GTY(()).
2717         (unnamed_struct_number): Mark it with GTY(()).
2718         (sdbout_source_line): Increment sdbout_source_line_counter
2719         and pass it to ASM_OUTPUT_SOURCE_LINE.
2720         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
2721         (xcoffout_source_line): Pass 0 as third argument to
2722         ASM_OUTPUT_SOURCE_LINE.
2723         (xcoffout_begin_prologue): Likewise.
2724         * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2725         Use it instead of 'sym_lineno' but without incrementing it.
2726         * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2727         * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2728         * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2729         * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
2730         argument to ASM_OUTPUT_SOURCE_LINE.
2731         * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2732         * config/arm/aout.h: Remove useless comment.
2733         * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2734         * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2735         * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2736         Use it instead of 'sym_lineno' but without incrementing it.
2737         * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2738         * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
2739         parameter. Use it instead of 'sym_lineno' but without incrementing it.
2740         * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
2741         argument to ASM_OUTPUT_SOURCE_LINE.
2742         * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2743         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2744         * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2745         Use it instead of 'sym_lineno' but without incrementing it.
2746         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2747         * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2748         * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2749         * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2750         * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
2752 2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
2754         * config/mips/mips-protos.h (mips_expand_block_move): Declare.
2755         (expand_block_move, output_block_move): Remove.
2756         * config/mips/mips.h (enum block_move_type): Remove.
2757         * config/mips/mips.c (block_move_call, output_block_move): Remove.
2758         (mips_block_move_straight, mips_adjust_block_mem): New function.
2759         (mips_block_move_loop): Renamed and reworked from block_move_loop.
2760         (mips_expand_block_move): Likewise expand_block_move.  Return false
2761         to fall back on the target-independent code.
2762         * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
2763         (movstrsi_internal*): Remove.
2765 2003-06-16  Zack Weinberg  <zack@codesourcery.com>
2767         * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
2768         * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
2769         * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
2770         ISO C: new-style function declarations, no need for PARAMS,
2771         no special punctuation on indirect function calls, use string
2772         constant concatenation where convenient.
2774 2003-06-17  Andreas Jaeger  <aj@suse.de>
2776         * rtl.h: Remove declarations from coverage.h.
2777         * toplev.c: Include coverage.h.
2778         * Makefile.in (toplev.o): Depend on coverage.h.
2780         * toplev.h: Remove extra declaration of print_time.
2782         * gengtype.c (close_output_files): Remove duplicated declaration.
2784 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2786         * config/sparc/sysv4.h: Remove target-independent comment;
2787         replace "GNU CC" with "GCC".
2788         * config/vxworks.h: Replace "GNU compiler" with "GCC".
2789         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
2790         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2791         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
2792         config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
2793         config/sparc/rtemself.h, config/sparc/sol2-64.h,
2794         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
2795         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
2796         config/sparc/sol2.h, config/sparc/sp64-aout.h,
2797         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
2798         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
2799         "GNU compiler", "GNU CC" with "GCC".
2800         * config/sparc/cypress.md, config/sparc/hypersparc.md,
2801         config/sparc/sparc-modes.def, config/sparc/sparc.c,
2802         config/sparc/sparc.md, config/sparc/sparclet.md,
2803         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
2804         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
2805         "GNU C Compiler" with "GCC".
2806         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
2808 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
2810         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
2811         constants.
2813         * testsuite/gcc.c-torture/execute/simd-4.c: New.
2815 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2817         * config/ip2k/ip2k.h: Remove target-independent comments.
2819         * config.gcc: Explicitly mention elfos.h in ip2k entry.
2820         * config/ip2k/ip2k.h: Don't #include it here.
2822 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2824         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
2825         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
2826         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
2827         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
2828         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
2829         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
2830         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
2831         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
2832         the PTR macro.
2834         * gengtype.c: Don't use UNION_INIT_ZERO.
2835         * system.h (UNION_INIT_ZERO): Delete.
2837 2003-06-16  Richard Henderson  <rth@redhat.com>
2839         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
2840         GET_MODE_UNIT_SIZE when simplifying constant vectors.
2842 2003-06-16  Andreas Jaeger  <aj@suse.de>
2844         * timevar.c (get_run_time): Remove function provided also by
2845         libiberty.
2846         * timevar.h: Remove get_run_time declaration.
2848 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
2850         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
2851         unreachable code.
2853 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2855         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
2856         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
2857         use macros from "symcat.h", instead rely on ISO C.
2859         * system.h: Don't include "symcat.h".
2860         * configure.in (AC_C_STRINGIZE): Delete.
2861         * config.in, configure: Regenerate.
2863 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2865         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
2867         * tree.h (STMT_CHECK): New macro.
2868         Also upper-case argument names on all checking macros and
2869         fix some whitespace problems; assume CODE argument does not
2870         have side-effects.
2872 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2874         * scan.h: Convert to ISO C.
2875         * system.h: Likewise.
2877         * c-format.c (dynamic_format_types): New pointer for dynamic data.
2878         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
2879         New functions split out of...
2880         (handle_format_attribute): ...here.
2882 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
2884         * sh.h (REG_CLASS_FROM_LETTER): Change to:
2885         (REG_CLASS_FROM_CONSTRAINT).
2886         (CONST_OK_FOR_I): Rename to:
2887         (CONST_OK_FOR_I08).  Changed all users.
2888         (CONST_OK_FOR_J): Rename to:
2889         (CONST_OK_FOR_I16).  Changed all users.
2890         (CONST_OK_FOR_K): Rename to:
2891         (CONST_OK_FOR_P27).  Changed all users.
2892         (CONST_OK_FOR_L): Rename to:
2893         (CONST_OK_FOR_K08).  Changed all users.
2894         (CONST_OK_FOR_O): Rename to:
2895         (CONST_OK_FOR_I06).  Changed all users.
2896         (CONST_OK_FOR_P): Rename to:
2897         (CONST_OK_FOR_I10).  Changed all users.
2898         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
2899         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
2900         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
2901         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
2902         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
2903         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
2904         (CONST_OK_FOR_LETTER_P): Replace with
2905         (CONST_OK_FOR_CONSTRAINT_P).
2906         (EXTRA_CONSTRAINT_S): Rename to:
2907         (EXTRA_CONSTRAINT_C16).  Changed all users.
2908         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
2909         (EXTRA_CONSTRAINT_T): Rename to:
2910         (EXTRA_CONSTRAINT_Csy).  Changed all users.
2911         (EXTRA_CONSTRAINT_Z): Remove.
2912         (EXTRA_CONSTRAINT): Replace with:
2913         (EXTRA_CONSTRAINT_STR).
2914         (EXTRA_CONSTRAINT_U): Rename to:
2915          (EXTRA_CONSTRAINT_Z).  Changed all users.
2916         * sh.c (and_operand): Use CONST_OK_FOR_J16.
2917         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
2918         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
2919         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
2920         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
2921         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
2922         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
2923         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
2924         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
2925         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
2926         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
2927         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
2928         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
2929         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
2930         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
2931         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
2932         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
2933         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
2934         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
2935         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
2936         (sssubv4hi3): Likewise.
2937         (movsf_i): Change I[08]/r to G/r.
2938         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
2940         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
2942 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
2944         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
2946 2003-06-16  Andreas Jaeger  <aj@suse.de>
2948         * basic-block.h: Remove duplicate prototype of
2949         note_prediction_to_br_prob.
2951         * tree.h: Remove duplicate prototype of strip_float_extensions.
2953 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2955         * config/c4x/c4x.c: Don't include "c-tree.h".
2956         * config/pa/pa.c: Likewise.
2957         * langhooks.c: Likewise.
2958         * tree.h (poplevel): Declare.
2960 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
2962         * config/h8300/h8300.c (const_costs): Move this to ...
2963         (h8300_rtx_costs): ... here.
2965 2003-06-16  Roger Sayle  <roger@eyesopen.com>
2967         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
2968         (tan_optab, atan_optab): Define corresponding macros.
2969         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
2970         * genopinit.c (optabs): Implement tan_optab and atan_optab
2971         using tan?f2 and atan?f2 patterns.
2972         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
2973         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
2974         Change the default value of errno_set to false.
2975         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
2976         using expand_builtin_mathfn.
2978         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
2979         expander patterns implemented using existing atan2?f3 patterns.
2981 2003-06-16  Roger Sayle  <roger@eyesopen.com>
2983         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
2984         both operands of the addition equal, reuse the expanded RTL.
2985         (expand_expr <MULT_EXPR>): Likewise for multiplication.
2987 2003-06-16  Roger Sayle  <roger@eyesopen.com>
2988             Jeff Law  <law@redhat.com>
2990         * fold-const.c (operand_equal_p): Consider two calls to "const"
2991         functions with identical non-volatile arguments to be equal.
2992         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
2993         built-in function to be equal to the "foo" form.
2995 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2997         * config/rs6000/sysv4le.h: Remove target-independent comment.
2998         Replace "GNU compiler" with "GCC" in comment.
3000 2003-06-16  Andreas Jaeger  <aj@suse.de>
3002         * tracer.c: Remove duplicate declaration.
3004         * toplev.c: Remove extra declaration of decode_d_option.
3006         * ssa.c: Remove duplicate declaration.
3008         * sreal.c: Remove extra declaration of dump_sreal.
3010         * reload1.c: Remove duplicate declarations.
3012         * integrate.c: Remove extra declaration of
3013         set_decl_abstract_flags.
3015         * flow.c: Remove extra declaration of dump_flow_info.
3017         * alias.c: Remove extra declaration of get_addr.
3019 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3021         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
3022         config/vxworks.h: GNU CC -> GCC.
3024         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
3025         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
3026         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
3027         ssa.h, tree.def: Replace overly specific references to "GNU C"
3028         and "GNU C Compiler" with references to "GCC".
3030 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
3032         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
3033         memory reference.  Fix test that checks if operand 1 is using r0.
3034         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
3036         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
3037         defined.
3039 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
3041         * function.h (struct emit_status): Remove x_last_linenum,
3042         x_last_filename. Add x_last_location.
3043         * rtl.h: #include "input.h".
3044         (NOTE_DATA): New.
3045         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
3046         number notes.
3047         * emit-rtl.c (last_linenum, last_filename): Remove.
3048         (last_location): New.
3049         (emit_line_note_after): LINE must always be >= 0.
3050         (emit_line_note): Likewise. Check not duplicate here...
3051         (emit_note): ... rather than here.
3052         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
3053         * integrate.c (expand_inline_function): Use emit_line_note for
3054         line number notes.
3055         (copy_insn_list): Likewise.
3056         * unroll.c (copy_loop_body): Likewise.
3057         * Makefile.in (RTL_H): Add input.h.
3059 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
3061         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
3063 2003-06-16  Richard Henderson  <rth@redhat.com>
3065         * config/alpha/alpha-protos.h, config/alpha/elf.h,
3066         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
3067         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
3068         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
3069         Remove unneeded static function decls.
3071 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
3073         * c-opts.c (c_common_handle_option): s/on/value/.
3074         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
3075         directly rather than converting the argument.
3076         * c.opt: Update docs.  Use UInteger where appropriate.
3077         * common.opt: Use UInteger where appropriate.
3078         * opts.c (integral_argument): New.
3079         (handle_argument): Handle integral arguments, and optional
3080         joined arguments.
3081         (common_handle_option): Update.
3082         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
3083         * opts.sh: Handle JoinedOrMissing and UInteger flags.
3085 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
3087         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
3088         unnecessary extern declaration.
3090 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
3092         * config/gofast.h, config/interix.h, config/interix3.h,
3093         config/libgloss.h, config/linux-aout.h, config/linux.h,
3094         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
3095         * config/kaos.h: "GNU compiler" -> GCC.
3096         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
3098         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
3099         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
3100         GNU CC -> GCC.
3102         * config/svr3.h: Remove #if 0 code, misleading comments.
3103         GNU CC -> GCC.
3105 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
3107         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
3108         main_input_filename to avoid conflict with input_filename macro.
3110 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3112         * config/mips/mips.h (asm_file_name, g_switch_set,
3113         g_switch_value): Remove.
3114         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3115         unnecessary extern declarations.
3117 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3119         * config/frv/frv.h: Remove declaration of g_switch_value.
3120         * config/m32r/m32r.h: Remove declaration of g_switch_value.
3121         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
3123 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3125         * opts.sh: Quote '+' in regex.
3127 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
3129         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
3130         * config/rs6000/rs6000.c: Include cfglayout.h.
3131         * config/alpha/alpha.c: Likewise.
3132         * config/ia64/ia64.c: Likewise.
3133         * config/sparc/sparc.c: Likewise.
3134         * config/sh/sh.c: Likewise.
3136 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3138         * opts.sh: Quote '+' in regex.
3140 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3142         * c-opts.c (lang_flags): Update for new spelling of flags.
3143         (write_langs): Similarly.
3144         * c.opt: Specify languages.
3145         * opts.h: Remove languages.
3146         * opts.sh: Recognise front-end defined languages.
3147         * doc/sourcebuild.texi: Update.
3149 2003-06-15  Andreas Jaeger  <aj@suse.de>
3151         * alloc-pool.c: Convert to ISO C90 prototypes.
3152         * alloc-pool.h: Likewise.
3153         * alias.c: Likewise.
3154         * attribs.c: Likewise.
3155         * bb-reorder.c: Likewise.
3156         * bitmap.h: Likewise.
3157         * bitmap.c: Likewise.
3158         * builtins.c: Likewise.
3160         * tree.h: Convert prototypes of attribs.c to ISO C90.
3161         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
3162         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
3163         * expr.h: Convert prototypes of builtins.c to ISO C90.
3165 2003-06-15  Roger Sayle  <roger@eyesopen.com>
3167         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
3168         implement exp, expf and expl built-ins as inline x87 intrinsics.
3169         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
3170         represent x87's fscale, frndint and f2xm1 insns respectively.
3171         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
3172         to encode x87's "fscale" instruction followed by a pop.
3173         (*frndintxf2): New insn pattern for "frndint".
3174         (*f2xm1xf2): New insn pattern for "f2xm1".
3176         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
3177         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
3178         UNSPEC_FPATAN.
3180 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3182         * gencheck.c (main): Avoid generating duplicate macros.
3184         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
3185         knowing names of language subdirectories.
3187 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3189         * c-pch.c (asm_file_name): Remove.
3190         * common.opt: Add more switches.
3191         * flags.h (g_switch_set): Boolify.
3192         * opts.c (g_switch_value, g_switch_set, exit_after_options,
3193         version_flag): Move from toplev.c.
3194         (common_handle_option): Handle more switches from toplev.c.
3195         * toplev.c (display_help, display_target_options, decode_d_option,
3196         print_version): Make non-static, remove prototypes.
3197         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
3198         (version_flag, g_switch_value, g_switch_set, exit_after_options):
3199         Remove.
3200         (independent_decode_option): Move some handlers to opts.c.
3201         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
3202         exit_after_options, version_flag, display_help, display_target_options,
3203         print_version, decode_d_option): New.
3205 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
3207         * config/alpha/alpha.md: Follow spelling conventions.
3208         * config/arm/arm.c: Likewise.
3209         * config/arm/arm.h: Likewise.
3210         * config/arm/arm.md: Likewise.
3211         * config/arm/crtn.asm: Likewise.
3212         * config/m32r/m32r.c: Likewise.
3213         * config/m32r/m32r.md: Likewise.
3214         * config/rs6000/rs6000.c: Likewise.
3216 2003-06-15  Richard Henderson  <rth@redhat.com>
3218         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
3219         insn_locators_initialize.
3220         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3221         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3222         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3223         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
3225 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
3227         * builtins.c (expand_builtin_expect_jump): Remove redundant
3228         tests that are also in any_condjump_p().
3230 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3232         * libgcc2.c: Delete sysV68 L_trampoline section.
3233         * config/m68k/mot3300-crt0.S: Delete file.
3234         * config/m68k/mot3300Mcrt0.S: Likewise.
3236 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
3238         * config/aoutos.h: Remove.
3239         * config.gcc: Remove reference to aoutos.h.
3240         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
3242 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
3244         * doc/install.texi: Follow spelling conventions.
3245         * doc/tm.texi: Likewise.
3246         * config/fp-bit.c: Likewise.
3247         * config/arm/arm.c: Likewise.
3248         * config/frv/frv.c: Likewise.
3249         * config/ns32k/NOTES: Likewise.
3250         * config/ns32k/STATUS: Likewise.
3252 2003-06-14  Roger Sayle  <roger@eyesopen.com>
3253             Zack Weinberg  <zack@codesourcery.com>
3255         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
3256         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
3257         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
3259         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
3260         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
3261         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
3262         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
3263         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
3264         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
3265         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
3266         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
3267         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
3268         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
3269         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
3270         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
3271         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
3272         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
3273         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
3274         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
3275         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
3276         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
3277         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
3278         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
3280 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
3282         * opts.sh (POSIXLY_CORRECT): Unset it.
3284         * tree.h (init_function_start): Remove filename and line paramters.
3285         * function.c (init_function_start): Remove filename and line
3286         parameters. Use DECL_SOURCE_LOCATION.
3287         * c-decl.c (store_parm_decls): Adjust init_function_start call.
3288         (c_expand_body_1): Likewise.
3289         * coverage.c (create_coverage): Likewise.
3290         * objc/objc-act.c (build_tmp_function_decl): Set line number to
3291         zero.
3292         (hack_method_prototype): Adjust init_function_start call.
3294 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3296         PR target/3724
3297         * arm/linux-elf.h (PROFILE_HOOK): Define.
3299 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3301         PR target/11183
3302         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
3304 2003-06-14  Roger Sayle  <roger@eyesopen.com>
3306         * opts.sh: Work around a mysterious feature in cygwin's gawk
3307         where specifying the input files explicitly has a different
3308         behavior to piping them via stdin.
3310 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
3312         * doc/sourcebuild.texi: Update.
3314 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3316         PR target/11183
3317         * arm.c (output_move_double): Pass SImode to adjust_address.
3319 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
3321         * Makefile.in: Update to use common.opt and lang_opt_files.
3322         (c-options.c, c-options.h): Remove.
3323         (options.c, options.h): Add.
3324         * c-opts.c: Include options.h not c-options.h.
3325         * common.opt: New file.
3326         * configure, configure.in: Add lang_opt_files.
3327         * opts.c: Include flags.h and diagnostic.h.
3328         (common_handle_option): New.
3329         (handle_option): Update to recognize common options and all
3330         language-dependent options.
3331         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
3332         (struct cl_option): Make flags of type int.
3333         * opts.h: Flag option with front ends to which it applies.
3334         Handle duplicate options.
3335         * toplev.c (filename): Remove.
3336         (independent_decode_option): Don't handle filenames and -quiet.
3337         (process_options, do_compile): Update.
3339 2003-06-14  Nick Clifton  <nickc@redhat.com>
3341         * doc/install.texi (Specific): Add description of different
3342         ARM supported file format targets.
3344 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
3346         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
3347         inside delay slots.
3349 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
3351         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
3352         * unwind-pe.h (size_of_encoded_value): Do not define if
3353         NO_SIZE_OF_ENCODED_VALUE is defined.
3355 2003-06-13  Roger Sayle  <roger@eyesopen.com>
3357         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
3358         expanding a complex constant into a CONCAT target.
3360 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
3362         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
3363         (ASM_FILE_START_1): Delete.
3364         * config/i386/att.h, config/i386/sco5.h,
3365         config/i386/sysv3.h
3366         (ASM_FILE_START_1): Delete.
3368 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
3370         * config/i386/bsd.h: Remove ASM_FILE_START.
3371         * config/i386/djgpp.h: Likewise.
3372         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
3374         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
3375         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
3377 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
3379         PR bootstrap/10835
3380         * haifa-sched.c (max_lookahead_tries,
3381         cached_first_cycle_multipass_dfa_lookahead,
3382         cached_issue_rate): New variables.
3383         (max_issue): Check the number of tries.
3384         (choose_ready): Calculate max_lookahead_tries.
3385         (sched_init): Check cached_issue_rate.
3387 2003-06-13  Richard Henderson  <rth@redhat.com>
3389         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
3390         * cfgrtl.c (purge_dead_edges): Expect it too.
3392 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
3393             Eric Botcazou  <ebotcazou@libertysurf.fr>
3395         PR bootstrap/10983
3396         * combine.c (make_extraction): Use gen_lowpart_for_combine
3397         when extracting from a REG and not in the destination of a SET.
3399 2003-06-13  Doug Evans  <dje@sebabeach.org>
3401         * tsystem.h (abort): Declare in inhibit_libc case to remove build
3402         warnings for addvsi3, et.al.
3404 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
3406         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
3408         * simplify-rtx.c (simplify_subreg): Same.
3410         * emit-rtl.c (gen_lowpart_common): Same.
3412 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
3414         * builtins.c: Fix comment typos.
3415         * fold-const.c: Likewise.
3417 2003-06-13  Doug Evans  <dje@sebabeach.org>
3418             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3420         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
3421         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
3422         (m32r_va_arg): Use it.
3423         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
3424         (RETURN_IN_MEMORY): Ditto.
3426 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3428         * c-typeck.c: Remove #if 0 clauses.
3430         PR other/1494
3431         * config/alpha/openbsd.h, config/i386/openbsd.h,
3432         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
3433         residual reference to EGCS.
3435 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
3437         * arm.c (output_call_mem): If the address references the link-register
3438         use an instruction sequence that avoids early-clobbering IP.
3439         (eliminate_lr2ip): Delete.
3441 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3443         * c-format.c (format_types_orig): Disallow '*' width/precision in
3444         asm_fprintf format checks.
3446 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
3448         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
3449         non-integral types from integer register save area slots.
3451 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3453         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
3455 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
3457         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
3459 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
3461         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
3462         to file_end_indicate_exec_stack.
3464 2003-06-12  Richard Henderson  <rth@redhat.com>
3466         PR target/11089
3467         * config/i386/i386.md (sse_movaps): Use an expander to force
3468         one operand to be a register.
3469         (sse_movups): Likewise.
3471 2003-06-13  Doug Evans  <dje@sebabeach.org>
3473         Remove some build warnings.
3474         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
3475         (__do_global_ctors,__do_global_dtors): Ditto.
3477 2003-06-12  Richard Henderson  <rth@redhat.com>
3479         PR middle-end/10557
3480         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
3482 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
3484         * config/m32r/m32r.md: Fix a comment typo.
3486 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3487             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
3489         PR target/10142
3490         * config/sparc/sparc.c (function_arg_record_value_parms): Add
3491         new 'stack' field.
3492         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
3493         integer slots for an integer field.
3494         (function_arg_record_value_3): Shift vector index.
3495         (function_arg_record_value_2): Likewise.
3496         (function_arg_record_value): Initialize 'stack' to 0.
3497         Set 'stack' to 1 if we run out of integer slots for an integer field.
3498         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
3500 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3502         PR optimization/10955
3503         * unroll.c (unroll_loop): Fix off-by-one bug.
3505 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3507         * config/rs6000/rs6000.c (function_arg): Remove typo.
3509 2003-06-12  Richard Henderson  <rth@redhat.com>
3511         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
3512         and UNSPEC_DTPOFF.
3514 2003-06-12  Richard Henderson  <rth@redhat.com>
3516         PR middle-end/10475
3517         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
3518         for extracting sub-words.
3520 2003-06-12  Richard Henderson  <rth@redhat.com>
3522         PR target/7594
3523         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
3524         (zero_extendqihi2, zero_extendqisi2): Likewise.
3526 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3528         * config/rs6000/rs6000.c (function_arg): Always split vectors for
3529         e500 if it's a stdarg function.
3530         (function_arg_advance): Advance 2 registers for vectors in a
3531         stdarg function.
3532         (init_cumulative_args): Initialize stdarg.
3533         (rs6000_spe_function_arg): New.
3535         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
3537 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3539         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
3541 2003-06-12  Roger Sayle  <roger@eyesopen.com>
3543         PR middle-end/168
3544         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
3545         and multiplication of zero extensions, floating point division,
3546         and integer<->fp, fp<->fp and zero extension conversions.
3547         The built-in ceil and floor functions preserve signedness.
3549 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
3551         * ChangeLog: Follow spelling conventions.
3552         * ChangeLog.2: Likewise.
3553         * c-decl.c: Likewise.
3554         * cfgloop.h: Likewise.
3555         * cgraph.c: Likewise.
3556         * coverage.c: Likewise.
3557         * cppcharset.c: Likewise.
3558         * cpphash.h: Likewise.
3559         * cpplex.c: Likewise.
3560         * cpplib.c: Likewise.
3561         * dbxout.c: Likewise.
3562         * df.c: Likewise.
3563         * dwarf2out.c: Likewise.
3564         * dwarfout.c: Likewise.
3565         * emit-rtl.c: Likewise.
3566         * explow.c: Likewise.
3567         * gcov-io.c: Likewise.
3568         * gcov-io.h: Likewise.
3569         * gcov.c: Likewise.
3570         * gengtype.c: Likewise.
3571         * ggc.h: Likewise.
3572         * opts.c: Likewise.
3573         * real.c: Likewise.
3574         * reload.c: Likewise.
3575         * stmt.c: Likewise.
3577 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
3579         * doc/install.texi (m32r-*-elf): Change company to Renesas.
3581 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
3583         * basic-block.h (flow_delete_block_noexpunge): Kill.
3584         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
3585         rtl_delete_block.
3587 2003-06-10  Richard Henderson  <rth@redhat.com>
3589         PR inline-asm/4823
3590         * reg-stack.c (any_malformed_asm): New.
3591         (check_asm_stack_operands): Set it.
3592         (convert_regs_1): Check it before aborting.
3594 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
3596         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
3598 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
3600         * c-opts.c (complain_wrong_lang): Add on argument.
3601         Print no- switch if on is false.
3602         (c_common_decode_option): Adjust caller.
3604 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3606         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
3607         to initialize GOT register.
3609 2003-06-12  Roger Sayle  <roger@eyesopen.com>
3611         * fold-const.c (tree_expr_nonnegative_p): Add support for
3612         floating point constants, addition and multiplication.
3614 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
3616         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
3617         constraint modifier for operand 0.
3619 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
3621         Don't warn on dollars in builtin macro definitions,
3622         e.g. __REGISTER_PREFIX__.
3623         * cpphash.h (struct cpp_reader): Move member warn_dollars...
3624         * cpplib.h (struct cpp_options): ...to here.  Change type to
3625         unsigned char.
3626         * cppinit.c (cpp_create_reader): Set it to 1 here.
3627         (post_options): Don't set it here.
3628         * c-opts.c (c_common_init_options): Reset it to 0 here.
3629         (finish_options): Set it here.
3630         * cpplex.c (forms_identifier_p): Tweak for new location of
3631         warn_dollars.
3633         * configure.in (assembler dwarf2 debug_line support): Define insn
3634         for cris-*-* and mmix-*-*.
3635         * configure: Regenerate.
3637 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
3639         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
3640         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
3641         (sh-*-elf*): Add sh*-*-kaos* support.
3642         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
3643         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
3644         config/sh/kaos-sh.h: New files.
3646 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
3648         * gcse.c (fis_get_condition): Make it a global function.
3649         * reload1.c (reload_cse_move2add): Detect implicit sets.
3650         * rtl.h: Add a prototype for fis_get_condition.
3652 2003-06-11  Richard Henderson  <rth@redhat.com>
3654         * stmt.c (expand_asm_operands): Don't warn for memories with
3655         queued addresses.
3657 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3659         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
3660         brackets.
3662 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
3664         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
3665         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
3666         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
3667         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
3668         * langhooks.c (lhd_decode_option): Remove.
3669         * langhooks.h (struct lang_hooks): Remove decode_option.
3670         * opts.c (handle_option): No longer use decode_option.
3672 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3674         * cfgloopanal.c (variable_initial_value): Update the set of altered
3675         registers correctly.
3677 2003-06-11  Roger Sayle  <roger@eyesopen.com>
3678             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3680         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
3681         * config/i386/netbsd-elf.h: Likewise.
3682         * config/m32r/m32r.h: Likewise.
3683         * config/mn10300/mn10300.h: Likewise.
3684         * config/stormy16/stormy16.h: Likewise.
3685         * config/v850/v850.h: Likewise.
3686         * config/vax/netbsd-elf.h: Likewise.
3687         * config/xtensa/elf.h: Likewise.
3688         * config/xtensa/linux.h: Likewise.
3690 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3692         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
3693         DWARF 2 default.
3695         * config/mips/dbxmdebug.h: New file.
3696         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
3697         gas and --with-stabs.
3699 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3701         * expr.c (can_move_by_pieces): align argument may be unused.
3703 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
3705         * expr.c (convert_move): Handle moves between two CONCATs.
3707 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
3709         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
3710         !TARGET_H8300.
3712 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
3714         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
3715         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
3716         (TARGET_RTL_DUMP): Likewise.
3717         (TARGET_SWITHCES): Remove -mrtl-dump.
3719 2003-06-10  Richard Henderson  <rth@redhat.com>
3721         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
3723 2003-06-10  Richard Henderson  <rth@redhat.com>
3725         * config/ia64/ia64.md (call_gp): Fix memory mode.
3727 2003-06-10  James E Wilson  <wilson@tuliptree.org>
3729         PR target/8812
3730         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
3731         hard regs for reload_reg_used_at_all and reg_class_contents checks.
3733 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
3735         * config/h8300/h8300.c (print_operand): Remove support for
3736         operand character 'b'.
3737         Add the AND case to operand character 'c'.
3738         * config/h8300/h8300.md (two anonymous patterns): Replace
3739         operand character 'b' with 'c'.
3741 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
3743         * config/h8300/h8300.c (print_operand): Remove support for
3744         operand character 'u'.
3746 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
3748         * configure.in: Fix typo.
3749         * configure: Regenerate.
3751 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
3753         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
3754         compilation guard.
3756 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
3758         * sh-protos.h (function_symbol): Declare.
3759         * sh.c (expand_block_move, expand_ashiftrt): Use it.
3760         (sh_expand_prologue, sh_expand_epilogue): Likewise.
3761         (sh_initialize_trampoline): Likewise.
3762         (function_symbol): New function.
3763         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
3764         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
3765         (call_value_pop, shcompact_return_tramp): Likewise.
3767         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
3769         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
3770         target register.
3772 2003-06-10  DJ Delorie  <dj@redhat.com>
3774         * doc/md.texi (Machine Constraints): Document stormy's Z
3775         constraint.
3777 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
3779         * except.c (call_site_base): Mark with GTY.
3781 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
3783         * arm-proto.h: Convert to ISO C90 prototypes.
3784         * arm.c: Likewise.
3786 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
3788         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
3790 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
3792         * calls.c (expand_call): Convert structure_value_addr to Pmode if
3793         necessary.
3795 2003-06-10  Andrew Haley  <aph@redhat.com>
3797         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
3798         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
3799         (lhd_decl_ok_for_sibcall): New.
3800         * langhooks.c (lhd_decl_ok_for_sibcall): New.
3801         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
3802         * calls.c (expand_call): Check lang_hook before generating a
3803         sibcall.
3805 2003-06-10  DJ Delorie  <dj@redhat.com>
3807         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
3808         which matches (const_int 0) for addhi3.
3809         * config/stormy16/stormy16.md: Document known constraints.
3810         (addhi3): Handle adding zero.
3812 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3814         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
3815         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
3816         * config/m32r/m32r-protos.h: Prototype it.
3818 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
3820         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
3821         common to rs6000 sysv targets.
3822         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
3823         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
3825 2003-06-10  Nick Clifton  <nickc@redhat.com>
3827         * config.gcc: Add arm-wince-pe target.
3828         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
3829         Add comment about default apcs26 support.
3830         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
3831         multilib.
3832         (MULTILIB_DIRNAMES): Add 'apcs32'.
3833         * config/arm/t-wince-pe: New makefile fragment.
3834         * config/arm/wince-pe.h: New file.  Overrides a few definitions
3835         in arm/pe.h
3837 2003-06-10  Roger Sayle  <roger@eyesopen.com>
3839         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
3840         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
3841         when x is easily negated and f is sin, tan or atan.
3842         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
3843         sin(x) with flag_unsafe_math_optimizations.
3844         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
3845         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
3847 2003-06-10  Roger Sayle  <roger@eyesopen.com>
3849         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
3850         is a floating point type *and* we currently honor NaNs.
3851         (fold <NE_EXPR>): Likewise.
3853 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
3855         PR c++/11131
3856         * tree-inline.c (inlinable_function_p): Call the language-specific
3857         hook early.
3859 2003-06-09  David Taylor  <dtaylor@emc.com>
3861         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
3862         the f_res field.
3864 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
3866         * configure.in: Remove references to host_truncate_target.
3867         * configure: Regenerate.
3868         * config.gcc: Remove references to truncate_target,
3869         host_truncate_target.
3871         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
3872         Replace "build_canonical" with build, "host_canonical" with host.
3873         * configure.in: Use GCC_TOPLEV_SUBDIRS.
3874         * aclocal.m4: Include ../config/acx.m4.
3875         * configure: Regenerate.
3877 2003-06-09  David Taylor  <dtaylor@emc.com>
3879         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
3880         bytes of padding in the __va_list_tag structure a name (reserved).
3882 2003-06-09  Jason Merrill  <jason@redhat.com>
3884         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
3886 2003-06-09  Osku Salerma  <osku@iki.fi>
3888         * c-format.c (check_format_string, get_constant): New.
3889         (handle_format_attribute, handle_format_arg_attribute,
3890         decode_format_attr): Change to use above functions.
3892 2003-06-09  Richard Henderson  <rth@redhat.com>
3894         * stmt.c (expand_asm_operands): Re-word warning.
3896 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
3898         PR target/8787
3899         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
3900         if -masm=intel.
3902 2003-06-09  James E Wilson  <wilson@tuliptree.org>
3904         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
3905         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
3906         Add libgcc exception.
3908 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
3909             Ayal Zaks  <gcchaifa@us.ibm.com>
3911         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
3912         (insvsi*): Add insert_word attribute.
3913         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
3914         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
3915         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
3917 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
3919         * fold-const.c (fold): Fix a comment typo.
3921 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
3923         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
3924         removed.
3926 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
3928         * sh.c (gen_block_redirect): Use locators.
3930 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
3932         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
3933         cast to int.
3935 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
3937         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
3938         operators.
3939         * configure: Regenerated.
3941 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
3942             Alexandre Oliva  <aoliva@redhat.com>
3944         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
3945         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
3946         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
3947         n32/64 PIC.
3948         (MUST_SAVE_REGISTERS): Delete.
3949         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
3950         (machine_function): Add global_pointer field.
3951         (mips_classify_constant): Check for (const $gp) using pointer equality
3952         with pic_offset_table_rtx.
3953         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
3954         (mips_restore_gp): Use current_function_outgoing_args_size.
3955         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
3956         GP_REG_FIRST + 28.  Handle relocation strings that have
3957         more than one '('.
3958         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
3959         (mips_global_pointer): New function.
3960         (mips_save_reg_p): New function, mostly split out from...
3961         (compute_frame_size): ...here.  Remove handling of extra_size.
3962         Reclaim args_size if no variables depend on it.  Don't treat gp
3963         as a special case: handle it in the main GPR loop.
3964         (mips_initial_elimination_offset): Fix comment.
3965         (save_restore_insns): Save every register in the GPR mask,
3966         removing distinction between mask and real_mask.
3967         (mips_output_function_prologue): Update .frame psuedo-op after
3968         the removal of extra_size.  Move the SVR4 PIC stack allocation
3969         and cprestore instructions to mips_expand_prologue.
3970         (mips_gp_insn): New function.
3971         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
3972         the chosen global pointer.  Handle SVR4 PIC stack allocation
3973         in the same way as other ABIs.  Adjust varargs code accordingly.
3974         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
3975         to emit the loadgp sequence.  Follow it with a loadgp_blockage
3976         if not using explicit relocs.
3977         (mips_output_function_epilogue): Reinstate the default gp register.
3978         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
3979         (mips16_optimize_gp): Likewise.
3980         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
3981         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
3982         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
3983         (loadgp): Remove.
3984         (loadgp_blockage, cprestore): New instructions.
3985         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
3986         pic_offset_table_rtx.
3987         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
3988         (builtin_longjmp): Use gen_raw_REG to force use of $28.
3990 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
3992         * config/mips/mips-protos.h (mips_output_division): Declare.
3993         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
3994         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
3995         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
3996         (TARGET_CHECK_ZERO_DIV): New macro.
3997         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
3998         * config/mips/mips.c (mips_output_division): New function.
3999         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
4000         account when calculating the default length of a division.
4001         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
4002         Enable regardless of optimization level.  Use mips_output_division.
4003         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
4004         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
4005         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
4006         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
4007         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
4008         umoddi3_internal): Remove.
4010 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4012         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
4013         (mips_sw_reg_names): Likewise.
4014         (mips_regno_to_class): Change hilo entry to NO_REGS.
4015         (hilo_operand): Use MD_REG_P.
4016         (extend_operator): New predicate.
4017         (override_options): Remove 'a' constraint.
4018         (mips_secondary_reload_class): Remove hilo handling.  Also remove
4019         handling of (plus sp reg) reloads for mips16.
4020         (mips_register_move_cost): Remove hilo handling.
4021         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
4022         (MD_REG_LAST): Remove hilo from range.
4023         (HILO_REGNUM): Delete.
4024         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
4025         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4026         (PREDICATE_CODES): Add entry for extend_operator.
4027         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
4028         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
4029         Remove constraints from multiplication define_expands.  Remove
4030         clobbers from "decorative" define_expand patterns.
4031         (UNSPEC_HILO_DELAY): Delete.
4032         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
4033         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
4034         Adjust C code to just emit insns for !TARGET_64BIT.
4035         (mulsidi3_internal): Rename to mulsidi3_32bit.
4036         (mulsidi3_64bit): Use a "d" constraint for the destination.
4037         Use extend_operator so that the pattern can handle umulsidi3 as well.
4038         Split the instruction after reload.
4039         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
4040         (umulsidi3_internal): Rename to umulsidi3_32bit.
4041         (umulsidi3_64bit): Remove.
4042         (*smsac_di, *umsac_di): Line-wrap fixes.
4043         (udivsi3_internal): Don't allow operand 2 to be constant.
4044         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
4045         (movdi_internal2, movsi_internal): Remove hilo alternatives.
4046         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
4048 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4050         PR target/10913
4051         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
4052         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
4053         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
4054         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
4055         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
4056         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
4057         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
4058         asm_out_text_file with asm_out_file.
4059         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
4060         * config/mips/elf.h (TEXT_SECTION): Undefine.
4061         * config/mips/elf64.h (TEXT_SECION): Undefine.
4062         * config/mips/openbsd.h (TEXT_SECION): Undefine.
4063         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
4064         (override_options): Disable small-data optimizations unless using
4065         gas or explicit relocations.
4066         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
4067         iris6_asm_named_section, iris6_asm_file_start): Remove code for
4068         handling TARGET_FILE_SWITCHING.
4069         (copy_file_data): Move into TARGET_IRIX6 block.
4071 2003-06-08  Richard Henderson  <rth@redhat.com>
4073         * expr.h (EXPAND_MEMORY): New.
4074         * expr.c (expand_expr): Check it.
4075         * stmt.c (expand_asm_operands): Provide it when the constraint
4076         requires a memory.  Warn for memory input constraints without
4077         a memory operand.
4079 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4081         * varasm.c: Don't include c-tree.h.
4083 2003-06-08  Andreas Jaeger  <aj@suse.de>
4085         * predict.h: Convert to ISO C90 prototypes.
4086         * predict.c: Likewise.
4087         * tree-dump.h: Likewise.
4088         * tree-dump.c: Likewise.
4089         * diagnostic.h: Likewise.
4090         * diagnostic.c: Likewise.
4091         * combine.c: Likewise.
4093         * rtl.h: Convert prototypes of combine.c to ISO C90.
4095 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
4097         * cfglayout.c (insn_scope): New static function
4098         (block_locators_*, line_locators*, file_locators*): New static varrays.
4099         (scope_to_insns_initialize): Use them.
4100         (insn_line, insn_file): New functions.
4101         (scope_to_insns_finalize): Use insn_scope.
4102         (prologue_locator, epilogue_locator): New global variables.
4103         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
4104         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
4105         (emit_insn_after_scope, emit_insn_before_scope
4106         emit_jump_insn_after_scope, emit_jump_insn_before_scope
4107         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4108         (emit_insn_after_setloc, emit_insn_before_setloc
4109         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4110         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4111         use locators.
4112         * final.c (notice_source_line): Use locators.
4113         (final_start_function): Set initial source file and line.
4114         (final_scan_insn): Use locators.
4115         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4116         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
4117         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4118         noce_process_if_block, find_cond_trap): Likewise.
4119         * integrate.c (copy_insn_list): Likewise.
4120         * jump.c (duplicate_loop_exit_test): LIkewise.
4121         * print-rtl.c (print_rtx): Print locators.
4122         * recog.c (peephole2_optimize): Likewise.
4123         * rtl.h (INSN_SCOPE): Remove.
4124         (emit_insn_after_scope, emit_insn_before_scope
4125         emit_jump_insn_after_scope, emit_jump_insn_before_scope
4126         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4127         (emit_insn_after_setloc, emit_insn_before_setloc
4128         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4129         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4130         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
4131         * unroll.c (copy_loop_body): Use locators.
4132         * function.c (set_insn_locators): New function.
4133         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
4135 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
4137         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
4138         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
4139         _fixsfdi _fixunssfdi.
4140         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
4141         popcounthi2.
4142         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
4143         * config/h8300/clzhi2.c: New.
4144         * config/h8300/ctzhi2.c: Likewise.
4145         * config/h8300/parityhi2.c: Likewise.
4146         * config/h8300/popcounthi2.c: Likewise.
4148 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
4150         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
4151         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
4153         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
4154         (dump_bb): New based on old dump_bb in cfgrtl.c
4155         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
4156         * cfghooks.h (cfgh_verify_flow_info): Return status.
4157         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
4158         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
4159         (dump_bb): Remove generic parts.
4160         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
4161         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
4163 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
4165         * Makefile.in: Rename options.c and options.h to c-options.c and
4166         c-options.h.
4167         (OBJS): Remove options.o.
4168         * c-opts.c: Don'tInclude c-options.h instead of options.h.
4169         * opts.c: Don't include options.h.
4170         (find_opt): Can't use enum opt_code or N_OPTS.
4171         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
4172         * opts.sh: ... here.
4174 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4175             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4177         PR pch/9830
4178         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
4179         if HAVE_MINCORE is defined.
4180         (MAP_FAILED): Define if not defined.
4181         (gt_pch_save): Test against MAP_FAILED.
4182         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
4183         the mapping address to the preferred base after checking it
4184         is possible to do so. Test against MAP_FAILED.
4185         * configure.in: Test for the presence of mincore in libc.
4186         * config.in: Regenerate.
4187         * configure: Regenerate.
4189 2003-06-07  Richard Henderson  <rth@redhat.com>
4191         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
4192         conditional compilation guard.
4194 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
4196         * optabs.c (expand_abs): Set result_unsignedp to 1 if
4197         flag_trav is zero.
4199 2003-06-07  Richard Henderson  <rth@redhat.com>
4201         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
4203 2003-06-07  Richard Henderson  <rth@redhat.com>
4205         * basic-block.h (EDGE_SIBCALL): New.
4206         (EDGE_ALL_FLAGS): Update.
4207         * cfg.c (dump_edge_info): Add sibcall name.
4208         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
4209         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
4211 2003-06-07  Andreas Jaeger  <aj@suse.de>
4213         * mklibgcc.in (lib2funcs): Remove _exit.
4214         * libgcc2.c: Remove L_exit.
4215         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
4217         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4219         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4221         * ggc.h: Convert to ISO C90 prototypes.
4222         * ggc-none.c: Likewise.
4223         * ggc-common.c: Likewise.
4224         * ggc-page.c: Likewise.
4225         * ggc-simple.c: Likewise.
4227         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
4229         * system.h: Poison INIT_SECTION_PREAMBLE.
4231 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
4233         * config.gcc (with_cpu handling): Translate sparc64 in
4234         $machine to --with-cpu=v9.
4235         * config/alpha/alpha.c
4236         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
4237         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
4239         * target.h: New hook asm_out.file_end.
4240         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
4241         * toplev.c (compile_file): Use targetm.asm_out.file_end.
4242         * system.h: Poison ASM_FILE_END.
4243         * varasm.c (file_end_indicate_exec_stack): New.
4244         * output.h: Prototype it.
4245         * doc/tm.texi: Document TARGET_ASM_FILE_END and
4246         file_end_indicate_exec_stack.  Delete references to attasm.h.
4248         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
4249         (ASM_FILE_END): Delete; move code...
4250         * config/darwin.c (darwin_file_end): Here; new function.
4251         * config/darwin-protos.h: Prototype it.
4252         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
4253         rename unicosmk_file_end.
4254         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
4255         * config/arm/arm.c (aof_file_end): ... here; new static function.
4256         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
4257         Make aof_dump_imports and aof_dump_pic_table static.
4258         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
4259         Set TARGET_ASM_FILE_END to avr_file_end.
4260         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
4261         Set TARGET_ASM_FILE_END to c4x_file_end.
4262         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
4263         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
4264         h8300_file_end.
4265         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
4266         * config/i370/i370.c (i370_file_end): ... here; new static function.
4267         Set TARGET_ASM_FILE_END to i370_file_end.
4268          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
4269          Take no arguments.  Call file_end_indicate_exec_stack if
4270          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
4271         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4272         Define NEED_INDICATE_EXEC_STACK to 0.
4273         * config/i386/linux.h, config/i386/linux64.h: Redefine
4274         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
4275         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
4276         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
4277         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
4278         ia64_hpux_file_end, make static.  Take no arguments.
4279         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
4280         commands_in_prologues, commands_in_epilogues): Delete.
4281         (function_epilogue): Update to match.
4282         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
4283         make static.  Take no arguments.
4284         (iris6_asm_file_end): Rename iris6_file_end, make static, use
4285         mips_file_end, take no arguments.
4286         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
4287         appropriate.
4288         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
4289         make static, take no arguments. Set TARGET_ASM_FILE_END to
4290         mmix_file_end.
4291         * config/pa/pa.c (output_deferred_plabels): Make static, take
4292         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
4293         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
4294         (ASM_FILE_END): Delete; move code...
4295         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
4296         new static function.
4298         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
4299         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
4300         Don't set ASM_FILE_END.
4301         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
4302         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
4303         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
4304         file_end_indicate_exec_stack; don't set ASM_FILE_END.
4305         * config/alpha/unicosmk.h, config/i386/cygming.h
4306         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4307         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
4308         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
4309         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4310         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
4311         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
4313 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
4315         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
4316         specified.
4318 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
4320         * Makefile.in (stageprofile_build): Kill redundant target.
4321         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
4323 2003-06-07  Andreas Jaeger  <aj@suse.de>
4325         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
4327         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
4328         * config/dsp16xx/dsp16xx.h: Likewise.
4329         * config/i386/i386.h: Likewise.
4330         * config/ip2k/ip2k.h: Likewise.
4332 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
4334         * Makefile.in (OJBS, c-opts.o): Update.
4335         (c-options.c, c-options.h): Rename options.h and options.c.
4336         (options.h): Rename options_.h.
4337         (opts.o): New.
4338         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
4339         (c_common_init_options): Update prototype.
4340         * c-lang.c (c_init_options): Update prototype.
4341         (LANG_HOOKS_HANDLE_OPTION): Override.
4342         (LANG_HOOKS_DECODE_OPTION): Drop.
4343         * c-opts.c: Include opts.h and options.h instead of c-options.h
4344         and c-options.c.
4345         (lang_flags): Move to file scope.
4346         (find_opt, c_common_decode_option): Remove.
4347         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
4348         CL_REJECT_NEGATIVE): Move to opts.h.
4349         (missing_arg): Update prototype.
4350         (c_common_init_options): Update for new prototype.
4351         (c_common_handle_options): Filenames are passed as N_OPTS.
4352         * hooks.c (hook_int_void_0): New.
4353         * hooks.h (hook_int_void_0): New.
4354         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
4355         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
4356         (LANG_HOOKS_INITIALIZER): Update.
4357         * langhooks.h (init_options): Update.
4358         (handle_option): New.
4359         * opts.c, opts.h: New files.
4360         * opts.sh: Update c file to include opts.h and options.h.
4361         * toplev.c: Include opts.h; change options.h to options_.h.
4362         (parse_options_and_default_flags): Get lang_mask, use
4363         handle_option for language-specific handling.
4364         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
4365         (LANG_HOOKS_HANDLE_OPTION): Override.
4366         (objc_init_options): Update.
4368 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
4369             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
4371         PR other/7031
4372         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
4373         gcov.
4375 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
4377         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
4378         section names.
4379         * configure: Regenerate.
4381 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
4383         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
4385 2003-06-06  James E Wilson  <wilson@tuliptree.org>
4387         PR inline-asm/10890
4388         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
4389         different in fields.
4391 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
4393         * configure.in: Make $(target_subdir) correspond with top level usage.
4394         * Makefile.in: Likewise.
4395         * configure: Regenerate.
4397 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4399         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
4400         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
4401         unsigned HOST_WIDE_INT.
4402         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
4403         Likewise.
4404         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
4405         Likewise.
4407 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4409         * doc/install.texi (Prerequisites): New section documenting
4410         tools and packages necessary prior to building and/or
4411         modifying GCC.
4412         * doc/install.texi2html: Also generate prerequisites.html.
4414 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
4416         PR target/11052
4417         * ifcvt.c (noce_process_if_block): Fail if the destination has
4418         side-effects.
4420 2003-06-06  Jason Merrill  <jason@redhat.com>
4422         * stmt.c (resolve_asm_operand_names): Rename from
4423         resolve_operand_names.  No longer static.  Avoid needless copying.
4424         Don't build array of constraints.
4425         (expand_asm_operands): Build it here.
4426         * tree.h: Declare resolve_asm_operand_names.
4428         * stmt.c (expand_decl): Put artificial vars into registers even
4429         when not optimizing, and don't mark the regs as user vars.
4431 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
4433         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
4434         of the generated register.
4436 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
4438         * config.gcc: Add a missing sparc64 case.
4440 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
4442         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
4443         the .hidden assembly stubs.
4445 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
4447         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
4448         and x86_64-*-*.
4450         * config/i386/mmintrin.h: Update version and add alternate
4451         intrinsic names.
4452         * config/i386/xmmintrin.h: Likewise.
4454         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
4455         intrinsics to ...
4456         * config/i386/emmintrin.h: Here. New file.
4458 2003-06-06  Roger Sayle  <roger@eyesopen.com>
4460         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
4461         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
4462         when the ABS_EXPR (fabs or abs) is not required.
4463         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
4464         always nonnegative from fold to here.  Additionally, cabs and fabs
4465         are always non-negative, and pow and atan are non-negative if
4466         their first argument is non-negative.
4468         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
4469         Evaluate cabs of a constant at compile-time.  Convert cabs of a
4470         non-complex argument into fabs.  Convert cabs(z) into
4471         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
4472         -funsafe-math-optimizations or -ffast-math.
4473         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
4474         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
4476 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
4478         * sourcebuild.texi (Front End Directory): Document new hooks.
4480 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
4482         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
4483         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
4484         stack frames.
4485         (pro_epilogue_adjust_stack_rex64_2): New pattern
4487 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
4488                                Pop Sebastian
4489                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4491         * cfghooks.h, cfghooks.c: New files.
4492         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
4493         (OBJS): Add cfghooks.o.
4494         (cfghooks.o): New rule.
4495         * basic-block.h (split_edge): Rename to rtl_split_edge.
4496         (verify_flow_info): Rename to rtl_verify_flow_info.
4497         (cfghooks.h): Included here.
4498         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
4499         (verify_flow_info): Renamed rtl_verify_flow_info.
4500         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
4502         * basic-block.h (split_block, split_edge, flow_delete_block,
4503         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
4504         (flow_delete_block_noexpunge):  Return void.
4505         * cfg.c (verify_flow_info): New function.
4506         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
4507         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
4508         Use delete_block.
4509         * cfglayout.c (function_footer): Rename to...
4510         (cfg_layout_function_footer): ... this variable
4511         (unlink_insn_chain): Make global.
4512         (fixup_reorder_chain, record_effective_endpoints): Update.
4513         (cleanup_unconditional_jumps): Use delete_block.
4514         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
4515         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
4516         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
4517         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
4518         (cfg_layout_function_footer): Declare.
4519         * cfgloopmanip (split_loop_bb): Do not update RBI.
4520         (remove_bbs): Use delete_block.
4521         (loop_reidrect_edge, loop_delete_branch_edge): Use
4522         redirect_edge_and_branch.
4523         (create_preheader): Use split_block and redirect_edge_and_branch_force.
4524         (split_edge_with): Likewise.
4525         * cfgrtl.c: Include cfglayout.h
4526         (split_edge): Rename to ...
4527         (rtl_split_edge) ... this one; make local.
4528         (redirect_edge_and_branch): Rename to ...
4529         (rtl_redirect_edge_and_branch) ... this one; make local.
4530         (redirect_edge_and_branch_force): Rename to ...
4531         (rtl_redirect_edge_and_branch_force) ... this one; make local.
4532         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
4533         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
4534         cfglayout.c; update to directly call RTL counterparts.
4535         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
4536         * ifcvt.c (find_cond_trap): Use delete_block.
4537         (find_if_case_1): Use delete_block.
4538         (find_if_case_2): Use delete_block.
4539         * rtl.h (unlink_insn_chain): Declare.
4540         * toplev.c (rtl_reigster_cfg_hooks): New.
4542 2003-06-05  Richard Henderson  <rth@redhat.com>
4544         * recog.c (peephole2_optimize): Revert last change.
4546 2003-06-05  Richard Henderson  <rth@redhat.com>
4548         * recog.c (peephole2_optimize): Don't split block unless
4549         can_throw_internal.
4551 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
4553         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
4554         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
4556 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
4558         PR optimization/4490
4559         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
4560         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
4561         documentation to accurately reflect what these options do.
4563 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
4565         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
4566         (ENDFILE_SPEC): Redefine to handle -pie.
4568 2003-06-05  Phil Edwards <phil@jaj.com>
4570         * Makefile.in (qmtest-g++): Use target_alias, not target.
4572 2003-06-05  Per Bothner  <pbothner@apple.com>
4574         * toplev.c (push_srcloc):  Simplify behavior to save current location
4575         and set current location to parameters.
4576         (pop_srcloc):  Simplify semantics.
4577         (lang_dependent_init):  Remove now-useless initial push_srcloc.
4579 2003-05-06  Richard Henderson  <rth@redhat.com>
4581         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
4582         language-specific tree codes.
4584 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4586         PR middle-end/9986
4587         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
4588         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
4590 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
4592         * install.tex: Document profiledbootstrap.
4594         * configure.in:  Add support for lang.stageprofile and
4595         lang.stagefeedback
4596         * Makefile.in (clean, distclean): Kill new stages
4597         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
4598         (STAGE2_FLAGS_TO_PASS): ... this one.
4599         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
4600         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
4601         (stageprofile_build, stageprofile_copy, stagefeedback_build,
4602         stagefeedback_copy): New.
4603         (restageprofile, restagefeedback, stageprofile-start,
4604         stageprofile, stagefeedback-start): Likewise.
4606 2003-06-05  David Miller  <davem@redhat.com>
4607             Richard Henderson  <rth@redhat.com>
4609         * optabs.c (HAVE_conditional_trap): Provide default.
4610         (gen_conditional_trap): Likewise.
4611         (init_optabs): Merge init_traps.
4612         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
4614 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
4616         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
4617         is REG for nonzero_bits (REG) == 8.
4619 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
4621         * i386.md (align): Fix warning; clarify what to do when no p2align
4622         is available.
4624 2003-06-05  Nick Clifton  <nickc@redhat.com>
4626         * config.gcc (m32r-elf): Revert previous delta.
4627         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
4628         multilibs.  Remove m32rx specific version.
4629         (crtfini.o): Likewise.
4630         (EXTRA_MULTILIB_PARTS): Define.
4632 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4634         * doc/md.texi (Machine Constraints): Correct the meaning of
4635         constraints related to floating-point registers on SPARC.
4637 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4638             Paolo Bonzini  <bonzini@gnu.org>
4640         PR target/10663
4641         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
4642         assembler and linker output to /dev/null.
4643         Use a 'sed' construct instead of 'grep -A1'.
4644         * configure: Regenerate.
4646 2003-06-04  Richard Henderson  <rth@redhat.com>
4648         * config/i386/i386.c (struct ix86_address): Add seg.
4649         (no_seg_address_operand): New.
4650         (ix86_decompose_address): Restructure PLUS loop.  Accept one
4651         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
4652         to test for a regnum, not stack_pointer_rtx.
4653         (ix86_address_cost): Reduce cost if non-default segment.
4654         (legitimate_address_p): Remove UNSPEC_TP check.
4655         (get_thread_pointer): Add to_reg argument.  Don't represent
4656         the thread pointer as a memory load.
4657         (legitimize_tls_address): Split out of ...
4658         (legitimize_address): ... here.
4659         (print_operand_address): Handle parts.seg.
4660         (ix86_expand_move): Use legitimize_tls_address.
4661         (ix86_rtx_costs): Handle UNSPEC_TP.
4662         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
4663         (TARGET_TLS_DIRECT_SEG_REFS): New.
4664         (TARGET_SWITCHES): Add tls-direct-seg-refs.
4665         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
4666         (PREDICATE_CODES): Add no_seg_address_operand.
4667         * config/i386/i386.md (lea_1): Use it.
4668         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
4669         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
4670         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
4671         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
4672         * doc/invoke.texi: Add -mtls-direct-seg-refs.
4674 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
4676         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
4677         (QMTEST_GPP_TESTS): Use "g++" by default.
4678         (stamp-qmtest): Tweak database creation.
4679         (QMTEST_DIR/context): Update context file format.
4680         (qmtest-g++): Tweak command-line.
4682 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4684         * Makefile.in (varasm.o): Don't set -Wno-error.
4685         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
4687 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
4689         PR bootstrap/3163
4690         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
4691         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
4692         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
4693         and AC_CHECK_FUNCS lists, respectively.  Use
4694         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
4695         AC_FUNC_MMAP_FILE.
4696         * configure, config.in: Regenerate.
4698 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4700         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
4701         * arm.c (arm_output_function_prologue): Fix format specifiers.
4702         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
4703         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
4704         HOST_WIDE_INT_PRINT_DEC.
4705         * vax.c (vax_output_function_prologue): Fix format specifiers.
4707 2003-06-04  Richard Henderson  <rth@redhat.com>
4709         * cse.c (find_best_addr): Consider binary operators even if second
4710         argument is not CONST_INT.
4712 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4714         * doc/invoke.texi (max-cse-path-length): Document.
4716 2003-06-04  Richard Henderson  <rth@redhat.com>
4718         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
4720 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
4722         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
4723         Remove semi-colon at the end of the expression.
4725 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4727         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
4728         * i370.h (mvs_function_name_length): Likewise.
4729         * i960.h (CONSTANT_ALIGNMENT): Likewise.
4730         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4731         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4732         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4733         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
4734         variable.
4736 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
4738         * config.gcc: Reorganize --with-cpu logic.  Set
4739         configure_default_options according to the default CPU, --with-cpu,
4740         --with-arch, --with-tune, --with-schedule, --with-abi, and
4741         --with-float.  Check for legal values of various options.
4742         * configure.in: Define configure_default_options in configargs.h.
4743         * configure: Regenerated.
4744         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
4745         (TARGET_DEFAULT_FLOAT_P): New macros.
4746         * gcc.c (do_option_spec): New function.
4747         (struct default_spec, option_default_specs): New.
4748         (main): Call do_option_spec.
4749         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
4750         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
4751         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
4753         * doc/install.texi: Update --with-cpu documentation.  Mention
4754         --with-arch, --with-schedule, --with-tune, --with-abi, and
4755         --with-float.
4756         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
4758 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
4760         * config.gcc: Only process --with-cpu logic in the third pass.
4762 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
4764         * config.gcc: Reorganize --with-cpu section.  Remove an
4765         obsolete comment about the default CPU for x86-64.  Fix
4766         a typo for the ep9312.  Update the list of supported PowerPC
4767         CPUs.  Support a limited set of new --with-cpu options
4768         for i386.
4770 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
4772         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
4773         complex numbers <= 32 bits into two registers.
4775 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4777         * alpha.c (print_operand_address): Fix format specifier warnings.
4778         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4779         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4780         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4781         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
4782         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
4783         ASM_OUTPUT_SKIP): Likewise.
4784         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4785         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4786         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
4787         Likewise.
4788         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4789         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
4790         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
4791         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4792         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
4793         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4794         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4795         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4796         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4797         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
4799 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
4801         * c-decl.c (c_init_decl_processing): Clear input_file_name
4802         while building common nodes.
4803         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
4804         Don't add working directory for strings like <built-in> .
4806 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
4808         * doc/install.texi (*-ibm-aix*): Native as and ld required
4809         to bootstrap on AIX 5L.
4811 2003-06-04  Richard Henderson  <rth@redhat.com>
4813         * c-common.c (handle_cleanup_attribute): New.
4814         (c_common_attributes): Add it.
4815         * c-decl.c (finish_decl): Honor the cleanup attribute.
4816         * doc/extend.texi (Variable Attributes): Document it.
4818         * unwind-c.c: New file.
4819         * Makefile.in (LIB2ADDEH): Add it.
4820         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
4821         config/ia64/t-ia64: Likewise.
4823 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
4825         * function.c (trampolines_created): New variable.
4826         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
4827         * function.h (trampolines_created): Add.
4828         * config/s390/linux.h (ASM_FILE_END): Define.
4829         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
4830         * config/m68k/linux.h (ASM_FILE_END): Define.
4831         * config/rs6000/linux.h (ASM_FILE_END): Define.
4832         * config/rs6000/linux64.h (ASM_FILE_END): Define.
4833         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
4834         * config/sparc/linux.h (ASM_FILE_END): Define.
4835         * config/sparc/linux64.h (ASM_FILE_END): Define.
4836         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
4837         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
4838         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
4840 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
4842         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
4843         (ix86_reorg): Use it.
4844         * i386.md (align): New insn pattern.
4846 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4848         * toplev.c (rest_of_type_compilation): Fix typo.
4850 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
4851             Alan Modra  <amodra@bigpond.net.au>
4853         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
4854         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
4855         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
4856         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
4857         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
4858         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
4859         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
4860         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
4862         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
4863         Pass it to $gcc_cv_as.
4864         * configure: Rebuilt.
4866         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
4867         (print_operand): Allow TARGET_AIX to be non-constant.
4868         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
4869         Define unconditionally.
4870         (rs6000_elf_declare_function_name): New function.
4871         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
4872         non-constant.
4873         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
4874         to 1.
4875         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
4876         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
4877         is defined.
4878         (TARGET_AIX): Define to 1 if TARGET_64BIT.
4879         (PROCESSOR_DEFAULT): Remove.
4880         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
4881         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
4882         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
4883         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
4884         -m32 and -m64.
4885         (MULTILIB_DEFAULTS): Define.
4886         (SUBSUBTARGET_EXTRA_SPECS): Define.
4887         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
4888         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
4889         (TARGET_NO_TOC): Remove.
4890         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
4891         TARGET_PROTOTYPE): Define to 0.
4892         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
4893         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
4894         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
4895         if !TARGET_64BIT.
4896         (USER_LABEL_PREFIX): Remove.
4897         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
4898         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
4899         if TARGET_64BIT.
4900         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
4901         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
4902         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
4903         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
4904         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4905         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
4906         TARGET_64BIT.
4907         (RS6000_CALL_GLUE): Likewise.
4908         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
4909         RESTORE_FP_SUFFIX): Likewise.
4910         (ASM_DECLARE_FUNCTION_NAME): Remove.
4911         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
4912         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
4913         name if TARGET_64BIT.
4914         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
4915         !TARGET_64BIT.
4916         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
4917         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
4918         (DRAFT_V4_STRUCT_RET): Define.
4919         (SIGNAL_FRAMESIZE): New enum value.
4920         (MD_FALLBACK_FRAME_STATE_FOR): Define.
4921         * config/rs6000/default64.h: New file.
4922         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
4923         options.
4924         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
4925         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
4926         if !TARGET_64BIT.
4927         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
4928         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
4929         function.
4930         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
4931         (TARGET_OS_CPP_BUILTINS): Use it.
4932         (CPP_SYSV_SPEC): Remove.
4933         (CPP_SPEC): Remove cpp_sysv.
4934         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
4935         Add SUBSUBTARGET_EXTRA_SPECS.
4936         (SUBSUBTARGET_EXTRA_SPECS): Define.
4937         * config/rs6000/biarch64.h: New file.
4938         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
4939         New prototype.
4940         * config/rs6000/x-linux64: New file.
4941         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
4942         multilibs.
4943         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
4944         * config/rs6000/eabi-cn.asm: Likewise.
4945         * config/rs6000/tramp.asm: Likewise.
4946         * config/rs6000/sol-ci.asm: Likewise.
4947         * config/rs6000/sol-cn.asm: Likewise.
4948         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
4949         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
4950         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
4951         _CALL_AIXDESC section.
4952         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
4953         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
4954         or default32.
4956 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
4958         * config.gcc: Revert accidentally committed ARM changes.
4960 2003-06-04  Roger Sayle  <roger@eyesopen.com>
4962         * builtins.c (dconstpi, dconste): New mathematical constants.
4963         (init_builtin_dconsts): New function to initialize dconstpi
4964         and dconste.
4965         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
4966         compile time with -ffast-math when x is an integer constant.
4967         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
4968         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
4970 2003-06-04  Roger Sayle  <roger@eyesopen.com>
4972         * calls.c (expand_call): Avoid calling pure or const functions
4973         when the result is ignored (or void) and none of the arguments
4974         are volatile.  Move warning diagnostic earlier in function.
4976 2003-06-04  Andreas Jaeger  <aj@suse.de>
4978         * system.h: Do not poison TDESC_SECTION_ASM_OP,
4979         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
4981 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4983         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
4984         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
4985         handle %ll, optimize regular character case.
4987 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4989         * Makefile.in (cse.o): Add params.h dependency.
4990         * cse.c: Include params.h.
4991         (PATHLENGTH): Removed.
4992         (struct cse_basic_block_data): Make path array dynamic.
4993         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
4994         of PATHLENGTH.
4995         (cse_main, cse_basic_block): Allocate path array.
4996         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
4998 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
5000         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
5001         * i386.md (UNSPEC_REP): New constant.
5002         (return_internal_long): New pattern.
5004 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5006         PR optimization/11018
5007         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
5008         consistently to decide whether the scratch register is really
5009         required.
5011 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5013         PR optimization/10876
5014         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
5015         new 'O' constraint for constant 4096.
5016         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5017         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
5018         Do not transform into MINUS insn for constant 4096.
5019         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
5020         for constant 4096 as third operand.
5021         (addsi3 expander): Remove.
5022         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
5023         new alternative for constant 4096 as third operand.
5024         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
5025         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
5026         operand.
5027         (subsi3 expander): Remove.
5028         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
5029         constant 4096 as third operand.
5030         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
5031         the SPARC port.
5033 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
5035         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
5037 2003-06-04  Andreas Jaeger  <aj@suse.de>
5039         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
5041         * config/i386/i386.c (ix86_expand_prologue): Do not use
5042         SUBTARGET_PROLOGUE.
5044         * system.h: Poision SUBTARGET_PROLOGUE.
5046         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
5048         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
5049         dependend code.
5051         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
5053         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
5054         INSN_CACHE_LINE_WIDTH.
5056         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
5057         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
5058         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5060         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
5061         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5063         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
5064         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
5065         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
5066         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
5067         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
5068         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
5070         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
5071         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
5072         DBX_WORKING_DIRECTORY.
5074         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
5075         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
5077         * config/frv/frv-protos.h: Remove unused const_section
5078         declaration.
5079         * config/vax/vax-protos.h: Likewise.
5081         * output.h: Remove CONST_SECTION_ASM_OP usage.
5083         * system.h: Poison CONST_SECTION_ASM_OP.
5085         * crtstuff.c (__do_global_dtors_aux): Remove usage of
5086         CRT_GET_RFIB_TEXT.
5087         (frame_dummy): Likewise.
5088         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
5089         * system.h: Poison CRT_GET_RFIB_TEXT.
5091         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
5093         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
5094         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
5095         (recognized_function): Likewise.
5096         (read_scan_file): Likewise.
5098 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5100         * optabs.c (expand_binop): Optimize complex multiplication for
5101         the case of squaring a complex argument.
5103 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5105         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
5106         non-volatile operands of binary operations.
5107         (prepare_cmp_insn): Likewise.
5109 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5111         * varasm.c (force_const_mem): Handle alignment of constants not
5112         representable as a type in the front-end language.
5114 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
5116         * flow.c (initialize_uninitialized_subregs): Use
5117         emit_move_insn instead of emitting a hardcoded move.
5119 2003-06-03  Richard Henderson  <rth@redhat.com>
5121         * optabs.c (expand_abs_nojump): Split out from ...
5122         (expand_abs): ... here.
5123         * optabs.h (expand_abs_nojump): Declare.
5124         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
5125         * Makefile.in (ifcvt.o): Depend on optabs.h.
5127 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
5129         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
5131 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5133         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
5134         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
5135         to yes.
5136         * configure.in: Allow default_use_cxa_atexit to determine the
5137         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
5138         disabled.
5139         * configure: Regenerate.
5141 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
5143         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
5144         * doc/gcc.texi: Remove vms.texi section.
5145         * doc/vms.texi: Remove obsolete file.
5147 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
5149         * configure.in (inhibit_libc): Don't define when configuring
5150         with --with-newlib --with-headers.
5151         * configure: Regenerate.
5153         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
5155 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5157         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
5158         IRIX 6 without GNU ld.
5159         * configure: Regenerate.
5161 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5163         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
5164         of a complex number rather than invoke mov_optab directly.
5166 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
5168         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5169         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5171 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
5173         * config/i386/x86-64.h: Remove two target-independent comments;
5174          replace "GNU CC" with "GCC".
5176 2003-06-03  Anthony Green  <green@redhat.com>
5178         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
5180 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5182         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5183         New builtins representing ISO C99's cabs, cabsf and cabsl.
5184         * builtins.c (expand_builtin_fabs): New function.
5185         (expand_builtin_cabs): New function.
5186         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
5187         using expand_builtin_fabs and expand_builtin_cabs respectively.
5189         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
5191 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
5193         * function.c (assign_parms): Split complex arguments.
5195         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
5197         * expr.h (SPLIT_COMPLEX_ARGS): Define.
5198         (split_complex_types): Protoize.
5199         (split_complex_values): Protoize.
5201         * calls.c (expand_call): Split complex arguments on architectures
5202         that require it.
5203         (split_complex_values): New.
5204         (split_complex_types): New.
5206         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
5207         (rs6000_function_value): Handle complex values on AIX.
5208         (rs6000_complex_function_value): New.
5210         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
5212         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
5213         (SPLIT_COMPLEX_ARGS): New.
5215 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
5217         * configure.in (HAVE_LD_PIE): Check for ld -pie.
5218         * config.in: Rebuilt.
5219         * configure: Rebuilt.
5220         * toplev.c (flag_pie, flag_shlib): New variables.
5221         (f_options): Add -fpie and -fPIE.
5222         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
5223         Set flag_shlib if flag_pic and not -fpie/-fPIE.
5224         * flags.h (flag_pic, flag_shlib): Add.
5225         * varasm.c (default_binds_local_p): Use flag_shlib instead of
5226         flag_pic.
5227         * gcc.c (LINK_PIE_SPEC): Define.
5228         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
5229         (option_map): Add --pie -> -pie mapping.
5230         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
5231         and -fPIE the same way as -fPIC.
5232         * config/openbsd.h (ASM_SPEC): Likewise.
5233         * config/frv/frv.h (ASM_SPEC): Likewise.
5234         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
5235         * config/arm/semi.h (ASM_SPEC): Likewise.
5236         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5237         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
5238         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
5239         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
5240         * config/m68k/linux.h (CPP_SPEC): Likewise.
5241         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
5242         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5243         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5244         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
5245         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
5246         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
5247         * config/netbsd-aout.h (ASM_SPEC): Likewise.
5248         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
5249         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
5250         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5251         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5252         * config/sparc/sparc.h (ASM_SPEC): Likewise.
5253         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5254         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5255         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5256         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5257         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5258         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
5259         Simplify.
5260         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5261         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5262         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5263         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5264         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5265         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5266         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5267         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
5269 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
5271         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
5272         != 0 handling.  Pass 0 to store_by_pieces.
5273         (expand_builtin_mempcpy): Add endp argument.  Don't call
5274         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
5275         directly.  If ignoring result, only do expand_call.
5276         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
5277         otherwise.
5278         (expand_builtin_strncpy, expand_builtin_memset): Adjust
5279         store_by_pices callers.
5280         (expand_builtin): Adjust expand_builtin_memcpy and
5281         expand_builtin_mempcpy callers.
5282         * expr.c (can_move_by_pieces): New function.
5283         (move_by_pieces): Add endp argument, return to resp. memory at end
5284         or one byte earlier depending on endp.
5285         (store_by_pieces): Likewise.
5286         (emit_block_move): Adjust call to move_by_pieces.
5287         (emit_push_insn): Adjust move_by_pieces caller.
5288         * expr.h (can_move_by_pieces): New prototype.
5289         (store_by_pieces): Adjust prototypes.
5290         * rtl.h (move_by_pieces): Adjust prototype.
5291         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
5292         caller.
5294 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
5296         * doc/md.texi (Processor pipeline description): Improve wording.
5298 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
5300         * c-opts.c (c_common_handle_option): New, pulled out of
5301         c_common_decode_option.  Substitute uses of argv.
5302         (c_common_decode_option): Broken into two.
5304 2003-06-02  Roger Sayle  <roger@eyesopen.com>
5305             Zack Weinberg  <zack@codesourcery.com>
5307         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
5308         test of TREE_CONSTANT_POOL_ADDRESS_P.
5310 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5312         * mips.c: Don't include output.h twice.
5313         * stormy16.c: Likewise.
5314         * xtensa.c: Likewise.
5315         * output.h: Protect against multiple inclusion.
5317 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
5319         * sh.h (OLD_ARG_MODE): New macro.
5320         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5321         (FUNCTION_ARG_1): Break out of:
5322         (FUNCTION_ARG).  Use OLD_ARG_MODE.
5324 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5326         * gcc/config.gcc Add support multilib parts for m32rx processor.
5328 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5330         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
5331         (mostlyclean): Delete c-options.c and c-options.h.
5333 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
5335         * c-opts.c (CL_REJECT_NEGATIVE): New.
5336         (c_common_decode_option): Update to use it.
5337         * c.opt: Update documentation; use RejectNegative.
5338         * opts.sh: Handle RejectNegative.
5340 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
5342         * ggc-page.c (init_ggc): Give better diagnostics on failure to
5343         open /dev/zero.
5344         * toplev.c (crash_signal): Reset handling for received signal
5345         to SIG_DFL.
5347 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
5349         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
5350         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
5351         (arm_use_dfa_pipeline_interface): Implement.
5352         * config/arm/arm.md (arm): New automaton.
5353         (write_buf): Remove function units; new cpu unit.
5354         (write_blockage): Remove function units; new cpu unit.
5355         (core): Remove function units; new cpu unit.
5356         (r_mem_f_wbuf): New instruction reservation.
5357         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
5358         (store1_ldsched, store2, store3, store4): Likewise.
5359         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
5360         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
5361         (multi_cycle, single_cycle): Likewise.
5362         * config/arm/fpa.md (armfp): New automaton.
5363         (fpa): Remove function units; new cpu unit.
5364         (fpa_mem): Remove function unit; new cpu unit.
5365         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
5366         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
5368 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5370         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
5371         * c-format.c (enum format_type): Add asm_fprintf_format_type.
5372         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
5373         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
5374         (format_types_orig): Renamed from format_types.  Add new data.
5375         (format_types): Declare as pointer.
5376         (handle_format_attribute): Move later in file so we have all
5377         necessary declarations.  Add section to capture HOST_WIDE_INT.
5378         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
5379         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
5381 2003-06-01  Andreas Jaeger  <aj@suse.de>
5383         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
5384         ROUND_TYPE_SIZE_UNIT.
5386         * stor-layout.c (finalize_record_size): Remove usages of
5387         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5388         (finalize_type_size): Likewise.
5389         (layout_type): Likewise.
5391         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5393         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
5395         * config/d30v/d30v.h: Remove text copied from the manual.
5397 2003-06-01  Roger Sayle  <roger@eyesopen.com>
5398             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5399             Geoffrey Keating  <geoffk@apple.com>
5401         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
5402         constants as condition code values.
5404 2003-06-01  DJ Delorie  <dj@redhat.com>
5406         * cppmacro.c (warn_of_redefinition): Handle cases where the two
5407         definitions have different numbers of tokens.
5409 2003-06-01  Andreas Jaeger  <aj@suse.de>
5411         * gen-protos.c (main): Readd unused attribute for argc.
5413 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
5415         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
5416         * c.opt: End in blank line.
5417         * opts.sh: Take AWK from environment if available; use C locale.
5419 2003-06-01  Andreas Schwab  <schwab@suse.de>
5421         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
5423 2003-06-01  Andreas Jaeger  <aj@suse.de>
5425         * gen-protos.c (main): Revert patch to check for argument.
5427 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5429         PR target/11044
5430         * config/i386/i386.md (length attribute): Set length to 4
5431         for instructions of type "fcmp".
5433 2003-06-01  Andreas Jaeger  <aj@suse.de>
5435         * toplev.c: Use ISO C90 prototypes.
5437         * toplev.h: Use ISO C90 prototypes.
5439         * genrecog.c: Use ISO C90 prototypes.
5440         (nodes_identical): Correct declaration to match prototype.
5441         (maybe_both_true): Likewise.
5442         (merge_trees): Likewise.
5444         * genpeep.c (gen_peephole): Remove #if 0 code.
5445         Use ISO C90 prototypes.
5447         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
5448         Remove #if 0'ed function simplify_by_alternatives.
5449         (optimize_attrs): Remove #if 0'ed code.
5450         Remove ^L.
5451         Use ISO C90 prototypes.
5452         (make_canonical): Remove #if 0'ed code.
5453         (convert_const_symbol_ref): Remove #if 0'ed function.
5455         * gen-protos.c (main): Check for argument.
5457         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
5459         * params.h: Use ISO C90 prototypes.
5460         * params.c: Likewise.
5461         * intl.c: Likewise.
5462         * intl.h: Likewise.
5463         * lists.c: Likewise.
5464         * errors.c: Likewise.
5465         * errors.h: Likewise.
5466         * gencodes.c: Likewise.
5467         * genpreds.c: Likewise.
5468         * genattr.c: Likewise.
5469         * gen-protos.c: Likewise.
5470         * genflags.c: Likewise
5471         * genconditions.c: Likewise.
5472         * genautomata.c: Likewise.
5473         * gencheck.c: Likewise.
5474         * genconfig.c: Likewise.
5475         * genconstants.c: Likewise.
5476         * genemit.c: Likewise.
5477         * genextract.c: Likewise.
5478         * gengenrtl.c: Likewise.
5479         * gengtype.c: Likewise.
5480         * gengtype.h: Likewise.
5481         * genopinit.c: Likewise.
5482         * genoutput.c: Likewise.
5483         * gensupport.c: Likewise.
5484         * gensupport.h: Likewise.
5486         * sdbout.h: Use ISO C90 prototypes.
5488         * sdbout.c (CONTIN): Removed empty macro.
5489         (sdbout_one_type): Remove CONTIN usages.
5490         Remove ^Ls.
5491         (tag_of_ru_type): Remove #if 0'ed function.
5492         (sdbout_symbol): Remove #if 0'ed code.
5493         (sdbout_one_type): Remove a #if 1.
5494         (sdbout_one_type): Remove #if 0'ed code.
5495         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
5496         Remove PARAMS, use ISO C90 prototypes for all functions.
5498 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
5500         * rtl.def (CONST_DOUBLE): Update comment.
5502 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
5504         * opts.sh: Remove path from sort.
5506 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
5508         PR/9680
5509         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
5510         TARGET_SPE for SPE_VECTOR_MODE.
5512 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
5514         * toplev.c (botch): Remove.
5515         (do_abort): Remove.
5516         (set_Wunused): Comment.
5517         (set_Wextra): Comment.
5518         Remove ^L's.
5519         (rest_of_compilation): Factor out common code into functions.
5520         (rest_of_handle_inlining): New.
5521         (rest_of_handle_ssa): New.
5522         (rest_of_handle_cse): New.
5523         (rest_of_handle_gcse): New.
5524         (rest_of_handle_loop_optimize): New.
5525         (rest_of_handle_jump_bypass): New.
5526         (rest_of_handle_sibling_calls): New.
5527         (rest_of_handle_null_pointer): New.
5528         (rest_of_handle_addresof): New.
5529         (rest_of_handle_flow): New.
5530         (rest_of_handle_branch_prob): New.
5531         (rest_of_handle_if_conversion): New.
5532         (rest_of_handle_tracer): New.
5533         (rest_of_handle_loop2): New.
5534         (rest_of_handle_cse2): New.
5535         (rest_of_handle_life): New.
5536         (rest_of_handle_combine): New.
5537         (rest_of_handle_if_after_combine): New.
5538         (rest_of_handle_regmove): New.
5539         (rest_of_handle_sched): New.
5540         (rest_of_handle_old_regalloc): New.
5541         (rest_of_handle_new_regalloc): New.
5542         (rest_of_handle_regrename): New.
5543         (rest_of_handle_reorder_blocks): New.
5544         (rest_of_handle_sched2): New.
5545         (rest_of_handle_new_regalloc): New.
5546         (rest_of_handle_old_regalloc): New.
5547         (rest_of_handle_regrename): New.
5548         (rest_of_handle_reorder_blocks): New.
5549         (rest_of_handle_stack_regs): New.
5550         (rest_of_handle_machine_reorg): New.
5551         (rest_of_handle_delay_slots): New.
5552         (rest_of_handle_final): New.
5554         * toplev.h (botch): Remove prototype.
5555         (do_abort): Same.
5557 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
5559         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
5560         * c-opts.c: Include c-options.h and c-options.c.
5561         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
5562         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
5563         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
5564         OPT, opt_comp): Remove.
5565         (missing_arg, c_common_init_options, c_common_decode_option,
5566         write_langs): Update for macro redefinitions and enumeration
5567         name changes.
5568         * c.opt, opts.sh: New files.
5569         * doc/passes.texi: Update.
5571 2003-05-31  Andreas Jaeger  <aj@suse.de>
5573         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
5574         usage.
5576         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
5578         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
5580         * system.h: Poison ALLOCATE_TRAMPOLINE.
5582         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
5583         * system.h: Poison HANDLE_PRAGMA.
5585 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
5587         * doc/invoke.texi: Update dump file names.
5589 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5591         * c-format.c (format_length_info, format_char_info,
5592         format_flag_spec, format_flag_pair, format_kind_info):
5593         De-const-ify structure members.
5595 2003-05-31  Roger Sayle  <roger@eyesopen.com>
5597         * flags.h (flag_wrapv): New flag controlling overflow semantics.
5598         * toplev.c (flag_wrapv): Declare the variable with default false.
5599         (lang_independent_options): New option "-fwrapv" to set the above.
5601         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
5602         as x, when signed arithmetic overflow wraps around.
5603         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
5604         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
5605         overflow when flag_wrapv is true.
5607         * doc/invoke.texi: Document new -fwrapv command line option.
5608         * doc/c-tree.texi: Mention that the overflow semantics of
5609         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
5610         upon both flag_wrapv and flag_trapv.
5612 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
5614         * doc/install.texi (mips-sgi-irix5): Add missing
5615         HTML <hr> marker.
5617 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
5619         * doc/md.texi (Machine Constraints): Document
5620         missing SPARC constraints.
5622 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
5624         * doc/md.texi (Automaton pipeline description): Use
5625         "type" instead of "cpu" as the attribute in the examples.
5627 2003-05-30  Stan Shebs  <shebs@apple.com>
5629         * system.h: Poison OBJC_PROLOGUE.
5631 2003-05-30  Roger Sayle  <roger@eyesopen.com>
5633         * emit-rtl.c (gen_complex_constant_part): New function for getting
5634         the constant real or imaginary part of a complex constant.
5635         (gen_realpart): Use it.
5636         (gen_imagpart): Likewise.
5638 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
5640         * doc/invoke.texi: Fix typos.
5641         * doc/rtl.texi: Likewise.
5643 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
5645         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
5646         mode.
5647         * config/h8300/crtn.asm: Likewise.
5648         * config/h8300/lib1funcs.asm: Likewise.
5649         * config/h8300/h8300.c (asm_file_start): Likewise.
5650         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
5651         h8300snelf emulations for normal mode.
5652         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
5653         emulations for normal mode.
5655 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
5657         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
5658         true if TARGET_NORMAL_MODE.
5660 2003-05-30  Roger Sayle  <roger@eyesopen.com>
5662         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
5663         making a substitution.
5664         (dead_libcall_p): If directly replacing a libcall with a
5665         constant value produces an invalid instruction, also try forcing
5666         the constant into the constant pool.
5667         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
5668         obvious that the source is a constant.
5669         (compress_float_constant): Use set_unique_reg_note to place
5670         REG_EQUAL notes on instructions.
5672 2003-05-30  Eric Christopher  <echristo@redhat.com>
5674         * config/mips/mips.c (extern_list): Add GTY marker.
5675         (extern_head): Separate out definition. Add marker.
5676         (mips_output_external): Use ggc_alloc for extern_list
5677         allocation.
5678         (mips_output_external_libcall): Ditto.
5680 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
5682         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
5683         later.
5685 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5687         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
5688         warnings.
5689         (PRINT_OPERAND): Likewise.
5691 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5693         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
5694         -mdebug/-no-mdebug switches ...
5695         (MDEBUG_ASM_SPEC): ... here.
5696         Use only with gas.
5697         (EXTRA_SPECS): Initialize mdebug_asm_spec.
5699 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
5701         * gthr-gnat.c: Remove #undef UNUSED.
5702         (__gnat_default_lock, __gnat_default_unlock): Prototype.
5703         (__gnat_task_lock, __gnat_task_unlock): Make declarations
5704         prototypes.
5705         (__gnat_install_locks): Convert declaration to ISO C90, make
5706         parameter declarations prototypes, and remove blank line.
5707         * gthr-gnat.h (__gnat_install_locks): Make parameter
5708         declarations prototypes.
5710 2003-05-29  Jason Merrill  <jason@redhat.com>
5712         * Makefile.in (unstrap): Remove stage_last after make unstage1.
5714 2003-05-29  Roger Sayle  <roger@eyesopen.com>
5716         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
5718 2003-05-29  Roger Sayle  <roger@eyesopen.com>
5719             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
5721         PR bootstrap/10169
5722         * mips-tfile.c (main): Use getopt_long instead of getopt.
5723         Add new command line option --version to display version.
5724         Treat --verbose like -v to report a single line version.
5725         (options): New global variable for getopt_long.
5726         * mips-tdump.c (main): Use getopt_long instead of getopt.
5727         New command line options -v, --version and -verbose to display
5728         the program version number (to match mips-tfile's behavior).
5729         (options): New global variable for getopt_long.
5731         * gcov.c (options): Zero-terminate getopt_long array.
5732         * gcov-dump.c (options): Likewise.
5734         * Makefile.in (mips-tdump.o): Add dependency on version.h.
5736 2003-05-29  Stan Shebs  <shebs@apple.com>
5738         Remove OBJC_PROLOGUE everywhere.
5739         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
5740         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
5741         * config/d30v/d30v.h: Similarly.
5742         * config/ip2k/ip2k.h: Similarly.
5743         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
5745 2003-05-29  Roger Sayle  <roger@eyesopen.com>
5747         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
5748         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
5749         (expand_unreachable_stmt): Expand unreachable while statements
5750         using genrtl_do_stmt_1.
5752 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
5754         * config/mips/mips-protos.h (mips_output_load_label): Declare.
5755         * config/mips/mips.c (mips_output_load_label): New function.
5756         (mips_output_conditional_branch): Use it.
5757         * config/mips/mips.md (jump): And here.
5759 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
5761         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
5762         (xtensa_split_operand_pair): New proto.
5763         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
5764         (smalloffset_double_mem_p): Delete.
5765         (gen_float_relational, printx, print_operand, xtensa_va_arg):
5766         Fix whitespace.
5767         (xtensa_split_operand_pair): New.
5768         (xtensa_dbx_register_number): Fix formatting.
5769         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
5770         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
5771         instead of splitting them into single-word moves.  Remove unnecessary
5772         checks for reload_in_progress and reload_completed.
5773         (movdi_internal, movdf_internal): Change to post-reload split patterns.
5774         Add constraints to allow constant operands.
5775         (movsf_internal): Allow CONST_INT operands.
5777 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
5779         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
5780         fragment i386/x-mingw32.
5781         * config/i386/x-mingw32: New file. Make local_includedir
5782         relative to EXEC_PREFIX.
5784 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
5786         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
5787         (MD_STARTFILE_PREFIX): Define.
5789 2003-05-27  Denis Chertykov  <denisc@overta.ru>
5791         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
5792         VOIDmode.
5793         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
5794         call of cselib_invalidate_regno.
5796 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
5798         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
5799         -lthread to -lpthread.
5801 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
5802             Bruce Korb  <bkorb@gnu.org>
5803             Arno Klaassen  <arno@heho.snv.jussieu.fr>
5805         * fixinc/inclhack.def: Add missing declaration of getpagesize()
5806         to unistd.h on Solaris 2.5.1.
5807         Fix prototype of recv() and send() in sys/socket.h on
5808         Solaris 2.5.1 and 2.6.
5809         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
5810         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
5811         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
5812         * fixinc/fixincl.x: Regenerate.
5814 2003-05-27  Jason Merrill  <jason@redhat.com>
5816         * tree.c (expr_first, expr_length): New fns.
5817         * tree.h: Declare them.
5819         * tree.c (iterative_hash_expr): Hash commutative expressions
5820         consistently.
5822 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5824         * tree.h (contains_placeholder_p): Now returns bool.
5825         (CONTAINS_PLACEHOLDER_P): New macro.
5826         (type_contains_placeholder_p): New function.
5827         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
5828         (contains_placeholder_p): Now returns bool.
5829         Rework to use CONTAINS_PLACEHOLDER_P macro.
5830         (type_contains_placeholder_p): New function.
5831         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
5832         type_contains_placeholder_p.
5833         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
5834         Use CONTAINS_PLACEHOLDER_P macro.
5835         * builtins.c (fold_builtin): Likewise.
5836         * calls.c (initialize_argument_information): Likewise.
5837         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5838         * explow.c (expr_size): Likewise.
5839         * expr.c (store_constructor, get_inner_reference): Likewise.
5840         * function.c (assign_parms): Likewise.
5841         * stor-layout.c (variable_size): Likewise.
5843 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
5845         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
5846         attribute.
5848 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5850         * doc/contrib.texi (Contributors): Update Kean Johnston.
5852 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
5854         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
5856 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
5858         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
5859         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
5860         Replace "GNU CC" with "GCC".
5862 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
5864         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
5865         intermediate computation.
5867 2003-05-23  Eric Christopher  <echristo@redhat.com>
5869         * config/mips/mips.md (clzsi, clzdi): New patterns.
5871 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
5873         * gcc.c (default_compilers): Use -o to specify preprocessor's output
5874         file.  Make -no-integrated-cpp work when building PCH files.
5875         * objc/lang-specs.h: Likewise.
5877 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
5879         * fixinc/Makefile.in: Correct description.
5880         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
5881         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
5882         fixinc/genfixes: Replace "GNU CC" with "GCC".
5884 2003-05-23  Roger Sayle  <roger@eyesopen.com>
5886         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
5887         builtin functions (and their __builtin_* variants).
5888         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
5889         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
5890         optimizing.
5892         * doc/extend.texi: Document new tan and atan builtins, and
5893         their float and long double variants.
5895 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5897         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
5898         __sparcv9 in the TARGET_ARCH64 case.
5900 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
5902         * i386.c (ix86_reorg): Calls are also jumps.
5904 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
5906         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
5907         note containing an EXPR_LIST, process all the arguments.
5909 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
5910                                Andreas Jaeger  <aj@suse.de>
5912         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
5913         do not use assertion.
5915 2003-05-23  Mike Stump  <mrs@apple.com>
5917         * tlink.c (scan_linker_output): Add support for darwin linker, as it
5918         emits unresolved symbols one per line, consuming the entire line.
5920 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
5921             Zack Weinberg <zack@codesourcery.com>
5923         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
5924         * config/m68k/m68k.c (m68k_output_function_prologue):
5925         Remove code under #if NEED_PROBE.
5926         * config/m68k/m68k.h: Don't define NEED_PROBE.
5927         * config/m68k/m68k.md: Remove "probe" insn.
5928         * doc/md.texi: Remove documentation of "probe" pattern.
5930 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
5932         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
5934 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
5936         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
5937         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
5939 2003-05-22  Roger Sayle  <roger@eyesopen.com>
5941         * real.c (real_maxval): New function to return the largest finite
5942         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
5943         * real.h (real_maxval): Prototype here.
5944         * fold-const.c (fold_inf_compare): Transform comparisons against
5945         +-Infinity into comparisons against DBL_MAX (or equivalent).
5947 2003-05-22  Mike Stump  <mrs@apple.com>
5949         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
5950         default.
5952 2003-05-22  DJ Delorie  <dj@redhat.com>
5954         * calls.c (expand_call): If the arg block is going to grow
5955         downward, we need argblock to point to the top of the block,
5956         not the bottom.
5958 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5960         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
5962         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
5963         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
5965 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5967         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
5968         * m68k.c: Likewise.
5969         * m68k.h: Likewise.
5971 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
5973         PR other/2873
5974         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
5975         expressions to prevent triggering on recent curses.h,
5976         linux/nls.h, or X11/Xlib.h.
5977         (stdio_va_list): Add _G_va_list to bypass pattern.
5978         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
5979         * fixinc/fixincl.x: Regenerate.
5981 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
5983         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
5984         switches when --target-help option is specified.
5986 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
5988         PR bootstrap/10805
5989         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
5990         failure with Sun assembler 5.0 Alpha 03/27/98.
5992 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
5994         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
5995         to match system compiler convention.
5997 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
5999         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
6000         value, not just if defined.
6001         Update copyright year.
6003 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6005         PR target/6428
6006         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
6007         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
6008         option is used without `-static'.
6009         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
6010         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
6012 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
6014         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
6015         TARGET_SERIALIZE_VOLATILE): Delete.
6016         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
6017         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
6018         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
6019         "-mno-serialize-volatile".
6020         * config/xtensa/xtensa.c (print_operand): Remove checks of
6021         TARGET_SERIALIZE_VOLATILE.
6022         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6023         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
6024         "-mserialize-volatile" and "-mno-serialize-volatile" options.
6026 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
6028         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
6029         (nested_function): Likewise.
6030         (notype_nested_function): Likewise.
6032 2003-05-21  Nick Clifton  <nickc@redhat.com>
6034         * config/stormy16/stormy-abi: Update overflow type for
6035         R_XSTORMY16_16 reloc.
6037 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
6039         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
6040         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
6041         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
6042         * print-tree.c (print_node): Remove ambient-boundedness.
6043         * tree.h (tree_common): Remove bounded_flag.
6044         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
6045         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
6046         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
6047         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
6048         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
6049         Remove.
6050         (TYPE_QUALS): Remove BOUNDED.
6051         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
6052         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
6053         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
6054         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
6055         VA_LIST_POINTER_DEPTH): Remove.
6056         (struct tree_type): Remove pointer_depth.
6058 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6060         * c-pretty-print.c (pp_c_integer_literal): Use
6061         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
6063 2003-05-20  Roger Sayle  <roger@eyesopen.com>
6064             Kazu Hirata  <kazu@cs.umass.edu>
6065             Joern Rennecke  <joern.rennecke@superh.com>
6067         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
6068         setcc and jump, if they exist.  If substituted instruction
6069         fails to validate, store current effort in a REG_EQUAL note.
6070         (cprop_insn): Don't attempt further substitutions if the
6071         current instruction has been deleted.
6072         (local_cprop_pass): Likewise.
6074         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
6075         one is attached to the jump instruction.
6076         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
6078 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
6080         PR c++/9738
6081         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
6082         even if not first.
6084 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6086         * genautomata.c (output_description, output_automaton_units,
6087         output_state_arcs): Add missing specifiers.
6089 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
6091         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
6092         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
6093         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
6094         (nsau): Rename to do_nsau.  Provide alternate version for use when
6095         the NSAU instruction is available.
6096         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
6097         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
6098         * config/xtensa/xtensa-config.h: Update comments to match binutils.
6099         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
6100         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
6101         (TARGET_ABS, TARGET_ADDX): Define.
6102         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
6103         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
6104         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
6105         *subx8): Set predicate condition to TARGET_ADDX.
6106         (abssi2): Set predicate condition to TARGET_ABS.
6107         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
6108         "-maddx", and "-mno-addx" options.
6109         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
6111 2003-05-20  Kevin Ryde <user42@zip.com.au>
6112             Wolfgang Bangerth <bangerth@dealii.org>
6114         PR/10355
6115         * doc/extend.texi: Put a warning into the documentation
6116         of attribute regparm.
6118 2003-05-20  Jason Merrill  <jason@redhat.com>
6120         * tree.c (expr_last): New fn.
6121         * tree.h: Declare it.
6122         * objc/objc-act (expr_last): Rename to objc_expr_last.
6124 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
6126         * sh.c (sh_register_move_cost): Add clase for moving between
6127         FP registers and MAC registers.
6129 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
6131         * pa/milli64.S ($$mulI): Fix typo.
6133 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
6135         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
6136         (nonlocal_set_p): Remove initial blank line.
6137         * dwarf2out.c (simple_type_size_in_bits): Likewise.
6138         * et-forest.c (et_forest_create): Likewise.
6139         * explow.c (stabilize): Likewise.
6140         * fix-header.c (write_lbrac): Likewise.
6141         * graph.c (start_fct, node_data): Likewise.
6142         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
6143         * rtlanal.c (global_reg_mentioned_p): Likewise.
6144         * tree.c (bit_position): Likewise.
6146 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
6148         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
6149         -lthread to -lpthread.
6151 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
6153         * c-opts.c (c_common_decode_option): Don't accept dollars
6154         as identifier characters in assembly.
6155         * doc/cpp.texi: Document this.
6157 2003-05-19  Seth Arnold  <sarnold@wirex.com>
6158             Aldy Hernandez  <aldyh@redhat.com>
6160         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
6161         vrsave_size twice.
6163 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
6165         * doc/tm.texi (function_arg): Fix typo.
6167 2003-05-19  Matt Austern  <austern@apple.com>
6169         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
6170         * c-common.h (warn_invalid_offsetof): Declare.
6171         * c-common.c (warn_invalid_offsetof): Define.
6172         * doc/invoke.texi: Document -Winvalid-offsetof.
6173         * testsuite/g++.dg/other/offsetof3.C: New.
6174         * testsuite/g++.dg/other/offsetof4.C: New.
6176 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
6177             David Edelsohn  <edelsohn@gnu.org>
6179         * config/rs6000/rs6000.c (rs6000_alignment_string,
6180         rs6000_alignment_flags): New variables.
6181         (rs6000_parse_alignment_option): New function.
6182         (rs6000_override_options): Call it.
6183         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
6184         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
6185         macros.
6186         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
6187         natural alignment if TARGET_NATURAL_ALIGNMENT
6188         (ROUND_TYPE_ALIGN): Always use default record alignment if
6189         TAGET_NATURAL_ALIGNMENT.
6190         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
6191         (ROUND_TYPE_ALIGN): Same.
6192         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
6193         (ROUND_TYPE_ALIGN): Same.
6194         * doc/invoke.texi (Option Summary, PowerPC Options): Document
6195         new options.
6197 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
6199         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
6200         of a function using ASMSPEC, prepend a star.
6202 2003-05-19  Jason Merrill  <jason@redhat.com>
6204         * tree-inline.c (copy_body_r): Avoid generating &* during inline
6205         substitution.
6207 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
6209         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
6210         not mark assignments to the hard frame pointer as being stack
6211         frame related.
6212         (xstormy16_expand_epilogue): Mark adjustments to the stack
6213         pointer as being stack frame related.
6215 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6217         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
6218         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
6219         (PREDICATE_CODES): Add hilo_operand.
6220         * config/mips/mips.c (hilo_operand): New predicate.
6221         (mips_adjust_insn_length): Account for the number nops that might
6222         be needed to avoid hardware hazards.
6223         * config/mips/mips.md (dslot): Remove attribute.
6224         (hazard): New attribute.
6225         (can_delay): Use it.  Check for calls, branches & jumps.
6226         (muldi3): Use the standard dmult pattern for mips16 code.
6227         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
6229 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6231         * config/mips/mips-protos.h (final_prescan_insn,
6232         mips_count_memory_refs, mips_fill_delay_slot): Remove.
6233         * config/mips/mips.h (delay_type, dslots_load_total,
6234         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
6235         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
6236         mips_load_reg3, mips_load_reg4): Remove.
6237         (MASK_STATS): Remove.
6238         (MASK_EXPLICIT_RELOCS): Reuse its value.
6239         (TARGET_STATS): Remove.
6240         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
6241         Warn that -mstats is now ignored.
6242         (FINAL_PRESCAN_INSN): Undefine.
6243         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
6244         (ASM_OUTPUT_REG_POP): Likewise.
6245         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
6246         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
6247         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
6248         mips_fill_delay_slot, mips_count_memory_refs,
6249         final_prescan_insn): Remove.
6250         (output_block_move): Remove calls to mips_count_memory_refs.
6251         (print_operand): Remove printing of #nop for TARGET_STATS.
6252         (mips_output_function_epilogue): Remove TARGET_STATS code.
6253         Reorganize setting of fnnmae.
6254         * config/mips/mips.md: Remove handling of dslot statistics
6255         throughout file.  Change all fcmp patterns into normal asm
6256         templates, removing calls to mips_fill_delay_slot.
6257         * doc/invoke.texi: Remove documentation of -mstats.
6259 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6261         * config/mips/mips.c (mips_class_max_nregs): Return the number of
6262         words in the mode.
6264 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6266         * config/mips/mips.c (override_options): Disable explicit
6267         relocs for old ABIs unless using gas.
6269 2003-05-18  Eric Christopher  <echristo@redhat.com>
6271         * config/mips/mips.h: Remove definition of g_switch_value.
6273 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
6275         * flags.h (g_switch_value): Change to an unsigned
6276         HOST_WIDE_INT.
6277         * toplev.c (g_switch_value): Likewise.
6279         * config/alpha/alpha.c (small_symbolic_operand): Remove
6280         g_switch_value cast.
6281         (alpha_in_small_data_p): Cast size to an unsigned
6282         HOST_WIDE_INT.
6284         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
6285         unsigned HOST_WIDE_INT.
6286         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
6287         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
6289         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
6290         unsigned HOST_WIDE_INT.
6291         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6292         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
6293         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
6295         * config/rs6000/rs6000.c (rs6000_file_start): Use
6296         HOST_WIDE_INT_PRINT_UNSIGNED.
6297         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
6298         (rs6000_elf_in_small_data_p): Cast size to unsigned
6299         HOST_WIDE_INT.
6300         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
6301         Remove.
6302         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
6303         g_switch_set.
6304         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
6305         g_switch_value cast.
6307 2003-05-18  Roger Sayle  <roger@eyesopen.com>
6308             Zack Weinberg  <zack@codesourcery.com>
6310         PR middle-end/10472
6311         * builtins.c (expand_builtin_memcpy):  Call force_operand on
6312         expressions and use simplify_gen_binary to create the addition.
6314 2003-05-18  Andreas Schwab  <schwab@suse.de>
6316         * config/m68k/m68k.md: Use define_constants for unspec numbers.
6318 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
6320         * config/sparc/sparc.h: Define sparc for now.
6322 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
6324         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
6326         * config/stormy16/stormy16.h: Remove about 3000 lines of
6327         target-independent comments.  Update copyright notice.
6329         * doc/collect2.texi: GNU CC -> GCC.
6330         * doc/headerdirs.texi: GNU CC -> GCC.
6332 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
6334         * hashtable.h (struct ht_identifier): Add data member "hash_value".
6335         * hashtable.c (ht_lookup): Use it when searching, remember.
6336         (ht_expand): Do not recompute.
6337         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
6339 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
6341         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
6343 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
6345         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
6346         Default here.
6347         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
6348         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
6349         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
6350         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
6351         config/arm/linux-elf.h, config/arm/rtems-elf.h,
6352         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
6353         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
6354         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
6355         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
6356         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
6357         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
6358         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
6359         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
6360         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
6361         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
6362         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
6363         Don't define __ELF__.
6364         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
6365         Define __ELF__.
6366         * doc/cpp.texi: Document __ELF__.
6367         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
6369 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6371         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
6372         always use stdarg.
6373         * c-errors.c (pedwarn_c99): Likewise.
6374         * c-format.c (status_warning): Likewise.
6375         * c-semantics.c (build_stmt): Likewise.
6376         * calls.c (emit_library_call, emit_library_call_value): Likewise.
6377         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
6378         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
6379         * diagnostic.c (build_message_string, output_printf,
6380         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
6381         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
6382         error_with_decl, fnotice): Likewise.
6383         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
6384         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
6385         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
6386         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
6387         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6388         dw2_asm_output_encoded_addr_rtx): Likewise.
6389         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
6390         * errors.c (warning, error, fatal, internal_error): Likewise.
6391         * final.c (output_operand_lossage, asm_fprintf): Likewise.
6392         * fix-header.c (fatal): Likewise.
6393         * gcc.c (fatal, error, notice): Likewise.
6394         * gcov.c (fnotice): Likewise.
6395         * genattrtab.c (attr_rtx, attr_printf): Likewise.
6396         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
6397         * gensupport.c (message_with_line): Likewise.
6398         * mips-tfile.c (fatal, error): Likewise.
6399         * protoize.c (notice): Likewise.
6400         * ra-debug.c (ra_debug_msg): Likewise.
6401         * read-rtl.c (fatal_with_file_and_line): Likewise.
6402         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
6403         * tree.c (build, build_nt, build_function_type_list): Likewise.
6405 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6407         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
6408         * gcc.c (cpp_predefines): Remove.
6409         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
6410         (static_specs): Remove predefines.
6411         * system.h: Poison CPP_PREDEFINES.
6412         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
6413         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
6415 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6417         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
6418         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
6419         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
6420         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
6422 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6424         PR c/9209
6425         * c-common.c, c-common.h (dollars_in_ident): Remove.
6426         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
6427         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
6428         * cpphash.h (warned_dollar): Rename warn_dollars.
6429         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
6430         Permit dollars regardless of -std=.
6431         (post_options): Set warn_dollars.
6432         * cpplex.c (forms_identifier_p): Use warn_dollars.
6433         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
6434         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
6435         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
6436         Update documentation.
6438 2003-05-17  Andreas Schwab  <schwab@suse.de>
6440         * config/m68k/m68k.c (m68k_output_function_prologue): Use
6441         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
6442         formatting a HOST_WIDE_INT.
6443         (m68k_output_function_epilogue): Likewise.
6445 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
6447         * doc/install.texi: Remove information about desupported targets.
6449 2003-05-17  Andreas Schwab  <schwab@suse.de>
6451         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
6452         * config/m68k/linux.h: Likewise.
6453         * config/m68k/m68k-none.h: Likewise.
6454         * config/m68k/netbsd-elf.h: Likewise.
6455         * config/m68k/sgs.h: Likewise.
6456         * config/m68k/m68k.h: Likewise.
6457         * config/m68k/m68k.md: Likewise.
6458         * config/m68k/m68k.c: Likewise.
6459         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
6460         constraints.
6461         * doc/invoke.texi (Option Summary): Remove -mfpa.
6462         (M680x0 Options): Likewise.
6464 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
6466         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
6468 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6470         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
6471         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
6472         config/sparc/rtemself.h, config/sparc/sol2-64.h,
6473         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
6474         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
6476 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6478         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
6479         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
6481 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6483         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
6484         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
6485         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
6486         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
6487         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
6488         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
6489         sparc/sysv4.h,
6490         * sparc/sysv4-only.h: New.
6492 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
6494         * function.c (assign_parms): Check for zero size args.
6496 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6498         * cfgloopanal.c (test_for_iteration): Use string concatentation on
6499         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6500         function calls into one.
6501         * dbxout.c (dbxout_symbol): Likewise.
6502         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
6503         * dwarf2asm.c (dw2_asm_output_data_uleb128,
6504         dw2_asm_output_data_sleb128): Likewise.
6505         * genrecog.c (debug_decision_2): Likewise.
6506         * loop.c (emit_prefetch_instructions): Likewise.
6507         * print-rtl.c (print_rtx): Likewise.
6508         * print-tree.c (print_node_brief, print_node): Likewise.
6509         * ra-debug.c (dump_igraph, dump_graph_cost,
6510         dump_static_insn_cost): Likewise.
6511         * ra-rewrite.c (dump_cost): Likewise.
6512         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6513         * sreal.c (dump_sreal): Likewise.
6514         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
6515         * varasm.c (assemble_vtable_entry): Likewise.
6517         * avr.c (avr_output_function_prologue,
6518         avr_output_function_epilogue, print_operand): Fix format specifier
6519         warnings.
6520         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
6521         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
6523 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
6525         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
6526         and ! TARGET_STRING cases.
6528         * doc/cppopts.texi (-undef): Fix texinfo warning.
6530         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
6531         * cppfiles.c (validate_pch): When -H is used, print some information
6532         about PCH files found.
6534 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6536         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
6537         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
6538         * config/mips/t-sr71k: Likewise.
6540 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6542         * arc.c (arc_output_function_prologue,
6543         arc_output_function_epilogue): Fix format specifier warnings.
6544         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
6546         * v850.c (print_operand): Fix format specifier warnings.
6548         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
6549         specifier warnings.
6551         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
6552         format specifier warnings.
6554         * ip2k.c (function_prologue, function_epilogue, print_operand):
6555         Fix format specifier warnings.
6556         * ip2k.md: Likewise.
6558         * i960.c (i960_output_function_prologue, i960_print_operand,
6559         i960_print_operand_addr): Fix format specifier warnings.
6561         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
6562         (i370_output_function_prologue): Fix format specifier warnings.
6563         * i370.h (PRINT_OPERAND): Likewise.
6565         * fr30.c (fr30_print_operand): Fix format specifier warnings.
6567         * dsp16xx.c (print_operand_address): Fix format specifier warning.
6568         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
6570         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
6571         specifier warnings.
6573         * alpha.c (print_operand_address, alpha_start_function,
6574         unicosmk_output_ssib): Use string concatentation on
6575         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6576         function calls into one.
6577         * arm.c (arm_print_operand): Likewise.
6578         * cris.c (cris_asm_output_mi_thunk): Likewise.
6579         * frv.c (frv_asm_output_mi_thunk): Likewise.
6580         * ia64.c (ia64_print_operand, process_set): Likewise.
6581         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
6582         Likewise.
6583         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
6584         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6585         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
6586         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
6587         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
6588         * s390.c (s390_assemble_integer): Likewise.
6589         * sparc.c (sparc_flat_function_prologue,
6590         sparc_flat_function_epilogue): Likewise.
6591         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
6592         * vax.c (vax_output_mi_thunk): Likewise.
6594         * frv.c (frv_print_operand_memory_reference): Fix format specifier
6595         warning.
6596         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
6598         * m68k.c (m68k_output_function_epilogue): Fix format specifier
6599         warnings.
6601         * stormy16-protos.h (xs_hi_general_operand,
6602         xs_hi_nonmemory_operand): Prototype.
6603         * stormy16.c (xstormy16_output_shift): Fix format specifier
6604         warnings.
6606         * cris.c: Fix format specifier warnings.
6608 2003-05-16  Nick Clifton  <nickc@redhat.com>
6610         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
6612 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
6614         * doc/bugreport.texi: Remove most of the of the preface of the
6615         bugs section.
6617 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
6619         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
6620         .save XX, r0.
6622 2003-05-15  Roger Sayle  <roger@eyesopen.com>
6624         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
6626 2003-05-15  Eric Christopher  <echristo@redhat.com>
6628         * cfgcleanup.c (merge_blocks): Fix return value.
6630 2003-05-15 Eric Christopher <echristo@redhat.com>
6632         * combine.c (expand_compound_operation): Make sure
6633         that zero_extend operation is profitable.
6635 2003-05-15  Richard Henderson  <rth@redhat.com>
6637         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
6638         code protected by USE_GNULIBC_1.
6640 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
6642         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
6643         remove hppa*-*-mpeix* which could not be built, and prune
6644         files from tmake_file= or tm_file= lists that don't exist.
6646         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
6647         * config/alpha/t-interix, config/arm/conix-elf.h
6648         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
6649         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
6650         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
6651         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
6652         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
6653         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
6654         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
6655         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
6656         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
6657         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
6658         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
6659         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
6660         * config/m68k/tower-as.h, config/m68k/tower.h
6661         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
6662         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
6663         * config/m88k/m88k-protos.h, config/m88k/m88k.c
6664         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
6665         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
6666         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
6667         * config/mips/rtems64.h, config/mips/sni-gas.h
6668         * config/mips/sni-svr4.h, config/mips/t-ecoff
6669         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
6670         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
6671         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
6672         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
6673         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
6674         * config/romp/romp-protos.h, config/romp/romp.c
6675         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
6676         * config/rs6000/aix3newas.h, config/rs6000/mach.h
6677         * config/sparc/bsd.h, config/sparc/hal.h
6678         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
6679         * config/sparc/lynx.h, config/sparc/netbsd.h
6680         * config/sparc/sp86x-aout.h, config/sparc/splet.h
6681         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
6682         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
6683         * config/sparc/t-halos, config/sparc/t-sparcbare
6684         * config/sparc/t-splet, config/sparc/t-sunos41
6685         * config/v850/rtems.h: Delete file.
6687 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
6689         * config/rs6000/rs6000-protos.h (function_value): Protoize.
6691         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
6693         * config/rs6000/rs6000.c (rs6000_function_value): New.
6695 2003-05-15  Philip Blundell  <philb@gnu.org>
6697         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
6698         All uses updated.
6699         (arm_tune_xscale): New variable.
6700         (arm_override_options): Set it.
6701         (arm_adjust_cost): Use it in place of arm_arch_xscale.
6702         (arm_gen_load_multiple): Likewise.
6703         (arm_gen_store_multiple): Likewise.
6704         * config/arm/arm.md (is_xscale): Likewise.
6705         * config/arm/arm.h (arm_tune_xscale): Declare.
6707 2003-05-15  Philip Blundell  <philb@gnu.org>
6709         PR target/10730
6710         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
6711         involving invalid constants.
6713 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6715         * pa.c (hppa_expand_prologue): Remove blockage.
6717 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
6719         * doc/bugreport.texi: Remove most of the bug reporting
6720         instructions and merge them into bugs.html.
6722 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
6724         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
6725         g_switch_value to unsigned HOST_WIDE_INT.
6727 2003-05-14  Eric Christopher  <echristo@redhat.com>
6729         * combine.c: Fix header comments.
6730         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
6731         to all calls and prototype.
6733 2003-05-14  Roger Sayle  <roger@eyesopen.com>
6735         PR optimization/10764
6736         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
6737         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
6738         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
6739         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
6740         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
6741         the corresponding *fyl2x_?fxf3 instructions.
6743 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
6745         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
6746         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
6747         XCHAL_HAVE_L32R): New.
6748         * config/xtensa/xtensa-protos.h (non_const_move_operand,
6749         xtensa_load_constant, xtensa_function_prologue,
6750         xtensa_function_epilogue): Delete prototypes.
6751         (xtensa_expand_prologue): New.
6752         * config/xtensa/xtensa.c (frame_size_const,
6753         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
6754         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
6755         xtensa_function_prologue): Delete.
6756         (add_operand, xtensa_mem_offset): Formatting.
6757         (move_operand): If the const16 option is available, allow any SFmode
6758         and SImode constants.
6759         (xtensa_emit_move_sequence): Inline the former contents of
6760         xtensa_load_constant with modifications to handle the const16 option.
6761         (override_options): Add xtensa_char_to_class['W'] and set it to
6762         the general register class only if the const16 option is enabled.
6763         Fix formatting.  Disallow PIC when using the const16 option.
6764         (print_operand): Reorganize to switch on "letter" instead of the
6765         RTL code.  Add output_operand_lossage calls for invalid cases.
6766         Add support for 't' and 'b' letters.
6767         (xtensa_expand_prologue): New function to replace
6768         xtensa_function_prologue and xtensa_reorg.
6769         (xtensa_function_epilogue): Declare this as static.  Delete code
6770         to print the retw.n or retw instruction.
6771         (xtensa_return_addr): Use A0_REG instead of 0.
6772         (xtensa_rtx_costs): Add costs for using the const16 option.
6773         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
6774         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
6775         (TARGET_SWITCHES): Add "const16" and "no-const16".
6776         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
6777         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
6778         using the const16 option.
6779         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
6780         (TRAMPOLINE_SIZE): Change from 49 to 59.
6781         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
6782         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
6783         when using the const16 option.
6784         (PREDICATE_CODES): Delete non_const_move_operand.
6785         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
6786         UNSPECV_ENTRY.
6787         (movdi, movdf): If the source is a constant, always expand to a
6788         sequence of movsi insns.
6789         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
6790         (movsi_internal, movsf_internal): Add alternative using const16 insns.
6791         (movsf): Add const16 support.
6792         (entry, prologue, epilogue): New.
6793         (set_frame_ptr): Add missing mode for unspec_volatile operation.
6794         Likewise for subsequent split pattern.
6795         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
6796         "-mconst16" and "-mno-const16" options.
6798 2003-05-14  Richard Henderson  <rth@redhat.com>
6800         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
6801         to be DImode register.  Merge load_symptr.
6802         * config/ia64/ia64.md (load_symptr): Remove.
6804 2003-05-14  Richard Henderson  <rth@redhat.com>
6806         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
6807         DEFERRED_CONSTANT_P.
6808         * integrate.c (copy_rtx_and_substitute): Update use.
6809         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
6810         to the copy generated.
6811         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
6812         of the constant to see if we should emit.
6813         (mark_constant): Similarly.
6814         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
6816 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
6818         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
6819         move record condition.
6820         (movdi_internal2): Same.
6822 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
6824         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
6825         (GCOV_TAG_*) Force type to gcov_unsigned_t.
6826         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
6827         (struct gcov_var): Remove modified. Add start, length, offset,
6828         overread. Have buffer array for libgcov.
6829         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
6830         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
6831         * gcov-io.c (gcov_open): Set mode, do not read anything.
6832         (gcov_close): Write final block.
6833          (gcov_write_block, gcov_allocate): New.
6834         (gcov_write_bytes): Make static. Write or allocate buffer.
6835         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
6836         null.
6837         (gcov_write_string): Adjust.
6838         (gcov_write_tag)
6839         (gcov_write_length): Adjust. Flush the block.
6840         (gcov_write_tag_length): Buffer can never be null.
6841         (gcov_read_bytes): Make static. Read in block.
6842         (gcov_sync): Moved here. Adjust.
6843         (gcov_seek): Moved here. Adjust.
6844         * coverage.c (read_counts_file): Adjust.
6845         * gcov-dump.c (print_prefix): Add position parameter.
6846         (flag_dump_positions): New flag.
6847         (options, main, print_usage): Add it.
6848         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
6849         tag_summary): Adjust.
6850         * gcov.c (read_graph_file, read_count_file): Adjust.
6851         * libgcov.c (gcov_exit): Adjust.
6853         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
6854         (libgcov.a): Depend on libgcc.a.
6855         (gcov.o, gcov-dump.o): Add gcov-io.c.
6856         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
6858         * loop.c (check_dbra_loop): Factor common test.
6860 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
6862         * doc/md.texi (Automaton pipeline description): Grammar fixes.
6864 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
6866         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
6867         (TARGET_INITIALIZER): Include it.
6868         * target.h (struct gcc_target): Add machine_dependent_reorg field.
6869         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
6870         * system.h: Poison MACHINE_DEPENDENT_REORG.
6872         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
6873         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
6874         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6875         (alpha_handle_trap_shadows): Remove "first insn" parameter.
6876         (alpha_align_insns): Likewise.
6877         (alpha_reorg): Likewise.  Make static.  Update calls to above
6878         functions.
6880         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
6881         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
6882         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6883         (arm_reorg): Remove parameter.  Make static.
6885         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
6886         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
6887         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6888         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
6889         Remove parameter.
6891         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
6892         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
6893         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6894         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
6895         Remove parameter.
6897         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
6898         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
6899         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
6901         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
6902         * config/frv/frv.c: Remove orphaned comment.
6904         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
6905         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
6906         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6907         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
6908         Remove parameter.
6910         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
6911         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
6912         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6913         (emit_insn_group_barriers): Remove "first insn" parameter.
6914         (emit_all_insn_group_barriers): Likewise.
6915         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
6916         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
6918         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
6919         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
6920         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6921         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
6922         Remove parameter.
6924         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
6925         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
6926         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6927         (m68hc11_reorg): Make static.  Remove parameter.
6929         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
6930         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
6931         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6932         (conditionalize_optimization): Remove parameter.
6933         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
6934         Make static.  Update call to conditionalize_optimization.
6936         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
6937         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
6938         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6939         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
6940         Make static.
6942         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
6943         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
6944         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6945         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
6946         Remove parameter.
6948         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
6949         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
6950         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6951         (pa_combine_instructions): Remove "first insn" parameter.
6952         (remove_useless_addtr_insns): Likewise.
6953         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
6955         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
6956         commented-out definition.
6958         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
6959         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
6960         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6961         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
6962         Remove parameter.
6964         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
6965         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
6966         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6967         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
6968         Remove parameter.
6969         (sh_output_mi_thunk): Call sh_reorg directly.
6970         * config/sh/sh.md: Update comment.
6972         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
6973         commented-out definition.
6975         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
6976         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
6977         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6978         (v850_reorg): Make static.  Remove parameter.
6980         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
6981         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
6982         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6983         (xtensa_reorg): Make static.  Remove parameter.
6985         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
6986         (TARGET_MACHINE_DEPENDENT_REORG): Document.
6988 2003-05-13  Richard Henderson  <rth@redhat.com>
6990         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
6991         the old decl had instantiated DECL_RTL.
6993 2003-05-13  Mike Stump  <mrs@apple.com>
6995         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
6997 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
6999         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
7000         HOST_WIDE_INT argument.
7002 2003-05-13  Jason Merrill  <jason@redhat.com>
7004         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
7006         * tree.c (iterative_hash_expr): New fn.
7008         * c-semantics.c (emit_local_var): Don't mess with temp slots if
7009         there's no initializer.
7011 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
7013         * final.c (final_scan_insn): Apply the effects of frame-related
7014         delay slot insns before emitting a delayed branch.
7016 2003-05-13  Nick Clifton  <nickc@redhat.com>
7018         * config/mcore/mcore.md (jump): Use emit_jump_insn.
7020 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7022         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
7023         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
7025 2003-05-12  DJ Delorie  <dj@redhat.com>
7027         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
7028         (emit_push_insn): Don't use push when the source alignment is less
7029         than the stack's push rounding.
7031 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
7033         * diagnostic.c (output_format): Add support for %m.
7034         (output_printf, output_verbatim, diagnostic_set_info,
7035         verbatim): Set err_no field of the text_info structure being
7036         initialized.
7037         (fatal_io_error): Delete function.
7038         * diagnostic.h (text_info): Add err_no field.
7039         * toplev.h (fatal_io_error): Delete prototype.
7041         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
7042         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
7043         * objc/objc-act.c: Replace all calls to fatal_io_error with
7044         calls to fatal_error; add ": %m" to the end of all the affected
7045         error messages.
7047 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
7049         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
7050         * rtl.h: Prototype it.
7051         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
7052         when appropriate.
7054 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7056         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
7057         ("*iorsi3_oi"): Likewise.
7059 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
7061         * arm.md (compare_scc): Use shorter sequence for EQ case.
7062         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
7063         (and_scc_scc): Ensure split only applies when there is a dominance
7064         of the comparisons.
7065         (and_scc_scc_nodom): New insn-and-split pattern.
7067 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
7069         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
7070         to _Unwind_SetGRPtr().
7072 2003-05-13  Michael Eager <eager@mvista.com>
7074         * Makefile.in: Initialize program_transform_cross_name from
7075         @program_transform_name@ instead of target_alias.
7077 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
7078             Alan Modra  <amodra@bigpond.net.au>
7079             Jakub Jelinek  <jakub@redhat.com>
7081         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
7082         * configure: Rebuild.
7083         * config/rs6000/rs6000-protos.h: Update.
7084         * config/rs6000/rs6000.c (rs6000_tls_size): New.
7085         (rs6000_tls_size_string): New.
7086         (rs6000_parse_tls_size_option): New.
7087         (rs6000_legitimize_tls_address): New.
7088         (rs6000_tls_get_addr): New.
7089         (rs6000_got_sym): New.
7090         (rs6000_tls_symbol_ref): New.
7091         (rs6000_tls_symbol_ref_1): New.
7092         (rs6000_get_some_local_dynamic_name): New.
7093         (rs6000_get_some_local_dynamic_name_1): New.
7094         (TARGET_HAVE_TLS): New.
7095         (TARGET_CANNOT_FORCE_CONST_MEM): New.
7096         (rs6000_override_options): Handle -mtls-size option.
7097         (constant_pool_expr_1): Handle TLS symbols.
7098         (rs6000_legitimize_address): Handle TLS symbols.
7099         (rs6000_tls_referenced_p): New.
7100         (rs6000_legitimate_address): Handle TLS symbols.
7101         (rs6000_emit_move): Handle TLS symbols.
7102         (print_operand): Handle TLS symbols.
7103         (uses_TOC): Handle TLS symbols.
7104         (rs6000_emit_prologue): Use symbol for unspec constant.
7105         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
7106         (some_ld_name): New.
7107         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
7108         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
7109         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
7110         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
7111         Support TLS.
7112         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
7113         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
7114         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
7115         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
7116         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
7117         tls_tls_64): New.
7118         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
7120 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
7122         * Makefile.in (stage2_build, stage3_build, stage4_build):
7123         Set BUILD_CC to the same as CC.
7125 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
7127         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
7129 2003-05-12  Andreas Schwab  <schwab@suse.de>
7131         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
7132         as unused.
7133         (bundling): Initialize 'pos'.
7134         (ia64_expand_builtin): Initialize 'rmode'.
7136 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
7138         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
7139         (ASM_OUTPUT_ALIGNED_COMMON): Same.
7140         (ASM_OUTPUT_LOCAL): Same.
7142 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
7144         * varasm.c (output_constant):  Fix underflow.
7146 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
7148         PR other/10745
7149         * configure.in: Correct detection of GNU ld version number.
7150         * configure: Regenerated.
7152 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
7154         * diagnostic.c (diagnostic_for_decl): Take a
7155         diagnostic_context argument.  Restructure to be consistent
7156         with diagnostic_report_diagnostic.
7157         (diagnostic_count_diagnostic): Now static.  Take a
7158         diagnostic_info argument, not just a diagnostic_t.  Some code
7159         moved here from internal_error.  Move a case label for
7160         clarity.
7161         (diagnostic_action_after_output): New function.  Code moved
7162         here from internal_error and fatal_error.
7163         (bug_report_request): New #define so that this text appears in
7164         only one place.
7165         (diagnostic_report_diagnostic): Update to match changes to
7166         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
7167         (diagnostic_set_info): Call gettext here.
7169         (pedwarn): Update comment.  Don't call gettext here.
7170         (sorry): Use report_diagnostic.  Don't call gettext here.
7171         (fatal_error): Remove final fnotice and exit, but call
7172         real_abort to prevent warnings about noreturn function returning.
7173         (internal_error): Likewise.  Don't do ICE suppression here nor
7174         call context->internal_error.
7175         (warning_with_decl): Suppress for decls in system headers.
7176         Adjust call to diagnostic_for_decl.
7177         (pedwarn_with_decl): Likewise.
7178         (error_with_decl): Adjust call to diagnostic_for_decl.
7179         (error_recursion): Use bug_report_request.
7181         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
7182         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
7183         diagnostic_count_diagnostic.
7185 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7187         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
7189 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
7191         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
7192         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
7193         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
7195 2003-05-12  Roger Sayle  <roger@eyesopen.com>
7197         * doc/rtl.texi: Document zero_extract as a valid destination
7198         of a set insn.
7200 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
7202         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
7203         '.'.  Change all local symbol definitions and references to use LSYM.
7205 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
7207         * expr.h (assemble_static_space): Update prototype.
7208         * output.h (assemble_zeros, output_constant): Likewise.
7209         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
7210         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
7211         it 64bit clean.
7212         * elf.h (ASM_OTUPUT_SKIP): Likewise.
7213         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
7214         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7215         Expect HOST_WIDE_INT operand.
7216         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7217         Expect HOST_WIDE_INT operand.
7218         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7219         Expect HOST_WIDE_INT operand.
7220         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
7221         HOST_WIDE_INT operand.
7222         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
7223         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
7224         * aout.h (ASM_OTUPUT_SKIP): Likewise.
7225         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7226         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
7227         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
7228         * frv.h (ASM_OTUPUT_SKIP): Likewise.
7229         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
7230         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7231         Make it 64bit
7232         clean.
7233         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
7234         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7235         Make it 64bit clean.
7236         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
7237         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
7238         HOST_WIDE_INT operand
7239         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7240         Expect HOST_WIDE_INT operand
7241         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
7242         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
7243         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
7244         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7245         Likewise.
7246         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
7247         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7248         Likewise.
7249         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7250         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7251         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7252         ASM_OUTPUT_SKIP): Likewise.
7253         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7254         Likewise.
7255         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7256         ASM_OUTPUT_SKIP): Likewise.
7257         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7258         ASM_OUTPUT_SKIP): Likewise.
7259         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7260         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7261         ASM_OUTPUT_SKIP): Likewise.
7262         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
7263         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7264         ASM_OUTPUT_SKIP): Likewise.
7265         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
7266         Likewise.
7267         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
7268         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
7269         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7270         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7271         ASM_OUTPUT_SKIP): Make it 64bit clean.
7272         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
7273         Make it 64bit clean.
7274         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
7275         ASM_OUTPUT_SKIP): Make it 64bit clean.
7276         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
7277         64bit clean.
7278         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7279         HOST_WIDE_INT argument
7280         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
7281         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7282         HOST_WIDE_INT argument
7283         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7284         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
7285         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7286         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7287         HOST_WIDE_INT argument
7288         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7289         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7290         * varasm.c (asm_output_bss, asm_output_aligned_bss,
7291         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
7292         HOST_WIDE_INT argument
7294 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
7296         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
7297         favor of walk_tree_without_duplicates.  Add comments.
7299 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
7301         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
7302         (struct alloc_pool_def): New element 'id'.
7303         * alloc-pool.c (fancy_abort): Extern function prototype.
7304         (abort): Macro which uses fancy_abort.
7305         (struct allocation_object_def): New structure.
7306         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
7307         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
7308         (last_id): New variable.
7309         (create_alloc_pool): Add the offset of u.data to size of element,
7310         increase and use last_id.
7311         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
7312         (pool_alloc): Likewise. Set ID for elements.
7313         (pool_free): Check whether the PTR was allocated from POOL.
7315 2003-05-11  Richard Henderson  <rth@redhat.com>
7317         PR c/10675
7318         * c-decl.c: Include hashtab.h.
7319         (detect_field_duplicates): New.
7320         (finish_struct): Use it.
7321         * Makefile.in (c-decl.o): Update.
7322         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
7323         (component_decl_list, component_decl_list2,
7324         components, components_notype): Build list in reverse order.
7325         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
7327         * tree.c (chainon): Special case op2 null as well.
7328         Reorg for clarity.
7330 2003-05-11  Roger Sayle  <roger@eyesopen.com>
7332         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
7333         to implement log, logf and logl built-ins as inline x87 intrinsics.
7334         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
7335         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
7336         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
7338         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
7339         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
7341 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7343         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
7345         * sparc.c (print_operand): Fix uninitialized warning.
7347 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7349         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
7350         real insns.
7351         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
7352         condition.
7354 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
7356         * doc/cpp.texi: Fix typos.
7358 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
7360         * config/s390/s390.c (s390_function_arg_float): New function.
7361         (s390_function_arg_pass_by_reference): Use it.
7362         (s390_function_arg_advance): Likewise.
7363         (s390_function_arg): Likewise.
7364         (s390_va_arg): Likewise
7366 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
7368         * coverage.h (coverage_counter_alloc): New function.
7369         * function.h (struct function): Remove arc_profile flag.
7370         * coverage.c (fn_ident): Remove.
7371         (fn_b_ctrs, no_coverage): New.
7372         (get_coverage_counts): Use current_function_funcdef_no.
7373         (coverage_counter_alloc): New.
7374         (coverage_counter_ref): Adjust.
7375         (coverage_begin_output): Check no_coverage. Use
7376         current_function_funcdef_no.
7377         (coverage_end_function): Likewise.
7378         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
7379         than clearing flag_inline_functions. Do not clear arc_profile
7380         flag.
7381         * function.c (prepare_function_start): Do not set arc_profile
7382         flag.
7383         * profile.c (instrument_edges): Return number of instrumented
7384         edges. Use a for loop.
7385         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
7386         local to here and simplify. Use profile_arc_flag not arc_profile
7387         flag.
7388         (find_spanning_tree): Reformat.
7389         * toplev.c (rest_of_compilation): Use profile_arc_flags and
7390         flag_test_coverage rather than arc_profile flag.
7392 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
7394         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
7396 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7398         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
7400 2003-05-11  Bruno Haible  <bruno@clisp.org>
7402         * cppfiles.c (find_or_create_entry): Preserve errno.
7404 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
7406         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
7407         cpplib as it's a Standard Predefined Macro.
7408         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
7409         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
7410         __STDC_HOSTED__ appropriately.
7411         * cpplib.h (_cpp_init_builtins): Update.
7412         * fix-header.c (read_scan_file): Update.
7413         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
7415 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7417         PR C++/689
7418         PR C++/9257
7419         * c-opts.c (c_common_decode_option): Don't set
7420         warn_ctor_dtor_privacy wen -Wall.
7421         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
7423 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
7425         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
7426         patch.
7428 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
7430         * diagnostic.c: Reorder functions for clarity, putting all the
7431         functions in the "error" family next to each other, and
7432         likewise all the functions in the "error_with_decl" family.
7433         Some other routines were moved too.  Add comments.
7434         (vbuild_message_string): Fold into sole caller.
7437 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
7439         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
7440         (EH_RETURN_HANDLER_RTX): Likewise.
7441         (expand_builtin_eh_return): Do not copy stack adjustment
7442         if EH_RETURN_STACKADJ_RTX is not defined.
7443         (expand_eh_return): Likewise.  Also, do not pass stack
7444         adjustment as argument to the eh_return pattern.
7445         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
7446         because EH_RETURN_STACKADJ_RTX is not defined.
7447         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
7448         is not defined, treat stack pointer like a regular register.
7449         (uw_init_context_1): Set up fake initial stack pointer register.
7450         (uw_install_context_1): Do not compute stack adjustment if
7451         EH_RETURN_STACKADJ_RTX is not defined.
7453         * config/i386/i386.md ("eh_return"): Remove first argument.
7454         * config/mips/mips.md ("eh_return"): Likewise.
7455         * config/rs6000/rs6000.md ("eh_return"): Likewise.
7456         * config/sh/sh.md ("eh_return"): Likewise.
7458         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
7460 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
7462         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
7464 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
7466         * defaults.h (GCOV_TYPE_SIZE): Remove.
7467         * gcov-io.h (gcov_type): Set to specific mode int on target.
7468         (gcov_unsigned_t, gcov_position_t): New.
7469         (GCOV_TYPE_NODE): New.
7470         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
7471         (GCOV_COUNTERS_SUMMABLE): New.
7472         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
7473         gcov_ctr_info, gcov_info): Adjust types.
7474         (gcov_var): Adjust types.
7475         (gcov_write_unsigned, gcov_write_tag,
7476         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7477         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7478         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
7479         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
7480         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7481         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7482         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
7483         __gcov_init, __gcov_merge_add): Adjust gcov types.
7484         * coverage.c (ctr_merge_functions): Constify.
7485         (ctr_names): New.
7486         (read_counts_file): Adjust gcov types. Only summarize & merge
7487         summable counters.
7488         (coverage_counter_ref): Use GCOV_TYPE_NODE.
7489         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
7490         build_ctr_info_value, build_gcov_info): Adjust types.
7491         * profile.c (branch_prob): Adjust gcov types.
7492         * gcov_dump (dump_file): Adjust gcov types.
7494 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
7496         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
7497         constants.
7498         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
7499         * arm.c (arm_select_dominance_cc_mode): Renamed from
7500         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
7501         Callers updated.
7502         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
7504 2003-05-09  Roger Sayle  <roger@eyesopen.com>
7506         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
7507         as unsigned to avoid signed/unsigned comparison warnings.
7509 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
7511         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
7512         instruction if the Xtensa density option is enabled.
7514 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
7516        * mklibgcc.in: Remove extra quotes.
7518 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
7520         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
7521         of int_ftype_void.
7523 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
7525         * reload1.c (reload_cse_move2add): Don't turn an implicit
7526         truncation into a self-set in the narrow mode.
7528 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
7530         * arm.md (clzsi2): The CLZ instruction is predicable.
7532 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
7534         * config/xtensa/xtensa.c: Formatting.
7536 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
7538         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
7539         instead of TREE_OPERAND to access the operand of a
7540         CONSTRUCTOR node.
7542 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
7544         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
7545         one operand.
7547 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
7549         * toplev.h (warning_with_file_and_line): Don't declare.
7550         (error_with_file_and_line): Likewise.
7551         * diagnostic.c (error_with_file_and_line): Remove.
7552         (warning_with_file_and_line): Likewise.
7554 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
7556         * c-parse.in (if_stmt_locus): New object.
7557         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
7558         (select_or_iter_stmt rule): Likewise.
7559         (if_stmt_file): Remove.
7560         (if_stmt_line): Likewise.
7561         * jump.c: include "diagnostic.h"
7562         (never_reached_warning): Don't use warning_with_file_and_line.
7563         * Makefile.in (jump.o): Add dependce on diagnostic.h
7565 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
7567         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
7568         Move code handling pieces not larger than a word to..
7569         * function.c (assign_parms): ..here, but use change_address instead
7570         of adjust_address and operand_subword, and expand_binop instead of
7571         expand_shift.  Adjust calls to move_block_from_reg.
7572         * expr.h (move_block_from_reg): Update declaration.
7573         (copy_blkmode_from_reg): Formatting.
7574         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
7575         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
7576         move_block_from_reg calls.
7577         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7578         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
7579         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7580         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
7581         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7582         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7583         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
7584         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7585         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
7587 2003-05-08  DJ Delorie  <dj@redhat.com>
7589         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
7590         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
7591         variable-sized types).
7592         (xstormy16_function_arg): New.  Pass them that way too.
7593         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
7594         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
7596 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
7598         * mklibgcc.in: Use mkinstalldirs when installing multilib
7599         directories.
7601 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
7603         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
7604         instead of CODE_FOR_jump
7606 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
7608         * objc/objc-act.c (error_with_ivar): Don't use
7609         error_with_file_and_line.
7610         (warn_with_method): Don't use warning_with_file_and_line.
7612 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7614         * stmt.c (emit_locus): New macro.
7615         (emit_filename): Remove.
7616         (emit_lineno): Likewise.
7617         (struct stmt_status): Replace members x_emit_filename and
7618         x_emit_lineno with x_emit_locus.
7619         (set_file_and_line_for_stmt): Adjust.
7620         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
7621         (warn_if_unused_value): Likewise.
7622         (check_seenlabel): Likewise.
7624 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7626         * c-decl.c (define_label): Tidy.  Don't use any of
7627         error_with_file_and_line or warning_with_file_and_file.
7628         (pending_xref_error): Likewise.
7629         (store_parm_decls): Likewise.
7630         (current_function_prototype_locus): New object.  Package from
7631         current_function_prototype_file and current_function_prototype_line.
7632         (start_function): Use it.
7633         (current_function_prototype_file): Remove.
7634         (current_function_prototype_line): Remove;
7636 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7638         * builtins.c (readonly_data_expr): New function.
7639         (expand_builtin_memmove): Optimize any rodata source, not just
7640         strings.
7642 2003-05-07  David Mosberger <davidm@hpl.hp.com>
7644         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
7646 2003-05-07  Richard Henderson  <rth@redhat.com>
7648         * config/i386/i386.c (ix86_split_long_move): Fix base register
7649         mode for XFmode splits for TARGET_64BIT.
7651 2003-05-07  Richard Henderson  <rth@redhat.com>
7653         * sched-ebb.c (schedule_ebb): Supply the correct starting
7654         block number to save_line_notes.
7656 2003-05-07  Richard Henderson  <rth@redhat.com>
7658         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
7659         (dump_file): Likewise.
7661 2003-05-07  David Mosberger <davidm@hpl.hp.com>
7663         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
7664         forget to preserve gp.
7665         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
7667         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
7668         .prologue directive.
7669         Use .skip instead of data8 for .bss section to make Intel
7670         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
7671         explicit in the .mib bundles and remove the unnecessary stop
7672         bits.  Replace local labels with normal labels, to make ias
7673         happy.  Don't register __do_global_ctors_aux here, do it in
7674         crtend.asm instead.
7676         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
7677         __do_global_ctors_aux in .init_array section instead of
7678         declaring it as a hidden global.  Replace local labels with
7679         ordinary labels to make ias happy.
7681 2003-05-07  Richard Henderson  <rth@redhat.com>
7683         PR c++/10570
7684         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
7685         * flags.h, toplev.c, doc/invoke.texi: Likewise.
7687         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
7688         * unwind.inc (_Unwind_DeleteException): Check for null
7689         exception_cleanup.
7691         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
7692         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
7693         * unwind.h: Declare them.
7694         * libgcc-std.ver (GCC_3.3): Export them.
7696 2003-05-07  Richard Henderson  <rth@redhat.com>
7698         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
7699         not _Unwind_Word.
7701 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
7703         * stmt.c (force_label_rtx): New function, based on logic
7704         formerly found in expand_expr.
7705         * expr.h: Prototype it.
7706         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
7707         appropriate.
7708         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
7710         * print-tree.c (debug_tree): Free the table after we're done
7711         with it.  Use putc.
7713 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
7715         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
7716         Unreverse arguments for __ev_subw.
7718         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
7720 2003-05-07  Nick Clifton  <nickc@redhat.com>
7722         * config/stormy16/stormy-abi: Update to include
7723         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
7724         R_XSTORMY16_12 relocs.
7726 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
7728         * function.c (assign_parms): Correct reversed reg_parm_stack_space
7729         test.  Add partial in-regs size to stack_args_size.
7731 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7733         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
7734         as a C only option.
7736 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
7738         * gcov-io.h (GCOV_LOCKED): New #define.
7739         (GCOV_LINKAGE): Make sure it is #defined.
7740         (gcov_write_string, gcov_write_tag, gcov_write_length,
7741         gcov_read_string, gcov_time): Poison in libgcov.
7742         (gcov_seek_end): Remove.
7743         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
7744         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
7745         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
7746         GCOV_TAG_SUMMARY_LENGTH): New #defines.
7747         (gcov_write_tag, gcov_write_length): Not in libgcov.
7748         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
7749         (gcov_write_tag, gcov_write_length): Not in libgcov.
7750         (gcov_write_tag_length): New.
7751         (gcov_write_summary): Use gcov_write_tag_length.
7752         * libgcov.c: Always #include gcov-io.h.
7753         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
7754         (GCOV_LINKAGE): Define to nothing for L_gcov.
7755         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
7756         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
7757         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
7758         (read_count_file): Likewise.
7759         * gcov-dump.c (dump_file): Likewise.
7760         * coverag.c (read_counts_file): Likewise.
7762 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
7764         PR other/10658
7765         * gcc.c (process_command): Update copyright date.
7767 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
7769         * doc/install.texi (mips-*-*):  Add note about libstdc++.
7771 2003-05-06  DJ Delorie  <dj@redhat.com>
7773         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
7774         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
7775         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
7777 2003-05-06    <neil@cat.daikokuya.co.uk>
7779         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
7780         and -Wstrict-prototypes if C++.
7782 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
7784         * config/rs6000/linuxspe.h: New file.
7786         * config.gcc: Add powerpc-*-linux-gnuspe* target.
7788 2003-05-06  Richard Henderson  <rth@redhat.com>
7790         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
7791         previous frame didn't save sp.  Clear sp for next frame.
7792         (uw_install_context_1): Honor saved sp from frame.
7794 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
7796         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
7797         (mips_move_1word, mips_move_2words): Remove declaration.
7798         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
7799         (mips_restore_gp): Remove insn argument.
7800         * config/mips/mips.h (FP_REG_RTX_P): New macro.
7801         * config/mips/mips.c (volatile_buffer): Remove.
7802         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
7803         (mips_move_1word, mips_move_2words): Remove, replacing with...
7804         (mips_output_move): ...this new function.
7805         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
7806         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
7807         handling of floating-point constants.  Handle zero CONST_DOUBLE
7808         arguments.
7809         (mips_annotate_frame_insn): Replace with...
7810         (mips_set_frame_expr): ...this, which just takes one argument.
7811         (mips_frame_set): Change the register argument to an rtx.
7812         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
7813         check whether moves should be split.  Use mips_split_64bit_move
7814         to split them.  Use mips_subword to generate the high and low
7815         parts of a paired FPR.  Adjust calls to frame_set and
7816         mips_set_frame_expr.
7817         (mips_expand_prologue): Simplify due to above changes.
7818         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
7819         targets, replacing xisting register-only versions.
7820         (UNSPEC_STORE_DF_HIGH): New unspec.
7821         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
7822         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
7823         (*paradoxical_extendhidi2): Remove.
7824         (movdi_internal, movdi_internal2): Use mips_output_move.
7825         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
7826         (movsf_internal1, movsf_internal2): Likewise.
7827         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
7828         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
7829         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
7830         Add m <- G alternative.
7831         (load_df_low, load_df_high, store_df_low): New patterns.
7832         (movhi_internal): Use @ template instead of calling a function.
7833         Remove unnecessary 'z' alternatives.
7834         (movqi_internal): Likewise.
7835         (exception_receiver): Update call to mips_restore_gp.
7837 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
7839         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
7840         (mips_delegitimize_address): Declare.
7841         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
7842         (FIND_BASE_TERM): Define.
7843         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7844         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
7845         Handle small-data addresses.
7847 2003-05-05  Roger Sayle  <roger@eyesopen.com>
7849         * real.c (real_powi): New function to calculate the value of
7850         a real raised to an integer power, i.e. pow(x,n) for int n.
7851         (real_sqrt): Convert to using the faster do_add, do_multiply
7852         and do_divide API for consistency with the rest of real.c.
7853         * real.h (real_powi): Prototype here.
7854         * builtins.c (fold_builtin):  Avoid local variable mode when
7855         evaluating sqrt at compile time.  Attempt to evaluate pow at
7856         compile-time, by checking for an integral exponent.
7858 2003-05-05  Richard Henderson  <rth@redhat.com>
7860         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
7862 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
7864         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
7865         other FreeBSD ports.
7866         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
7867         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
7869 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
7871         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
7872         expanded variables.
7873         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
7875 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
7877         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
7878         * varasm.c (struct varasm_status): Add deferred_constants field.
7879         (n_deferred_strings): Delete variable.
7880         (n_deferred_constants): New #define.
7881         (struct constant_descriptor_tree): Kill next and label fields.
7882         (const_hash_table, MAX_HASH_TABLE): Delete.
7883         (const_desc_htab): New static variable.
7884         (const_hash): Rename const_desc_hash, and make it fit the
7885         hashtab.h interface.
7886         (const_desc_eq): New.
7887         (const_hash_1, compare_constant): Const-ify arguments.
7888         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
7889         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
7890         (output_constant_def): Do the lookup/insert using the
7891         hashtab.h interface.  Don't muck with n_deferred_constants or
7892         DEFERRED_CONSTANT_P here.
7893         Always call maybe_output_constant_def_contents.
7894         (maybe_output_constant_def_contents): Take a pointer to the
7895         descriptor, not the EXP and RTL separately.  Return
7896         immediately if this constant is not deferred.  Defer output of
7897         everything, except writable string constants.  Update
7898         n_deferred_constants here.
7899         (output_constant_def_contents): Now takes just one argument,
7900         an rtx.  Clear DEFERRED_CONSTANT_P here.
7901         (mark_constant_pool): Update for rename of n_deferred_strings.
7902         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
7904         (init_varasm_status): Clear p->deferred_constants.
7905         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
7907 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7909         * builtins.c (expand_builtin_stpcpy): Only expand when the length
7910         of the source string can be evaluated at compile-time.
7912 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
7914         * testsuite/gcc.c-torture/compile/simd-6.c: New.
7916         * c-typeck.c (digest_init): Handle arrays of vector constants.
7918 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
7920         * builtins.c (expand_builtin_mempcpy): New function.
7921         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
7922         ignored into strcpy no matter what arguments it has.
7923         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
7924         expand_builtin_mempcpy.
7926 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
7928         * testsuite/gcc.dg/20030505.c: New.
7930         * c-typeck.c (convert_for_assignment): Opaque pointers can
7931         interconvert.
7933         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
7934         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
7935         (spe_init_builtins): Rename all pv2si_type_node to
7936         opaque_p_V2SI_type_node.
7937         Remove declaration of pv2si_type_node.
7938         (is_ev64_opaque_type): Accept opaque pointers.
7940 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
7942         * config/rs6000/rs6000.c (validate_condition_mode): Use
7943         flag_finite_math_only.
7944         (rs6000_reverse_condition): Never return UNKNOWN; use
7945         flag_finite_math_only.
7946         (rs6000_generate_compare): Use flag_finite_math_only.
7947         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
7948         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
7949         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
7951         * toplev.c (check_global_declarations): Suppress not-used warning
7952         for volatile variables.
7954 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
7956         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
7957         usage of bitfield instructions for mode1 != BLKmode, only ignoring
7958         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
7959         (store_field): Likewise.
7961 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
7963         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
7964         evsubifw to builtins accepting 5-bit unsigned constants.
7965         (easy_vector_constant): Return if V1DImode.  Fix typo.
7967 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
7969         * config/rs6000/spe.h: Revert licensing change from last patch.
7971 2003-05-05  DJ Delorie  <dj@redhat.com>
7973         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
7974         before reload, but defer the split until after.
7975         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
7976         to match.
7978 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
7980         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
7981         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
7983 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7985         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
7986         is defined.
7988 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7990         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
7991         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
7992         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
7994         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
7995         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
7996         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
7997         New.
7999         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
8000         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
8002         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
8003         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
8004         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
8005         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
8006         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
8007         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
8008         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
8009         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
8010         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
8011         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
8012         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
8013         BUILT_IN_STRDUP): Add "nonnull" attribute.
8015 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8017         * expr.c (store_field): Don't clobber TEMP in shift: it might be
8018         a variable.
8019         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
8020         whose purpose is to step up the alignment.
8021         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
8023         * stor-layout.c (compute_record_mode): Relax restriction
8024         on fields crossing word boundaries forcing BLKmode.
8026 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
8028         * cppinit.c (cpp_create_reader, post_options): Warn about
8029         trigraphs unless explicity set or -trigraphs.
8030         * cpplex.c (warn_in_comment): New.
8031         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
8032         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
8033         * doc/cppopts.texi, doc/cpp.texi: Update.
8035 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8037         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
8038         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
8039         namespace clash.
8040         (GCOV_MERGE_FUNCTIONS): New.
8041         (gcov_merge_fn): Declare.
8042         (struct gcov_ctr_info): New field "merge".
8043         (__gcov_merge_add): Declare.
8044         * coverage.c (ctr_merge_functions): New.
8045         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
8046         of gcov_ctr_info type.
8047         * libgcov.c (__gcov_merge_add): New.
8048         (gcov_exit): Call a hook to merge values of counters.
8050 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
8052         * toplev.h (pedwarn_with_file_and_line): Don't declare.
8053         * diagnostic.c (pedwarn_with_file_and_line): Remove.
8055 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8057         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
8059 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8061         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
8062         expand_builtin_frame_address): Update prototypes.
8063         (expand_builtin_constant_p, expand_builtin_strlen,
8064         expand_builtin_strcpy, expand_builtin_memset,
8065         expand_builtin_bzero, expand_builtin_args_info,
8066         expand_builtin_frame_address): Pass in just the argument(s)
8067         needed, not the entire expression `exp'.
8068         (expand_builtin): Update all calls to these functions.
8070 2003-05-03  Richard Henderson  <rth@redhat.com>
8072         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
8073         <BUILT_IN_DWARF_SP_COLUMN>: New.
8074         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
8075         (BUILT_IN_DWARF_SP_COLUMN): New.
8076         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
8077         (expand_builtin_dwarf_sp_column): New.
8078         * except.h: Update to match.
8079         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
8080         (execute_cfa_program): Record location expression address
8081         before extracting length.
8082         (uw_update_context_1): Install old CFA into stack pointer column.
8083         (uw_init_context_1): Set cfa_reg to stack pointer column.
8085 2003-05-03  Richard Henderson  <rth@redhat.com>
8087         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
8088         return bool.
8089         (toc_relative_expr_p): Likewise.
8090         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
8091         (legitimate_constant_pool_address_p): Move from rs6000.h, change
8092         into a function, downcase all users.
8093         (legitimate_small_data_p): Likewise.
8094         (legitimate_offset_address_p): Likewise.
8095         (legitimate_indexed_address_p): Likewise.
8096         (legitimate_indirect_address_p): Likewise.
8097         (legitimate_lo_sum_address_p): Likewise.
8098         (rs6000_mode_dependent_address): Likewise.
8099         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
8100         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8101         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
8102         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
8103         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
8104         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
8105         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
8106         * config/rs6000/rs6000-protos.h: Update.
8108 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
8110         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
8111         (REVERSE_CONDITION): Define.
8113         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
8114         to branch_positive_comparison_operator.
8115         (ccr_bit): Check that sCOND conditions are actually a positive bit.
8116         (print_operand): Remove %D substitution.
8117         (rs6000_emit_sCOND): Generate complement operation to ensure that
8118         sCOND input is a positive bit.
8119         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
8120         same order as bCOND, and add the missing ones.  Remove the %D
8121         substitutions from the scc patterns.
8123         * simplify-rtx.c (simplify_relational_operation): Add case for
8124         ! (fabs(x) < 0.0).
8126 2003-05-03  Bruce Korb  <bkorb@gnu.org>
8128         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
8129         in fixincl.x
8130         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
8132 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
8134         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
8136 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
8138         PR c/10604
8139         * c-common.c (warn_sign_compare): Initialize to -1.
8140         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
8141         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
8142         for C++ only.
8143         (c_common_post_options): Set warn_sign_compare from extra_warnings
8144         if it's still -1 at this point.
8146         * toplev.c (maybe_warn_unused_parameter): New static variable.
8147         (set_Wextra): New static function.
8148         (W_options): Remove "extra".
8149         (decode_W_option): Call set_Wextra.
8150         (independent_decode_option): Likewise.
8151         (set_Wunused): Cooperate with set_Wextra in setting
8152         warn_unused_parameter.
8153         (rest_of_compilation): No need to check extra_warnings as
8154         well as warn_uninitialized.
8156         * c-typeck.c (build_binary_op, build_conditional_expr):
8157         No need to check extra_warnings as well as warn_sign_compare.
8158         (internal_build_compound_expr): No need to check extra_warnings
8159         as well as warn_unused_value.
8160         * function.c (expand_function_end): No need to check extra_warnings
8161         as well as warn_unused_parameter.
8162         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
8163         as well as warn_unused_value.
8165         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
8167         * Makefile.in: Disable -Werror for gengtype-lex.o.
8169 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
8171         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
8172         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
8173         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
8174         * calls.c (emit_call_1): Likewise.
8175         (expand_call): For calls initializing constant memory, replace
8176         emission of standalone mem /u clobber with function usage entry.
8177         * expr.c (emit_block_move_via_libcall): Likewise.
8178         * cse.c (count_reg_usage, case EXPR_LIST): New case.
8179         * flow.c (propagate_one_insn): Pass entire operand of
8180         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
8181         * integrate.c (try_constants): For CALL_INSNs, substitute constants
8182         within the FUNCTION_USAGE also.
8183         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
8184         FUNCTION_USAGE lists.
8185         * reload1.c (replace_pseudos_in): Renamed.
8186         (reload): Use it for clobbers surviving until the end of the reload.
8188 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8190         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
8191         gen_lowpart on non-integer modes.
8193         * stor-layout.c (place_field): When adjusting offset_align, use
8194         desired_align, not DECL_ALIGN.
8196 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
8198         * c-decl.c (pending_invalid_xref_file): Remove.
8199         (pending_invalid_xref_line): Remove.
8200         (pending_invalid_xref_location): New.
8201         (lookup_label): Use location_t and input_location directly.
8202         (lookup_tag): Likewise.
8203         (pending_xref_error): Likewise.
8204         (c_expand_body_1): Likewise.
8205         * c-common.c (x_expand_start_cond): Likewise.
8206         * c-semantics.c (genrtl_for_stmt): Likewise.
8207         (find_reachable_label): Likewise.
8208         * expr.c (expand_expr): Likewise.
8209         * integrate.c (output_inline_function): Likewise.
8210         * tree-inline.c (find_alloca_call): Likewise.
8211         (find_builtin_longjmp_call): Likewise.
8212         * gcc.c (input_filename): Make static.
8214 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
8216         * config/mips/mips.md: Fix comment typo.
8218         * config/mips/mips.c (mips_integer_op): New structure.
8219         (MIPS_MAX_INTEGER_OPS): Define.
8220         (mips_const_insns): Use mips_build_integer to determine the number
8221         of instructions needed to load a CONST_INT.
8222         (move_operand): Reject compound CONST_INTs.
8223         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
8224         (mips_move_integer): New fn.
8225         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
8226         (mips_legitimize_move): Only legitimize constants when moving
8227         word or subword values.
8229 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
8231         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
8233 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8235         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
8236         modifying it.
8238 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8239             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8241         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
8242         Hernandez, and Kazu Hirata.  Update Richard Henderson.
8244 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
8246         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
8247         to tentative declaration.
8249         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
8250         (SYMBOL_FLAG_SMALL_V4): Delete.
8251         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
8252         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
8253         (rs6000_elf_in_small_data_p): Add extra section names.  Add
8254         comment about TREE_PUBLIC test.
8256         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
8257         expand_stmt on result of expand_unreachable_stmt.
8259 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8261         * doc/contrib.texi (Contributors): Add Daniel Berlin.
8263 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
8265         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
8266         number of automata.
8268         * config/rs6000/rs6000.c (symbol_ref_operand): Check
8269         SYMBOL_REF_FUNCTION_P on AIX.
8270         (current_file_function_operand): Same.
8271         * config/rs6000/rs6000.md (call,call_value): Force non-function
8272         symbol_ref into register on AIX.
8274 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
8276         * calls.c (struct arg_data): Move offset, slot_offset, size and
8277         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
8278         (initialize_argument_information): Adjust call to locate_and_pad_parm.
8279         Delete alignment_pad var.  Don't calculate slot_offset here.
8280         (emit_library_call_value_1): Delete alignment_pad, offset and size
8281         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
8282         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
8283         partial in-regs here.  Formatting fixes.
8284         * expr.h (struct locate_and_pad_arg_data): New struct.
8285         (locate_and_pad_parm): Adjust declaration.
8286         * function.c (assign_parms): Localize vars.  Use "locate" instead of
8287         other arg location vars.  Don't invoke FUNCTION_ARG or
8288         FUNCTION_INCOMING_ARG unless pretend_named is different from
8289         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
8290         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
8291         Use slot_offset for stack home of reg parms.  Correct test for
8292         parm passed in memory.  Formatting fixes.
8293         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
8294         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
8295         Correct initial_offset_ptr handling.  Localize vars.  Always pad
8296         locate->offset even when in_regs.
8298 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8300         * Makefile.in (TREE_H): Replace location.h with input.h.
8301         (GTFILES) Remove location.h
8302         (gt-lists.h): Replace gt-location.h with gt-input.h
8303         * input.h (input_filename, input_line): Remove variables.
8304         (location_s, location_t): Move from location.h.
8305         (input_location): New.
8306         (input_filename, input_line): New #defines.
8307         * location.h: Remove.
8308         * tree.h: Replace location.h with input.h.
8309         (input_filename, input_line): Remove.
8310         * diagnostic.h: Replace location.h with input.h.
8311         * gcc.h (input_filename, input_filename_length): Remove declarations.
8312         * toplev.c (input_filename, input_line): Remove.
8313         (input_location): Define.
8314         (push_srcloc, pop_srcloc): Adjust.
8315         * diagnostic.c (diagnostic_report_current_module): Adjust.
8317 2003-05-02  Nick Clifton  <nickc@redhat.com>
8319         * configure.in: Add xstormy16 to list of targets that has a nop
8320         instruction and hence which can be tested to see if the
8321         assembler supports the --gdwarf2 switch.
8322         * configure: Regenerate.
8324 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
8326         PR target/8257
8327         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8328         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
8329         Avoid undefined shifts by making the shift operand unsigned.
8331 2003-05-01  DJ Delorie  <dj@redhat.com>
8333         * reload.c (find_reloads): Also check that all of a multi-reg
8334         value is in the class.
8336 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
8338         * scan.h (lineno): Revert the rename here.
8340 2003-05-01  Stan Shebs  <shebs@apple.com>
8342         * config/darwin.c (darwin_encode_section_info): Call
8343         default_encode_section_info.
8345 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
8347         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
8348         (movsi_internal1): Use new mfjmpr attribute.
8349         (movhi_internal): Same.
8350         (movqi_internal): Same.
8351         (movcc_internal1): Same.
8352         (movdi_internal64): Same.
8353         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8354         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
8355         * config/rs6000/40x.md: Add fpu_405.
8356         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
8357         into power4misc automata.  Remove extraneous parentheses.
8358         * config/rs6000/440.md: New file.
8359         * config/rs6000/rs6000.c (processor_target_table): Add 440,
8360         440fp.  Rename 405f to 405fp.
8361         (function_arg_padding): Correct formatting.
8362         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
8364 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
8366         * input.h (lineno): Rename to ...
8367         (input_line): ... here.
8368         * tree.h (lineno): Rename to ...
8369         (input_line): ... here.
8370         * scan.h (lineno): Rename to ...
8371         (input_line): ... here.
8372         * toplev.c (lineno): Rename to ...
8373         (input_line): ... here.
8374         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
8375         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
8376         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
8377         store_parm_decls, c_expand_body_1): Likewise.
8378         * c-errors.c (pedwarn_c99): Likewise.
8379         * c-format.c (status_warning): Likewise.
8380         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
8381         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
8382         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
8383         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
8384         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
8385         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
8386         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
8387         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
8388         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
8389         * coverage.c (create_coverage): Likewise.
8390         * diagnostic.c (pedwarn, sorry, error, fatal_error,
8391         internal_error, warning, diagnostic_report_current_module,
8392         inform): Likewise.
8393         * expr.c (expand_expr): Likewise.
8394         * integrate.c (expand_inline_function,
8395         output_inline_function): Likewise.
8396         * rtl-error.c (file_and_line_for_asm): Likewise.
8397         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
8398         walk_tree): Likewise.
8399         * tree.c (make_node): Likewise.
8400         * ada, cp, f, java, objc, treelang: Likewise.
8401         * objc/objc-act.c (objc_init): Rename lineno to input_line.
8402         (build_module_descriptor, build_selector_translation_table,
8403         build_protocol_template, build_method_prototype_list_template,
8404         build_category_template, build_selector_table,
8405         build_class_template, build_super_template, build_ivar_template,
8406         build_ivar_list_template, build_method_list_template,
8407         build_method_template, add_instance_variable): Likewise.
8409         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
8410         name from input_filename.
8412 2003-04-30  Eric Christopher  <echristo@redhat.com>
8413             Richard Sandiford <rsandifo@redhat.com>
8415         * configure: Regenerate from patches below.
8416         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
8417         for all symbolic operands.
8418         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
8419         to function.
8420         * config/mips/linux.h: Fix typo.
8421         * Merge from mips-3_4-rewrite branch:
8423         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
8425                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
8426                 handling local labels when TARGET_ABICALLS.
8428         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
8430                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
8431                 integer argument.
8432                 (mips_expand_call): Likewise.
8433                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
8434                 (FIXED_REGISTERS): Clear $31 entry.
8435                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
8436                 (EPILOGUE_USES): Define.
8437                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
8438                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
8439                 (override_options): Add a 'j' register class.
8440                 (mips_expand_call): Handle sibcalls
8441                 (mips_expand_epilogue): Handle epilogues for sibcalls.
8442                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
8443                 (sibcall_epilogue): New pattern.
8444                 (call, call_value): Adjust calls to mips_expand_call.
8445                 (sibcall, sibcall_value): New expanders.
8446                 (sibcall_internal, sibcall_value_internal): New patterns.
8447                 (sibcall_value_multiple_internal): New pattern.
8449         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
8451                 * config/mips/mips.md (extended_mips16): New attribute.
8452                 (define_attr length): Default to 8 if extended_mips16 == yes.
8453                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
8454                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
8455                 (call_internal): Set extended_mips16 to yes for direct jumps.
8456                 Remove redundant mode attribute.
8457                 (call_value_internal, call_value_multiple_internal): Likewise.
8458                 (call_split): Remove redundant mode attribute.
8459                 (call_value_split, call_value_multiple_split): Likewise.
8461                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
8462                 of unaligned offsets.
8464                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
8465                 of SYMBOL_GENERAL.
8467         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
8469                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
8470                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
8471                 for mips16 code.
8473         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
8475                 * config/mips/mips.h (ADDRESS_COST): Define.
8477         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
8479                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
8480                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
8481                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
8483         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
8485                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
8486                 of a two-instruction sequence.  Add register->memory alternative.
8487                 (truncdihi2, truncdiqi2): Likewise.
8488                 Rework shift/truncate instructions so that they only handle right
8489                 shifts of 32 (or more, in the case of arithmetic shifts).
8490                 Add patterns for truncate/sign-extend.
8492         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8494                 * configure.in (mips*-*-*): Check for explicit relocation support.
8495                 * configure: Regenerate.
8497         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8499                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
8500                 and -mno-explicit-relocs.
8501                 (MASK_EXPLICIT_RELOCS): Define.
8502                 (TARGET_EXPLICIT_RELOCS): Use it.
8503                 (mips_split_addresses): Remove declaration.
8504                 * config/mips/mips.c (override_options): Update comment for
8505                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
8507         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8509                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
8510                 a CONST as identity.  Check the return value of gen_lowpart_common.
8512         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8514                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
8515                 references for TARGET_EXPLICIT_RELOCS.
8516                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
8517                 !TARGET_MIPS16.
8519         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8521                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
8522                 (addsi3): Remove redundant constraints.
8523                 (addsi3_internal): Use separate register & constant alternatives.
8524                 Use a 'Q' constraint and "addiu" insn for the latter.
8525                 (adddi3_internal_3, addsi3_internal_2): Likewise.
8527         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
8529                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
8530                 (mips_expand_unaligned_store): Declare.
8531                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
8532                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
8533                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
8534                 (UNSPEC_ULD, UNSPEC_USD): Remove.
8535                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
8536                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
8537                 (extv, extzv): Use mips_expand_unaligned_load.
8538                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
8539                 predicate for operand 3.
8540                 (movsi_ulw, movsi_usw): Replace with...
8541                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
8542                 (movdi_uld, movdi_usd): Likewise replace with...
8543                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
8545         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
8547                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
8548                 * config/mips/mips.h (LEA_REGS): New register class.
8549                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
8550                 (GR_REG_CLASS_P): Include LEA_REGS.
8551                 (DANGEROUS_FOR_LA25_P): New macro.
8552                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
8553                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
8554                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
8555                 entries to LEA_REGS.
8556                 (mips_global_pic_constant_p): New function.
8557                 (override_options): Add 'e' register constraint.
8558                 (mips_secondary_reload_class): Return LEA_REGS when reloading
8559                 a dangerous constant into a class containing $25.
8560                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
8561                 (movsi_internal): Likewise.
8563         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
8565                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
8566                 * config/mips/mips.md (call_split): New insn.
8567                 (call_value_split, call_value_multiple_split): New insns.
8568                 (call_internal): Turn into a define_insn_and_split.  Split the
8569                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
8570                 (call_value_internal, call_value_multiple_internal): Likewise.
8572         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
8574                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
8575                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
8576                 (mips_encode_section_info): Don't take symbol visibility into
8577                 account if TARGET_ABICALLS.  Add more commentary.
8578                 * config/mips/mips.md: Add commentary above reloc constants.
8580         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
8582                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
8583                 from mips_legitimize_move.  Legitimize constant pool references.
8584                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
8585                 a REG_EQUAL note to the last instruction.
8587         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
8589                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
8590                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
8591                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
8592                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
8593                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
8594                 (UNSPEC_RELOC_GPREL16): Rename to...
8595                 (RELOC_GPREL16): ...this.
8596                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
8597                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
8598                 (macro_calls): New attribute.
8599                 (length): Use it to set the default length of calls.  Don't allow
8600                 calls to have delay slots if macro_calls is "yes".
8601                 (luisi, luidi): New patterns.
8602                 (lowsi, lowdi): Use '%R' to print the relocation.
8603                 (lowdi_extend): Remove.
8604                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
8605                 (call_internal): Merge alternatives.  Always use "jal".
8606                 (call_value_internal, call_value_multiple_internal): Likewise.
8607                 (reloc_gprel16): Remove.
8608                 * config/mips/mips.c (mips_got_alias_set): New variable.
8609                 (mips_classify_constant): Handle the new relocation constants.
8610                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
8611                 (mips_symbolic_address_p): Return false if generating explicit relocs.
8612                 Otherwise allow local PIC symbols to have an offset.
8613                 (mips_splittable_symbol_p): New function.
8614                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
8615                 (mips_const_insns): Always accept HIGH.
8616                 (call_insn_operand): Don't accept global symbols if using explicit
8617                 relocs.
8618                 (move_operand): Don't accept HIGH when generating PIC.
8619                 (mips_reloc, mips_lui_reloc): New functions.
8620                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
8621                 be a valid right-hand-side for a SET pattern.
8622                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
8623                 (mips_emit_high): New function.
8624                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
8625                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
8626                 address should be used.  Use mips_emit_high to generate the
8627                 high part of such an address.  Adjust the global symbol + offset
8628                 case to match the change to mips_force_temprorary.
8629                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
8630                 If generating explicit-reloc PIC, load the address of global
8631                 symbols from the GOT.  Use mips_emit_high to emit the high part
8632                 of an address.
8633                 (mips_simplify_dwarf_addr): New function.
8634                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
8635                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
8636                 (mips_expand_call): Load the addresses of global functions using
8637                 %call* relocs if generating explicit-reloc PIC.  Don't generate
8638                 an exception_receiver pattern.
8639                 (override_options): Initialize mips_got_alias_set.
8640                 (print_relocation): Remove in favor of...
8641                 (mips_reloc_string): ...this new function.
8642                 (print_operand): Handle '%R'.  Use mips_reloc_string.
8643                 (print_operand_address): Use print_operand to print the symbolic
8644                 part of a LO_SUM address.
8645                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
8646                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
8647                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
8648                 for local symbols.
8650         2003-02-02  Eric Christopher  <echristo@redhat.com>
8652                 * config/mips/mips.c (mips_sign_extend): Remove.
8653                 * config/mips/mips-protos.h: Ditto.
8654                 * config/mips/mips.md (movdi_internal2_extend): Remove.
8655                 (extendsidi2): Fix mode of convert_memory_address.
8657         2003-01-24  Eric Christopher  <echristo@redhat.com>
8659                 * config/mips/mips.md: Rewrite zero_extend* and extend*
8660                 patterns. Use explicit instructions and split after reload
8661                 for register extensions.
8662                 (ashlsi3_internal1_extend): New combiner pattern for
8663                 shift and extend combinations.
8664                 * config/mips/mips.h: Change Pmode back to ptr_mode
8665                 for performance enhancement.
8666                 * combine.c (expand_compound_operation): Make sure
8667                 that zero_extend operation is profitable.
8669         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
8671                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
8672                 addresses depend on ptr_mode rather than Pmode.
8673                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
8674                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
8675                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
8676                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
8677                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
8678                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
8679                 (tablejump_internal1): Remove condition.
8680                 (tablejump_internal2): Change condition to TARGET_64BIT.
8681                 (cpaddsi): Rename to...
8682                 (cpadd): ...this.
8683                 (cpadddi): Remove.
8685         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
8687                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
8688                 mips_address_cost, mips_check_split, double_memory_operand,
8689                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
8690                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
8691                 (mips_legitimate_address_p): Return bool.
8692                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
8693                 mips_legitimize_address, mips_legitimize_move,
8694                 mips_expand_call): Declare.
8695                 (mips_return_addr): Move outside #ifdef RTX_CODE.
8697                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
8698                 (PIC_FN_ADDR_REG): New reg_class.
8699                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
8700                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
8701                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
8702                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
8703                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
8704                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
8705                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
8706                 (LEGITIMATE_PIC_OPERAND): Undefine.
8707                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
8708                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
8709                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
8710                 (FUNCTION_MODE): Change to SImode.
8711                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
8712                 most constants.  Treat const_artih_operands specially if they
8713                 occur in a PLUS or MINUS.
8714                 (CONSTANT_POOL_COST): New macro.
8715                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
8716                 Add LO_SUM handling.
8717                 (ADDRESS_COST): Undefine.
8718                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
8719                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
8720                 to call_insn_operand and remove CONST_INT.
8722                 * config/mips/mips.c: Include integrate.h.
8723                 (SINGLE_WORD_MODE_P): New macro.
8724                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
8725                 (mips_constant_info, mips_address_info): New structs.
8726                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
8727                 (mips_classify_constant, mips_classify_symbol,
8728                 mips_valid_base_register_p, mips_symbolic_address_p,
8729                 mips_classify_address, mips_symbol_insns,
8730                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
8731                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
8732                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
8733                 mips_print_relocation): New functions.
8734                 (const_arith_operand): New operand predicate.
8735                 (arith_operand): Use it.
8736                 (mips_const_double_ok, mips16_simple_memory_operand,
8737                 simple_memory_operand, double_memory_operand, mips_check_split,
8738                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
8739                 mips16_gp_offset_p, mips16_output_gp_offset,
8740                 mips16_constant_after_function_p, mips16_constant): Remove.
8741                 (call_insn_operand): Be more fussy about symbolic constants.
8742                 Use register_operand.
8743                 (move_operand): Use mips_symbolic_address_p to check symbolic
8744                 operands and general_operand to check the rest.
8745                 (symbolic_operand): Use mips_classify_constant.
8746                 (mips_legitimate_address_p): Use mips_classify_address.
8747                 (mips_move_1word): Combine handling of symbolic addresses.
8748                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
8749                 (move_move_2words): Likewise.  Assume addresses are offsettable
8750                 if they need to refer to more than one word.  Add HIGH handling.
8751                 (mips_restore_gp): Use ptr_mode for the GP save slot.
8752                 (mips_expand_call): New function, combining the old mips.md
8753                 call and call_internal define_expands.  If the address isn't
8754                 a call_insn_operand, force it into a register.  For SVR4 PIC,
8755                 emit an exception_receiver instruction after the call.
8756                 (override_options): Only override flag_pic for TARGET_ABICALLS
8757                 if it is currently zero.  Allow mips_split_addresses when
8758                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
8759                 Add new register class letter, 'c'.
8760                 (print_operand): Use mips_classify_constant for constant operands.
8761                 (print_operand_address): Use mips_classify_address.
8762                 (mips_output_function_prologue): Don't use .cprestore.
8763                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
8764                 via the frame pointer if current_function_calls_eh_return.
8765                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
8766                 to mark whether a symbol is local or global.
8767                 (build_mips16_call_stub): Expect the address of the function rather
8768                 than a MEM reference to it.  Update call generation sequences.
8769                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
8770                 small-data adjustments.
8772                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
8773                 length for loads and stores.
8774                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
8775                 (define_attr type): Add const and prefetch.
8776                 (define_attr length): Use mips_const_insns for const instructions.
8777                 Use mips_fetch_insns for load and store instructions.
8778                 (define_attr single_insn): New.
8779                 (define_attr can_delay): Use it.
8780                 (define_attr abicalls): Remove.
8781                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
8782                 (addsi3_internal_2): Add 'Q' constraint.
8783                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
8784                 (high): Remove.
8785                 (lowsi): Renamed from low.
8786                 (lowdi): New pattern.
8787                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
8788                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
8789                 (loadgp): Change operand 0 to an immediate_operand.
8790                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
8791                 beforehand.
8792                 (cpaddsi, cpadddi): New patterns.
8793                 (tablejump_internal3, tablejump_internal4): Remove define_expands
8794                 and associated define_splits.
8795                 (call, call_value): Use mips_expand_call.
8796                 (call_internal): New, replacing all existing call_internal* insns.
8797                 (call_value_internal): Likewise call_value_internal*.
8798                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
8799                 (untyped_call): Remove if (operands[0]) magic.
8800                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
8801                 (prefetch_di_address, prefetch_di): Likewise.
8802                 (leasi, leadi): Remove.
8803                 (reloc_gprel16): New.
8805                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
8806                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
8807                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
8809         2003-01-08  Eric Christopher  <echristo@redhat.com>
8811                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
8812                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
8813                 configure check for libgloss.
8814                 * config/mips/elf64.h: Ditto.
8815                 * config/mips/mips.c: Remove ABI_MEABI.
8816                 * config/mips/mips.h: Ditto.
8818         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
8820                 Fix merge fallout.
8821                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
8822                 (muldi3_internal): Remove outdated comment.
8823                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
8824                 (*smsac_di, *umsac_di): Likewise.  Reformat.
8825                 (umulsi3_highpart): Minor formatting tweaks.
8826                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
8827                 redundant scratch operand.  Minor formatting tweak.
8828                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
8829                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
8830                 (smulsi3_highpart): As for the unsigned version.
8831                 (smulsi3_highpart_internal): Likewise.
8832                 (smulsi3_highpart_mulhi_internal): Likewise.
8833                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
8834                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
8835                 (*smul_acc_di): Remove duplicated pattern.
8836                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
8837                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
8838                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
8840         2002-10-22  Eric Christopher  <echristo@redhat.com>
8842                 * config/mips/mips-protos.h (mips_return_addr): New.
8843                 * config/mips/mips.c (mips_return_addr): New.
8844                 (movdi_operand): Remove.
8845                 (se_register_operand): Ditto.
8846                 (se_reg_or_0_operand): Ditto.
8847                 (se_uns_arith_operand): Ditto.
8848                 (se_arith_operand): Ditto.
8849                 (se_nonmemory_operand): Ditto.
8850                 (extend_operator): Ditto.
8851                 (highpart_shift_operator): Ditto.
8852                 (mips_initial_elimination_offset): Remove return address pointer
8853                 elimination.
8854                 (mips_reg_names): Remove $ra.
8855                 (mips_regno_to_class): Ditto.
8856                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
8857                 and TARGET_64BIT.
8858                 (POINTER_BOUNDARY): Remove.
8859                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
8860                 (PROMOTE_MODE): Promote to Pmode.
8861                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
8862                 (Pmode): Define to TARGET_64BIT.
8863                 (FUNCTION_MODE): Define as Pmode.
8864                 (mips_args): Remove deleted functions.
8865                 (SIZE_TYPE): Depend on POINTER_SIZE.
8866                 (PTRDIFF_TYPE): Ditto.
8867                 (FIXED_REGISTERS): Fix extra registers.
8868                 (CALL_USED_REGISTERS): Ditto.
8869                 (CALL_REALLY_USED_REGISTERS): Ditto.
8870                 (RAP_REG_NUM): Remove.
8871                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
8872                 (RETURN_ADDR_RTX): Define to mips_return_addr.
8873                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
8874                 (CAN_ELIMINATE): Ditto.
8875                 * config/mips/mips.md: For DImode patterns, take into account
8876                 deletions above. Split mulsidi patterns into sign_extend and
8877                 zero_extend.
8879         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
8880                     Michael Meissner  <meissner@redhat.com>
8882                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
8883                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
8884                 mop up unnecessarly moves through LO.
8885                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
8886                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
8887                 change mtlo/macc sequences into mul/add sequences when a three-
8888                 address mul is available.
8889                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
8890                 (*mul_sub_si): Fix contraint for operand 5.
8891                 (*muls): Use in 32-bit code as well.
8892                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
8893                 if the destination is LO.  Remove duplicate define_split.
8894                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
8895                 (*msac_di): Likewise.  Fix formatting.
8896                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
8897                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
8898                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
8899                 (*xmulsi3_neg_highpart_mulhi): Likewise.
8900                 (*mul_acc_64bit_di): Remove.
8901                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
8903         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
8905                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
8906                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
8907                 (MULTILIB_DIRNAMES): Remove long32.
8908                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
8909                 (MULTILIB_REDUNDANT_DIRS): Remove.
8911         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
8913                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
8914                 * gcc.c (driver_self_specs): New variable.
8915                 (do_self_spec): New function.
8916                 (main): Use it to process driver_self_specs.
8918         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
8920                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
8921                 Remove DImode define_split for !TARGET_64BIT.
8922                 (anddi3): Remove !TARGET_64BIT support from here as well.
8923                 Change operand 2's predicate to se_uns_arith_operand.
8924                 Add constant alternatives to define_insn.
8925                 (iordi3, xordi3, *nordi3): Likewise.
8926                 (anddi3_internal1, xordi3_immed): Remove.
8928         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
8930                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
8931                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
8932                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
8933                 * config/mips/mips.md: Apply same renaming here.
8935         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
8937                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
8938                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
8939                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
8940                 * config/mips/mips.md (define_attr cpu): Remove r4320.
8941                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
8943         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
8945                 * config/mips/mips.c (mips16_strings): New variable.
8946                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
8947                 symbol in mips16_strings.  Free the list.
8948                 (mips_encode_section_info): Keep track of local strings.
8950         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
8952                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
8953                 (sordered_df, sordered_sf): Remove.
8954                 * config/mips/mips.c (get_float_compare_codes): New fn.
8955                 (gen_int_relational, gen_conditional_move): Use it.
8957         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
8959                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
8960                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
8961                 * config/mips/mips.c (fcc_register_operand): New function.
8962                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
8963                 (override_options): Allow TFmode values in float registers
8964                 if ISA_HAS_8CC.
8965                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
8966                 to fcc_register_operand.  Remove misleading source constraint.
8967                 Use mips_emit_fcc_reload.
8968                 (reload_outcc): Duplicate reload_incc.
8971 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
8973         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
8975 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
8977         * tree-inline.c (inlinable_function_p): Back out last change, it's
8978         unnecessary.
8980 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
8982         * ggc-page.c (TREE_EXP_SIZE): Define.
8983         (extra_order_size_table): New entry for expr trees with
8984         two operands.
8986 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
8988         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
8989         (c_expand_start_cond): Adjust.
8990         (c_expand_end_cond): Don't use warning_with_file_and_file.
8991         (shadow_warning): Likewise.
8993 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
8995         * tree.h (DECL_POINTER_DEPTH): Remove.
8996         (struct tree_decl): Remove pointer_depth.
8998 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
9000         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
9001         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
9002         (rs6000_xcoff_encode_section_info): Remove.
9003         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
9004         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
9005         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
9006         Use SYMBOL_REF_FLAGS.
9007         (rs6000_elf_encode_section_info): Call default_encode_section_info for
9008         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
9009         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9010         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
9011         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
9012         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
9014 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9016         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
9018 2003-04-30  Andreas Schwab  <schwab@suse.de>
9020         * doc/extend.texi (Other Builtins): Enclose multiple word data
9021         type in braces for @deftypefn.
9023 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9025         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
9027         * doc/install.texi (--enable-threads): Document "gnat" option.
9029 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9031         * diagnostic.h (output_formatted_scalar): Tweak.
9032         * diagnostic.c (output_long_decimal): Likewise.
9033         (output_unsigned_decimal): Likewise.
9034         (output_long_unsigned_decimal): Likewise.
9035         (output_octal): Likewise.
9036         (output_long_octal): Likewise.
9037         (output_hexadecimal): Likewise.
9038         (output_long_hexadecimal): Likewise.
9039         (output_pointer): New function.
9040         (output_format): Use it.  Recognize "%p" format specifier.
9042 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9044         * function.c (purge_addressof_1): Postpone insn in fewer cases.
9046 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
9048         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
9049         call abort() after running out of stack space.
9051         * c-typeck.c (function_types_compatible_p): Ignore incompatible
9052         'volatile' qualifiers on a function's return type in GNU mode.
9054 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
9056         * expr.c (emit_group_load): Dump parallels of simd types to
9057         memory.
9059 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9061         * genautomata.c (add_vect): Check undefined value for range type
9062         too.
9064 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
9066         * configure.in:  More general test for cmp --ignore-initial.
9067         * configure:  Regenerate.
9069 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9071         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
9072         (layout_decl, place_field): Likewise.
9073         Also make minor type and whitespace changes.
9075         * tree.c (save_expr): Don't fold a COMPONENT_REF.
9077 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
9079         * calls.c (expand_call): When modes of target and valreg match, force
9080         sibcall failure when target is a MEM.
9082 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
9084         * tree-inline.c (inlinable_function_p): Don't support inlining
9085         functions using varargs.
9087         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
9089         * dwarf2out.c (output_call_frame_info): No need to output EH
9090         unwind information if all_throwers_are_sibcalls.
9092         * c-semantics.c (expand_unreachable_stmt): Return a tree.
9093         (expand_stmt): Update for change to expand_unreachable_stmt.
9094         (expand_unreachable_if_stmt): Likewise.
9096         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
9098 2003-04-29  Jason Merrill  <jason@redhat.com>
9100         PR middle-end/10336
9101         * jump.c (never_reached_warning): Really stop looking if we reach
9102         the beginning of the function.
9104 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
9106         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
9107         Remove redundant macros.
9108         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
9109         (LOCAL_LABEL_PREFIX): Define unconditionally.
9110         (NO_DOT_IN_LABEL): Clarify comment.
9111         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
9112         definition to "long int".
9114 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
9116         bootstrap/10452
9117         * gengtype-yacc.y: Improve portability.
9119 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
9121         * config.gcc: Install obsolete target list for GCC 3.3.
9122         * doc/install.texi: Mention in specific-target instructions
9123         that certain configurations are deprecated.
9125 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
9127         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
9129 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
9131         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
9132         * gcc.c (display_help): Likewise.
9133         * toplev.c (f_options): Likewise.
9134         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
9135         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
9136         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
9137         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
9138         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
9140 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
9142         * varasm.c (default_assemble_visibility): Use assemble_name.
9144 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
9146         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
9147         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9148         (SIZE_TYPE): New macro.
9149         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
9150         (SET_ASM_OP): New macro.
9151         (HANDLE_SYSV_PRAGMA): New macro.
9152         (ASM_WEAKEN_LABEL): New macro.
9154 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
9156         PR c++/10180
9157         * tree-inline.c (expand_call_inline): Call push_srcloc when
9158         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
9160 2003-04-28  Mike Stump  <mrs@apple.com>
9162         * gdbinit.in: Update to reflect new identifier structure.
9164 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
9166         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
9167         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
9168         struct tree_complex, struct tree_vector): Remove RTL field.
9169         (CONSTRUCTOR_ELTS): Use elt 0.
9170         * tree.def (CONSTRUCTOR): Delete first of its two operands.
9171         * varasm.c (output_constant_def): Remove early exit if
9172         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
9173         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
9174         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
9175         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
9177 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
9179         * c-decl.c (finish_decl): When prototype with asmspec is found
9180         for built-in, adjust built_in_decls as well as expr.c decls.
9181         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
9182         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
9183         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
9185 2003-04-28  Richard Henderson  <rth@redhat.com>
9187         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
9188         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
9189         integral constant mult operand.
9190         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
9191         (const_smulsi3_highpart_v8plus): Likewise.
9192         (const_smulsi3_highpart): Likewise.
9193         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
9194         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
9195         (const_umulsi3_highpart_v8plus): Likewise.
9196         (const_umulsi3_highpart): Likewise.
9198 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
9200         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
9201         Define as 1.
9203 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
9205         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
9207 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
9209         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
9210         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
9211         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
9212         functions.
9213         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
9215 2003-04-28  Nick Clifton  <nickc@redhat.com>
9217         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
9219 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
9221         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
9222         output_constant_def, use its result instead of TREE_CST_RTL (exp).
9223         Can assume it has the form (mem (symbol_ref ".LCxxx")).
9224         (expand_expr <COMPONENT_REF>): Can always just extract the
9225         relevant field of a CONSTRUCTOR.
9226         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
9227         ARRAY_RANGE_REF>): Make control flow explicit.
9228         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
9229         an INTEGER_CST.
9231 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
9233         * reload1.c (reg_set_luid): Fix a comment typo.
9235 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
9237         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
9238         struct deferred_string, const_str_htab): Kill.
9239         (n_deferred_strings): New static variable.
9240         (build_constant_desc): Set SYMBOL_REF_DECL of the new
9241         symbol_ref to point to the constant.
9242         (output_constant_def): When a deferred string is forced out,
9243         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
9244         (mark_constant): Likewise.
9245         (maybe_output_constant_def_contents): When deferring a string
9246         constant, just set STRING_POOL_ADDRESS_P and increment
9247         n_deferred_strings.
9248         (mark_constant_pool): Check n_deferred_strings, not the size
9249         of const_str_htab.
9250         (init_varasm_once): No need to create const_str_htab.
9252         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
9253         SYMBOL_REF_DECL points to a constant.
9255 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
9257         * varasm.c (output_constant_def): Split out two new static
9258         functions, build_constant_desc and maybe_output_constant_def_contents.
9259         Restructure for comprehensibility.  Don't call
9260         output_addressed_constants.  Treat defstr being non-NULL for
9261         STRING_POOL_ADDRESS_P constants as an invariant.
9262         (struct deferred_string): Remove labelno field.
9263         (output_constant_def_contents): Kill labelno argument. Call
9264         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
9265         asm_out.internal_label.
9266         (mark_constant): Update call to output_constant_def_contents.
9267         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
9268         constants as an invariant.
9270 2003-04-26  Richard Henderson  <rth@redhat.com>
9272         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
9273         (ix86_expand_call, ix86_rtx_consts): Likewise.
9275 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9277         * doc/md.texi (cmpstr): Document additional restrictions.
9279 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
9281         * flags.h (time_report): Remove.
9282         * timevar.c (timevar_enable): New.
9283         (TIMEVAR_ENABLE): Remove, use timevar_enable.
9284         (timevar_init): Rename from init_timevar.
9285         * timevar.h (timevar_init): Rename from init_timevar.
9286         * toplev.c (time_report): Make static.
9287         (do_compile): Conditionally call init_timevar first.
9288         (preprocess_options): Move some code to do_compile.
9290 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
9292         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
9294 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
9296         * _cpp_lex_direct: Remove pointless code.
9298 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9300         * doc/extend.texi (Function Attributes): Document "near" and "far"
9301         for 68HC11 and 68HC12.
9303 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9305         * expr.c (store_field): When making temporary for store, don't
9306         make it TYPE_QUAL_CONST.
9308 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
9310         * toplev.c (read_integral_parameter):  Use "argument" in error
9311         message to distinguish it from actual invalid options.
9313 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
9315         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
9316         addition of __PIC__ and __pic__ macros.
9317         * config/xtensa/xtensa.h: Clean up indentation.
9319 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
9321         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
9322         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
9323         (SUBTARGET_CPP_SPEC): Define.
9324         (LIB_SPEC): Delete.
9325         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
9326         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9327         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
9328         Define.
9329         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9330         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
9332 2003-04-25  H.J. Lu <hjl@gnu.org>
9334         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
9335         for return mode.
9336         (ia64_expand_builtin): Set rmode to SImode for
9337         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
9338         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
9339         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
9340         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
9342 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
9344         * configure.in (make_compare_target):  Test for GNU cmp and set this
9345         variable appropriately.
9346         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
9347         compare4-lean): Rename actual targets to slowcompare*.  New compare*
9348         targets depend on names based on make_compare_target.
9349         * configure:  Regenerated.
9351 2003-04-25  Richard Henderson  <rth@redhat.com>
9353         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
9354         to clobber ar.pfs and ar.unat.
9355         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
9356         fix test for spilling ar.pfs to the stack.
9358 2003-04-25  Richard Henderson  <rth@redhat.com>
9360         PR opt/10315
9361         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
9362         checks during reload; use validize_mem instead of adjust_address.
9364 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
9366         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
9367         return values from recog_memoized().
9369 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9371         PR opt/8705
9372         * gcse.c (try_replace_reg): On a successful substitution of a constant
9373         into a single set, try to simplify the source of the set.
9374         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
9375         constant source.
9377 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
9379         * cpplex.c (cpp_token_len): Tighten up.
9380         (cpp_token_as_text): Need extra byte now.
9381         * cpplib.c (glue_header_name): Need extra 2 bytes.
9382         * cppmacro.c (cpp_macro_definition): Need extra byte.
9384 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
9386         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
9387         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
9388         where they might be not present. Use their _sp64 equivalent
9389         instead.
9391 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
9393         * i386.md (cvtsi2sdq): Fix typo in previous patch.
9395 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
9397         * configure.in: Check whether mbstowcs works.
9398         * configure, config.in: Regenerate.
9399         * intl.c: Use HAVE_WORKING_MBSTOWCS.
9401 2003-04-24  H.J. Lu <hjl@gnu.org>
9403         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
9404         for __sync_bool_compare_and_swap_di for int return type.
9406         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
9407         Change return type to int.
9408         (__sync_bool_compare_and_swap): Likewise.
9410 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
9412         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
9413         looking for fallthru edge.
9415         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
9416         Fix.
9417         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
9418         athlon-fvector): New.
9419         (athlon_*): Revisit to match new optimization guide.
9420         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
9421         * i386.md (cvt??2?? patterns): Fix modes.
9422         (fistp patterns): Set modes.
9424         Accidentaly commited with my earlier reload patch:
9425         PR c/10308
9426         * reload.c (find_reloads_address_1): Reload plus at the place of
9427         index register.
9429 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
9431         New GCOV_TAG_FUNCTION layout
9432         * coverage.c (struct function_list): Replace name with ident.
9433         (struct counts_entry): Likewise.
9434         (fn_ident): New.
9435         (htab_counts_entry_hash, htab_counts_entry_eq,
9436         htab_counts_entry_del): Adjust.
9437         (reads_count_file, get_coverage_counts,
9438         coverage_begin_output, coverage_end_function): Adjust.
9439         (build_fn_info_type, build_fn_info_value): Likewise.
9440         * gcov-dump.c (tag_function): Adjust.
9441         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9442         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9443         * gcov.c (struct function_info): Add ident.
9444         (read_graph_file, read_count_file): Adjust.
9445         * libgcov.c (gcov_exit): Adjust.
9447 2003-04-23  Richard Henderson  <rth@redhat.com>
9449         PR opt/8300
9450         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
9451         after initialize_uninitialized_subregs; update reg info assuming
9452         new pseudos were created.
9454 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
9456         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
9457         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
9458         (lex_string): Take cpp_string with full spelling.
9459         (cb_ident): Update.
9460         (c_lex): Update diagnostics.
9461         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
9462         (create_literal): New.
9463         (lex_string): Unterminated literals have type CPP_OTHER.
9464         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
9465         for CPP_OTHER.
9466         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
9467         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
9468         * cpplib.c (parse_include, do_line, do_linemarker,
9469         destringize_and_run): Update for token storing full spelling.
9470         * cpplib.h: Update token spelling types.
9471         * cppmacro.c (stringify_arg, check_trad_stringification):
9472         Update for token storing full spelling.
9474 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
9476         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
9478 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
9480         * arm.h (TARGET_OPTIONS): Add value field.
9482 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
9484         * doc/extend.texi: Remove duplicate 2003 copyright date.
9486 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
9488         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
9489         (libgcov.a): Depends on LIBGCC_DEPS.
9490         * basic-block.h (profile_info): Moved here from coverage.h. Made
9491         a pointer.
9492         * coverage.c (struct function_list): Fixed array of counter types.
9493         (struct counts_entry): Keyed by counter type, contains summary.
9494         (profile_info): Moved to profile.c.
9495         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
9496         vars.
9497         (profiler_label): Remove.
9498         (ctr_labels): New.
9499         (set_purpose, label_for_tag, build_counter_section_fields,
9500         build_counter_section_value, build_counter_section_data_fields,
9501         build_counter_section_data_values, build_function_info_fields,
9502         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
9503         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9504         build_ctr_info_value, build_gcov_info): New.
9505         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
9506         (reads_counts_file): Adjust.
9507         (get_coverage_counts): Takes counter number. Add summary
9508         parameter. Adjust.
9509         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
9510         create counter array labels.
9511         (coverage_end_function): Adjust.
9512         (create_coverage): Adjust.
9513         (find_counters_section): Remove.
9514         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
9515         (struct section_info, struct profile_info): Remove.
9516         (profile_info): Moved to basic-block.h.
9517         (coverage_counter_ref): Takes a counter number.
9518         (get_coverage_counts): Takes a counter number. Added summary
9519         parameter.
9520         (find_counters_section): Remove.
9521         * gcov-dump.c (tag_arc_counts): Rename to ...
9522         (tag_counters): ... here. Adjust.
9523         (tag_table): Move tag_counters to 3rd entry. Remove
9524         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
9525         (dump_file): Check for counter tag values here.
9526         (tag_summary): Adjust.
9527         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
9528         * gcov-io.h (GCOV_LOCKED): New.
9529         (GCOV_TAG_ARC_COUNTS): Rename to ...
9530         (GCOV_TAG_COUNTS_BASE): ... here.
9531         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
9532         Remove.
9533         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
9534         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
9535         GCOV_TAG_IS_COUNTER): New.
9536         (struct gcov_ctr_summary): New.
9537         (struct gcov_summary): Adjust.
9538         (struct gcov_counter_section): Remove.
9539         struct gcov_counter_section_data): Remove.
9540         (struct gcov_function_info): Rename to ...
9541         (struct gcov_fn_info): ... here. Adjust.
9542         (struct gcov_ctr_info): New.
9543         (struct gcov_info): Adjust.
9544         * gcov.c (read_count_file): Adjust.
9545         (output_lines): Adjust.
9546         * libgcov.c (gcov_exit): Adjust.
9547         (__gcov_flush): Adjust.
9548         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
9549         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
9550         probably_never_executed_bb_p, compute_frequency_function): Adjust
9551         profile_info use.
9552         * profile.c (struct counts_entry): Remove.
9553         (profile_info): Define here.
9554         (get_exec_counts): Adjust get_coverage_counts call.
9555         (compute_branch_probablilities): Remove find_counters_section
9556         call.
9557         (gen_edge_profiler): Adjust coverage_counter_ref call.
9558         * tracer.c (tail_duplicate): Adjust profile_info use.
9560 2003-04-23  Roger Sayle  <roger@eyesopen.com>
9562         PR optimization/10339
9563         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
9564         directly instead of unsafely transforming call into a memcmp.
9565         (expand_builtin_strncmp): Likewise.
9567 2003-04-22  Roger Sayle  <roger@eyesopen.com>
9569         * alias.c (mark_constant_function):  Check for constancy and
9570         purity even of void functions.  Update both the function decl
9571         and the cgraph RTL info with the results.
9573 2003-04-22  Roger Sayle  <roger@eyesopen.com>
9575         * real.c (do_add): Change to return a bool indicating that the
9576         result of the operation may be inexact due to loss of precision.
9577         (do_multiply): Likewise.
9578         (do_divide): Likewise.
9580 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
9581             Loren James Rittle  <ljrittle@acm.org>
9583         * dwarf2out.c (fde_table_allocated): Mark with GTY.
9584         (decl_die_table_allocated): Likewise.
9585         (abbrev_die_table_allocated): Likewise.
9586         (line_info_table_allocated): Likewise.
9587         (separate_line_info_table_allocated): Likewise.
9588         (pubname_table_allocated): Likewise.
9589         (arange_table_allocated): Likewise.
9590         (ranges_table_allocated): Likewise.
9591         (decl_die_table_in_use): Unconditionalize; mark with GTY.
9592         (abbrev_die_table_in_use): Likewise.
9593         (line_info_table_in_use): Likewise.
9594         (separate_line_info_table_in_use): Likewise.
9595         (pubname_table_in_use): Likewise.
9596         (arange_table_in_use): Likewise.
9597         (ranges_table_in_use): Likewise.
9598         (have_location_lists): Likewise.
9599         (emitcount): New GTY-marked static, moved...
9600         (maybe_emit_file): ...from here.
9601         (label_num): New GTY-marked static, moved...
9602         (gen_internal_sym): ...from here.
9604 2003-04-22  Richard Henderson  <rth@redhat.com>
9606         PR 8866
9607         * rtl.h (MEM_NOTRAP_P): New.
9608         (MEM_COPY_ATTRIBUTES): Copy it.
9609         * rtlanal.c (may_trap_p): Check it.
9610         * expr.c (do_tablejump): Set it.
9611         * doc/rtl.texi (Flags): Document it.
9613         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
9615 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
9617         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
9618         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
9620 2003-04-22  Vincent Celier <celier@gnat.com>
9622         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
9623         --enable-threads=gnat.
9624         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
9625         * configure.in: Add gnat to the list of thread packages
9626         * configure: Rebuild.
9627         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
9629 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
9631         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
9633 2003-04-22  Devang Patel  <dpatel@apple.com>
9635         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
9636         parameter count.
9637         (_cpp_copy_replacement_text): Same.
9639 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
9641         * c-lex.c (c_lex): Handle CPP_OTHER differently.
9642         * cppexp.c (_cpp_parse_expr): Similarly.
9643         * cpplex.c (SPELL_CHAR): Remove.
9644         (_cpp_lex_direct): Stray chars are saved as byte strings.
9645         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
9646         handle SPELL_CHAR.
9647         (cpp_avoid_paste): Update handling of CPP_OTHER.
9648         * cpplib.h: Spell CPP_OTHER like a number.
9649         (struct cpp_token): Remove member c.
9650         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
9652 2003-04-22  David Turner <novalis@gnu.org>
9654         * gbl-ctors.h: Add special license exception.
9655         * libgcc2.h: Likewise.
9656         * tsystem.h: Likewise.
9657         * gcov-io.h: Likewise.
9659 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
9661         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
9662         macro defaulting to original BRANCH_COST heuristic.
9663         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
9665         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
9667 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
9669         * config/rs6000/t-spe: Merge in t-fprules into file.
9671         * config.gcc: Add t-spe to powerpc-eabispe.
9673 2003-04-22  Kean Johnston  <jkj@sco.com>
9675         * tlink.c (recompile_files): Add missing '=' to putenv calls
9677 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9679         * ginclude/stddef.h: Provide C++ safe offsetof.
9681 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
9683         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
9684         for reg notes, if there are no substitutions, just use a SUBREG.
9686 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
9688         * Makefile.in (calls.o): Depend on except.h.
9689         * calls.c: Include except.h.
9690         (emit_call_1): Call note_eh_region_may_contain_throw if
9691         appropriate.
9692         * except.c (eh_region): Add may_contain_throw.
9693         (expand_eh_region_end_cleanup): Do not include handler code when
9694         it cannot be reached.
9695         (note_eh_region_may_contain_throw): New function.
9696         * except.h (note_eh_region_may_contain_throw): New function.
9698 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
9700         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
9701         changes.
9703 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
9705         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
9706         64-bit long doubles.
9708 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
9710         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
9711         a number of conversions required for type consistency and previously
9712         stripped off by STRIP_NOPS.
9714         * calls.c (expand_call): Prevent sibcall optimization for calls to
9715         nested subprograms.
9717         * expmed.c (extract_bit_field): Reverse operands of && condition to
9718         prevent a potential division by zero in the previously first branch.
9719         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
9721 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
9723         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
9724         (subrange_type_die): Likewise.
9725         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
9726         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
9728 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9730         Break out coverage routines to new file.
9731         * Makefile.in (COVERAGE_H): New variable
9732         (C_OBJS): Add coverage.o
9733         (coverage.o): New target.
9734         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
9735         dependencies.
9736         (GTFILES): Adjust.
9737         (gt-coverage.h): New target.
9738         (gt-profile.h): Remove.
9739         * profile.h: Remove. Move to ...
9740         * coverage.h: ... here. New. #include gcov-io.h.
9741         * gcov-io.h: Move function definitions to ...
9742         * gcov-io.c: ... here. New.
9743         * profile.c: Move coverage routines to coverage.c.
9744         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
9745         end_branch_prob): Adjust.
9746         * coverage.c: New. Coverage routines from profile.c
9747         (coverage_counter_ref, coverage_init, coverage_finish,
9748         coverage_end_function, coverage_begin_output,
9749         coverage_counter_ref, get_coverage_counts): Define.
9750         * gcov-dump.c, gcov.c: #include gcov-io.c.
9751         * libgcov.c: Likewise. Adjust.
9752         * loop-init.c: Don't #include profile.h
9753         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
9754         * rtl.h: Add coverage prototypes.
9755         * toplev.c (compile_file): Init coverage, not branch_prob.
9756         Always call coverage_finish.
9757         (rest_of_compilation): Call coverage_end_function.
9759 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
9761         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
9763 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
9765         * c-ppoutput.c (cb_include): Don't take a cpp_token.
9766         * cppfiles.c: Don't undef strcmp.
9767         (find_include_file): Don't take a cpp_token.  Check for empty
9768         file names.
9769         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
9770         (cpp_push_include): Simplify.
9771         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
9772         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
9773         (parse_include): Similary.  Don't check for zero-length filenames.
9774         (do_include_common, do_pragma_dependency): Update accordingly.
9775         * cpplib.h (struct cpp_callbacks): Change prototype of include.
9777 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9779         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
9780         details of conflict handling.
9782         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
9783         when conversion overflows.
9785         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
9787         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
9788         before clearing.
9790 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
9792         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
9793         have the same form as the old RTL.
9795 2003-04-21  Andreas Jaeger  <aj@suse.de>
9797         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
9799 2003-04-20  Chris Lattner  <sabre@nondot.org>
9800             Zack Weinberg  <zack@codesourcery.com>
9802         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
9803         genrtl_cleanup_stmt.  Correct comment at head of
9804         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
9806         * stmt.c (struct nesting): Kill n_function_calls.
9807         (expand_start_bindings): Don't set
9808         thisblock->data.block.n_function_calls.
9809         (expand_end_bindings): Compare function_call_count against 0.
9810         (expand_cleanups): Kill DONT_DO argument; all callers passed
9811         NULL_TREE. All callers updated to match.
9813 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
9815         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
9816         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
9817         (output_constant_def): Remove code predicated on
9818         defer_addressed_constants_flag.
9820         * output.h: Remove prototypes of deleted functions.
9821         * c-typeck.c (constructor_subconstants_deferred): Kill.
9822         (struct initializer_stack): Remove 'deferred' field.
9823         (start_init): Remove all references to the above.
9824         (finish_init): Likewise. Also remove never-executed call to
9825         output_deferred_addressed_constants.  Pull assignment to
9826         defstr out of if expression.
9828 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
9830         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
9831         NOTE_NEWLINE): Remove.
9832         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
9833         to handle new form of line note type.
9835 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
9837         * target.h (encode_section_info): Add new argument carrying
9838         the RTL to be modified by the hook.
9840         * varasm.c (make_decl_rtl, output_constant_def): Update calls
9841         to encode_section_info.
9842         (default_encode_section_info): Take and use RTL argument,
9843         don't use TREE_CST_RTL or DECL_RTL.
9844         * output.h: Update prototype of default_encode_section_info.
9845         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
9846         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
9847         Update calls to encode_section_info.
9849         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
9850         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
9851         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
9852         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
9853         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
9854         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
9855         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
9856         except for PE dllimport/dllexport.  Update calls to
9857         default_encode_section_info.
9859         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
9860         Update prototypes.
9862         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
9864 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9866         PR/8705
9867         * pa.md (movccfp): New expander.
9868         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
9869         Reverse fcmp conditions.
9871 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9873         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
9874         of operand 1 correctly.
9876 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
9878         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
9879         * gcov.c (output_lines): Don't be so fussy about going past EOF.
9881 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
9883         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
9884         (cppcharset.o): New target.
9885         * c-lex.c (is_extended_char): Move to cppcharset.c.
9886         (utf8_extend_token): Delete.
9887         * cppcharset.c: New file.
9888         * cpphash.h (_cpp_valid_ucn): New.
9889         * cpplex.c (lex_identifier): Update prototype.
9890         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
9891         escapes.
9892         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
9893         in cppcharset.c.
9894         (lex_number, lex_identifier, cpp_parse_escape): Update.
9895         (_cpp_lex_direct): Update to handle UCNs.
9896         (cpp_avoid_paste): Don't paste to form a UCN.
9898 2003-04-19  Roger Sayle  <roger@eyesopen.com>
9900         * builtins.c (expand_builtin):  Don't expand a pure or const
9901         built-in function if the result will be ignored and none of
9902         its arguments are volatile.
9904 2003-04-19  Kean Johnston  <jkj@sco.com>
9906         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
9907         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
9908         target fragment now: t-sco5; dont compile crti.o.
9909         * config/i386/sco5.h: major overhaul to remove all COFF remnants
9910         and to use elfos.h for most definitions.
9911         (BSS_SECTION_ASM_OP): set correct segment attributes.
9912         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
9913         (DWARF2_UNWIND_INFO): Always set to 1.
9914         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
9915         (MD_STARTFILE_PREFIX_1): Define.
9916         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
9917         (DEFAULT_LINKER): Define if not specified to configure.
9918         (CTORS_SECTION_ASM_OP): Remove COFF crud.
9919         (DTORS_SECTION_ASM_OP): Remove COFF crud.
9920         (WINT_TYPE): Define.
9921         (SDB_DEBUGGING_INFO): Remove.
9922         (EXTRA_SECTIONS): Likewise.
9923         (EXTRA_SECTION_FUNCTIONS): Likewise.
9924         (CTOR_LIST_BEGIN): Likewise.
9925         (CTOR_LIST_END): Likewise.
9926         (INIT_SECTION_FUNCTION): Likewise.
9927         (FINI_SECTION_FUNCTION): Likewise.
9928         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
9929         (LOCAL_LABEL_PREFIX): Likewise.
9930         (NON_SAVING_SETJMP): Likewise.
9931         (RETURN_POPS_ARGS): Likewise.
9932         (ASM_OUTPUT_SKIP): Likewise.
9933         (TARGET_ASM_NAMED_SECTION): Likewise.
9934         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
9935         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
9936         (ASM_OUTPUT_IDENT): Likewise.
9937         (ASM_OUTPUT_CASE_LABEL): Likewise.
9938         (ASM_OUTPUT_ASCII): Likewise.
9939         (ASM_OUTPUT_LIMITED_STRING): Likewise.
9940         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
9941         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9942         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
9943         (ASM_FINISH_DECLARE_OBJECT): Likewise.
9944         (ASM_DECLARE_OBJECT_NAME): Likewise.
9945         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
9946         (ASM_DECLARE_FUNCTION_NAME): Likewise.
9947         (ASM_DECLARE_RESULT): Likewise.
9948         (ASM_WEAKEN_LABEL): Likewise.
9949         (SUPPORTS_WEAK): Likewise.
9950         (APPLY_RESULT_SIZE): Likewise.
9951         (LPREFIX): Likewise.
9952         (ALIGN_ASM_OP): Likewise.
9953         (ASCII_DATA_ASM_OP): Likewise.
9954         (IDENT_ASM_OP): Likewise.
9955         (ASM_SHORT): Likewise.
9956         (ASM_LONG): Likewise.
9957         (TYPE_ASM_OP): Likewise.
9958         (SIZE_ASM_OP): Likewise.
9959         (STRING_ASM_OP): Likewise.
9960         (SKIP_ASM_OP): Likewise.
9961         (EH_FRAME_SECTION_ASM_OP): Likewise.
9962         (READONLY_DATA_SECTION_ASM_OP): Likewise.
9963         (INIT_SECTION_ASM_OP): Likewise.
9964         (FINI_SECTION_ASM_OP): Likewise.
9965         (TEXT_SECTION_ASM_OP): Likewise.
9966         (DATA_SECTION_ASM_OP): Likewise.
9967         (TYPE_OPERANT_FORMAT): Likewise.
9968         (ASM_SPEC): Remove COFF code.
9969         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
9970         cause -pg to emit an error; use pcrt1elf.o with -pp
9971         (ENDFILE_SPEC): Likewise.
9972         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
9973         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
9974         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
9975         add -z alt_resolve to support weak symbols the way GCC wants them.
9976         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
9977         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
9978         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
9979         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
9980         (CRTSTUFF_T_CFLAGS_S): Define.
9981         (MULTILIB_OPTIONS): Likewise.
9982         (MULTILIB_DIRNAMES): Likewise.
9983         (MULTILIB_MATCHES): Likewise.
9984         (MULTILIB_EXTRA_OPTS): Likewise.
9985         (LIBGCC): Likewise.
9986         (INSTALL_LIBGCC): Likewise.
9987         (crti.o): Remove.
9988         * config/i386/t-sco5gas: Remove.
9989         * doc/install.texi: Updated for new OpenServer instructions.
9990         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
9992 2003-04-19  Kean Johnston  <jkj@sco.com>
9994         * fixinc/check.tpl: Allow user to over-ride diff program.
9995         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
9996         (sco_math): Added test for SCO math header files.
9997         (sco_regset): Added check for conflicts with ieeefp.h.
9998         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
9999         * fixinc/fixincl.x: Regenerated
10000         * fixinc/tests/base/math.h: Added sco_math tests.
10001         * fixinc/tests/base/string.h: New file.
10002         * fixinc/tests/base/sys/regset.h: New file.
10004 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10006         * cpphash.h (struct cpp_buffer): Remove backup_to.
10007         * cpplex.c (BACKUP, get_effective_char): Die.
10008         (_cpp_skip_block_comment): Assume '*' is location on entry.
10009         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
10010         (IF_NEXT_IS): Update.
10011         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
10013 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
10015         * README.Portability: Move to a new section and obsolete K+R
10016         portability issues.
10018 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
10020         * rtlanal.c (subreg_offset_representable_p):  Fix call of
10021         subreg_lowpart.
10023 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10025         * cpphash.h (struct cpp_reader): New member warned_dollar.
10026         * cpplex.c (continues_identifier_p): New function.
10027         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
10028         lex_number and lex_string, and simplify.
10029         (parse_slow, unescaped_terminator_p): Die.
10030         (_cpp_lex_direct): Update.
10032 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10034         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
10036 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
10038         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
10039         fork behavior.
10041 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10043         * cppexp.c (eval_token): Permit true and false even if pedantic.
10045 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10047         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
10049 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10051         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
10052         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
10053         (struct include_file): Remove fefcnt, mapped members.
10054         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
10055         (read_include_file): Don't use mmap, terminate buffers in '\r'.
10056         (purge_cache): Don't use munmap.
10057         * cpphash.h (CPP_BUF_COLUMN): Update.
10058         (lexer_state): Remove lexing_comment.
10059         (struct _cpp_line_note): New.
10060         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
10061         next_line and need_line.  Remove col_adjust and saved_flags.
10062         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
10063         _cpp_skip_block_comment, scan_out_logical_line): New.
10064         (_cpp_init_mbchar): Remove.
10065         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
10066         (cpp_read_main_file): Set line to 1 earlier.
10067         (post_options): -traditional-cpp doesn't want trigraphs.
10068         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
10069         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
10070         _cpp_get_fresh_line): New.
10071         (handle_newline, skip_escaped_newlines, trigraph_p,
10072         continue_after_nul, _cpp_init_mbchar): Remove.
10073         (get_effective_char): Update.
10074         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
10075         (skip_line_comment): Simplify.
10076         (skip_whitespace, parse_identifier, parse_slow, parse_number,
10077         parse_string): Update.
10078         (cpp_lex_direct): Use clean lines and process line notes.  Update.
10079         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
10080         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
10081         directly.
10082         (_cpp_handle_directive): Don't set saved_flags.
10083         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
10084         cpp_undef, handle_assertion, cpp_push_buffer): Update.
10085         (_cpp_pop_buffer): Free notes.
10086         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
10087         * cpppch.c (cpp_read_state): \n terminate buffer.
10088         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
10089         (copy_comment): Use _cpp_skip_block_comment.
10090         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
10091         Simplify.
10092         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
10093         save_replacement_text): Update.
10094         (scan_out_logical_line): Update to use clean lines and process
10095         line notes.
10096         * fix-header.c (read_scan_file): Update.
10098 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
10100         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
10101         null begin parameter (as well as pointer to null).
10102         (__deregister_frame_info_bases): Likewise.
10104 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10106         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
10107         hard or virtual register and copy into pseudo if replacement fails.
10109         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
10111         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
10113 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
10115         * calls.c (expand_call): Move special case for constructor calls
10116         to right place. Ensures constructor calls used to initialize
10117         arguments get a clean outgoing argument block for themselves.
10118         Move check for stack deallocation completeness until after last
10119         deallocation.  Add stack_pointer_delta to set of state
10120         variables saved and restored along with current stack_level.
10122         * integrate.c (expand_inline_function): Ensure non-const actuals
10123         don't end up const in the caller's flow after conversion to possibly
10124         const formal type.
10126 2003-04-18  Vincent Celier  <celier@gnat.com>
10128         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
10129         and *_DIV_EXPR as TRUNC_*_EXPR.
10131 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
10133         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
10134         for orphaned jump tables.
10136 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
10138         * reload1.c: Revert my previous patch on 2002-04-17.
10140 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10142         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
10143         Add Segher Boessenkool.
10145 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
10147         PR c/9177
10148         * c-decl.c (c_expand_body): Don't garbage collect the function
10149         body if we are going to dump it later.
10151 2003-04-18  Richard Henderson  <rth@redhat.com>
10153         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
10154         (alpha_end_function): Don't set them.
10155         (decl_in_text_section): Remove.
10156         (alpha_encode_section_info): Remove.
10157         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
10158         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
10159         sections, rather than decl_in_text_section results.
10161 2003-04-18  Roger Sayle  <roger@eyesopen.com>
10163         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
10164         and SIGN_EXTRACT.
10166 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10168         PR optimization/7675
10169         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
10170         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
10171         nested functions if they refer to declarations from parent functions.
10172         * stmt.c (expand_decl): Don't put automatic variables in registers
10173         if the DECL_NONLOCAL flag is set.
10175 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10177         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
10178         consider those to be movable where the source matches
10179         want_to_gcse_p.
10180         (update_ld_motion_stores): In comment, refer to
10181         compute_ld_motion_mems for validity of replacement.
10183 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
10185         * gcov-dump.c (tag_summary): Remove max_sum
10186         * gcov-io.h (gcov_summary, gcov_write_summary,
10187         gcov_read_summary): Kill max_sum.
10188         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
10189         message more verbose.
10191         * emit-rtl.c (subreg_hard_regno):  Check that register is
10192         representable.
10194         * reload.c (reload_inner_reg_of_subreg):  When register is not
10195         representable, reload the whole thing.
10196         (find_reloads): Likewsie.
10197         * rtlanal.c (subreg_representable_p):  New function.
10199         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
10200         allow negative probabilities for edges from the call to exit.
10201         (branch_prob): Do not add fake edges for functions that may return
10202         twice.
10204 2003-04-17  DJ Delorie  <dj@redhat.com>
10206         * toplev.c (target_options): Add value field.
10207         (set_target_switch): Handle target options with values.
10208         * doc/tm.texi: Document how fixed vs variable target
10209         options work.
10210         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10211         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
10212         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10213         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
10214         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10215         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10216         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
10217         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
10218         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
10219         Add value initializer to target options.
10221 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
10223         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
10225 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10227         * reload1.c (move2add_last_cc0): New.
10228         (reload_cse_move2add): Detect implicit sets.
10229         (move2add_note_store): Notice a store into cc0.
10231 2003-04-17  Roger Sayle  <roger@eyesopen.com>
10233         PR c/10375
10234         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
10235         function attributes.
10237 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
10239         * doc/sourcebuild.texi (Test Suites): Document support for testing
10240         binary compatibility (moved from testsuite/README.compat).
10242 2003-04-17  Richard Henderson  <rth@redhat.com>
10244         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
10246 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
10248         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
10249         the one provided by the FSF.
10251 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10253         * doc/install.texi (Binaries): Update URL and list of platforms
10254         provided by ftp.thewrittenword.com.
10256 2003-04-17  Richard Henderson  <rth@redhat.com>
10258         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
10259         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
10260         * config/xtensa/xtensa.md (call, call_value): Likewise.
10262 2003-04-17  Richard Henderson  <rth@redhat.com>
10264         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
10265         (print_operand_address): Likewise.
10266         (ep_memory_operand): Likewise.
10267         (special_symbolref_operand): Likewise.
10268         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
10269         (v850_encode_section_info): Call default_encode_section_info.
10270         (v850_strip_name_encoding): Remove.
10271         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
10272         (ASM_OUTPUT_LABELREF): Remove.
10273         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
10274         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
10275         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
10276         (ENCODED_NAME_P): Remove.
10277         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
10278         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
10279         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
10281 2003-04-17  Richard Henderson  <rth@redhat.com>
10283         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
10284         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
10285         SYMBOL_REF_FUNCTION_P.
10287 2003-04-17  Richard Henderson  <rth@redhat.com>
10289         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
10290         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
10291         (text_segment_operand): Likewise.
10293 2003-04-17  Richard Henderson  <rth@redhat.com>
10295         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
10296         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10297         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10298         (sh_encode_section_info): Remove.
10299         (sh_strip_name_encoding): Remove.
10300         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
10301         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
10302         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
10303         (ASM_OUTPUT_LABELREF): Remove.
10304         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
10305         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
10307 2003-04-17  Richard Henderson  <rth@redhat.com>
10309         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
10310         (tls_model_chars): Remove.
10311         (larl_operand): Use SYMBOL_REF_FLAGS.
10312         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10313         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10314         (s390_output_mi_thunk): Likewise.
10315         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
10316         (s390_function_profiler): Likewise.
10317         (s390_encode_section_info): Use default_encode_section_info
10318         and SYMBOL_FLAG_ALIGN1.
10319         (s390_strip_name_encoding): Remove.
10320         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
10321         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
10322         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
10324 2003-04-17  Richard Henderson  <rth@redhat.com>
10326         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
10327         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
10328         (print_operand_address): Likewise.
10330         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
10331         * config/ns32k/ns32k.c (expand_block_move): Don't check
10332         flag_unroll_loops.
10334 2003-04-17  Richard Henderson  <rth@redhat.com>
10336         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
10337         SYMBOL_REF_FLAG.
10339 2003-04-17  Richard Henderson  <rth@redhat.com>
10341         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
10343         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
10344         (SYMBOL_REF_MODEL): New.
10345         (LIT_NAME_P): Move from m32r.h.
10346         (m32r_select_section): Remove.
10347         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
10348         (m32r_strip_name_encoding): Remove.
10349         (m32r_in_small_data_p): New.
10350         (small_data_operand): Use SYMBOL_REF_SMALL_P.
10351         (addr24_operand): Use SYMBOL_REF_MODEL.
10352         (call26_operand): Likewise.
10353         (addr32_operand): Tidy.
10354         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
10355         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
10356         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
10357         (READONLY_DATA_SECTION_ASM_OP): Remove.
10358         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10359         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
10360         (TARGET_ASM_SELECT_SECTION): Remove.
10361         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
10362         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
10363         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
10364         (ASM_OUTPUT_LABELREF): Remove.
10366 2003-04-17  Richard Henderson  <rth@redhat.com>
10368         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
10369         (encode_section_info): Remove.
10370         * config/ip2k/ip2k-protos.h: Update.
10372 2003-04-17  Richard Henderson  <rth@redhat.com>
10374         * varasm.c (default_encode_section_info): Don't set
10375         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
10376         * config/i370/i370.c (i370_encode_section_info): Remove.
10377         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
10378         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
10379         * config/i370/i370.md (movsi): Likewise.
10381         * config/i370/t-i370: Add missing backslash.
10383 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
10385         * doc/invoke.texi (inline-limit): Fix pasto.
10387 2003-04-17  Richard Henderson  <rth@redhat.com>
10389         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
10390         (small_call_insn_operand): Use it.
10391         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
10392         (h8300_eightbit_constant_address_p): Use it.
10393         (SYMBOL_FLAG_TINY_DATA): New.
10394         (h8300_tiny_constant_address_p): Use it.
10395         (h8300_encode_label, h8300_strip_name_encoding): Remove.
10396         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
10397         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
10398         (ASM_OUTPUT_LABELREF): Remove.
10400 2003-04-16  Richard Henderson  <rth@redhat.com>
10402         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
10403         all users with SYMBOL_REF_SMALL_P.
10404         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
10405         (frv_encode_section_info): Remove.
10406         (frv_strip_name_encoding): Remove.
10407         (frv_in_small_data_p): Merge tests from encode_section_info.
10408         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
10409         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
10410         (SDATA_NAME_P): Remove.
10411         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
10412         (ASM_OUTPUT_LABELREF): Remove.
10413         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
10415         * config/frv/frv.c (frv_asm_out_constructor): New.
10416         (frv_asm_out_destructor): New.
10417         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
10418         (DTORS_SECTION_ASM_OP): New.
10419         (ASM_OUTPUT_CONSTRUCTOR): Remove.
10420         (ASM_OUTPUT_DESTRUCTOR): Remove.
10422 2003-04-16  Richard Henderson  <rth@redhat.com>
10424         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
10425         SYMBOL_REF_LOCAL_P; abort if not pic.
10426         (cris_encode_section_info): Remove.
10428 2003-04-16  Richard Henderson  <rth@redhat.com>
10430         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
10431         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
10433         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
10434         flag_inline_trees.
10436 2003-04-16  Richard Henderson  <rth@redhat.com>
10438         * config/avr/avr.c (avr_encode_section_info): Remove.
10439         (avr_insert_attributes): New.
10440         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
10441         (avr_assemble_integer): Likewise.
10443 2003-04-16  Richard Henderson  <rth@redhat.com>
10445         * arc.c (arc_encode_section_info): Remove.
10446         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
10447         (arc_print_operand, arc_print_operand_address): Likewise.
10448         * arc.h (EXTRA_CONSTRAINT): Likewise.
10450 2003-04-16  Roger Sayle  <roger@eyesopen.com>
10452         * c-semantics.c (find_reachable_label): New function to find a
10453         potentially reachable label in an expression.
10454         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
10455         assumes the start of the IF_STMT is unreachable (dead) code.
10456         (expand_unreachable_stmt): Similar to expand_stmt but assumes
10457         the start of the statement list is unreachable (dead) code.
10458         (genrtl_if_stmt):  If the controlling expression of the IF
10459         is constant, use expand_unreachable_stmt for the THEN or ELSE
10460         clause as appropriate.
10461         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
10462         the body of a SWITCH statement.
10463         (expand_stmt): The code immediately following a "return",
10464         "break", "continue" or "goto" is unreachable.
10465         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
10467 2003-04-16  Richard Henderson  <rth@redhat.com>
10469         * rtl.h (MEM_ALIAS_SET): Update documentation.
10470         * doc/rtl.texi (Special Accessors): New node.
10471         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
10473 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
10475         * reload1.c (reload_cse_noop_set_p): Return false if mode of
10476         SET_DEST is not the same as that returned by...
10477         * cselib.h (cselib_reg_set_mode): ... new function.
10478         * cselib.c (cselib_reg_set_mode): Define it.
10479         (REG_VALUES): Document semantics of first element as set mode.
10480         (cselib_subst_to_values): Skip first element if ELT is NULL.
10481         (cselib_lookup): Likewise.  Insert past the first element.
10482         (cselib_invalidate_regno): NULLify first element.
10483         (cselib_record_set): Set first element.
10485 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
10487         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
10488         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
10489         * tree.h: Add prototypes for the two new functions.
10490         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
10491         updates introduced in the previous revision by call to saved_expr_p.
10492         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
10494         * expr.c (store_field): Force usage of bitfield instructions when
10495         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
10496         (expand_expr, case BIT_FIELD_REF): likewise.
10498 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
10500         PR middle-end/8866
10501         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
10502         jumptables.
10504 2003-04-16  Richard Henderson  <rth@redhat.com>
10506         * config/ia64/ia64.c (sdata_symbolic_operand): Use
10507         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
10508         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10509         (function_operand): Use SYMBOL_REF_FUNCTION_P.
10510         (ia64_expand_load_address): Likewise.
10511         (ia64_assemble_integer): Likewise.
10512         (ia64_encode_section_info): Remove.
10513         (ia64_strip_name_encoding): Remove.
10514         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
10515         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
10517 2003-04-16  Richard Henderson  <rth@redhat.com>
10519         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
10520         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
10521         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
10522         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
10523         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
10524         (global_symbolic_operand): Similarly.
10525         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
10526         (tls_symbolic_operand_type): Likewise.
10527         (alpha_encode_section_info): Use default_encode_section_info.
10528         (alpha_strip_name_encoding): Remove.
10529         (get_tls_get_addr): Split out from ...
10530         (alpha_legitimize_address): ... here.
10531         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
10532         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
10533         (alpha_initialize_trampoline): Use init_one_libfunc.
10534         (alpha_setup_incoming_varargs): Mark unused parameters.
10535         (alpha_initial_elimination_offset): Likewise.
10536         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
10537         (unicosmk_unique_section): Use default_strip_name_encoding.
10538         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
10540 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
10542         * config.gcc: Add t-spe for eabispe.
10544         * config/rs6000/t-spe: New.
10546 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
10548         Re-apply this patch:
10550         2002-05-16  Dale Johannesen  <dalej@apple.com>
10551           * combine.c (cant_combine_insn_p):  Reenable combinations
10552           involving hard regs unless CLASS_LIKELY_SPILLED_P.
10554 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10556         PR/10271
10557         * pa-protos.h (function_arg): Remove last argument.
10558         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
10559         * pa.h (struct hppa_args): Add member incoming.
10560         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
10561         member incoming.
10562         (FUNCTION_ARG): Revise call to function_arg.
10563         (FUNCTION_INCOMING_ARG): Delete.
10565 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
10567         * configure.in: Unify the code which creates symlinks to a
10568         just-built as, ld, objdump, and nm with the code that detects
10569         their presence for purposes of feature tests.
10570         * configure: Regenerate.
10572 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
10574         * varasm.c (output_constant_def): Do not consult
10575         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
10576         (after_function_constants, output_after_function_constants): Delete.
10577         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
10578         * config/mips/mips-protos.h, config/mips/mips.c
10579         (mips16_constant_after_function_p): Delete.
10580         * config/mips/mips.h: Delete #if-0-ed definition of
10581         CONSTANT_AFTER_FUNCTION_P.
10582         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
10583         mention of CONSTANT_AFTER_FUNCTION_P in comment.
10585 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
10587         * tree.c (next_decl_uid): Mark with GTY.
10588         (next_type_uid): Likewise.
10590 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
10592         PR target/9594:
10593         * sh.c (barrier_align): Also recognize stuff_delay_slot as
10594         an indicator that a barrier was created by branch splitting.
10596 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
10598         * c-decl.c (implicitly_declare): Copy declarations that are going
10599         to be placed in a local scope.
10601 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
10603         * invoke.texi (Spec Files): Wrap if-exists-else example.
10604         (MCore): Remove duplicate @itemx entries and @opindex entries.
10606 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
10608         * unwind.inc (_Unwind_Backtrace): New function.
10609         * unwind.h (_Unwind_Backtrace): Declare it.
10610         * libgcc-std.ver (_Unwind_Backtrace): Export it.
10612 2003-04-14  Jason Merrill  <jason@redhat.com>
10614         PR middle-end/10336, c++/10401
10615         * jump.c (never_reached_warning): Also stop looking if we reach the
10616         beginning of the function.
10618 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10620         PR target/10338
10621         PR bootstrap/10198
10622         PR bootstrap/10140
10623         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
10625 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
10627         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
10629 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10631         * optabs.c (expand_binop): In multi-word add cases, ensure
10632         XTARGET is copied to TARGET if they are different.
10634 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
10636         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
10637         to region, possible after integration of function with unreachable
10638         regions that were optimized away.
10640 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
10642         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
10643         instead of TOC_REGISTER in epilogue in
10644         current_function_calls_eh_return functions.
10646 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
10648         * doc/extend.texi (Empty Structures): Correct description of G++'s
10649         handling of these structures.
10651         * c-decl.c (grokdeclarator): Reject extern redeclarations of
10652         static variables.
10654 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
10656         * config/rs6000/rs6000.md (define_constants): Define constants for
10657         all UNSPEC usage, including new values for TLS support.
10658         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
10659         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
10660         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
10661         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
10662         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
10663         eh_set_lr_di): Use them.
10664         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
10665         rs6000_emit_epilogue) Use them.
10667         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
10669 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
10671         * Makefile.in (c-opts.o): Use custom action.
10673 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
10675         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
10677 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10679         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
10680         handle "superflat arrays" in Ada.
10682         * integrate.c (expand_inline_function): Don't inline if would
10683         lose /u on a BLKmode TARGET.
10685 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
10687         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
10688         extracted from dbxout_type.
10689         (dbxout_range_type): print large bounds in octal format.
10690         (dbxout_type): Replace extracted code by call to
10691         print_int_cst_bounds_in_octal_p.
10693         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
10694         of DW_LANG_Ada83 for Ada units.
10696 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
10698         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
10699         temporary used to round CONST_INT sizes.
10701         * tree.c (int_fits_type_p): Extract generic checks from the case
10702         of constant type bounds. Refine the checks against constant type
10703         bounds to allow for possible decisions against each of these bounds
10704         without requiring both bounds to be constant.
10705         (tree_int_cst_msb): Put back.
10706         * tree.h (tree_int_cst_msb): Likewise.
10708         * global.c (global_conflicts): Prevent allocation of call clobbered
10709         hard regs to pseudos live across abnormal edges, as later passes are
10710         not ready to handle them.
10712         * fold-const.c (fold): Reorder tests for conditional expressions.
10714         * expr.c (highest_pow2_factor): Return unsigned.
10715         * expr.h (offset_address): Likewise.
10716         * emit-rtl.c (offset_address): POW2 argument now unsigned.
10718 2003-04-14  Roger Sayle  <roger@eyesopen.com>
10720         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
10721         string literals at compile-time.
10723 2003-04-14  Roger Sayle  <roger@eyesopen.com>
10725         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
10726         comparison operation and c1/c2 are floating point constants into
10727         x swap(cmp) (c1 - c2).
10729 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
10731         * genautomata.c (output_translate_vect): Fix a typo in loop
10732         condition.
10734 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
10736         PR target/10377
10737         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
10738         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
10739         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
10740         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
10741         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
10742         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
10743         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
10744         ("*extopqihi_swap_side", "*extopqisi_swap_side")
10745         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
10746         When next to constraint R, replace constraint i with n.
10748 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
10750         PR opt/10024
10751         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
10753 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
10755         * doc/contrib.texi (Contributors): Correct my entry.
10757 2003-04-13  Roger Sayle  <roger@eyesopen.com>
10759         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
10760         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
10761         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
10762         implies DECL_BUILT_IN to simplify logic.
10763         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
10765 2003-04-13  Roger Sayle  <roger@eyesopen.com>
10767         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
10768         (BT_FN_PTR_SIZE_SIZE): Likewise.
10769         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
10770         New built-in functions for malloc, calloc and strdup respectively.
10771         * calls.c (special_function_p): No need to handle malloc-like
10772         functions any longer.  ECF_MALLOC is set via built-in attributes.
10774         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
10776         * doc/extend.texi: Document these new built-in functions.
10778 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10780         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
10781         (expand_builtin_stpcpy): New.
10782         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
10783         * builtins.def: Add mempcpy & stpcpy support.
10784         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
10786 2003-04-13  Nick Clifton  <nickc@redhat.com>
10788         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
10789         "GCC".
10790         * config/rs6000/40x.md, config/rs6000/603.md,
10791         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
10792         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
10793         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
10794         config/rs6000/aix43.h, config/rs6000/aix51.h,
10795         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
10796         config/rs6000/altivec.h, config/rs6000/altivec.md,
10797         config/rs6000/beos.h, config/rs6000/darwin.h,
10798         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
10799         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
10800         config/rs6000/freebsd.h, config/rs6000/gnu.h,
10801         config/rs6000/host-darwin.c, config/rs6000/linux.h,
10802         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
10803         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
10804         config/rs6000/netbsd.h, config/rs6000/power4.md,
10805         config/rs6000/rios1.md, config/rs6000/rios2.md,
10806         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
10807         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10808         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
10809         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
10810         config/rs6000/spe.md, config/rs6000/sysv4.h,
10811         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
10812         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
10814 2003-04-13  Nick Clifton  <nickc@redhat.com>
10816         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
10817         support for -mcall-aix switch.
10818         * config/rs6000/eabiaix.h: Delete.
10819         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
10820         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
10821         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
10822         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
10823         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
10824         debug_stack_info, output_function_profiler,
10825         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
10826         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
10827         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
10828         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
10829         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
10830         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
10831         multilibs.
10832         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
10833         (MULTILIB_EXCEPTIONS): Delete.
10834         (MULTILIB_MATCHES): Remove mcall-aix matches.
10836         * doc/fragments.texi: Replace -mcall-aix example with an ARM
10837         one.
10838         * doc/install.texi: Delete powerpc-*-eabiaix target.
10839         * doc/invoke.texi: Remove documentation of mcall-aix switch.
10840         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
10841         * config.gcc: Delete powerpc-*-eabiaix target.
10843 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
10845         * doc/invoke.texi: Fix typos.
10846         * doc/tm.texi: Likewise.
10848 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
10850         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
10852 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
10854         * tree.c (build_constructor): New function.
10855         * tree.h: Prototype it.
10857         * c-typeck.c (build_c_cast, pop_init_level)
10858         * profile.c (build_function_info_value, build_gcov_info_value)
10859         (create_profiler):
10860         Use build_constructor.
10862         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
10864         * objc/objc-act.c (build_constructor):
10865         Rename objc_build_constructor. Use build_constructor.
10866         (build_objc_string_object, objc_add_static_instance)
10867         (init_def_list, init_objc_symtab, init_module_descriptor)
10868         (generate_static_references, build_selector_translation_table)
10869         (build_descriptor_table_initializer, generate_descriptor_table)
10870         (build_protocol_initializer, build_ivar_list_initializer)
10871         (generate_ivars_list, build_dispatch_table_initializer)
10872         (generate_dispatch_table, generate_protocol_list)
10873         (build_category_initializer, build_shared_structure_initializer):
10874         Update to match.
10876 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
10878         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
10880 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
10882         * config/m68hc11/m68hc11-protos.h
10883         (m68hc11_eq_compare_operator): Declare
10884         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
10885         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
10886         (d_register_operand): Check the operand mode.
10887         (hard_addr_reg_operand): Likewise.
10889 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
10891         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
10892         pattern for dbcc/ibcc generation for 68HC12.
10893         ("doloop_end"): New pattern.
10894         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
10895         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
10896         ("m68hc12_dbcc_dec_qi"): New pattern.
10897         ("m68hc12_dbcc_inc_qi"): New pattern.
10898         (split): Add split for the above when we can't use dbcc/ibcc due to
10899         reloading.
10900         (peephole2): Add peephole2 to generate the above when possible.
10902 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
10904         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
10905         mode of operand 0.
10906         (peephole2 optimize const load): Likewise for operand 2.
10907         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
10908         clobbers CC_REGNUM.
10909         ("*rotrhi3_with_carry"): Likewise.
10910         (ashift:DI 1 split): Update pattern to create the above rotate.
10911         (lshiftrt:DI 1 split): Likewise.
10913 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
10915         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
10916         ("tstqi_z_used" split): Use it.
10917         ("cmphi_z_used"): Likewise.
10918         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
10919         ("cmpqi_z_used"): Likewise.
10921 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
10923         PR c++/7910
10924         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
10926 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
10928         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
10929         * configure, config.in: Regenerate.
10930         * intl.c (gcc_gettext_width): New function.
10931         * intl.h: Prototype it.
10933 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
10935         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
10936         recognize -mnorelax.
10937         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
10938         (REG_CLASS_NAMES): Add its name.
10939         (REG_CLASS_CONTENTS): Define its content.
10941 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
10943         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
10944         parameters so that offsets are valid for far definition.
10945         (__mulsi3): Likewise and use ret to return.
10946         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
10948 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
10950         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
10952 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
10954         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
10955         containing a libgcc.a, move lib* to the corresponding stage dir.
10957         * Makefile.in (stage1-start, stage2-start, stage3-start,
10958         stage4-start): Move $(SPECS) to specs in stage dir.
10959         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
10960         back as $(SPECS).
10962         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
10963         object files from the non-libgcc/ multilib directories as well.
10965 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
10967         * profile.c (read_counts_file): Initialise 'checksum'.
10969         * emit-rtl.c (gen_rtx): Really correct typo.
10971         PR c++/9393
10972         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
10973         * configure.in: Check for gettimeofday.
10974         * tree.c (flag_random_seed): Define.
10975         (default_flag_random_seed): New.
10976         (append_random_chars): Use flag_random_seed rather than trying
10977         to acquire randomness here.
10978         * tree.h (default_flag_random_seed): Declare.
10979         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
10980         descriptions.
10981         (decode_f_option): Handle -frandom-seed.
10982         (print_switch_values): Call default_flag_random_seed.
10983         * flags.h (flag_random_seed): Declare.
10984         * configure: Regenerate.
10985         * config.in: Regenerate.
10986         * config/alpha/t-crtfm: Use -frandom-seed.
10988         * doc/extend.texi (Empty Structures): New.
10990         * c-pch.c: Include flags.h.  Add comments to routines.
10991         (struct c_pch_validity): New.
10992         (get_ident): Update PCH file version number.
10993         (pch_init): Output current debugging type.
10994         (c_common_valid_pch): Check debugging type.
10995         * Makefile.in (c-pch.o): Update dependencies.
10996         * flags.h (debug_type_names): Declare.
10997         * toplev.c (debug_type_names): Move out of decode_g_option.
10999 2003-04-11  Eric Christopher  <echristo@redhat.com>
11001         * emit-rtl.c (gen_rtx): Fix typos.
11003 2003-04-11  Richard Henderson  <rth@redhat.com>
11005         * emit-rtl.c (gen_rtx): Zero '0' fields.
11007 2003-04-11  Richard Henderson  <rth@redhat.com>
11009         PR c++/10202
11010         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
11011         not COMPLETE_TYPE_P for re-invoking layout_decl.
11013 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
11015         * doc/bugreport.texi: Fix paragraph breaking between sections
11016         in preparation for TeXinfo's paragraph indentation fixes.
11017         * doc/extend.texi: Ditto.
11018         * doc/invoke.texi: Ditto.
11019         * doc/objc.texi: Ditto.
11020         * doc/gcov.texi: Wrap 'gcov' in @command{}.
11021         * doc/invoke.texi (Darwin Options): Add a preamble.
11023 2003-04-11  Richard Henderson  <rth@redhat.com>
11025         * config/i386/i386.c (tls_model_chars): Remove.
11026         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
11027         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11028         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11029         (tls_symbolic_operand_1): Likewise.
11030         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
11031         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
11032         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
11033         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
11034         bits "copied from i386.h" with default_encode_section_info.
11036 2003-04-11  Richard Henderson  <rth@redhat.com>
11038         * rtl.def (SYMBOL_REF): Add two 0 fields.
11039         * gengtype.c (adjust_field_rtx_def): Handle them.
11040         * print-rtl.c (print_rtx): Print them.
11041         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
11042         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
11043         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
11044         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
11045         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
11046         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
11047         (SYMBOL_FLAG_MACH_DEP): New.
11048         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
11049         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
11050         (assemble_static_space): Set SYMBOL_REF_FLAGS.
11051         (assemble_trampoline_template): Likewise.
11052         (output_constant_def, force_const_mem): Likewise.
11053         (default_encode_section_info): New.
11054         * output.h: Declare it.
11055         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
11057 2003-04-11  Richard Henderson  <rth@redhat.com>
11059         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
11060         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
11061         * optabs.c (init_optabs): Initialize them.
11062         (init_libfuncs): Use init_one_libfunc.
11063         * calls.c (expand_call): Use gcov_flush_libfunc.
11064         * expr.c (store_constructor): Use setbits_libfunc.
11065         * function.c (expand_main_function): Use init_one_libfunc.
11066         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
11068 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
11070         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
11071         documentation; add DECL_FRIEND_CONTEXT.
11073 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11075         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
11076         notes on linker selection and configuration for 64-bit HP-UX port.
11077         * doc/invoke.texi (hppa): Remove hppa text from description for
11078         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
11079         and -threads options.
11081         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
11082         libc.a on libdld.sl when -static is specified and -nolibdld is not
11083         specified.
11084         * pa64-hpux.h (LIB_SPEC): Likewise.
11085         * pa-hpux11.h (LIB_SPEC): Likewise.
11086         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
11087         is not specified.
11089 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
11091         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
11092         not IDENTIFIER_LOCAL_VALUE.
11094 2003-04-11  Richard Henderson  <rth@redhat.com>
11096         PR c/10201
11097         * expr.c (expand_expr): Move DECL_RTL frobbing ...
11098         * stor-layout.c (layout_decl): ... here.
11100 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
11102         * doc/invoke.texi: Eliminate extra white-space caused by
11103         @gccoptlist{ on its own line.
11104         * doc/invoke.texi: Ensured there are two spaces between each option.
11105         * doc/invoke.texi: Re-wrapped option lines that were too wide.
11106         Added @gol to options that didn't have them.
11108 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
11110         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
11111         gcov-iov.h.
11113         Simplify interface to gcov reading and writing.
11114         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
11115         gcov_alloc, gcov_modified, gcov_errored): Move into ...
11116         (struct gcov_var gcov_var): ... this static structure.
11117         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
11118         Return void.
11119         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
11120         read object.
11121         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
11122         (gcov_reserve_length): Remove.
11123         (gcov_write_tag): New.
11124         (gcov_write_length): Adjust.
11125         (gcov_read_summary, gcov_write_summary): Adjust.
11126         (gcov_eof, gcov_ok): Rename to ...
11127         (gcov_is_eof, gcov_is_error): ... here. Return error code.
11128         (gcov_save_position, gcov_resync): Rename to ...
11129         (gcov_position, gcov_seek): ... here.
11130         (gcov_skip, gcov_skip_string): Remove.
11131         (gcov_error): Remove.
11132         (gcov_open, gcov_close): Adjust.
11133         * gcov.c (find_source): Take const char *, copy it on allocation.
11134         (read_graph_file): Adjust.
11135         (read_count_file): Adjust.
11136         * libgcov.c (gcov_exit): Adjust.
11137         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
11138         tag_arc_counts, tag_summary): Return void. Adjust.
11139         (struct tag_format): Adjust proc member.
11140         (dump_file): Adjust gcov calls.
11142 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
11144         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
11145         mkfixinc.sh.
11146         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
11147         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
11148         build != host sysrooted builds.
11149         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
11150         TARGET_SYSTEM_ROOT even on sysrooted natives.
11151         * configure: Rebuilt.
11153 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11155         * c-decl.c (struct binding_level): Add shadowed_tags and
11156         function_body; remove this_block, tag_transparent, and
11157         subblocks_tag_transparent; update comments.
11158         (clear_binding_level, lookup_tag_reverse): Kill.
11159         (make_binding_level): Use ggc_alloc_cleared or memset.
11160         (lookup_tag): Remove struct binding_level* parameter.  All
11161         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
11162         current_binding_level->tags if asked for thislevel_only or if
11163         we might have to diagnose "struct foo; union foo;"
11164         (pushlevel): Ignore argument.  Do not push another binding
11165         level on the transition from the parameters to the top level
11166         of the function body; just tweak the flags and proceed.
11167         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
11168         a function body, separate the parameter list from the
11169         top-level local variables.
11170         (set_block): Do nothing.
11171         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
11172         shadowed_tags if necessary.
11173         (warn_if_shadowing): Nuke the special case for local shadowing
11174         parameter.
11175         (pushdecl): Do not create a shadow entry if we are replacing
11176         an older decl in the same binding level.
11177         (pushdecl_function_level): Tweak for new way of indicating
11178         function scope.
11179         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
11180         (start_function): Don't set subblocks_tag_transparent.
11181         (finish_function): Fix up the binding_level stack for totally
11182         empty functions.  Otherwise, don't call poplevel.
11184         * c-common.c (shadow_warning): MANDATORY argument is no longer
11185         necessary.  Always use plain warning.
11186         * c-common.h: Update to match.
11188         * cfglayout.c (scope_to_insns_initialize): Clear block when we
11189         hit the FUNCTION_DECL.
11190         * function.c: Do not create cyclic tree structure.
11192 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11194         * c-tree.h (struct lang_identifier): Replace global_value,
11195         local_value members with symbol_value, tag_value.  Kill
11196         implicit_decl and limbo_value.
11197         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
11198         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
11199         C_MISSING_PROTOTYPE_WARNED): Kill.
11200         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
11201         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
11202         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
11203         (implicit_decl_warning, lookup_name_current_level,
11204         record_function_scope_shadow): Don't prototype.
11205         (pushdecl_function_level): Prototype.
11207         * c-decl.c (truly_local_externals): New variable.
11208         (struct binding_level): Adjust commentary.
11209         (get_function_binding_level, clear_limbo_values,
11210         record_function_scope_shadow): Kill.
11211         (lookup_name_current_level, implicit_decl_warning): Are now static.
11212         (any_external_decl, record_external_decl): New static functions.
11213         (clone_underlying type): Split out of pushdecl.
11214         (c_print_identifier): Update to match changes to struct
11215         lang_identifier.
11216         (poplevel): Delete #if 0 block.  Make externals invisible
11217         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
11218         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
11219         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
11220         (duplicate-decls): For real parm decl after a forward decl,
11221         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
11222         foo(...) { } with only a warning.  Say whether a previous
11223         declaration was implicit.
11224         (warn_if_shadowing): Now handles all shadowing, not just
11225         local-over-local.  Clarify comments.
11226         (pushdecl): Rewritten.  There is no longer a distinction
11227         between global and local symbol values; they're all
11228         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
11229         DECL_EXTERNAL decls, and use any_external_decl to check
11230         against previous externals.  Kill #if 0 blocks.  Don't
11231         tolerate error_mark_node being NULL.
11232         (pushdecl_top_level): Handle only those cases which
11233         Objective C (the only user) needs.
11234         (pushdecl_function_level): New function.
11235         (implicitly_declare): Create ordinary decls with
11236         C_DECL_IMPLICIT set.  Recycle old decls, however they got
11237         created.
11238         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
11239         for C_DECL_INVISIBLE symbols.
11240         (lookup_name_current_level): Likewise.  Use chain_member.
11241         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
11242         Use pushdecl_function_level.
11243         (builtin_function): Use C_DECL_INVISIBLE.
11244         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
11245         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
11246         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
11247         (identifier_global_value): Same.  Must scan
11248         global_binding_level in extremis.
11250         * c-typeck.c (undeclared_variable): New static function, split
11251         from build_external_ref.
11252         (build_external_ref): Use DECL_CONTEXT, not
11253         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
11254         an instance variable.  Restructure for clarity.
11255         * objc/objc-act.c: Use identifier_global_value, not
11256         IDENTIFIER_GLOBAL_VALUE.
11258 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
11260         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
11261         not Working Paper.
11262         * doc/invoke.texi (C++ Dialect Options): Same.
11264 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11266         * tree.c (tree_operand_check_failed): New function.
11267         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
11268         TREE_RTL_OPERAND_CHECK): New checking macros.
11269         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
11270         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
11271         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
11272         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
11273         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
11274         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
11275         checking macros.
11277 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
11279         PR inline-asm/8803
11280         * function.c (instantate_virtual_regs):  Verify that all ASM statements
11281         match after the virutal regs instantiation.
11283 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
11285         * ia64-protos.h (addp4_optimize_ok): New.
11286         * ia64.c (addp4_optimize_ok): New.
11287         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
11288         (*ptr_extend_plus_2): Ditto.
11290 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
11292         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
11293         not with convert_memory_address.
11294         (store_constructor): Ditto, and same for copy_size_rtx.
11295         (expand_expr): Ditto.
11297 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
11299         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
11301 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
11303         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
11304         even if it is configured to be write-through.
11306 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11308         * config/s390/s390.c (larl_operand): Do not allow symbols
11309         marked with '@'.
11310         (s390_encode_section_info): Mark symbols with forced 1-byte
11311         alignment with '@'.
11312         (s390_strip_name_encoding): Strip '@'.
11313         (legitimize_pic_address): Handle symbols that are not valid
11314         LARL operands in 64-bit mode.
11316 2003-04-10  Andrew Haley  <aph@redhat.com>
11318         * tree-inline.c (inlinable_function_p): Disable inlining for
11319         synchronized methods.
11321 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
11323         * c-common.h (lang_statement_code_p): Remove declaration.
11324         (statement_code_p): Ditto.
11325         (c_common_stmt_codes): Define; list of c-common statement codes.
11326         (statement_code_p): New extern declaration.
11327         (STATEMENT_CODE_P): Define.
11328         (INIT_STATEMENT_CODES): Define.
11329         * c-common.c (statement_code_p): Kill the function, declare
11330         as an array of bools instead.
11331         (lang_statement_code_p): Remove.
11332         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
11333         (c_safe_from_p): Ditto.
11334         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
11335         to initialize the statement_code_p array.
11336         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
11337         statement_code_p.
11338         (copy_tree_r): Ditto.
11339         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
11340         statement tree codes.
11341         * cp/lex.c (cxx_init): Add missing print line break.  Use
11342         INIT_STATEMENT_CODES to initialize the statement_code_p array.
11343         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
11344         instead of statement_code_p.
11345         * cp/pt.c (tsubst_expr): Ditto.
11346         * cp/tree.c (verify_stmt_tree_r): Ditto.
11347         (cp_statement_code_p): Remove.
11348         (init_tree): Don't set lang_statement_code_p, it's gone.
11350 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
11351             Zack Weinberg  <zack@codesourcery.com>
11353         * regrename.c (struct du_chain): Use a bitfield for reg_class.
11354         * cse.c (struct qty_table_elem, struct table_elt, struct set):
11355         Use bitfields for fields holding enum rtx_code or
11356         enum machine_mode values.  Add comments explaining size choices.
11358 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
11360         * config/fp-bit.c (unpack_d): Handle pair of doubles with
11361         different signs correctly.
11363 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11365         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
11366         (reg_pending_barrier): Make it of the enumeration type.
11367         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
11368         TRUE_BARRIER.
11369         (sched_analyze): Ditto.
11370         (sched_analyze_insn): Ditto.  Use anti-dependencies for
11371         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
11372         (init_deps_global): Initialize the barrier as NO_BARRIER.
11374 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11376         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
11377         Check that asm insn starts on a new cycle.  Add nops after asm
11378         insn to end bundle.
11379         (bundling): Move insn type evaluation from the loop.  Call
11380         issue_nops_and_insn with the new parameter.  Ignore changing
11381         position for nops after asm insn.
11383 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
11385         * optabs.c: Comment that gen_add2_insn and others may actually
11386         return emitted insns, if the gen functions turn out to return
11387         emitted insns.
11388         * reload1.c (reload_cse_move2add): Cope with emitted insns from
11389         gen_add2_insn.
11391 2003-04-09  Richard Henderson  <rth@redhat.com>
11393         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
11394         but not tls_symbolic_operand.
11395         (ia64_expand_load_address): Remove scratch operand.
11396         (ia64_expand_tls_address): Split out from ia64_expand_move.
11397         (ia64_expand_move): Split symbolics only after reload.
11398         (ia64_emit_cond_move): New.
11399         * config/ia64/ia64-protos.h: Update.
11400         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
11401         (symbolic splitter): Accept SImode operands too.
11402         (cmove splitter): Use ia64_emit_cond_move.
11404 2003-04-09  Nick Clifton  <nickc@redhat.com>
11406         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
11407         newer.
11408         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
11409         instead of -mno-fpu.
11410         * config/arm/semi.h (ASM_SPEC): Likewise.
11411         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
11412         but only if -msoft-float is specified pass.  Otherwise pass
11413         -mfpu=softvfp.
11415 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11417         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
11418         free_EXPR_LIST_node.
11420 2003-04-08  Roger Sayle  <roger@eyesopen.com>
11422         * fold-const.c (fold):  Use "fold" following build in more places.
11423         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
11424         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
11426 2003-04-08  Roger Sayle  <roger@eyesopen.com>
11428         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
11429         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
11430         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
11431         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
11432         Delete function scope "fcode" variable to avoid shadowing.
11434 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
11436         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
11437         Take into account DWARF_INITIAL_LENGTH_SIZE.
11439 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
11441         * reorg.c (fill_slots_from_thread): When considering changing the
11442         insn following a reg-to-reg copy insn to use the source reg of the
11443         copy, bail out if there's overlap between the registers.
11445 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11447         * function.c (postponed_insns): New.
11448         (purge_addressof_1): Postpone processing of insns if addressofs
11449         are not put into stack.
11450         (purge_addressof): Process postponed insns.
11452 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
11454         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
11455         this is FP_MODE_DOUBLE .
11456         * sh.c (ra.h): #include.
11457         (push_regs): Add second parameter.  Changed all callers.
11458         If necessary, set fpscr before saving floating point registers.
11459         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
11460         do saves / restores with SZ == 1.
11461         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
11462         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
11463         registers are being restored, restore FPSCR only after restoring them.
11465 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
11467         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
11468         regardless of architecture.
11469         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
11471 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
11473         * sh.c (push_regs, calc_live_regs): Return int.  Take single
11474         HARD_REG_SET * parameter.  Changed all callers.
11476 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
11478         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
11479         GOTOFF operand.
11480         (legitimize_pic_address): Move plus outside the unspec.
11481         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
11482         for validity.
11484 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
11486         * gcov-io.h (gcov_save_position): Remove __inline__ from
11487         declaration.
11489 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
11491         * doc/install.texi: Use @command and @samp for single- and
11492         multi-word commands respectively.
11493         * doc/makefile.texi: Likewise.
11494         * doc/sourcebuild.texi: Likewise.
11496 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
11497             Richard Henderson  <rth@redhat.com>
11499         PR c/9516
11500         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
11501         favor of looping and tail recursion for TREE_LIST and binops.
11503 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11505         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
11506         for insns without luid.
11508 2003-04-07  Glen Nakamura  <glen@imodulo.com>
11510         PR opt/8634
11511         * explow.c (maybe_set_unchanging): Don't flag non-static const
11512         aggregate type initializers with RTX_UNCHANGING_P.
11514 2003-04-07  Richard Henderson  <rth@redhat.com>
11516         PR opt/8634
11517         * function.c (purge_addressof_1): Don't try arithmetics for
11518         unchanging memories.
11520 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
11522         * doc/sourcebuild.texi (Test Suites): Document testing support for
11523         gcov and profile-directed optimizations; describe gcc.misc-tests.
11525 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
11527         PR target/10077
11528         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
11530 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11532         * doc/rtl.texi (Comparison operations): Update to
11533         record the allowed comparison modes.
11535 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
11537         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
11538         V2SI_type_node to opaque_V2SI_type_node.  Rename all
11539         V2SF_type_node to opaque_V2SF_type_node.
11540         (rs6000_init_builtins): Define opaque_V2SI_type_node and
11541         opaque_V2SF_type_node.
11542         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
11543         opaque_V2SF_type_node are opaque types.
11545 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
11547         * gcse.c (replace_store_insn): Use single_set.
11549 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
11551         Change gcov file interface to single file at a time.
11552         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
11553         Convert to C89 prototypes.
11554         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
11555         gcov_error, gcov_modified): New static variables.
11556         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
11557         functions.
11558         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
11559         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
11560         (gcov_read_summary, gcov_write_summary): Adjust.
11561         (gcov_save_position, gcov_reserve_length, gcov_write_length):
11562         Adjust.
11563         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
11564         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
11565         (da_file_position, da_file_seek, da_file_write, da_file_read):
11566         Remove.
11567         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
11568         * gcov.c (gcov_type): Don't typedef here.
11569         (IN_GCOV): #define
11570         (read_graph_file, read_count_file): Adjust.
11571         * gcov-dump.c (gcov_type): Don't typedef here.
11572         (IN_GCOV): #define.
11573         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
11574         Remove FILE parameter, adjust.
11575         (struct tag_format): Adjust proc member.
11576         (dump_file): Adjust.
11577         * libgcov.c (IN_LIBGCOV): #define.
11578         (gcov_exit): Adjust.
11579         * loop-init.c: Don't #include gcov-io.h
11580         * profile.c (struct counts_entry): New structure to hold counter
11581         values.
11582         (struct section_reference, struct da_index_entry): Remove.
11583         (bbg_file, da_file): Remove.
11584         (htab_counts_index_hash, htab_counts_index_eq,
11585         htab_counts_index_del): Replace with ...
11586         (htab_counts_entry_hash, htab_counts_entry_eq,
11587         htab_counts_entry_del): ... these.
11588         (cleanup_counts_index, index_counts_file): Remove.
11589         (read_counts_file): New function.
11590         (get_exec_counts): Adjust.
11591         (compute_branch_probabilities): Don't free the exec counts here.
11592         (branch_prob): Adjust.
11593         (init_branch_prob): Adjust.
11594         (end_branch_prob): Adjust.
11596 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
11598         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11599         -mfloat-gprs.
11601         * config/rs6000/rs6000.c: Delete rs6000_fprs.
11602         Declare rs6000_float_gprs.
11603         Declare rs6000_float_gprs_string.
11604         (rs6000_parse_float_gprs_option): New.
11605         (rs6000_override_options): Genericize rs6000_parse_* calls to use
11606         rs6000_parse_yes_no_option.
11607         Change check for cpu=8540, to use TARGET_E500.
11608         (rs6000_parse_isel_option): Delete.
11609         (rs6000_parse_spe_option): Delete.
11610         (rs6000_parse_vrsave_option): Delete.
11612         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
11613         Define rs6000_float_gprs_string.
11614         (TARGET_OPTIONS): Add rs6000_float_gprs option.
11616         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
11618         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
11620 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
11622         PR opt/10024
11623         * cfglayout.c (cfg_layout_redirect_edge):
11624         Redirect any branch edges unified with the fallthru one.
11625         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
11626         case fallthru edges when called via cfglayout.c
11628 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
11630         * c-typeck.c (output_init_element): Check for type == error_mark_node.
11632 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
11634         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
11635         split.
11636         (a splitter): Do zero-extension via HImode.
11638 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
11640         * doc/invoke.texi: Eliminate extra white-space caused by
11641         @gccoptlist{ on its own line.
11642         * doc/invoke.texi: Ensured there are two spaces between each option.
11643         * doc/invoke.texi: Re-wrapped option lines that were too wide.
11644         Added @gol to options that didn't have them.
11646 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
11648         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
11650 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
11652         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
11653         at the sizes of the relevant structures, rather than relying
11654         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
11655         sizes of any such we don't know about.  Use
11656         lang_hooks.identifier_size for IDENTIFIER_NODE.
11658         (initializer_zerop): Use CONSTRUCTOR_ELTS.
11659         * tree.def: Update commentary.  Make fourth element of
11660         the definition for all 'c' and 'x' nodes zero.
11662         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
11663         * langhooks-def.h: Update to match.
11664         * langhooks.c: New default, lhd_tree_size.
11666         * c-common.def (SRCLOC): Kill.
11667         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
11668         Remove entirely - was already #if-ed out.
11671 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
11673         * mklibgcc.in: Use a here document to avoid running afoul of
11674         shells that generate control-A from "echo \1".
11676 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
11678         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
11679         option.
11681         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11682         rs6000_spe.
11684         * config/rs6000/eabi.h (TARGET_E500): Define.
11686         * config/rs6000/rs6000.h (TARGET_E500): Define.
11687         (TARGET_OPTIONS): Add spe= option.
11688         Declare rs6000_spe and rs6000_spe_string extern.
11690         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
11691         Change TARGET_SPE to TARGET_E500.
11692         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
11693         !TARGET_FPRS.
11694         (print_operand): Same.
11695         (rs6000_generate_compare): Same.
11696         (output_cbranch): Same.
11697         (rs6000_spe): Declare.
11698         (rs6000_spe_string): Declare.
11699         (rs6000_override_options): Call rs6000_parse_spe_option.
11700         (rs6000_parse_spe_option): New.
11702 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
11704         * hashtable.c (gcc_obstack_init): Delete this function
11705         and everything related to it.
11706         * hashtable.h: Remove prototype.
11707         * bitmap.c (bitmap_element_allocate): Cleanup redundant
11708         defines.  Cleanup some unnecessary whitespace.
11709         * defaults.h (obstack_chunk_alloc): Redefine with
11710         appropriate casts for libiberty obstacks.
11711         (obstack_chunk_free): Ditto.
11712         (OBSTACK_CHUNK_SIZE): Define, default to 0.
11713         (gcc_obstack_init): Define as a call to _obstack_begin.
11714         * tree.c (print_obstack_statistics): Delete this unused
11715         function.
11716         * tree.h (obstack): Don't forward-declare.
11717         (print_obstack_statistics): Delete prototype.
11718         (print_obstack_name): Ditto.
11719         (gcc_obstack_init): Ditto.
11720         * rtl.h (gcc_obstack_init): Ditto.
11721         * java/jv-scan.c (gcc_obstack_init): Delete this
11722         function, its prototype and related defines.
11723         * java/jvgenmain.c (gcc_obstack_init): Delete this
11724         function, and related defines.
11725         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
11726         (obstack_chunk_free): Ditto
11728 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
11730         * dbxout.c (dbxout_handle_pch): Move prototype out from
11731         #if defined DBX_DEBUGGING_INFO.
11733 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
11735         * gcov.c (struct arc_info): Replace local_span with cycle.
11736         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
11737         (solve_flow_graph): Set is_call_return.
11738         (add_line_counts): Adjust. In block mode, blocks attach to last line.
11739         (accumulate_line_counts): Find graph cycles, not spanning tree.
11740         (output_branch_count): Adjust.
11741         (output_lines): Adjust.
11742         * doc/gcov.texi: Update.
11744 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
11746         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
11747         the second alternative to "#".
11749 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
11751         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
11752         (single_zero_operand): Likewise.
11754 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
11756         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
11757         * df.c: Include alloc-pool.h, not obstack.h.
11758         (df_ref_obstack): Remove.
11759         (df_ref_pool, df_link_pool): Add pools.
11760         (df_alloc): Init the new pools.
11761         (df_free): And free them.
11762         (df_link_create): Use the pools.
11763         (df_ref_create): Ditto.
11765 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
11767         * simplify-rtx.c: Fix formatting.
11769 2003-04-05  Andrew Pinski  <apinski@apple.com>
11771         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
11772         reg with reg1 == reg2 and offset1 = -8.
11774 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
11776         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
11777         multiply costs.  Correct Power4 divide costs.
11778         * config/rs6000/power4.md: Restore multiply and FP latency.
11780 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11782         * alias.c (find_base_term): Export.
11783         * rtl.h (find_base_term): Declare.
11784         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
11785         instead of flag_exceptions.  Move test for parameter passing ...
11786         (store_killed_in_insn): ... here.
11788 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11790         PR bootstrap/10267
11791         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
11792         for configuring.
11794 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
11796         * dbxout.c (scope_labelno): Add GTY.
11797         (have_used_extensions): Add GTY.
11798         (source_label_number): Add GTY.
11799         (lastfile): Add GTY.
11800         (lastfile_is_base): New.
11801         (base_input_file): New.
11802         (dbxout_handle_pch): New.
11803         (dbx_debug_hooks): Add handle_pch.
11804         (xcoff_debug_hooks): Likewise.
11805         (dbxout_function_end): Remove scope_labelno.
11806         (dbxout_init): Set base_input_file.
11807         (dbxout_handle_pch): New.
11808         (dbxout_source_file): Honour lastfile_is_base.
11809         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
11810         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
11811         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
11812         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
11813         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
11814         * debug.h (struct gcc_debug_hooks): Add handle_pch.
11815         * c-pch.c (pch_init): Don't call start_source_file, but do call
11816         handle_pch.
11817         (c_common_write_pch): Call handle_pch.
11818         (c_common_read_pch): Don't call start_source_file,
11819         or end_source_file.
11821 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
11823         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
11824         use of default attributes to agree MEM_ALIGN macro.
11826 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
11828         * dbxout.c (dbxout_type): When printing type index of range type
11829         whose bounds are printed in octal format, print type of parent type if
11830         it exists so enumerated type descriptions are not transformed
11831         into unsigned types.
11833 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
11835         * config/h8300/h8300-protos.h: Add a prototype for
11836         compute_a_shift_cc.
11837         * config/h8300/h8300.c (shift_one): Update the CC status.
11838         (shift_two): Likewise.
11839         (output_a_shift_cc): Set cc_inline and cc_special.
11840         (compute_a_shift_cc): New.
11841         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
11843 2003-04-04  Richard Henderson  <rth@redhat.com>
11845         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
11847 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
11849         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
11850         * fixinc/fixincl.x: Rebuilt.
11851         * fixinc/tests/base/stdio.h: Regenerated.
11853 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
11855         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
11857 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
11859         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
11860         (NORMAL_MODE).
11861         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
11863 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11865         * doc/contrib.texi (Contributors): Add entries for Wolfgang
11866         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
11867         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
11868         Danny Smith, and Ulrich Weigand.
11869         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
11870         entry.
11872 2003-04-04  Nick Clifton  <nickc@redhat.com>
11874         * config/sparc/sol2-bi.h: Revert previous delta.
11875         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
11877 2003-04-04  Nick Clifton  <nickc@redhat.com>
11879         * config/v850/v850.c (expand_prologue): Only use register save
11880         helper functions if long calls are not being used.
11881         Add a clobber of r11 id using long calls.
11882         (pattern_is_ok_for_prologue): Account for the extra clobber.
11883         (construct_save_jarl): Likewise.
11884         * config/v850/v850.md (prolog pattern): Do not use this pattern
11885         for v850e's.
11887 2003-04-04  Andreas Schwab  <schwab@suse.de>
11889         * stor-layout.c (layout_decl): Avoid syntax error in last change
11890         when PCC_BITFIELD_TYPE_MATTERS is defined but not
11891         EMPTY_FIELD_BOUNDARY.
11893 2003-04-03  Jason Merrill  <jason@redhat.com>
11895         PR c/10175
11896         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
11897         Look backwards for a line note.
11899 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
11901         * fix-header.c (read_scan_file): Defer switch processing.
11903 2003-04-03  Matt Austern  <austern@apple.com>
11905         * cpppch.c (reset_ht): Remove.
11906         (cpp_read_state): Remove loop to reset hashtable identifiers.
11907         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
11908         after pch file is written.
11909         * ggc.h (gt_pch_fixup_stringpool): Declare.
11910         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
11911         hashnode's value to another hashtable, then clear the original.
11912         (saved_ident_hash): Define.
11913         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
11914         store definitions in ident_hash, and clear ident_hash.
11915         (gt_pch_fixup_stringpool): Define.  Restore definitions from
11916         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
11918 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
11920         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
11922 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
11924         PR optimization/10157
11925         * gcse.c (can_copy_p): Rename it to can_copy.
11926         (can_copy_init_p): Remove.
11927         (compute_can_copy): Use can_copy instead of can_copy_p.
11928         (can_copy_p): New exported function. Call compute_can_copy.
11929         (hash_scan_set): Use it.
11930         (gcse_main): Don't call compute_can_copy.
11931         (bypass_jumps): Don't call compute_can_copy.
11932         * rtl.h (can_copy_p): Declare.
11933         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
11934         copy if the mode doesn't support copy operations.
11936 2003-04-03  Jason Merrill  <jason@redhat.com>
11938         * Makefile.in (unstrap): Also remove stage_last.
11940         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
11941         (dwarf2out_source_line): Don't do anything if line==0.
11943         * stor-layout.c (do_type_align): New fn, split out from...
11944         (layout_decl): ...here.  Do all alignment calculations for
11945         FIELD_DECLs here.
11946         (update_alignment_for_field): Not here.
11947         (start_record_layout, debug_rli): Remove unpadded_align.
11948         * tree.h (struct record_layout_info_s): Remove unpadded_align.
11949         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
11950         or DECL_MODE on the CONST_DECLs.
11951         (finish_struct): Don't mess with DECL_ALIGN.
11953 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
11955         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
11957 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
11959         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
11960         function is an interrupt handler.
11962         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
11963         restoring target registers with EH_RETURN_STACKADJ_RTX; use
11964         multiple registers in round-robin fashion.
11966 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11968         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
11969         * system.h (CHAR_BITFIELD): New.
11971 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
11973         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
11974         and LE.
11975         (another peephole2): Likewise.
11977 2003-04-03  Nick Clifton  <nickc@redhat.com>
11979         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
11980         (DEF_ARCH64_SPEC): Likewise.
11982 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
11984         * i386.c (constant_address_p): Use legitimate_constant_p.
11985         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
11987 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
11989         * config/h8300/h8300-protos.h: Add a prototype for
11990         gtle_operator.
11991         * config/h8300/h8300.c (gtle_operator): New.
11992         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
11993         gtle_operator.
11994         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
11995         and LE.
11997 2003-04-02  Richard Henderson  <rth@redhat.com>
11999         * libgcc-std.ver (_Unwind_GetCFA): New.
12000         * unwind-dw2.c (_Unwind_GetCFA): New.
12001         * unwind-libunwind.c (_Unwind_GetCFA): New.
12002         * unwind-sjlj.c (_Unwind_GetCFA): New.
12003         * unwind.h: Declare it.
12005 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
12007         PR inline-asm/8088
12008         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
12009         when MMX/SSE is not available.
12011 2003-04-02  Mike Stump  <mrs@apple.com>
12013         * doc/install.texi (Specific): Update pointers to apple.com.
12015 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
12017         * i386.c (override_options):  Disable red zone by default on i386.
12018         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
12019         Do not test TARGET_64BIT together with TARGET_RED_ZONE
12021 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12023         * config/h8300/h8300.md (a peephole2): Tighten the condition.
12025 2003-04-02  Richard Henderson  <rth@redhat.com>
12027         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
12029 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12031         * config/h8300/h8300.md (a peephole2): New.
12033 2003-04-02  Richard Henderson  <rth@redhat.com>
12035         * except.c (sjlj_find_directly_reachable_regions): Recognize when
12036         must-not-throw region has been deleted.
12038 2003-04-02  Richard Henderson  <rth@redhat.com>
12040         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
12041         optimization when flag_exceptions not enabled.
12043 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
12045         * config/rs6000/rs6000.c
12046         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
12047         macros.
12048         (rs6000_issue_rate): Add case for 8540.
12049         (rs6000_use_sched_lookahead): New function.
12051         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
12052         units into MU ones.
12053         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
12054         reservation before retirement.
12055         (ppc8540_multiply, ppc8540_load, ppc8540_store,
12056         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
12057         Remove additional cycle in the reservation before retirement.
12058         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
12059         reservation of ppc8540_issue.
12061 2003-04-02  Andreas Schwab  <schwab@suse.de>
12063         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
12065 2003-04-01  Richard Henderson  <rth@redhat.com>
12067         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
12068         notes for nothrow calls if flag_forced_unwind_exceptions.
12069         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
12070         (sjlj_find_directly_reachable_regions): Likewise.
12071         (reachable_handlers): Likewise.
12072         (can_throw_external): Likewise.
12073         (collect_one_action_chain): Record cleanups after catch-all and
12074         must-not-throw if flag_forced_unwind_exceptions.
12075         * flags.h (flag_forced_unwind_exceptions): Declare.
12076         * toplev.c (flag_forced_unwind_exceptions): New.
12077         (lang_independent_options): Add it.
12078         * doc/invoke.text: Add it.
12080 2003-04-01  David Mosberger <davidm@hpl.hp.com>
12082         * config/ia64/crti.asm: Clean up trailing whitespace.
12083         Remove trailing hashes (#) from identifiers.
12085         * config/ia64/crtn.asm: Ditto.
12087         * config/ia64/crtend.asm: Remove trailing hashes (#) from
12088         identifiers.
12089         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
12090         directives.  Drop explicit bundling---it just makes the code
12091         harder to read.  Don't save/restore gp needlessly.
12093         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
12094         identifiers (they're only needed if the identifier would clash
12095         with a register name otherwise).
12096         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
12097         directives.  Drop explicit bundling---it just makes the code
12098         harder to read.
12099         (__do_jv_register_classes): Ditto.
12100         (.fini_array): Remove "progbits" (newer
12101         assemblers don't like wrong section-types).
12102         (.init_array): Ditto.
12104 2003-04-01  Roger Sayle  <roger@eyesopen.com>
12106         PR fortran/9974
12107         * gcse.c (reg_killed_on_edge): New function to test whether the
12108         given reg is overwritten by any instruction queued on an edge.
12109         (bypass_block): Ignore substitutions killed on incoming edges.
12110         Don't bypass outgoing edges that have queued instructions.
12112 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
12114         * real.h (EXP_BITS): Make room for...
12115         (struct real_value): ... added canonical bit.
12116         (struct real_format): Added pnan.
12117         (mips_single_format, mips_double_format, mips_extended_format,
12118         mips_quad_format): New.
12119         * real.c: Copy p to pnan in all formats.
12120         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
12121         (real_nan): Use pnan to compute significand's shift.
12122         (real_identical): Disregard significand in canonical
12123         NaNs.
12124         (real_hash): Likewise.  Take signalling into account.
12125         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
12126         Disregard significand bits in canonical NaNs.  Set all bits of
12127         canonical NaN if !qnan_msb_set.
12128         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
12129         qnan_msb_set to tell the base double format.
12130         (ibm_extended_format): Use 53 as pnan.
12131         (mips_single_format, mips_double_format, mips_extended_format,
12132         mips_quad_format): Copied from the corresponding ieee/ibm
12133         formats, with qnan_msb_set false.
12134         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
12135         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
12136         * config/mips/mips.c (override_options): Use mips_single_format
12137         and mips_double_format.  Default TFmode to mips_quad_format.
12138         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
12139         * config/mips/t-irix6: Likewise.
12140         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
12141         * config/fp-bit.c (pack_d, unpack_d): Obey it.
12143 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
12145         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
12146         (live_image_destructor): Reset image to initial state.
12147         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
12149 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
12151         * config/sparc/sparc.c (input_operand): Accept bare
12152         CONSTANT_P_RTX operands.
12154 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12156         * gcse.c (struct ls_expr): Added pattern_regs field.
12157         (ldst_entry): Initialize it.
12158         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
12159         (store_ops_ok): Use regs precomputed by them.
12160         (find_loads, store_killed_in_insn, load_kills_store): Change return
12161         type to bool.
12162         (store_killed_before, store_killed_after): Take position of register
12163         set in account.
12164         (reg_set_info): Store position of the setter.
12165         (gcse_main): Enable store motion.
12166         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
12167         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
12168         sharing.
12169         (simple_mem): Enable store motion of non-symbol mems.
12170         (regvec): Type changed.
12171         (LAST_AVAIL_CHECK_FAILURE): New.
12172         (compute_store_table_current_insn): New.
12173         (build_store_vectors): Computation of availability and anticipatability
12174         moved ...
12175         (compute_store_table, find_moveable_store): ... here.
12176         (delete_store): Remove senseless comment.
12177         (store_motion): Reorganize.
12179 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
12181         * config/mips/mips.c (override_options): Provide mappings for
12182         HI_REGNUM and LO_REGNUM.
12183         * config/mips/mips.h (MD_DBX_FIRST): Define.
12185 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12187         * combine.c (merge_outer_ops): Fix typo.
12189         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
12191 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
12193         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
12194         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
12195         imul_compare.  Add lmul_compare.
12196         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
12197         in second pair of dispatch slots.  Model stores more accurately.
12198         Tweak multiply model.  Add bypasses for CR instructions dependent
12199         on complicated compares.
12200         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
12201         (muldi3): Add lmul_compare patterns.
12202         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
12203         and FPSTORE_UX to split instructions and add COMPARE,
12204         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
12205         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
12206         (rs6000_rtx_costs): Separate POWER4 multiply case.
12208 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
12210         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
12211         Do nothing if __builtin_return_address was not used.
12213 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
12215         * i386.md (test patterns):  Allow memory operand in operand1.
12217 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
12219         * testsuite/gcc.c-torture/execute/simd-3.c: New.
12221         * expr.c (expand_expr): Handle VECTOR_CST.
12222         (const_vector_from_tree): New.
12224         * varasm.c (output_constant): Handle VECTOR_CST.
12226         * c-typeck.c (digest_init): Build a vector constant from a
12227         VECTOR_TYPE.
12229         * config/rs6000/rs6000.c: Remove prototype for
12230         easy_vector_constant.
12231         (easy_vector_constant): Add mode parameter.  Rewrite to handle
12232         more easy constants.
12233         (rs6000_emit_move): Pass mode to easy_vector_constant.
12234         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
12235         (emit_easy_vector_insn): New.
12236         (easy_vector_same): New.
12237         (EASY_VECTOR_15): New macro.
12238         (EASY_VECTOR_15_ADD_SELF): New macro.
12239         (bdesc_2arg): Rename to xorv2si3.
12240         (easy_vector_constant_add_self): New.
12241         (input_operand): Allow vector constants.
12243         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12244         easy_vector_constant, easy_vector_constant_add_self.
12245         (EXTRA_CONSTRAINT): Add 'W'.
12247         * config/rs6000/rs6000-protos.h: Add prototype for
12248         easy_vector_constant, emit_easy_vector_insn.
12250         * config/rs6000/altivec.md (xorv8hi3): New.
12251         (xorv16qi3): New.
12252         Remove all _const0 patterns.
12253         (movv4si_internal): Rewrite to use code.  Add vector constant to
12254         vector alternative.  Add splitter.
12255         (movv8hi_internal): Same.
12256         (movv16qi_internal): Same.
12257         (movv4sf_internal): Same.
12258         Change the unspecs for vspltis* to use constants.
12260         * config/rs6000/spe.md ("xorv4hi3"): New.
12261         ("spe_evxor"): Rename to xorv2si3.
12262         ("xorv1di3"): New.
12263         Remove all _const0 patterns.
12264         (movv2si_internal): Rewrite to use code.  Add vector constant to
12265         alternatives.  Add splitter.
12266         (movv4hi_internal): Add vector constant to alternatives.
12267         (movv1di_internal): Same.
12268         (movv2sf_internal): Same.
12270 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
12272         PR c/9936
12273         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
12274         variably-sized arrays in parameters.
12275         (set_save_expr_context): New function.
12276         (c_expand_body): Use it, via walk_tree.
12278 2003-03-31  Eric Christopher  <echristo@redhat.com>
12280         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
12281         (combinable_i3pat): Remove call to expand_field_assignment and
12282         #if 0'd code.
12284 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
12286         PR c++/10278
12287         * c-common.c (finish_label_address_expr): Handle the
12288         error_mark_node.
12290 2003-03-31  Richard Henderson  <rth@redhat.com>
12292         * real.c (real_identical): Reorg so as to not compare
12293         signalling for normals.
12295 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12297         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
12299 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12301         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
12302         notes as they are boggus.
12303         (m68hc11_gen_movqi): Likewise.
12305 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12307         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
12308         save the soft registers after the frame pointer so that gdb can unwind
12309         the frame more easily.
12310         (expand_epilogue): Likewise in opposite order; allow to use X register
12311         as scratch if the return value is by reference.
12313 2003-03-31  Jason Merrill  <jason@redhat.com>
12315         PR java/10145
12316         * stor-layout.c (update_alignment_for_field): Respect
12317         DECL_USER_ALIGN for zero-length bitfields, too.
12318         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
12319         fields.
12321 2003-03-31  Matt Austern  <austern@apple.com>
12323         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
12324         (count_defs): Keep track of number of defs as well as total size.
12325         (write_defs): Put every definition in cpp_savedstate's defs array.
12326         (comp_hashnode): Define.  Comparison function for qsort.
12327         (cpp_write_pch_deps): Sort definitions before writing them.
12328         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
12329         (collect_ht_nodes): Define.
12330         (cpp_valid_state): When verifying that undefined identifiers in
12331         the pch file are still undefined, read a sorted list of undefined
12332         identifiers, collect all defined identifiers into a sorted list,
12333         and walk through both lists to make sure there's no match.
12335 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12337         * config/h8300/h8300.md (a peephole2): New.
12339 2003-03-31  Michael Matz  <matz@suse.de>
12341         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
12343 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
12345         PR target/10177
12346         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
12347         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
12348         all call-clobbered registers as used.
12350 2003-03-31  Michael Matz  <matz@suse.de>
12352         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
12353         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
12355 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
12357         * gcov.c: Add -a & -u options.
12358         (struct arc_info): Add local_span, is_call_non_return,
12359         is_nonlocal_return, is_unconditional flags, remove is_call flag.
12360         (struct block_info): Add flags, is_call_site, is_nonlocal_return
12361         members. Make encodings a union with span member.
12362         (struct function_info): Add blocks_executed, line, src, line_next
12363         members.
12364         (struct coverage_info): Make branches a union with blocks member.
12365         (struct source_info): Add functions member.
12366         (object_summary, program_count): New global variables.
12367         (flag_all_blocks, flag_unconditional): New flags.
12368         (find_source, output_branch_count): New functions.
12369         (print_usage): Adjust.
12370         (options): Adjust.
12371         (process_args): Adjust.
12372         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
12373         <GCOV_TAG_BLOCKS>: Read flags.
12374         <GCOV_TAG_LINES>: Adjust.
12375         (read_count_file): Process SUMMARY tags.
12376         (solve_flow_graph): Set is_unconditional and clear is_call_site
12377         appropriately.
12378         (add_branch_counts): Adjust. Don't count unconditional branches.
12379         (add_line_counts): Deal with all-blocks mode, accumulate block
12380         coverage.
12381         (accumulate_line_counts): Adjust, generate local spanning tree for
12382         all-blocks mode.
12383         (output_lines): Adjust.
12384         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
12385         * doc/gcov.texi: Document.
12387 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12389         * config/h8300/h8300.md: Organize peephole2's that transform
12390         (compare (reg:HI) (const_int)).
12392 2003-03-31  Roger Sayle  <roger@eyesopen.com>
12394         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
12395         (init_emit_once): Initialize dconstm2 and dconsthalf here.
12396         * real.h (dconstm2, dconsthalf): Add prototypes here.
12397         * real.c (real_sqrt): Use dconsthalf rather than local copy.
12398         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
12399         exp(x/2.0) remember to fold the division if possible.
12400         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
12401         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
12402         1.0/(x*x) and pow(x,0.5) as sqrt(x).
12404 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12406         * config/h8300/h8300.md (a new peephole2): New.
12408 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
12410         * gcse.c (simple_mem): Return false for floating-point accesses
12411         if flag_float_store is true.
12413 2003-03-30  Roger Sayle  <roger@eyesopen.com>
12415         * gcse.c (gcse_constant_p): New function to identify constants
12416         suitable for constant propagation, including COMPARE with two
12417         integer constant arguments.
12418         (hash_scan_set): Use gcse_constant_p.
12419         (find_avail_set): Likewise.
12420         (cprop_insn): Likewise.
12421         (do_local_cprop): Likewise.
12422         (find_implicit_sets): Likewise.
12423         (find_bypass_set): Likewise.
12425 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
12427         * except.h: Remove definition of varray_type.
12429 2003-03-30  Richard Henderson  <rth@redhat.com>
12431         PR opt/10011, opt/10252:
12432         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
12433         before post-gcse cse pass.
12435 2003-03-30  Roger Sayle  <roger@eyesopen.com>
12437         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
12439 2003-03-30  DJ Delorie  <dj@redhat.com>
12441         * profile.c (instrument_edges): Make sure any newly created
12442         jump insns have correct jump label info.
12444 2003-03-30  Richard Henderson  <rth@redhat.com>
12446         * cfgbuild.c (make_edges): Use tablejump_p.
12447         * cfgcleanup.c (label_is_jump_target_p): Likewise.
12448         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
12449         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
12450         (try_redirect_by_replacing_jump): Likewise.
12451         (redirect_edge_and_branch): Likewise.
12452         * cse.c (fold_rtx): Likewise.
12453         * jump.c (delete_related_insns): Likewise.
12454         * rtlanal.c (get_jump_table_offset): Likewise.
12455         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
12457 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12459         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
12460         (STRICT2_WARN): Likewise.
12462 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12464         PR other/6955
12465         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
12466         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
12468 2003-03-30  Richard Henderson  <rth@redhat.com>
12470         PR c/10083
12471         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
12472         don't zero_extend const inputs.
12474 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
12476         * reload1.c (reload_cse_move2add): Fix a comment typo.
12478 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
12480         * config/h8300/h8300.md (a peephole2): Remove useless code.
12482 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
12484         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
12485         (*iorsi3_and_lshiftrt): Likewise.
12486         (*iorsi3_zero_extract): Likewise.
12488 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
12490         * config/h8300/h8300.md (*insv_si_8_8): New.
12491         (*insv_si_8_8_lshiftrt_8): Likewise.
12492         (a peephole2): Likewise.
12494 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12496         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
12497         Uniformly use bugfix instead of bug fix.
12499 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12501         PR doc/895
12502         * ONEWS: Remove those items that already appear in the EGCS
12503         release notes on our web pages.
12505 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
12507         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
12508         TARGET_HARD_FLOAT.  Reformat.
12509         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
12511 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
12513         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
12514         work on Solaris 2.5.1.
12516 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
12518         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
12519         section of h8300.md
12520         (*addsi3_and_nor_r_1): Likewise.
12522 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
12524         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
12525         set up before any trapping memory access if flag_non_call_exceptions.
12527 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
12529         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
12531         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
12533 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
12535         * configure.in: Clarify comments.
12536         * configure: Regenerate.
12538 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
12540         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
12541         label even if pool empty when generating PIC.
12542         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
12544 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
12545             Dhananjay Deshpande  <dhananjayd@kpit.com>
12547         PR target/10205
12548         * config/h8300/h8300.c (h8300_initial_elimination_offset):
12549         Correct the offset computation when TARGET_NORMAL.
12551 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
12553         PR target/10067
12554         * config/sparc/sparc.md (jump pattern): Correct order
12555         when issuing the annuling marker.
12557 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
12559         PR c/8281
12560         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
12561         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
12563 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
12565         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
12566         globalize_label.
12567         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12568         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12569         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12570         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12571         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12572         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12573         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
12575 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
12577         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
12578         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
12579         notes after hoisting.
12580         (load_mems): Adjust replace_loop_mems call.
12582 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
12583             Richard Henderson  <rth@redhat.com>
12585         PR target/10114 and PR target/10084
12586         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
12588 2003-03-27  Richard Henderson  <rth@redhat.com>
12590         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
12592 2003-03-27  Roger Sayle  <roger@eyesopen.com>
12594         * fold-const.c (fold_inf_compare):  New function to simplify FP
12595         comparisons against +Infinity or -Infinity.
12596         (fold):  Optimize floating point comparisons against Infs and NaNs.
12598 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
12600         * libgcov.c: Provide only dummy functions if libc is not available.
12602 2003-03-27  Richard Henderson  <rth@redhat.com>
12604         * real.h (struct real_value): Add signalling.
12605         (EXP_BITS): Decrement.
12606         * real.c (get_canonical_qnan): Don't set MSB-1.
12607         (get_canonical_snan): Likewise.  Set signalling.
12608         (real_identical): Compare signalling.
12609         (round_for_format): Remove force-one-bit on code.
12610         (real_nan): Likewise.  Set signalling.
12611         (encode_ieee_single): Add force-one-bit code; honor signalling.
12612         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
12613         (decode_ieee_single): Set signalling.
12614         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
12616 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
12618         PR ada/9953
12619         * ada/Makefile.in (gnatlib configuration for HPUX): Split
12620         the general section for HPUX into specific sections for
12621         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
12622         11 case.
12624 2003-03-27  Glen Nakamura  <glen@imodulo.com>
12626         PR opt/10087
12627         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
12628         while incrementing giv.
12629         (record_biv): Check for duplicate biv locations and
12630         set (struct induction *) v->same if found.
12632 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
12634         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
12635         v0.9 API change: replace read of UNW_REG_HANDLER with
12636         unw_get_proc_info().
12637         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
12638         with unw_get_proc_info().
12639         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
12640         unw_get_proc_info().
12642 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
12644         * config/rs6000/8540.md: Use presence_set instead of absence_set.
12646 2003-03-26  Richard Henderson  <rth@redhat.com>
12648         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
12650 2003-03-26  Roger Sayle  <roger@eyesopen.com>
12652         PR bootstrap/10051, PR bootstrap/10169.
12653         * mips-tfile.c (init_file): Don't provide a static initializer.
12654         (initialize_init_file): Initialize the contents of init_file.
12655         (add_file): Call initialize_init_file if not already initialized.
12657 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
12659         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
12660         registers used for global asm variables.
12661         (s390_frame_info, s390_arg_frame_offset): Likewise.
12662         (s390_emit_prologue, s390_emit_epilogue): Likewise.
12664 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12666         * config/rs6000/8540.md: New file.
12668         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
12669         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
12670         reservations for imul.
12672         * config/rs6000/rs6000.md: Include 8540.md.  Change
12673         delayed_compare onto mult_compare for insns generating
12674         multiplication.
12675         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
12676         New type attribute values.
12678         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
12679         fpsimple instead of fp.
12680         (*divsf3_gpr): Use type vecfdiv instead of fp.
12681         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
12682         instead of vecfloat.
12683         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
12684         (spe_brinc): Use type brinc instead of veccomplex.
12685         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
12686         veccomplex.
12687         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
12688         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
12689         *movv2sf_internal): Define type attribute values for all
12690         alternatives.
12691         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
12692         of fpcompare.
12693         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
12694         instead of fpcompare.
12696 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
12698         * config/rs6000/power4.md: Allow delay between dispatch and
12699         function units for simple instructions.  Correct store units.
12700         Allow branch to occupy as many dispatch slots as necessary.
12702 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
12704         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
12705         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
12706         zero extend old to it.
12707         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
12708         operand.
12710 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
12712         PR target/7784
12713         * reload.c (find_reloads_address): Handle
12714         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
12715         all base registers.
12717 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
12719         PR other/10203
12720         * version.c: Reference the GCC web site in the URL.
12722 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
12724         * c-incpath.c (add_standard_paths): Add both "translated" and
12725         non-translated header paths.
12727 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
12729         * doc/install.texi (*-*-freebsd*): Update with known status.
12731 2003-03-21  Jason Merrill  <jason@redhat.com>
12733         PR optimization/10171
12734         * unroll.c (unroll_loop): Don't delete the jump at the end unless
12735         we also delete a jump at the beginning.
12737 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
12739         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
12740         contributor.
12742 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
12744         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
12745         constants are not expensive.
12747 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
12749         PR opt/10056
12750         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
12751         jump jumping to the next instruction.
12752         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
12754 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12756         * doc/passes.texi (Passes): Properly document that we do not
12757         perform jump2 any longer; remove command-line option -dJ.
12759 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
12761         PR optimization/8746
12762         * config/i386/i386.md (and promoting splitters): Disable HImode to
12763         SImode promoting when the sign bit matters and is not preserved, or
12764         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
12765         for size.
12767 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
12769         * config/h8300/h8300.md (a peephole2): Extend to support loads
12770         in QImode and HImode.
12772 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
12774         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
12775         _return_far
12776         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
12777         (MULTILIB_EXCEPTIONS): Likewise.
12778         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
12779         by calling some board support routine.
12780         ("call_value"): Likewise.
12781         ("*return_void"): Likewise for return.
12782         ("*return_16bit"): Likewise.
12783         ("*return_32bit"): Likewise.
12784         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
12785         for 68HC11 too.
12786         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
12787         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
12788         -mlong-calls for 68HC11.
12789         * config/m68hc11/larith.asm (declare_near): New macro.
12790         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
12791         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
12792         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
12793         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
12794         (__mulhi32): Likewise.
12795         (ret): Update macro for 68HC11.
12796         (__far_trampoline): Implement for 68HC11.
12797         (__call_a16, __call_a32, __return_void, __return_16): New support
12798         routines for 68HC11 memory bank switching calling support.
12799         (__return_32): Likewise.
12801 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
12803         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
12805 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
12807         * doc/install.texi (Testing): Mention test result links from build
12808         status pages.
12810 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
12812         * function.c (put_var_into_stack): Change bool parameter to int.
12813         (gen_mem_addressof): Likewise.
12814         * rtl.h (gen_mem_addressof): Likewise.
12815         * tree.h (put_var_into_stack): Likewise.
12816         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
12817         gen_mem_addressof or put_var_into_stack.
12818         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
12819         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
12821 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
12823         * config/h8300/h8300.md (a peephole2): New.
12825 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
12827         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
12829 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12831         * doc/contrib.texi (Contributors): Update Janis Johnson.
12833 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
12835         PR target/10072
12836         * combine.c (simplify_if_then_else): Check that the mode
12837         has MODE_INT class before applying the (OP Z (mult COND C2))
12838         transformation.
12840 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
12842         PR optimization/9414
12843         * config/sparc/sparc.md (widening peepholes): Use
12844         widen_memory_access instead of change_address.
12846 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
12848         PR c++/7086
12849         * c-typeck.c (c_mark_addressable): Adjust calls to
12850         put_var_into_stack.
12851         * expr.c (expand_expr): Likewise.
12852         * function.c (put_var_into_stack): Add rescan parameter.  Do not
12853         call fixup_var_refs when rescan is false.
12854         (gen_mem_addressof): Likewise.
12855         (assign_parms): Adjust calls to put_var_into_stack.
12856         (setjmp_protect): Likewise.
12857         (setjmp_protect_args): Likewise.
12858         * rtl.h (gen_mem_addressof): Change prototype.
12859         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
12860         * tree.h (put_var_into_stack): Change prototype.
12862 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
12864         PR middle-end/9967
12865         * builtins.c (expand_builtin_fputs): When optimizing for size,
12866         don't transform fputs into fwrite.
12868 2003-03-23  Glen Nakamura <glen@imodulo.com>
12870         PR c/8224
12871         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
12872         when signedness changes for division or modulus.
12874 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
12876         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
12877         globalize_label.
12879 2003-03-23  Roger Sayle  <roger@eyesopen.com>
12881         PR c/10178
12882         * stmt.c (expand_end_case_type): Check for overflow in range when
12883         determining whether to use a bit-test implementation.
12885 2003-03-23  Richard Henderson  <rth@redhat.com>
12887         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
12888         before flow2.
12889         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
12891 2003-03-23  Richard Henderson  <rth@redhat.com>
12893         PR opt/10116
12894         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
12895         from then_bb or else_bb after flow2.
12897 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
12899         * configure.in: Check whether it is necessary to link against
12900         libm to use ldexp.
12901         * configure: Regenerate.
12902         * Makefile.in: Add LDEXP_LIB substitution variable.
12904 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
12906         * config/h8300/h8300.md: Fix comment typos.
12908 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12910         * pa.c (output_cbranch): Fix typo in comment.
12912 2003-03-22  Richard Henderson <rth@redhat.com>
12914         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
12915         after reload.
12917 2003-03-22  DJ Delorie  <dj at redhat dot com>,
12918         Bruce Korb  <bkorb at gnu dot org>
12920         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
12921         buggy Solaris 2.6 mutex/cond initializers.
12922         (solaris_mutex_init): Rename to solaris_mutex_init_2.
12923         * fixinc/fixincl.x: Regenerate.
12924         * fixinc/tests/base/pthread.h: Update.
12925         * fixinc/fixincl.c(initialize): be explicit about the default case
12926         and indicate verbose level when being very, very verbose.
12927         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
12929 2003-03-22  Andreas Jaeger  <aj@suse.de>
12931         * config/i386/i386.c (ix86_init_machine_status): Return value.
12933 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12935         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
12936         conditional branch to the following instruction.  Use next_real_insn
12937         instead of next_active_insn.
12938         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
12939         instead of next_active_insn.
12941 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
12943         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
12944         instead of 'm' constraint in forced-split alternatives.
12945         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
12946         VALIDATE_ADDRESS parameter to operand_subword.
12948 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
12950         * config/h8300/h8300.c (notice_update_cc): Correctly handle
12951         the case where the set destination is STRICT_LOW_PART.
12953 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
12955         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
12956         c30 instead of a c40 processor.
12958 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
12960         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
12962 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
12964         * c-common.c: Include intl.h.
12965         (shadow_warning): Rewrite to allow better diagnostic translations.
12966         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
12967         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
12968         use it throughout.
12969         * Makefile.in (c-common.o): Add intl.h.
12971 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
12973         * config.gcc: Remove 'float_format'.
12975         * fixproto: Define NULL and size_t in generated stdlib.h and
12976         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
12977         Rearrange file generation loop for readability.  Generate time.h,
12978         string.h if missing.
12979         * tsystem.h: Include <string.h>, <time.h> unconditionally.
12980         * config.gcc: Blow away POSIX defines.
12982 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
12984         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
12986 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
12988         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
12989         writing .interrupt command.
12990         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
12991         if it's a far or near function.
12992         ("call_value"): Likewise.
12993         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
12994         near attributes.
12995         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
12996         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
12997         (m68hc11_initial_elimination_offset): Set current_function_far
12998         according to attributes.
12999         (expand_prologue): Likewise.
13000         (trap_handler_symbol): New global to keep track of trap handlers.
13001         (m68hc11_encode_section_info): Mark symbol as far if needed; set
13002         trap symbol.
13003         (m68hc11_is_far_symbol): New function.
13004         (m68hc11_is_trap_symbol): New function.
13005         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
13006         (m68hc11_is_trap_symbol): Declare.
13008 2003-03-21  Jan Hubicka  <jh@suse.cz>
13010         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
13011         only when amount of saved regs changed.
13012         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
13013         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
13015 2003-03-21  Jan Hubicka  <jh@suse.cz>
13017         PR inline-asm/7916
13018         * function.c (instantiate_virtual_regs_lossage): New function.
13019         (instantiate_virtual_regs_1): Use it.
13020         (instantiate_virtual_regs): Do not continue in substition when insn has
13021         been deleted.
13023 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13025         * combine.c (make_field_assignment): Fix a warning.
13027 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13029         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
13031 2003-03-21  Dale Johannesen  <dalej@apple.com>
13033         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
13034         priority for R2 on Darwin.
13035         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
13037 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13039         * combine.c (make_field_assignment): Remove unnecessary AND
13040         when storing into zero_extract.
13042 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
13044         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
13045         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
13046         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
13047         in comment.
13049 2003-03-21  DJ Delorie  <dj@redhat.com>
13051         * optabs.c (init_integral_libfuncs): Make sure we init at least up
13052         to "long long" size words.
13054 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
13056         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
13057         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
13058         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
13060 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13062         PR doc-bug/9813
13063         * doc/extend.texi: Move misplaced paragraph about underscores in
13064         variables in macros.
13066 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
13067             Richard Henderson  <rth@redhat.com>
13069         PR optimization/8366
13070         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
13071         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
13072         PIC+SYMBOLIC_CONST in other modes than Pmode.
13073         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
13074         the form PIC+SYMBOLIC_CONST as mode dependent.
13076 2003-03-21  DJ Delorie  <dj@redhat.com>
13078         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
13079         sure we always emit at least one insn.
13081 2003-03-21  Christopher Faylor  <cgf@redhat.com>
13083         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
13084         stub t-cygming. Use common target header cygming.h. Add extra
13085         c_target_obj and cxx_target_obj file. Default cygwin to posix
13086         threading. Enforce i386 as float format.
13087         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
13088         Remove cygwin.h as target header. Use common target header
13089         cygming.h  Enforce i386 as float format. Correct typo.
13090         * config/i386/cygming.h: New file, containing definitions
13091         common to mingw32 and cygwin.
13092         * config/i386/cygwin.h: Remove definitions common to cygwin and
13093         mingw.  Simplify special spec logic.  Define "wrappers" around
13094         certain include path defines to accommodate -mno-cygwin.
13095         Remove some #if 0'ed code.
13096         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
13097         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
13098         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
13099         * config/i386/mingw32.h: Remove definitions common to cygwin and
13100         mingw.
13101         (EXTRA_OS_CPP_BUILTINS): Adjust.
13102         (TARGET_VERSION): Define.
13103         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
13104         mingw32.h definitions.
13105         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
13106         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
13107         Add compilation rules for cygwin1.o cygwin2.o.
13108         * config/i386/cygwin1.c: New file.
13109         * config/i386/cygwin2.c: New file.
13110         * config/i386/t-cygming: New makefile stub.
13112 2003-03-20  Richard Henderson  <rth@redhat.com>
13114         * fold-const.c (extract_muldiv_1): Revert changing order of
13115         operands in case MULT_EXPR of 2003-02-16 patch.
13117 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
13118         Merge changes from new-regalloc-branch
13120         From Michael Matz  <matz@suse.de>
13121         * df.c (df_ref_record_1): Move init of loc to safe point.
13122         Only recurse on interesting things in parallels.
13123         Handle CLASS_CANNOT_CHANGE_MODE smarter.
13124         (df_uses_record): Ditto.
13126         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
13127         it's already okay to use memory operands in (IE doesn't require
13128         adding another insn or anything).
13130 2003-03-20  Richard Henderson  <rth@redhat.com>
13132         PR middle-end/6348
13133         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
13134         different from word_mode.
13136 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13138         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
13139         source operand to those that can be extracted with bld.
13141 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
13143         PR 10066
13144         * arm.md (UNSPEC_PIC_BASE): New constant.
13145         (pic_add_dot_plus_four): Wrap with unspec.
13146         (pic_add_dot_plus_eight): Likewise.
13148 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13150         * config/h8300/h8300.md (*insv_si_1_n): New.
13151         (*insv_si_1_n_lshiftrt): Likewise.
13153 2003-03-20  Roger Sayle  <roger@eyesopen.com>
13155         * fold-const.c (fold_mathfn_compare): New function to simplify
13156         comparisons against built-in math functions.  Fold comparisons
13157         of sqrt against constants.
13158         (fold): Call fold_mathfn_compare when appropriate.
13160 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
13162         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
13163         information.
13165 2003-03-20  Per Bothner  <pbothner@apple.com>
13167         Various cleanups to help compile server.
13169         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
13170         and pass that to _cpp_init_hashtable.
13171         (cpp_read_main_file):  Drop hash_table* argument; don't call
13172         _cpp_init_hashtable.
13173         * cpplib.h:  Update declarations to match.
13174         * c-opts.c (c_common_init_options):  Pass ident_hash to
13175         cpp_create_reader.
13176         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
13177         * fix-header.c (read_scan_file):  Likewise pass NULL table to
13178         cpp_create_reader rather than cpp_read_main_file.
13180         * cppfiles.c (cpp_rename_file):  Generalized and renamed
13181         to cpp_change_file.
13182         * cpplib.h:  Update declaration to match.
13183         * c-opts.c (push_command_line_line, finish_options):  Change
13184         cpp_rename_file calls to cpp_change_file.
13186         * line-map.c (add_line_map):  Allow leaving the outermost file.
13187         Allowing entering an outermost-file after the initial time.
13189         * toplev.c (pop_srcloc):  Allow popping from initial file.
13191 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
13193         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
13195 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13197         * config/h8300/h8300.md (a peephole2): New.
13199 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13201         * config/h8300/h8300.md (*addsi3_and_r_1): New.
13202         (*addsi3_and_not_r_1): Likewise.
13204 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
13206         * Makefile.in (STRICT2_WARN): Add @WERROR@.
13207         (GCC_WARN_CFLAGS): Remove $(WERROR).
13208         (fixinc.sh-warn): New.
13209         * ada/Make-lang.in (ada-warn): Add $(WERROR).
13210         * cp/Make-lang.in (cp-warn): Add $(WERROR).
13211         * f/Make-lang.in (f-warn): Add $(WERROR).
13212         * java/Make-lang.in (java-warn): Add $(WERROR).
13213         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
13215 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
13217         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
13218         langhooks-def.h (lhd_tree_dump_dump_tree),
13219         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
13220         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
13221         true and false in return statements.
13223 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
13225         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
13226         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
13227         DWARF_INITIAL_LENGTH_SIZE.
13228         (output_compilation_unit_header, output_pubnames, output_aranges)
13229         (output_line_info): Output 0xffffffff escape value for 64-bit
13230         DWARF extension.
13231         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
13233 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
13235         * config/s390/s390.c (s390_preferred_reload_class): Do not
13236         force constants to the pool unless necessary.
13237         (s390_decompose_address): Prefer to use pointer as base,
13238         not index register.
13239         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
13240         Q alternative.
13241         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
13242         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
13243         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
13244         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
13245         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
13247 2003-03-19  Jan Hubicka  <jh@suse.cz>
13249         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
13250         * i386.c (use_fast_prologue_epilogue): Remove.
13251         (ix86_frame): New field save_regs-using_mov;
13252         (ix86_compute_frame_layout):  Decide on fast prologues;
13253         allocate saved registers in red zone.
13254         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
13256 2003-03-19  Nick Clifton  <nickc@redhat.com>
13258         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
13260 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13262         PR 10062
13263         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
13264         * pa-protos.h (output_lbranch): New prototype.
13265         * pa.c (compute_frame_size): Change size of the frame marker on the
13266         64-bit ports to 48 bytes.
13267         (pa_output_function_prologue): Document why SAVE_SP is set.
13268         (hppa_expand_prologue): Save previous stack pointer into frame marker
13269         on targets which use the hpux unwind library.
13270         (output_cbranch): Use output_lbranch.
13271         (output_lbranch): New function to output long unconditional branches.
13272         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
13273         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
13274         64-bit ports.
13275         * pa.md (jump): Use output_lbranch.
13276         (allocate_stack): New expander for dynamic stack allocation.
13278 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
13280         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
13281         when debugging on XCOFF targets.  Delete "abi" temp.
13283         PR target/10073
13284         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
13286 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
13288         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
13289         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
13290         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13292         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
13293         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
13294         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13296 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
13298         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
13299         the result of machopic_function_base_name.
13300         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
13301         string rather than a static array.
13303         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
13305         * gengtype.c: Include rtl.h.
13306         (enum rtx_code): Don't define.
13307         (rtx_format): Make declaration match rtl.h.
13308         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
13309         users.
13310         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
13311         * Makefile.in (gengtype.o): Update dependencies.
13313 2003-03-18  Andreas Schwab  <schwab@suse.de>
13315         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
13316         martin@blom.org.
13318 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
13320         * function.c (next_block_index): Mark with GTY.
13322         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
13324 2003-03-18  Richard Henderson  <rth@redhat.com>
13326         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
13327         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
13328         until after reload.
13330 2003-03-18  Richard Henderson  <rth@redhat.com>
13332         * builtins.c (expand_builtin_unop): New target_mode operand;
13333         use it to convert the result to the correct mode.
13334         (expand_builtin): Update all callers.
13336 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
13338         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
13340 2003-03-18  Jan Hubicka  <jh@suse.cz>
13342         * i386.md:  Fix previous commit that mistakely applied the patch
13343         twice.
13345         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
13346         canonicalized.
13347         (memrefs_conflict_p): Likewise.
13348         (addr_side_effect_eval): Canonicalize the constructed address.
13350 2003-03-18  Jan Hubicka  <jh@suse.cz>
13352         * i386.md (cvtts?2si peep2): New.
13354 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13356         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
13358 2003-03-18  Andreas Schwab  <schwab@suse.de>
13360         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
13361         for format.
13363 2003-03-17  Jason Merrill  <jason@redhat.com>
13365         PR c++/10091
13366         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
13367         an unaligned member of TREE_ADDRESSABLE type.
13369 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
13371         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
13372         (TARGET_PROFILE_KERNEL): Define.
13373         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
13374         (PROFILE_BEFORE_PROLOGUE): Don't define.
13375         (PROFILE_KERNEL): Remove hacks.
13376         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
13377         (rs6000_stack_info): No need to save lr if just for profiling when
13378         TARGET_PROFILE_KERNEL.
13379         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
13380         (output_function_profiler): Localize label generation.  Emit code
13381         for kernel profiling.
13383 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
13385         * config/h8300/h8300-protos.h: Add a prototype for
13386         byte_accesses_mergeable_p.
13387         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
13388         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
13389         (a splitter): Likewise.
13390         (*iorsi3_ashift_16_ashift_24): Likewise.
13391         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
13393 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13395         * dwarf2asm.h: Delete obsolete comment.
13396         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
13397         dw2_asm_output_pcrel, dw2_asm_output_addr,
13398         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
13399         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
13400         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
13401         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
13403 2003-03-17  Zack Weinberg <zack@codesourcery.com>
13405         * c-tree.h (struct lang_identifier): Remove error_locus field.
13406         (IDENTIFIER_ERROR_LOCUS): Kill.
13407         (record_function_scope_shadow): New prototype.
13408         * c-typeck.c (build_external_ref): Don't complain if
13409         decl is error_mark_node.  When not at file scope, bind the
13410         decl's local value to error_mark_node to suppress further
13411         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
13413         * c-decl.c (get_function_binding_level): New static function.
13414         (record_function_scope_shadow): New exported function.
13415         (c_make_fname_decl): Use get_function_binding_level.
13417 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
13419         * stmt.c (tail_recursion_args): Call promote_mode to set
13420         unsignedp flag correctly before calling convert_move.
13422 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13424         * loop-unroll.c (decide_peel_completely,
13425         decide_unroll_constant_iterations, decide_unroll_stupid,
13426         decide_unroll_runtime_iterations, decide_peel_simple): Set
13427         loop->has_desc.
13429 2003-03-17  Jan Hubicka  <jh@suse.cz>
13431         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
13433 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
13435         * function.c (assign_parms): For a struct value address passed as
13436         first argument, delay the function's result RTL setup code until
13437         after the emission of parameter conversions.
13439 2003-03-17  Dave Love  <fx@gnu.org>
13440             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13442         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
13443         __arch64__ to match Compaq cc.
13445 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
13447         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
13448         (c_common_init): Set EBCDIC in cpp options.
13449         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
13450         not conditional compilation.
13451         * cpplib.h (struct cpp_options): New entry EBCDIC.
13453 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
13455         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
13457 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13459         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
13460         argument to 0 for redirect_jump.
13462 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
13464         PR c++/8805
13465         * except.c (eh_region_u_cleanup): Add prev_try.
13466         (expand_eh_region_end_cleanup): Set it.
13467         (reachable_handlers): Use it to skip over cleanup blocks.
13469 2003-03-17  Andreas Jaeger  <aj@suse.de>
13471         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
13473 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
13475         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
13476         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
13477         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
13478         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
13480 2003-03-16  Richard Henderson  <rth@redhat.com>
13482         * simplify-rtx (simplify_binary_operation): Don't abort for
13483         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
13485 2003-03-16  Richard Henderson  <rth@redhat.com>
13487         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
13488         optimize_size as well.
13490 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
13492         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
13493         for D register to specify the low part of it, aka B.
13494         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
13495         the register if we are loading 1 or -1 to it; avoid using temp
13496         register when moving X/Y to Y/X.
13497         (m68hc11_gen_movqi): Likewise.
13498         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
13500 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
13502         PR optimization/9016
13503         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
13504         into the constant pool.
13506 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
13508         PR target/9164
13509         * tree.c (get_narrower): For extensions with unchanged bit number,
13510         return the unsignedness of the outer mode.
13512 2003-03-16  Roger Sayle  <roger@eyesopen.com>
13514         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
13515         to avoid "may be used uninitialized" warning on ia64-hpux.
13516         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
13518 2003-03-16  Andreas Jaeger  <aj@suse.de>
13520         * configure.in: Improve check for memcheck.h.
13521         * configure: Regenerated.
13523 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
13525         * doc/cppopts.texi: Remove documentation of -A-.
13527 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
13529         * doc/libgcc.texi: Remove @tie.
13531 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
13533         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
13534         (rtx_pair): Added new element update_label_nuses, renamed to
13535         replace_label_data.
13536         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
13537         replace_label_data instead of rtx_pair.
13538         * loop.c (load_mems): Likewise.
13539         * rtlanal.c (replace_label): Replace label in pool constants and in
13540         INSN_LIST (in REG_LABEL note).
13541         (subrtx_p): Renamed to rtx_referenced_p.
13542         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
13543         LABEL_REF with CODE_LABEL, traverse constants from pool.
13545 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
13546             Zack Weinberg  <zack@codesourcery.com>
13548         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
13549         * doc/libgcc.texi: New file.
13550         * doc/interface.texi: Delete paragraph about libgcc interface.
13551         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
13553 2003-03-15  Jason Merrill  <jason@redhat.com>
13555         PR debug/9039
13556         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
13558         PR debug/6387
13559         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
13560         function DIEs at toplevel.
13561         (decls_for_scope): At -g1, don't descend into subblocks.
13563 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
13565         * varasm.c (struct rtx_const): Change type of un.addr member
13566         to struct holding an additional 'symbol' member.
13567         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
13568         with equal string addresses as equal.
13569         (simplify_subtraction): Adapt to struct rtx_const change.
13571 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
13573         * fix-header.c (read_scan_file): Read main file before handling -D.
13575 2003-03-15  Roger Sayle  <roger@eyesopen.com>
13577         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
13578         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
13579         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
13580         (find_sub_basic_blocks): Likewise.
13581         * cgraphunit.c (cgraph_expand_functions): Likewise.
13582         * dwarf2out.c (prune_unused_types): Likewise.
13583         * expr.c (store_field): Likewise.
13584         * genextract.c (print_path): Likewise.
13585         * haifa-sched.c (schedule_insn): Likewise.
13586         * lcm.c (compute_antinout_edge): Likewise.
13587         * loop-unroll.c (decide_peel_once_rolling): Likewise.
13588         * ra-colorize.c (ra_colorize_free_all): Likewise.
13589         * ra-debug.c (dump_igraph): Likewise.
13590         (debug_hard_reg_set): Likewise.
13591         * reg-stack.c (reg_to_stack): Likewise.
13592         * rtlanal.c (refers_to_regno_p): Likewise.
13593         * tracer.c (layout_superblocks): Likewise.
13595 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
13597         * fix-header.c (read_scan_file): Fix thinko.
13599 2003-03-15  Glen Nakamura  <glen@imodulo.com>
13601         * reload1.c (choose_reload_regs): Use && instead of ||
13602         with REG_CANNOT_CHANGE_MODE_P condition.
13604 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
13606         * Makefile.in: Update.
13607         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
13608         * c-lex.c (init_c_lex): Register builtins hook is dead.
13609         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
13610         (c_common_decode_option): Don't call cpp_handle_option.
13611         Handle -A, -D and -U.
13612         (handle_deferred_opts): Simplify.
13613         (finish_options): Define builtins and command line macros.
13614         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
13615         * cppinit.c: Don't include intl.h.
13616         (init_builtins): Rename cpp_init_builtins.  No hook to call.
13617         (init_library): Don't need to sort options.
13618         (cpp_create_reader): Don't set pending.
13619         (cpp_destroy): Don't free pending.
13620         (struct pending_option, cl_directive_handler, struct cpp_pending,
13621         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
13622         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
13623         cl_options, cpp_handle_option): Remove.
13624         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
13625         cpp_finish_options): Remove.
13626         (cpp_init_builtins): New.
13627         * fix-header.c (read_scan_file): Update to handle -D.  Fix
13628         handling of -I.  Replace call to cpp_finish_options.
13630 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13632         PR optimization/9387
13633         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
13634         for conditional returns.
13636 2003-03-14  Jason Merrill  <jason@redhat.com>
13638         PR optimization/6871
13639         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
13641 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
13643         * c-opts.c (finish_options): New.
13644         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
13645         (missing_arg): Handle OPT_include and OPT_imacros.
13646         (c_common_init, c_common_parse_file): Use finish_options.
13647         (handle_deferred_opts): Update.
13648         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
13649         (cpp_finish_options): Don't handle -imacros here.
13650         (no_fil): Remove.
13651         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
13653 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
13655         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
13656         rs6000_maybe_dead if !fromprolog.
13658 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
13660         * Makefile.in: Update.
13661         * c-common.h (fe_file_change, pp_file_change): New.
13662         * c-lex.c (init_c_lex): Don't set cb_file_change.
13663         (c_common_parse_file): Move to c-opts.c.
13664         (cb_file_change): Rename fe_file_change.
13665         * c-opts.c: Include debug.h.
13666         (warn_unused_macros, include_cursor): New.
13667         (push_command_line_include, cb_file_change): New.
13668         (COMMAND_LINE_OPTIONS): Handle -include.
13669         (c_common_decode_option): Use local warn_unused_macros.
13670         Handle OPT_include.
13671         (c_common_post_options): Set file change callback.
13672         (handle_deferred_opts): Skip -include.  Don't free the array.
13673         (c_common_init): Call cpp_finish_options here, and push an
13674         initial -include file.
13675         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
13676         (preprocess_file): Don't call cpp_finish_options.
13677         (init_pp_output): Don't set the file change callback.
13678         (pp_file_change): Return if no line commands or no output.
13679         * cpphash.h (next_include_file, first_unused_line): Remove.
13680         * cppinit.c (include_head, include_tail): Remove.
13681         (cpp_destroy): Don't free -include chain.
13682         (cpp_finish_options): Don't handle -include, or worry about
13683         -Wunused-macros.
13684         (_cpp_maybe_push_include_file): Remove.
13685         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
13686         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
13687         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
13688         Used flag is set based upon the state of the warn_unused_macros
13689         flag, and so use of first_unused_line is unnecessary.
13691 2003-03-13  Jan Hubicka  <jh@suse.cz>
13693         * cselib.c (clear_table): Do not take argument; always clear just
13694         used slots.
13695         (cselib_process_insn):  Update call of clear_table
13696         (cselib_init): Do not call clear_table.
13697         (cselib_finish): Clear table.
13699         * cse.c (count_reg_usage): Do not check side_effects_p.
13700         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
13701         like noop.
13702         (find_reg_equal_equiv_note): Do not use find_reg_note.
13704 2003-03-14  Richard Henderson  <rth@redhat.com>
13706         PR target/9700
13707         * config/alpha/alpha.c (alpha_va_start): Account for
13708         current_function_pretend_args_size in the AP offset.
13710         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
13711         (INITIAL_ELIMINATION_OFFSET): Move out of line.
13712         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
13713         (alpha_initial_elimination_offset) New.
13714         * config/alpha/alpha-protos.h: Update.
13716 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
13718         * stmt.c (expand_start_case): Call emit_queue ().
13720 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
13721             Alexandre Oliva  <aoliva@redhat.com>
13723         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
13724         words in new abis.
13726 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
13728         PR optimization/8396
13729         * tree-inline.c (initialize_inlined_parameters): Make sure the value
13730         of read-only constant arguments is passed with the right type.
13732 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
13734         * doc/extend.texi (Function Names): Make the example compilable.
13736 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
13738         * config/rs6000/rs6000.c (processor_target_table): Really allow
13739         GP optional instructions on Power4.
13741 2003-03-13  Roger Sayle  <roger@eyesopen.com>
13743         * calls.c (flags_from_decl_or_type): Factor and remove redundant
13744         conditional tests.
13746 2003-03-13  Mike Stump  <mrs@apple.com>
13748         * ggc-page.c (struct page_entry): Remove varray.h header.
13749         Add index_by_depth field.
13750         Remove save_in_use_p field.
13751         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
13752         by_depth_max, by_depth, and save_in_use fields.
13753         (INITIAL_PTE_COUNT): Add.
13754         (save_in_use_p_i): Add.
13755         (save_in_use_p): Add.
13756         (adjust_depth): Add.
13757         (move_ptes_to_front): Add.
13758         (push_depth): Add.
13759         (push_by_depth): Add.
13760         (prefetch): Add.
13761         (free_page): Add support for and use faster data structures.
13762         (ggc_alloc): Likewise.
13763         (init_ggc): Likewise.
13764         (ggc_recalculate_in_use_p): Likewise.
13765         (ggc_pop_context): Likewise.
13766         (clear_marks): Likewise.
13767         (ggc_pch_read): Likewise.
13768         * Makefile.in (ggc-page.o): Remove varray.h.
13770 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
13772         * ChangeLog: Rotated last year's entries to...
13773         * ChangeLog.8: New.
13775         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
13776         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
13777         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
13778         config/ia64/ia64-protos.h, config/ia64/ia64.c,
13779         config/ia64/ia64.h, config/ia64/ia64.md,
13780         config/ia64/itanium1.md, config/ia64/itanium2.md,
13781         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
13782         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
13784 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
13786         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
13787         Differentiate endianness.
13788         (s6000_override_options): Use cpu type instead of TARGET_SPE.
13790 2003-03-13  Nick Clifton  <nickc@redhat.com>
13792         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
13793         LDM instructions with writeback enabled.
13794         (output_return_instruction): Likewise.
13796         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
13797         (CALL_USED_REGISTERS): Remove definition.
13798         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
13800 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
13802         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
13803         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
13804         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
13805         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
13806         (rs6000_legitimize_address): Formatting.
13807         (rs6000_emit_move): Likewise.
13808         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
13809         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
13810         (rs6000_elf_select_section): Comment reason for shlib being
13811         set for ABI_AIX.
13812         (rs6000_elf_unique_section): Likewise.
13813         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
13814         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
13815         as well as flag_pic.
13816         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
13817         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
13818         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
13820 2003-03-13  Richard Henderson  <rth@redhat.com>
13822         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
13824         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13825         (ia64_gp_save_reg): Remove.
13826         (struct ia64_frame_info): Move to the beginning of the file;
13827         add reg_save_gp.
13828         (ia64_expand_call): Rearrange for new call patterns.
13829         (ia64_reload_gp): New.
13830         (ia64_split_call): New.
13831         (ia64_compute_frame_size): Allocate reg_save_gp.
13832         (ia64_expand_prologue): Save reg_save_gp.
13833         (ia64_expand_epilogue): Don't restore gp.
13834         (ia64_hard_regno_rename_ok): Remove R4 hack.
13835         (ia64_function_ok_for_sibcall): New.
13836         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
13837         call try_split on sibcall pattern.
13838         * config/ia64/ia64-protos.h: Update.
13839         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
13840         Rename from nopic versions.  Confiscate 2nd argument to call as
13841         a marker.
13842         (call_pic, call_value_pic, sibcall_pic): Remove.
13843         (call_gp, call_value_gp, sibcall_gp): New.
13844         (builtin_setjmp_setup): Remove.
13845         (builtin_setjmp_receiver): Call ia64_reload_gp.
13847 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
13849         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
13850         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
13851         "GNU CC" with "GCC".
13853         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
13854         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13855         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
13856         GCC, not GNU CC.
13858         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
13859         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
13861         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
13862         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
13863         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
13864         "GNU CC" with "GCC".
13866         * config/v850/lib1funcs.asm, config/v850/rtems.h,
13867         config/v850/v850-c.c, config/v850/v850-protos.h,
13868         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
13869         GCC, not GNU CC.
13871         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
13872         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
13873         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
13874         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
13875         GNU CC.
13877 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
13879         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
13881 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
13883         * fixinc/fixinc.interix: Remove dead code (most of it).
13884         * fixinc/fixinc.dgux: Remove.
13886         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
13887         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
13889 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13891         * pa.c (pa_init_builtins): Fix warning.
13893 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
13895         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
13896         (ASM_OUTPUT_XDATA_SHORT): Remove.
13897         (ASM_OUTPUT_XDATA_INT): Remove.
13898         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
13899         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
13900         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
13901         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
13903 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
13905         PR c++/7050
13906         * expr.c (store_expr): Don't attempt to store void-typed trees,
13907         just evaluate them for side effects.
13909 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
13911         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
13912         * cppinit.c (push_include): Move with changes to cppfiles.c.
13913         (cpp_read_main_file): Mark named operators here...
13914         (cpp_finish_options): ...not here.  Update.
13915         (_cpp_maybe_push_include_file): Update.
13916         * cpplib.h (cpp_push_include, cpp_rename_file): New.
13918 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
13920         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
13921         _gcc_COMPUTE_GAS_VERSION.
13922         * configure.in: Use them.
13923         * configure: Regenerate.
13925 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
13927         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
13928         to detect carry.
13929         (subdi3): Reorder emitted instructions.
13931 2003-03-12  Andreas Jaeger  <aj@suse.de>
13933         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
13934         NETBSD_OS_CPP_BUILTINS_LP64.
13936 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
13938         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
13939         Rearrange.  Reorganize.
13940         * configure.in: Rearrange.
13941         * configure: Regenerate.
13943 2003-03-12  Andreas Jaeger  <aj@suse.de>
13945         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
13946         LP64 targets.
13948         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
13949         _LP64.
13951         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
13952         _LP64 macros here.
13953         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13955         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
13956         NETBSD_OS_CPP_BUILTINS_LP64.
13957         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
13958         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
13960         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
13962 2003-03-12  Jan Hubicka  <jh@suse.cz>
13964         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
13966 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
13968         Fix PR target/9797 and PR c/9853.
13969         * stmt.c (expand_decl_init): Call push_temp_slots () and
13970         pop_temp_slots ().
13972 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
13974         * sh.c: Include basic-block.h.
13975         (sh_output_mi_thunk, emit_load_ptr): New functions.
13976         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
13978 2003-03-12  Nick Clifton  <nickc@redhat.com>
13980         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
13981         (CALL_USED_REGISTERS): Likewise.
13982         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
13983         describing how this value is calculated.
13985 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
13987         * configure.in (rlim_t): Define to long if no valid definition
13988         found in sys/resource.h.
13989         * config.in, configure: Regenerate.
13991 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
13993         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
13994         TARGET_OS_CPP_BUILTINS.
13995         * config/mcore/mcore-pe.h: Similarly.
13996         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
13997         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
13999 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14001         PR c/9928
14002         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
14003         only if it is a VAR_DECL.
14005 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14007         PR optimization/9888
14008         * config/i386/i386.md (jcc_1): Fix range.
14009         (jcc_2): Likewise.
14010         (jump): LIkewise.
14011         (doloop_end_internal): Likewise.
14013 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
14015         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
14016         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
14017         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
14018         DLL_IMPORT_EXPORT_PREFIX and "i."
14019         (i386_pe_dllexport_name_p): Here.
14020         (i386_pe_dllimport_name_p): Here.
14021         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
14022         not 9 chars when getting identifier name.
14023         (i386_pe_mark_dllimport): Here.
14024         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
14025         not 9 chars when getting identifier name. Correct comment.
14026         (i386_pe_strip_name_encoding): Here. Add comments for different
14027         cases.
14028         (gen_fastcall_suffix): Break down xmalloc() argument to
14029         components.
14030         (gen_stdcall_suffix): Likewise.
14031         Update copyright year.
14033 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14035         PR optimization/9888
14036         * config/i386/i386.md (movsi_1): Remove special alternatives
14037         for %eax register.
14038         (movsi_1_nointernunit): Likewise.
14039         (movhi_1): Likewise.
14040         * config/i386/i386.c (memory_address_length): Do not use
14041         short displacement when there is no base.
14042         (ix86_attr_length_address_default): Handle LEA instructions.
14044 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
14046         * c-cppbuiltin.c (builtin_define_std): Make non-static.
14048 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
14050         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
14051         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
14052         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
14053         * config/freebsd.h (CPP_PREDEFINES): Remove.
14054         (TARGET_OS_CPP_BUILTINS): New.
14055         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
14056         instead of TARGET_OS_CPP_BUILTINS.
14057         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
14059 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
14061         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
14063 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14065         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
14066         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
14068         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
14070 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
14072         * toplev.c (independent_decode_option): Return success for --help,
14073         --target-help and --version.
14075 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
14077         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
14078         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
14079         specified.
14080         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
14081         DRIVER_SELF_SPECS.
14082         (LINK_SPEC): Let endian options affect the linker emulation name.
14084 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
14086         * sh.md (reload_inqi): Fix mode for source in second set.
14088 2003-03-11  Jan Hubicka  <jh@suse.cz>
14090         * cselib.c (cselib_invalidate_mem_1): Move too ...
14091         (cselib_invalidate_mem): ... here; use new list
14092         (dummy_val, first_containing_mem): New static variables.
14093         (clear_table): Initialize first_containing_mem.
14094         (discard_useless_values):  Compact the containing_mem list.
14095         (add_mem_for_addr): Add to the list.
14096         * cselib.h (cselib_val): Add next_containing_mem.
14098 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14100         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
14101         instructions for e500.
14103 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
14105         * Makefile.in: Update.
14106         * c-cppbuiltin.c: Include tm_p.h.
14108 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14110         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
14112         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
14113         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
14114         (_Unwind_SetGR): Same.
14115         (_Unwind_GetGRPtr): New.
14116         (_Unwind_SetGRPtr): New.
14117         (uw_update_context_1): Use accesor functions instead of accessing
14118         context->reg[] directly.
14119         (uw_install_context_1): Same.
14120         (execute_cfa_program): Same.
14121         (__frame_state_for): Same.
14123         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
14124         the synthetic register offset.
14126         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
14128 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
14130         * config/cris/cris.md: Remove lingering EGCS reference.
14131         ("*extopqihi_side_biap"): For HI operation, match
14132         cris_additive_operand_extend_operator, not
14133         cris_operand_extend_operator.  Adjust condition.
14134         ("*extopqihi_side", "*extopqihi"): Ditto.
14135         ("*extopqisi_side_biap"): Correct operand numbers in condition.
14136         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
14137         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
14138         ("*extophisi_swap"): Ditto.
14139         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
14140         PLUS, not cris_operand_extend_operator.  Adjust condition and
14141         output template.
14142         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
14143         * config/cris/cris.h (PREDICATE_CODES): Add
14144         cris_additive_operand_extend_operator.
14145         * config/cris/cris.c (cris_additive_operand_extend_operator):
14146         New predicate.
14148 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
14150         * df.c (read_modify_subreg_p): Change from static to global.
14151         * df.h (read_modify_subreg_p): Add prototype.
14152         * sched-deps.c (sched_analyze_1): Generate true dependency for
14153         strict_low_part, certain subregs and zero/sign_extract.
14155 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
14157         * Makefile.in: Update.
14158         * c-common.c: Don't include real.h or except.h.
14159         (REGISTER_PREFIX): Remove.
14160         (builtin_define_std, builtin_define_with_value,
14161         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
14162         builtin_define_type_max, builtin_define_type_precision,
14163         builtin_define_float_constants): Move to c-cppbuiltin.c.
14164         (c_stddef_cpp_builtins): New.
14165         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
14166         * c-cppbuiltin.c: New, extracted from c-common.c.
14167         (define__GNUC__): New.
14168         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
14169         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
14170         (cpp_unique_options): Don't support no-gcc.
14171         (do_spec_1): Remove support of version specs.
14172         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
14173         * doc/passes.texi: Update.
14174         * doc/tm.texi: Update.
14176 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14178         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
14180 2003-03-10  Andrew Pinski  <apinski@apple.com>
14182         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
14183         is on should not get here.
14184         (machopic_indirect_data_reference): If dynamic-no-pic is on just
14185         generate high/low parts of the address.
14186         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
14187         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
14188         symbol and labels with a new reg.  Dynamic-no-pic does not have a
14189         pic_offset_table_rtx.
14190         (machopic_select_section): Change references of flag_pic to
14191         MACHOPIC_INDIRECT.
14192         (machopic_asm_out_destructor): Likewise.
14193         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
14194         reference of flag_pic to MACHOPIC_INDIRECT.
14195         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
14196         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
14197         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
14198         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
14199         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
14200         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
14201         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
14202         (TARGET_DYNAMIC_NO_PIC): Define.
14203         (SUBTARGET_SWITCHES): Define, have sub-target switches for
14204         dynamic-no-pic.
14205         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
14206         rs6000_override_options to here. Dynamic-no-pic overrides
14207         pic.
14208         (CC1_SPEC): Change from not static then pic to not static and not
14209         dynamic-no-pic then pic.
14210         * config/rs6000/rs6000.c (rs6000_override_options): Move the
14211         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
14212         (rs6000_legitimize_reload_address): Add case for loading floating in
14213         dynamic-no-pic.
14214         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
14215         of flag_pic to MACHOPIC_INDIRECT.
14216         (secondary_reload_class): Conditional change the reference of
14217         flag_pic to MACHOPIC_INDIRECT.
14218         (rs6000_output_mi_thunk): Change reference of flag_pic to
14219         MACHOPIC_INDIRECT.
14220         (output_profile_hook): Likewise.
14221         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
14222         * config/rs6000/rs6000.md (movdf_low): Add the case for
14223         MACHO_DYNAMIC_NO_PIC_P.
14224         (call): Change references for flag_pic in TARGET_MACHO to
14225         MACHOPIC_INDIRECT.
14226         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
14227         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
14228         * doc/invoke.texi (-mdynamic-no-pic): Document.
14230 2003-03-10  Devang Patel  <dpatel@apple.com>
14232         PR c++/9394
14233         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14234         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14235         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
14236         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
14237         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14238         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14240 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
14242         PR optimization/7189
14243         * toplev.c (rest_of_compilation):  Move
14244         check_function_return_warnings up to just after
14245         delete_unreachable_blocks.
14247 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14249         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
14250         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
14251         Declare.
14252         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
14253         for reg rename optimization to avoid using Z and Y registers.
14255 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14257         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
14258         when adding to X and Y since leax/leay are fast.
14259         ("*addhi3"): Accept 'I' constraint when adding to address register.
14260         ("rotlhi3"): Operand 1 must be a register_operand.
14261         (peephole2): New peephole to optimize some adds.
14262         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
14263         to represent -2 .. 2 small integer range.
14265 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14267         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
14268         each 16-bit rotation.
14270 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
14272         * c-opts.c (add_prefixed_path): Don't use concat.  When
14273         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
14274         cpp_GCC_INCLUDE_DIR_len characters.
14276 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
14278         * testsuite/gcc.dg/altivec-9.c: New file.
14280         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
14281         (rs6000_emit_prologue): Use rs6000_frame_related instead.
14283 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14285         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
14286         vectors.
14287         (__ev_convert_u64): Remove macro.  Define as inline.
14288         (__ev_convert_s64): Same.
14290 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14292         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
14293         (rs6000_stack_t): Add spe_64bit_regs_used.
14295         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
14296         spe_64bit_regs_used, and use it to determine the size of the
14297         frame.
14298         (spe_func_has_64bit_regs_p): New.
14299         (spe_synthesize_frame_save): New.
14300         (rs6000_frame_related): Handle SPE synthetic registers.
14301         (rs6000_emit_prologue): Only save in 64-bits if the function used
14302         any registers in 64-bit mode.
14303         (rs6000_emit_epilogue): Same, but for restore.
14305 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
14307         * arm.h (enum floating_point_type): Delete.  Replace with...
14308         (enum fputype): ... new.
14309         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
14310         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
14311         * arm.md (attr fpu): Reworked for new underlying enum values.
14312         * arm.c (arm_fpu_arch): Now enum fputype.
14313         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
14314         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
14315         Update uses of arm_fpu_arch and arm_fpu_tune.
14317 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
14319         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
14320         (try_crossjump_to_edge): Replace refereces to one jump table by
14321         references to identical jump table.
14322         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
14323         (replace_label): Moved to rtlanal.c.
14324         (struct rtx_pair): Moved to rtl.h.
14325         * rtl.h (struct rtx_pair): Moved from loop.c.
14326         (replace_label): New extern function.
14327         (subrtx_p): New extern function.
14328         (tablejump_p): New extern function.
14329         * rtlanal.c (replace_label): Moved from loop.c.
14330         (subrtx_p_1): New static function.
14331         (subrtx_p): New function.
14332         (tablejump_p): New function.
14334 2003-03-10  Jan Hubicka  <jh@suse.cz>
14336         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
14338         * cfgcleanup.c (merge_blocks): Return where to iterate next.
14339         (try_optimize_cfg): Use return value of merge_blocks
14341 2003-03-10  Michael Matz  <matz@suse.de>
14343         * cfg.c (unchecked_make_edge): New.
14344         (cached_make_edge): Use it.
14345         * basic-block.h (unchecked_make_edge): Declare.
14346         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
14348 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
14350         * fpa.md: New file.  Move all patterns relating to FPA co-processor
14351         to here...
14352         * arm.md: ... from here.
14353         (cirrus.md, fpa.md): Include at end of description.
14354         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
14355         (pic_load_addr_based): Remove register constraint from expander.
14356         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
14357         (sordered, sungt, sunle, sunge, sunlt): Likewise.
14358         (eh_epilogue, tablejump): Likewise.
14360 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14362         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
14363         on operands if it has a PLACEHOLDER_EXPR.
14365 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
14366             Mostafa Hagog
14368         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
14369         condition.
14371 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
14373         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
14374         * config/ip2k/ip2k.h: Similarly.
14375         * config/m32r/m32r.h: Similarly.
14376         * config/m68hc11/m68hc11.h: Similarly.
14377         * config/mn10200/mn10200.h: Similarly.
14378         * config/mn10300/mn10300.h: Similarly.
14379         * config/pdp11/pdp11.h: Similarly.
14380         * config/v850/v850.h: Similarly.
14381         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
14382         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
14383         * config/mips/iris3.h: Remove #if 0 block.
14385 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14386             Joern Rennecke <joern.rennecke@superh.com>
14388         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
14389         pending argument upon return from handle_braces here.
14390         (do_spec_2): Instead handle it upon return from do_spec_1 here.
14392 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14393             Joern Rennecke <joern.rennecke@superh.com>
14395         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
14396         pending argument upon return from handle_braces here.
14397         (do_spec_2): Instead handle it upon return from do_spec_1 here.
14399 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14401         * varasm.c (make_decl_one_only): Use declare_weak().
14403 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14405         PR middle-end/9986
14406         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
14407         after the common builtins.
14408         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
14409         * pa.c (TARGET_INIT_BUILTINS): Define.
14410         (pa_init_builtins): New function.
14412         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
14413         space has been allocated for the outgoing arguments, set the arg
14414         pointer for a call emitted after virtuals have been instantiated
14415         using the stack pointer offset, otherwise abort.
14417 2003-03-09  DJ Delorie  <dj@redhat.com>
14419         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
14421 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
14423         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
14424         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
14425         conversion to integer.
14426         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
14428 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14430         * builtins.def: Fix typo and improve grammar.
14431         * loop-unroll.c (decide_peel_completely): Tidy log message.
14433 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
14435         * config/h8300/h8300.md (*tstsi_upper_bit): New.
14436         (*iorsi3_e2f): Likewise.
14438 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14440         * config/h8300/h8300.c (h8300_and_costs): Return the number of
14441         assembly instructions needed.
14442         (h8300_shift_costs): Likewise.
14444 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
14446         * config/cris/aout.h (ENDFILE_SPEC): Undef.
14448         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
14449         moves from here ...
14450         * expr.c (emit_move_insn_1): ... to here.
14452         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
14453         (TARGET_OS_CPP_BUILTINS): New macro.
14454         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
14455         (TARGET_OS_CPP_BUILTINS): New macro.
14456         (CPP_PREDEFINES): Don't define.  Move old definitions and...
14457         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
14458         (TARGET_CPU_CPP_BUILTINS): New macro.
14459         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
14460         definitions and the optional __PIC__, __pic__ and
14461         __NO_UNDERSCORES__ definitions to...
14462         (TARGET_OS_CPP_BUILTINS): New macro.
14464         * flags.h (flag_leading_underscore): Declare.
14466         * c-opts.c (c_common_post_options): On fopen failure, return
14467         false, not NULL.
14469 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
14471         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
14472         config.h.
14473         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
14474         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
14476 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14478         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
14479         CPP_PREDEFINES.
14480         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
14481         CPP_PREDEFINES.
14483 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14485         * c-common.h (c_common_init, c_common_post_options): Update.
14486         * c-objc-common.c (c_objc_common_init): Update for new prototype.
14487         * c-opts.c (saved_lineno): New.
14488         (c_common_post_options, c_common_init): Update prototypes,
14489         move call to cpp_read_main_file from latter to former.
14490         * c-tree.h (c_ojbc_common_init): Update.
14491         * langhooks-def.h (lhd_post_options): New.
14492         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
14493         * langhooks.c (lhd_post_options): New.
14494         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
14495         * toplev.c (no_backend): New.
14496         (process_options): Call post_options hook and set main_input_filename
14497         and input_filename here.
14498         (lang_dependent_init, do_compile): post_options hook moved to
14499         process_options.
14500         * objc/objc-act.c (objc_init): Update prototype.
14501         * objc/objc-act.h (objc_init): Update prototype.
14503 2003-03-08  Roger Sayle  <roger@eyesopen.com>
14505         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
14506         a complex or vector type, using a load in the original mode.
14508 2003-03-08  Jan Hubicka  <jh@suse.cz>
14510         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
14511         * gt-cgraph.h: New GC file.
14512         * cgraph.c (known_fns): New static variable.
14513         (cgraph_node): Add the decl into varray.
14515 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
14517         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
14519 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
14521         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
14522         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
14523         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
14524         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
14525         All callers changed.
14526         * arm.md, arm.h, arm-protos.h: Updated.
14528         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
14529         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
14530         * arm.c (arm_regno_class, f_register_operand): Updated.
14532 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
14534         * config/cris/cris.h: Remove EGCS references.
14535         (CPP_SPEC): Remove "-$".
14536         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
14538 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14540         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
14541         preference to CPP_PREDEFINES.
14543 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14545         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
14547 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14549         * config/h8300/h8300.md (*extzv_16_8): New.
14551 2003-03-08  Jan Hubicka  <jh@suse.cz>
14553         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
14554         * cgraph.h: (cgraph_local_info): Add can_inline_once
14555         (cgraph_global_info): Add inline_once.
14556         (cgraph_node): Add previous.
14557         (cgraph_remove_node): New.
14558         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
14559         function.
14560         (cgraph_optimize): Call it.
14561         (cgraph_finalize_function):  Set inlinable flags.
14562         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
14563         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
14564         (cgraph_expand_function): Likewise.
14565         * cgraph.c
14566         (cgraph_node): Put nodes into doubly linked chain.
14567         (cgraph_remove_node): New function.
14568         * flags.h (flag_inline_functions_called_once): Declare.
14569         * tree-inline.c: Include cgraph.h
14570         (inlinable_functions_p): Add extra argument to bypass limits.
14571         (expand_call_inline):  Obey cgraph flag.
14572         * tree-inline.h (tree_inlinable_function_p): Update prototype.
14574 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14576         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
14577         irreducible loops.
14579         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
14580         loops info correctly.
14582 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
14584         PR middle-end/7796
14585         * unroll.c (calculate_giv_inc): Handle constants being
14586         loaded with LSHIFTRT.
14588 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
14590         * config/rs6000/rs6000.c (processor_target_table): Do not disable
14591         GP optional instructions on Power3, Power4, 620, and 630.
14593 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
14595         * calls.c: Fix comment formatting.
14596         * cfgloopanal.c: Likewise.
14597         * cfgloopmanip.c: Likewise.
14598         * combine.c: Likewise.
14599         * dwarf2out.c: Likewise.
14600         * ggc-common.c: Likewise.
14601         * langhooks.c: Likewise.
14602         * loop-unroll.c: Likewise.
14603         * loop.c: Likewise.
14604         * ra-build.c: Likewise.
14605         * sbitmap.c: Likewise.
14606         * toplev.c: Likewise.
14608 2003-03-07  James E Wilson  <wilson@tuliptree.org>
14610         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
14612 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
14614         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
14615         support -no-integrated-cpp.
14617         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
14618         than langhooks.name.
14620 2003-03-07  Michael Matz  <matz@suse.de>
14622         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
14623         (DF_FOR_REGALLOC): New.
14624         * df.c (df_ref_record): Set DF_REF_STRIPPED.
14625         (read_modify_subreg_p): Simplify.
14626         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
14627         Use DF_FOR_REGALLOC.
14628         * ra.h (struct web): New member subreg_stripped.
14629         (invalid_mode_change_regs): Declare.
14630         * ra.c (invalid_mode_change_regs): New.
14631         (init_ra): Initialize it.
14632         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
14633         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
14634         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
14635         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
14636         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
14638 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
14640         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
14641         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
14642         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
14643         machine description file from ...
14644         * cirrus.md: ... here.
14646 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
14648         * config/h8300/h8300.md (a peephole2): Don't use
14649         reg_overlap_mentioned_p.
14651 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
14653         * c-pch.c: Include langhooks.h.
14654         (IDENT_LENGTH): New.
14655         (get_ident): New.
14656         (pch_ident): Delete.
14657         (pch_init): Use get_ident, IDENT_LENGTH.
14658         (c_common_valid_pch): Likewise.  Also, use actual language
14659         in warning message.
14660         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
14662         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
14663         c-parse.in.
14664         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
14665         gt-objc-objc-act.h.
14666         (gt-objc-objc-act.h): New rule.
14667         * objc/lang-specs.h: Support PCH.
14668         * objc/objc-act.c: Include gt-objc-objc-act.h.
14669         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
14670         (build_selector_reference_decl): Move idx out, mark for PCH.
14671         (build_class_reference_decl): Likewise.
14672         (build_objc_string_decl): Move *_idx out, mark for PCH.
14673         (build_tmp_function_decl): Move xxx out, mark for PCH.
14675 2003-03-06  Dale Johannesen  <dalej@apple.com>
14677         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
14678         global functions for inlining on Darwin.
14680 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
14682         * haifa-sched.c (schedule_block): Don't call reorder when sorting
14683         is prohibited.
14685 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
14687         * Makefile.in (c-ppoutput.o): Update.
14688         * c-common.h (init_pp_output): New.
14689         (preprocess_file): Update.
14690         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
14691         Register builtins.
14692         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
14693         Make call to cpp_read_main_file common to whether preprocessing
14694         or not.  Don't register builtins.
14695         * c-ppoutput.c: Include c-pragma.h.
14696         (setup_callbacks): Rename init_pp_output.
14697         (preprocess_file): No longer setup callbacks or call
14698         cpp_read_main_file.
14699         * cpphash.h (_cpp_init_mbchar): New.
14700         * cppinit.c (init_library): Call _cpp_init_mbchar.
14701         * cpplex.c (_cpp_init_mbchar): New.
14703 2003-03-06  Roger Sayle  <roger@eyesopen.com>
14705         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
14706         MEM, try loading the MEM into a register and taking the low-part
14707         of that, to help CSE see the use of the MEM in its true mode.
14709 2003-03-05  Tom Tromey  <tromey@redhat.com>
14711         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
14712         Define.
14714 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
14716         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
14717         operand 2.
14718         ("*ineqbranchsi"): Likewise.
14720 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
14722         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
14723         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
14724         register store followed by a stack increment.
14726 2003-03-05  Chris Moller  <cmoller@redhat.com>
14728         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
14729         to inhibit saving CARRY_REGS.
14731         * config/stormy16/stormy16.c (xs_hi_general_operand):
14732         added predicate to detect and error-out on out-of-range
14733         const_ints for movhi.
14734         * config/stormy16/stormy16.md (movhi): use
14735         xs_hi_general_operand.
14737         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
14738         added a check for local vbl size overflow.
14739         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
14740         added predicate to detect and error-out on out-of-range
14741         const_ints for addhi and subhi.
14742         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
14743         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
14745         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14746         add a term to accept PRE_MODIFY addresses.
14747         * config/stormy16/stormy16.c (xstormy16_expand_move):
14748         add code to expand PRE_MODIFY addresses to an add followed
14749         by a move.
14751 2003-03-06  Jason Merrill  <jason@redhat.com>
14753         * tree-inline.c (inlinable_function_p): Revert earlier change
14754         pending investigation.
14756 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
14758         * config/h8300/h8300.md (a new peephole2): New.
14760 2003-03-06  Jan Hubicka  <jh@suse.cz>
14762         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
14764 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14766         * dwarf2out.c (size_of_die): Compute size of external reference to
14767         die correctly.
14769 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
14771         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
14772         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
14773         expanders.
14775 2003-03-05  Roger Sayle  <roger@eyesopen.com>
14777         * expr.h (lang_expand_expr): Delete obsolete prototype.
14779 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
14781         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
14783 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
14785         * config/h8300/h8300.md (a peephole2): Generalize to
14786         accept a memory operand.
14788 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
14790         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
14791         * config/alpha/alpha.c (print_operand, case '+'): New.
14792         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
14793         (call_value_osf_1_noreturn): Likewise.
14795 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14797         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
14798         (expand_end_bindings): Likewise.
14800 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14802         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
14803         (epilogue): Don't generate return_external_pic when emitting PA 2.0
14804         code.
14806 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
14808         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
14810         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
14812         * hooks.c (hook_rtx_rtx_null): New.
14814         * hooks.h (hook_rtx_rtx_null): Protoize.
14816         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
14817         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
14819         * target.h (struct gcc_target): Add dwarf_register_span.
14821         * dwarf2out.c (multiple_reg_loc_descriptor): New.
14822         (one_reg_loc_descriptor): New.
14823         (reg_loc_descriptor): Add support for values that span more than
14824         one register.
14826 2003-03-05  Jan Hubicka  <jh@suse.cz>
14828         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
14829         * alias.c:  Include cgraph.h
14830         (mark_constant_function): Use cgraph_rtl_info.
14831         * calls.c:  Include cgraph.h
14832         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
14833         calls.
14834         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
14835         * cgraph.c (cgraph_rtl_info): New function.
14836         * cgraph.h (cgraph_rtl_info): Declare
14837         (cgraph_rtl_info): Likewise.
14838         * function.h (struct function): Add recursive_call_emit.
14839         * toplev.c: Include cgraph.h.
14840         (rest_of_compilation): Set preferred_incoming_stack_boundary.
14842 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
14844         * config/h8300/h8300.c (output_simode_bld): Clear the
14845         destination first if possible.
14846         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
14847         alternative.
14848         (extzv_1_r_inv_h8300hs): Likewise.
14850 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14852         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
14853         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
14854         * cfgloop.c (flow_loop_free): Made global.
14855         (establish_preds): New static function.
14856         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
14857         (get_loop_exit_edges): New.
14858         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
14859         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
14860         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
14861         loops.
14862         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
14863         removability of an edge.
14864         (fix_irreducible_loops): New static function.
14865         (find_path, remove_path): Add ability to remove enclosing loops.
14866         (unloop): New.
14867         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
14868         flags.
14869         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
14870         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
14871         not neccessary.
14872         (decide_peel_completely, peel_loops_completely): Allow complete peeling
14873         of non-duplicable once rolling loops.
14874         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
14876 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
14878         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
14879         for align_jumps is 4.
14881         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
14882         use GENERAL_REGS.
14884 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
14886         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
14887         according to va_arg type.
14888         (EXPAND_BUILTIN_VA_ARG): Remove.
14889         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
14890         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
14892 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
14894         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
14895         else clauses.
14897 2003-03-05  Michael Matz  <matz@suse.de>
14899         * i386/i386.c (ix86_save_reg): Also test
14900         current_function_uses_const_pool.
14902 2003-03-05  Michael Matz  <matz@suse.de>
14904         * unwind.h: Add the GPL exception.
14905         * Makefile.in (USER_H): Add unwind.h.
14907 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
14909         PR c/9799
14910         * c-typeck.c (push_init_level): Add sanity check.
14912 2003-03-05  Jan Hubicka  <jh@suse.cz>
14914         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
14915         RTL inlining is done.
14917         * cgraphunit.c (cgraph_mark_local_functions): New local function.
14918         (cgraph_optimize): Mark local functions.
14919         * i386-protos.h (init_cumulative_args): Update prototype.
14920         * i386.c (init_cumulative_args): Use register passing convention for
14921         local functions.
14923         * cgraph.c (cgraph_global_info_ready): New global variable
14924         (cgraph_local_info, cgraph_global_info): New functions.
14925         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
14926         structures.
14927         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
14928         Declare.
14929         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
14930         (cgraph_mark_functions_to_output): Use inline_many.
14931         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
14932         (cgraph_expand_functions): Expand inline functions last.
14933         (cgraph_optimize): Do not emit uneeded functions.
14935 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
14937         * expr.c (convert_modes): Check for legal hard register.
14939 2003-03-04  Tom Tromey  <tromey@redhat.com>
14941         * doc/sourcebuild.texi (Front End Directory): Document tags.
14942         * configure: Rebuilt.
14943         * configure.in (target_list): Added tags.
14944         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
14945         TAGS files by reference.
14946         * objc/Make-lang.in (objc.tags): New target.
14948 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14950         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
14951         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
14952         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
14953         gcov_read_string, gcov_write_length): Modified to enable reading/
14954         writing of whole .da file just once.
14955         (da_file_open, da_file_close, da_file_eof, da_file_error,
14956         da_file_position, da_file_seek, da_file_write, da_file_read): New
14957         functions.
14958         (actual_da_file, actual_da_file_position, actual_da_file_length,
14959         actual_da_file_buffer, actual_da_file_buffer_size): New static
14960         functions.
14961         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
14962         just once.
14965 2003-03-04  Andreas Schwab  <schwab@suse.de>
14967         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
14968         offset without frame pointer.
14970 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
14972         * expr.c (expand_expr): Call promote_mode to set unsignedp.
14974 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
14976         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
14977         * configure: Regenerated.
14978         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
14980 2003-03-04  Andreas Jaeger  <aj@suse.de>
14982         * configure.in: Check for <memcheck.h>.
14983         * configure: Regenerated.
14985         * config.in: Define HAVE_MEMCHECK_H.
14987         * ggc-common.c: Use <memcheck.h> if available instead of
14988         <valgrind.h>.
14989         * ggc-page.c: Likewise.
14990         * cppfiles.c: Likewise.
14992 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
14994         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
14996 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14998         PR c/9262
14999         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
15000         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
15002 2003-03-04  Jan Hubicka  <jh@suse.cz>
15004         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
15005         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
15006         for -O3.
15008 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
15010         * configure.in: Delete three unused variables.  Move a variable
15011         definition closer to its use.  Simplify use_collect2 logic.  Start to
15012         organize.  Simplify tests for in-tree gas and ld.
15013         * configure: Regenerate.
15015 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
15017         * Makefile.in: Update.
15018         * c-common.c (flag_no_line_commands, flag_no_output,
15019         flag_dump_macros, flag_dump_includes): New.
15020         * c-common.h (flag_no_line_commands, flag_no_output,
15021         flag_dump_macros, flag_dump_includes, preprocess_file): New.
15022         (init_c_lex): Update prototype.
15023         * c-lex.c (init_c_lex): Update prototype; move some code to
15024         c_common_init.
15025         * c-opts.c (preprocess_file): Subsume into c_common_init.
15026         (c_common_decode_option): Update flags.
15027         (c_common_init): Move code from preprocess_file and init_c_lex.
15028         (sanitize_cpp_opts): Update.
15029         * c-ppoutput.c: New, cppmain.c almost verbatim.
15030         * cpphash.h (struct printer): Remove.
15031         (struct cpp_reader): Remove print.
15032         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
15033         cpp_preprocess_file): Remove.
15034         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
15035         and dump_includes.
15036         * cppmain.c: Remove.
15037         * doc/passes.texi: Update.
15039 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15041         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
15042         (assign_stack_local_1): Perform overall stack alignment only when
15043         STACK_ALIGNMENT_NEEDED is nonzero.
15044         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
15046         * pa.c (compute_frame_size): Rename fsize to size.  Account for
15047         alignment to a word boundary before general register save block.  Only
15048         account for double-word alignment before floating point register save
15049         block if one or more are saved.  Don't allocate space for %r3 when
15050         frame pointer is needed.
15051         (hppa_expand_prologue): Include alignment to word boundary in local
15052         frame size.
15053         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
15054         (STACK_ALIGNMENT_NEEDED): Define.
15056 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
15058         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
15059         global register variables.
15061 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
15063         * reload.c (reload_adjust_reg_for_mode): New function.
15064         (subst_reloads): Call it.
15065         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
15066         * reload.h (reload_adjust_reg_for_mode): Declare.
15067         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
15068         Call it.
15070 2003-03-03  James E Wilson  <wilson@tuliptree.org>
15072         * optabs.c (add_equal_note): Delete SUBREG_REG use.
15073         Fixes PR c/7872.
15075 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15077         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
15078         (*ixorsi3_lshiftrt_16): New.
15079         (*iorsi3_ashift_16): Remove.
15081 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15083         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
15084         pattern.
15086 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
15088         * doc/install.texi (Specific): Update entry for powerpc-darwin.
15090 2003-03-03  Richard Henderson  <rth@redhat.com>
15092         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
15094 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
15096         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
15097         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
15098         (rs6000_variable_issue): Do not return negative value.
15099         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
15100         scheduling pass.
15102 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15104         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
15105         prune_unused_types calls.
15107 2003-03-03  Jason Merrill  <jason@redhat.com>
15109         * tree-inline.c (find_builtin_longjmp_call): Save and restore
15110         lineno and input_filename.
15111         (find_alloca_call): Likewise.
15112         (inlinable_function_p): Run the langhook earlier.
15114         * calls.c (compute_argument_addresses): Give the new MEMs a
15115         minimum alignment of PARM_BOUNDARY.
15117 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
15119         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
15120         subtarget_asm_isa_spec.
15121         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
15122         (ASM_SPEC): Define as SH_ASM_SPEC.
15123         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
15124         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
15125         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
15126         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
15128         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
15129         and align_jumps if not set.
15130         Force align_jumps to be at least 2.
15131         When relaxing, force align_functions to be at least the maximum of
15132         align_loops, align_jumps and 4.
15133         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
15134         (sh_loop_align): Honour align_loops_log.
15136         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
15137         to check for indirect_jump_scratch.
15138         (indirect_jump_scratch): Add second set.
15139         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
15140         when looking for indirect_jump_scratch.
15141         Extract scratch register taking new structure of indirect_jump_scratch
15142         into account.
15143         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
15145 2003-03-03  Jan Hubicka  <jh@suse.cz>
15147         * calls.c (rtx_for_function_call): Take the address as an argument
15148         (expand_call): Do not modify the expression.
15150         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
15151         optimizing.
15153 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15155         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
15156         TARGET_H8300H and TARGET_H8300S.
15158 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15160         * config/h8300/h8300.md (a peephole2): New.
15162 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15164         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
15165         operands[0] and operands[1] are different.
15167 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15169         * reload1.c (reload_cse_move2add): Remove variable success.
15171 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15173         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
15174         warnings.
15176 2003-03-02  Richard Henderson  <rth@redhat.com>
15178         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
15179         * config.in, configure: Rebuild.
15180         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
15181         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
15182         paired ldtoffx and ldxmov annotations.
15183         (load_symptr_internal1): Remove.
15184         (load_symptr_high, load_symptr_low): New.
15186 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15188         * c-incpath.c (add_path): Fix sysp assignment.
15190 2003-03-02  Kurt Garloff  <garloff@suse.de>
15192         * params.def: Introduce parameter max-inline-insns-rtl for
15193         a separate limit for the RTL inliner.
15194         * params.h: Likewise.
15195         * integrate.c (function_cannot_inline_p): Use it.
15196         * toplev.c (decode_f_option): Set multiple parameters
15197         controlling inlining with -finline-limit.
15198         * params.def: Fix orthographic and typographic errors.
15199         * doc/invoke.texi: Document parameters controlling inlining
15200         and the way -finline-limit sets multiple of them.
15202         * tree.h (struct tree_decl): Introduce inlined_function_flag,
15203         recording whether the function became eligible for inlining
15204         by a compiler flag rather than the declaration.
15205         Provide DID_INLINE_FUNC macro to access it.
15206         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
15207         * cp/decl.c (grokfndecl): Likewise.
15208         * toplev.c (rest_of_compilation): Likewise.
15209         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
15210         * print-tree.c (print_node): Report it.
15211         * params.def: Introduce new max-inline-insns-auto limit.
15212         * params.h: Likewise.
15213         * tree-inline.c (inlinable_function_p): Apply it to functions
15214         with DID_INLINE_FUNC set.
15215         * toplev.c (decode_f_option): Initialize it from -finline-limit
15216         value.
15217         * doc/invoke.texi: Document new parameter.
15219 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
15221         * fix-header.c (read_scan_file): Don't reference simplify_path.
15223 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15225         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
15226         min/max instructions by default as may result in reload errors.
15228 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15230         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
15231         avoid reload problems; define split for it.
15233 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15235         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
15236         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
15237         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
15238         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
15239         rotatert and rotate.
15240         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
15241         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
15242         ("*rotrhi3_addr"): New split for shift insns on address register.
15243         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
15244         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
15245         (___rotrhi3): Likewise.
15246         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
15248 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15250         * toplev.c (aux_base_name): Moved from toplev.h.
15251         (filename): Constify.
15252         (lang_dependent_init): Don't duplicate name.
15253         (process_options): Set aux_base_name here, not...
15254         (do_compile): ...here.  Change protoype.
15255         (toplev_main): Move some code from do_compile.
15256         * toplev.h: Remove aux_base_name.
15258 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15260         * config/h8300/h8300-protos.h: Add a prototype for
15261         iorxor_operator.
15262         * config/h8300/h8300.c (print_operand): Handle 'c'.
15263         (iorxor_operator): New.
15264         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
15265         * config/h8300/h8300.md (*iorhi3_zext): Remove.
15266         (*iorsi3_zexthi): Likewise.
15267         (*iorsi3_zextsi): Likewise.
15268         (*xorhi3_zextqi): Likewise.
15269         (*xorsi3_zexthi): Likewise.
15270         (*xorsi3_zextsi): Likewise.
15271         (*ixorhi3_zext): New.
15272         (*ixorsi3_zext_qi): Likewise.
15273         (*ixorsi3_zext_hi): Likewise.
15275 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15277         * c-incpath.c (remove_component_p, simplify_path): Move back to
15278         cppfiles.c.
15279         (remove_duplicates): Use cpp_simplify_path.
15280         * c-incpath.h (simplify_path): Remove.
15281         * c-lex.c: Don't include c-incpath.h.
15282         (init_c_lex): Remove simplify_path.
15283         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
15284         (find_or_create_entry, validate_pch): Revert.
15286 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
15288         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
15289           an external cpp during compilation.
15290         (option_map): Likewise.
15291         * objc/lang-specs.h (default_compilers): Similarly.
15292         * doc/invoke.texi: Document -no-integrated-cpp flag.
15294 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15296         * config/h8300/h8300.md (zero_extendqisi2): Change to an
15297         expander.
15298         (*zero_extendqisi2_h8300): New.
15299         (*zero_extendqisi2_h8300hs): New.
15300         (two splitters): New.
15302 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15304         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
15306 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15308         * config/h8300/h8300.md (a peephole2): Remove dead code.
15310 2003-03-01  Roger Sayle  <roger@eyesopen.com>
15312         PR c++/9367
15313         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
15314         (BT_FN_INT_CONST_STRING_VALIST_ARG,
15315         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
15316         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
15317         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
15318         BT_FN_INT_STRING_CONST_STRING_VAR,
15319         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
15320         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
15321         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
15322         ATTR_NONNULL_3): Also include the nothrow attribute.
15323         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
15324         vsnprintf, vscanf, vsscanf): Don't define attributes here.
15325         * builtins.def (putchar, puts): Make full C89 built-ins.
15326         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
15327         vsscanf, vsnprintf, vsprintf): New built-ins.
15328         * c-common.c (c_common_nodes_and_builtins): Handle new macro
15329         DEF_FUNCTION_TYPE_VAR_3.
15331         * doc/extend.texi: Document these new built-in functions.
15333 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15335         * config/h8300/h8300.md (a peephole2): New.
15337 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
15339         * predict.c (estimate_bb_frequencies): Correctly set
15340         real_values_initialized after initialization.
15342 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
15344         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
15345         cppinit.o, cppdefault.o, fix-header): Update.
15346         * c-incpath.c: New file.
15347         * c-incpath.h: New file.
15348         * c-lex.c: Include c-incpath.h.
15349         (init_c_lex): Register path simplifier.
15350         * c-opts.c: Include cppdefault.h and c-incpath.h.
15351         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
15352         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
15353         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
15354         (missing_arg, c_common_decode_option): Handle them.
15355         (c_common_post_options): Register include chains.
15356         (print_help): Update.
15357         * cppdefault.h (struct default include): Update.
15358         Move some macros to ...
15359         * cppdefault.c: ... here.
15360         (cpp_include_defaults): Add extra field add_sysroot.
15361         * cppfiles.c (include_file, search_from, find_or_create_entry,
15362         cpp_included, find_include_file, remap_filename): Update for
15363         renaming of search_path to cpp_path, and of the chain headers.
15364         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
15365         * cpphash.h (struct search_path): Move to cpplib.h.
15366         (struct cpp_buffer, struct cpp_reader): Update.
15367         (_cpp_simplify_pathname): Remove.
15368         * cppinit.c: Don't include prefix.h and cppdefault.h.
15369         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
15370         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
15371         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
15372         no_pth, cpp_handle_options): Remove.
15373         (struct pending_option): Remove chain members.
15374         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
15375         cpp_handle_option): Update.
15376         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
15377         (struct cpp_options): Remove quote_include, bracket_include,
15378         include_prefix, include_prefix_len, verbose, ignore_srcdir,
15379         no_standard_includes, no_standard_cplusplus_includes.
15380         (struct cpp_callbacks): Add simplify_path.
15381         (cpp_handle_options): Remove.
15382         * fix-header.c: Include c-incpath.h.
15383         (read_scan_file): Update to use c-incpath functionality.
15384         * doc/passes.texi: Update.
15386 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15388         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
15389         satisfies EXTRA_CONSTRAINT 'U'.
15391 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15393         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
15394         register.
15395         (*tst_extzv_memqi_1_n): Change to a splitter.
15396         (a peephole2): Update.
15398 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
15400         * predict.c (estimate_bb_frequencies): Initialize the sreal
15401         constants once per compilation.
15403 2003-02-28  Richard Henderson  <rth@redhat.com>
15405         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
15407 2003-02-28  scott snyder  <snyder@fnal.gov>
15409         * flags.h: Add flag_eliminate_unused_debug_types.
15410         * toplev.c: Add flag_eliminate_unused_debug_types.
15411         (f_options): Add -feliminate-unused-debug-types.
15412         * dwarf2out.c (struct file_table): Add emitted member.
15413         (splice_child_die): Fix the parent pointer for the child being
15414         spliced.
15415         (lookup_filename): Maintain file_table.emitted array.  Don't
15416         output .file directive here.
15417         (maybe_emit_file): (new)
15418         (init_file_table): Set up file_table.emitted.
15419         (dwarf2out_source_line): Use maybe_emit_file.
15420         (dwarf2out_start_source_file): Use maybe_emit_file.
15421         (dwarf2out_init): Use maybe_emit_file.
15422         (prune_unused_types_walk_attribs): (new)
15423         (prune_unused_types_mark): (new)
15424         (prune_unused_types_walk): (new)
15425         (prune_unused_types_prune): (new)
15426         (prune_unused_types): (new)
15427         (dwarf2out_finish): Call prune_unused_types if
15428         flag_eliminate_unused_debug_types is set.
15429         * doc/invoke.texi (Option Summary): Add
15430         -feliminate-unused-debug-types.
15431         (Debugging Options): Likewise.
15433 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
15435         * doc/invoke.texi: Change .pch to .gch.
15436         * cppfiles.c (open_file_pch): Likewise.
15437         * gcc.c (default_compilers): Likewise.
15439 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
15441         * floatlib.c: Remove.
15443 2003-02-28  Jason Merrill  <jason@redhat.com>
15445         * stor-layout.c (variable_size): Leave a "minus 1" outside the
15446         SAVE_EXPR.
15448 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
15450         * config/rs6000/power4.md: Add compare bypass.
15452 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
15454         * config/netbsd.h: Update copyright years.
15455         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
15456         -pthread is specified on the command line.
15458 2003-02-28  Dale Johannesen <dalej@apple.com>
15460         * loop.c (struct movable): Add insert_temp, shrink savemode.
15461         (scan_loop): Accept invariants that require copying; mark as
15462         insert_temp.
15463         (combine_movables): Don't combine insert_temp movables.
15464         (move_movables): Insert copies for insert_temp movables.
15465         Don't record the info based on regno for insert_temp's.
15467 2003-02-28  Joel Sherrill <joel@OARcorp.com>
15469         PR 9638/other
15470         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
15471         this constant defaults to 1.
15473 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
15475         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
15477 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
15479         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
15480         ARMv5e processor, not just for XScale.  Instructions are predicable.
15481         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
15483 2003-02-28  Nick Clifton  <nickc@redhat.com>
15485         * config/arm/arm.c (note_invalid_constants): Change parameter type
15486         from bool to int.
15488 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
15490         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
15491         test of bit 7.
15492         (*tst_extzv_memqi_1_n): Likewise.
15493         (a peephole2): New.
15495 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
15497         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
15498         #ifndef __mips16.
15500 2003-02-28  Jan Hubicka  <jh@suse.cz>
15502         * combine.c (gen_lowpart_for_combine): Update handling of
15503         subregs_of_mode
15504         * flow.c (life_analysis, mark_used_regs): Likewise.
15505         * regclass.c (subregs_of_mode): Turn into single bitmap.
15506         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
15507         dealing with subregs_of_mode
15508         * regs.h (subregs_of_mode): Update prototype.
15510 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
15512         * emit-rtl.c (set_reg_attrs_for_parm): New function.
15513         * rtl.h (set_reg_attrs_for_parm): New exported function.
15514         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
15515         set_reg_attrs_from_mem.
15517 2003-02-27  Roger Sayle  <roger@eyesopen.com>
15518             Zack Weinberg <zack@codesourcery.com>
15520         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
15522 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
15524         * reload1.c (sext_for_mode): Remove.
15525         (reload_cse_move2add): Use trunc_int_for_mode instead of
15526         sext_for_mode.
15527         (move2add_note_store): Likewise.
15528         Reset register information if we see a set in non-integer
15529         mode.
15531 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
15533         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
15534         option.
15535         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
15536         * config/rs6000/aix51.h: Same.
15537         * config/rs6000/aix52.h: Same.
15538         * config/rs6000/power4.md: Additional VMX bypasses.
15540 2003-02-27   Geert Bosch <bosch@gnat.com>
15542         * toplev.c (print_version): Add indentation for GGC heuristics and
15543         output after printing version information.
15545 2003-02-27  James E Wilson  <wilson@tuliptree.org>
15547         * combine.c (simplify_comparison): Require integral mode when
15548         permuting SUBREG with AND.
15550 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
15552         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
15554 2003-02-27  Nick Clifton  <nickc@redhat.com>
15556         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
15557         deleted when cirrus instructions were added.
15559 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
15561         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
15562         POSIX thread support by default.
15564 2003-02-27  Roger Sayle  <roger@eyesopen.com>
15566         * config/i386/cygwin.h: Don't include any other files directly.
15567         * config/i386/mingw32.h: Don't include cygwin.h directly.
15568         * config.gcc (cygwin, mingw32, uwin): Instead make these files
15569         explicit in the tm_files variable.
15571 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
15573         * config/rs6000/rs6000.md: Add TI constant splitter.
15575 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
15577         * builtins.c (purge_builtin_constant_p): Handle subreg of
15578         constant_p_rtx too.
15580         * function.c (assign_stack_local_1): Truncate constant added to
15581         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
15583 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
15585         * config.gcc: Add power4 to PowerPC with_cpu list.
15587 2003-02-26  Jan Hubicka  <jh@suse.cz>
15589         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
15591 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15593         * gcov-dump.c (print_prefix): Fix signedness warning.
15594         * gcov-io.h (struct counter_section, struct counter_section_data): New.
15595         (struct function_info): n_arc_counts field removed, n_counter_sections,
15596         counter_sections fields added.
15597         (struct gcov_info): arc_counts, n_arc_counts fields removed,
15598         n_counter_sections, counter_sections fields added.
15599         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
15600         profile sections.
15601         * profile.h (MAX_COUNTER_SECTIONS): New.
15602         (struct section_info): New.
15603         (struct profile_info): count_instrumented_edges,
15604         count_edges_instrumented_now fields removed, n_sections, section_info
15605         fields added.
15606         (find_counters_section): Declare.
15607         * profile.c (struct function_list): count_edges field removed,
15608         n_counter_sections, counter_sections fields added.
15609         (set_purpose, label_for_tag, build_counter_section_fields,
15610         build_counter_section_value, build_counter_section_data_fields,
15611         build_counter_section_data_value, build_function_info_fields,
15612         build_function_info_value, build_gcov_info_fields,
15613         build_gcov_info_value): New static functions.
15614         (find_counters_section): New function.
15615         (instrument_edges, get_exec_counts, compute_branch_probabilities,
15616         branch_prob, create_profiler): Modified to support multiple profile
15617         sections.
15619 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15621         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
15622         is 8 * STACK_BOUNDARY.
15623         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
15625 2003-02-26  Michael Matz  <matz@suse.de>
15627         * ra-colorize.c (merge_moves): Fix list handling.
15629 2003-02-26  Nick Clifton  <nickc@redhat.com>
15631         * config/arm/arm.c (is_load_address): Rename to...
15632         (arm_memory_load_p) ... this and make it check for SUBREGs and
15633         constant loads that will be converted into loads from the
15634         minipool.
15635         (is_cirrus_insn): Rename to ...
15636         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
15637         of CIRRUS_NO with CIRRUS_NOT.
15638         (cirrus_reorg): Use renamed functions.
15639         (note_invalid_constants): Change from a void function to bool.
15640         Add an extra parameter, saying whether the fixups should be
15641         pushed.  Return true if fixups are needed.
15642         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
15643         of CIRRUS_NO with CIRRUS_NOT.
15644         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
15645         other floating point co-processors can also affect this.
15646         * config/arm/arm.md ("type" attribute): Add mav_farith and
15647         mav_dmult.  Replace references to "cirrus_type" attribute with
15648         "type".
15649         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
15650         ("cirrus_type" attribute): Delete - use "type" instead.
15651         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
15652         'normal'.
15654 2003-02-25  Jan Hubicka  <jh@suse.cz>
15656         * objc-act.c: Include cgraph.h
15657         (mark_referenced_methods): New function.
15658         (objc_init): Call it.
15659         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
15661         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
15662         mode.
15664         * optabs.c (expand_fix): Do not widen the input operand.
15666         * expr.c (emit_group_store):  Fix crash when converting single
15667         register into complex register.
15669         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
15670         * alias.c: Include timevar.h
15671         (init_alias_analysis):  Set timevar
15672         * jump.c: Include timevar.h
15673         (rebuild_jump_labels):  Set timevar
15674         * regcalss.c: Include timevar.h
15675         (reg_scan):  Set timevar
15676         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
15678 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15680         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
15682         * Makefile.in (loop-unroll.o): New.
15683         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
15684         (unroll_and_peel_loops): Declare.
15685         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
15686         flag_old_unroll_loops.
15687         * loop.c (loop_invariant_p): Ditto.
15688         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
15689         flag_old_unroll_all_loops.
15690         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
15691         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
15692         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
15693         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
15694         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
15695         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
15696         PARAM_MAX_ONCE_PEELED_INSNS): New.
15697         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
15698         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
15699         instead of old one.
15700         (flag_peel_loops): New.
15701         (lang_independent_options): The new flags added.
15702         (rest_of_compilation): Call new unroller.
15703         (process_options): Setup flags for coexistence of old and new unroller.
15704         * doc/invoke.texi: Document new options.
15705         * doc/passes.texi: Document new unroller pass.
15707 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
15709         * fixinc/fixincl.x: Regenerate
15711 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
15713         * function.c (assign_parms): Set reg_attrs for parameters passed in
15714         registers.
15716 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
15718         PR target/9681
15719         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
15721 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
15723         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
15724         pseudo-op.
15726 2003-02-25  Roger Sayle  <roger@eyesopen.com>
15728         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
15729         * cse.c (invalidate_skipped_set):  Likewise.
15730         * integrate.c (subst_constants):  Likewise.
15731         * jump.c (reversed_comparison_code_parts):  Likewise.
15732         * loop.c (canonicalize_condition):  Likewise.
15733         * simplify-rtx.c (simplify_relational_operation):  Likewise.
15735 2003-02-25  Roger Sayle  <roger@eyesopen.com>
15737         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
15738         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
15739         the appropriate macro to define built-in function.
15740         (fmod,fmodf,fmodl): New built-in functions.
15742         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
15744 2003-02-25  Richard Henderson  <rth@redhat.com>
15746         * config/i386/i386.c (function_arg): Pass variable sized
15747         structures correctly on the stack.
15749 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
15751         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
15752         does not reduce the cost of SET.
15754 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15756         PR target/9732
15757         * config/rs6000/rs6000.c (first_reg_to_save): Handle
15758         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
15759         (rs6000_emit_prologue): Likewise.
15760         (rs6000_emit_epilogue): Likewise.
15761         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
15762         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
15764 2003-02-25  Richard Henderson  <rth@redhat.com>
15766         * real.c (real_to_integer2): Force overflow result only for
15767         unsigned overflow.
15769 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
15771         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
15773 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
15774             Richard Henderson  <rth@redhat.com>
15776         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
15777         there is no similar load.
15779 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
15780             Richard Henderson  <rth@redhat.com>
15782         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
15783         sched-rgn.c.
15784         (add_forward_dependence): New function prototype.
15786         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
15787         sched-init.h.
15788         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
15789         them to haifa-sched.c.
15791         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
15792         haifa_classify_insn): Move them from sched-rgn.c.
15794         * sched-deps.c (add_dependence): Return flag of creating a new
15795         entry.
15796         (add_forward_dependence): New function.
15797         (compute_forward_dependences): Use the function.
15799         * sched-ebb.c (earliest_block_with_similiar_load): New function.
15800         (add_deps_for_risky_insns): New function.
15801         (schedule_ebb): Call the function.
15803 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
15805         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
15806         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
15808         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
15809         opaque types fail.
15811         * c-typeck.c (comptypes): Change call to vector_types_compatible
15812         to vector_opaque_p.
15813         (convert_for_assignment): Call vector_opaque_p instead of
15814         vector_types_compatible.
15815         (really_start_incremental_init): Disallow initialization of opaque
15816         types.
15818         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
15819         Define TARGET_VECTOR_OPAQUE_P.
15820         (TARGET_INITIALIZER): Same.
15822         * target.h (struct gcc_target): Remove vector_types_compatible.
15823         Add vector_opaque_p.
15825         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
15826         Remove.
15827         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
15828         a vector type.  Change return type to bool.
15829         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
15830         (TARGET_VECTOR_OPAQUE_P): Define.
15832         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
15833         target hook.
15834         Include target.h.
15835         (cp_parser_init_declarator): Fix typo in function comments.
15837 2003-02-25  Jan Hubicka  <jh@suse.cz>
15839         * Makefile.in (lcm.o):  Add dependency on function.h
15840         * lcm.c (function.h): Include.
15841         * i386.c (machine_function, ix86_stack_locals,
15842         * ix86_save_varrargs_registers) : Move to
15843         ...
15844         * i386.h (machine_function, ix86_stack_locals,
15845         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
15846         (ix86_optimize_mode_switching): New.
15847         * i386.md (fix patterns): Set ix86_optimize_mode_switching
15849 2003-02-25  Nick Clifton  <nickc@redhat.com>
15851         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
15852         of fourth arg is 'fndecl' not 'indirect'.  Update comment
15853         describing the function's parameters.
15855 2003-02-24  Jan Hubicka  <jh@suse.cz>
15857         * combine.c (simplify_shift_const):  Fix previous patch.
15859 2003-02-24  Jeff Law  <law@redhat.com>
15861         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
15862         alternative.
15863         (testsi_1, testhi_1, testqi_1): Likewise.
15865 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15867         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
15868         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
15869         * doc/extend.texi (Tru64 Pragmas): Reflect this.
15871         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
15872         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
15873         * fixinc/fixincl.x: Regenerate.
15874         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
15875         testcase.
15876         Fixes PR c/5059, c/6126, other/9671.
15878 2003-02-24  Roger Sayle  <roger@eyesopen.com>
15880         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
15881         from handle_braces in "%{...}".
15883 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15885         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
15886         (prepare_move_operands): Handle TLS operands.
15887         (tls_symbolic_operand): New.
15888         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
15889         (legitimize_pic_address): Do nothing for the TLS symbol.
15890         (sh_encode_section_info): Handle TLS case.
15891         (sh_strip_name_encoding): Drop TLS encoding.
15892         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
15893         * config/sh/sh.h (SH_TLS_ENCODING): Define.
15894         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
15895         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
15896         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
15897         * config/sh/sh.md: Define TLS UNSPEC constants.
15898         (type): Add tls_load.
15899         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
15900         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
15901         ("tls_initial_exec"): New insn.
15902         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
15903         ("load_gbr"): New insn.
15905         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
15906         * configure: Regenerate.
15908 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
15910         PR 9297, PR 9722
15911         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
15912         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
15913         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
15914         (enum block_op_methods): Reorder for better store_expr optimization.
15915         * expr.c (store_expr): Test bit 1 of "want_value" for call param
15916         stores, test bit 0 for original want_value meaning.  Pass
15917         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
15918         recursive calls, and calls to expand_param.
15919         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
15920         expected, set target to 0 rather than to subtarget.  Formatting.
15922 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
15924         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
15926 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15928         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
15929         new default behavior.
15930         * ggc-common.c: Include sys/resource.h.
15931         (ggc_rlimit_bound): New function.
15932         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
15933         defaults to account for rlimits.
15935 2003-02-22  Richard Henderson  <rth@redhat.com>
15937         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
15939 2003-02-22  Kelley Cook <kelley@dwhoops.info>
15941         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
15942         (ix86_tune_string): Rename from ix86_cpu_string.
15944 2003-02-22  Kelley Cook <kelleycook@comcast.net>
15946         * config/i386/i386.c: Replace "mcpu" with "mtune".
15947         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
15948         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
15949         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
15950         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
15952 2003-02-23  Andreas Schwab  <schwab@suse.de>
15954         * config.gcc: Delete references to m68k/t-linux and
15955         m68k/t-linux-aout.
15956         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
15958 2003-02-22  Jan Hubicka  <jh@suse.cz>
15960         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
15961         of track scheduling patch.
15963 2003-02-22  Jan Hubicka  <jh@suse.cz>
15965         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
15966         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
15968 2003-02-22  Jan Hubicka  <jh@suse.cz>
15970         * c-decl.c (c_expand_body_1): Fix.
15972 2003-02-22  Jan Hubicka  <jh@suse.cz>
15974         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
15976         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
15977         when not optimizing.
15978         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
15979         when not expensive.
15980         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
15981         optimizing;  Delete trivially dead insns early; fix optimize check.
15983         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
15984         dependency on cgraph.h
15985         * c-decl.c: Include cgraph.h
15986         (finish_function): Update call of tree_inlinable_function_p.
15987         * c-objc-common.c: Include cgraph.h
15988         * cgraph.h: New file.
15989         * cgraphunit.c: New file.
15990         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
15991         (cgraph_nodes, cgraph_n_nodes): Globalize.
15992         (cgraph_finalize_function, cgraph_finalize_compilation_unit
15993         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
15994         Move into cgraphunit.c
15995         * tree-inline.c: Include cgraph.h
15996         * tree-inline.c: Include cgraph.h
15998 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
16000         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
16001         for copying a register.
16003 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16005         PR other/3782
16006         * toplev.c (process_options): If flag_detailed_statistics is set,
16007         then set time_report as well.
16009         PR c/8828
16010         * jump.c (never_reached_warning): Don't fall through BARRRIER
16011         insns.  Update comments to reflect what the function really does.
16013 2003-02-21  Roger Sayle  <roger@eyesopen.com>
16015         * fold-const.c (omit_one_operand): No longer static.
16016         * tree.h (omit_one_operand): Prototype here.
16017         (div_and_round_double): Keep fold-const.c prototypes together.
16018         * builtins.c (builtin_mathfn_code): Handle binary built-in
16019         funtions, such as "pow" and "atan2".
16020         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
16021         Simplify optimizations using "type" the builtin's return type.
16023 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
16025         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
16026         Fix functionalization typo.
16028         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
16029         in an asm.
16031 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16033         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
16034         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
16035         documentation.
16036         * ggc-common.c: Include params.h
16037         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16038         init_ggc_heuristics): New functions.
16039         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16040         init_ggc_heuristics): Prototype.
16041         * toplev.c (print_version):  Output GGC heuristics.
16042         (parse_options_and_default_flags): Call init_ggc_heuristics.
16044 2003-02-22  Jan Hubicka  <jh@suse.cz>
16046         * i386.c (def_builtin):  Special case 64bit builtins.
16047         (MASK_SSE164, MASK_SSE264): New constants.
16048         (builtin_description): Add 64bit builtins.
16049         (ix86_init_mmx_sse_builtins): Likewise.
16050         * i386.h (enum ix86_builtins): Likewise.
16051         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
16052         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
16053         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
16054         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
16055         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
16056         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
16057         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
16059 2003-02-22  Jan Hubicka  <jh@suse.cz>
16061         * i386.c (builtin_description): Add __builtin_ia32_paddq and
16062         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
16063          and __builtin_ia32_psubq128.
16064         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
16065         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
16066         (mmx_adddi3, mmx_subdi3): New.
16067         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
16068         * xmmintrin.h (_mm_movepi64_pi64): New.
16069         (_mm_add_epi64, _mm_sub_epi64): fix.
16070         (_mm_mul_pu16): Rename to...
16071         (_mm_mul_su32): ... this one.
16073         * builtins.c (expand_builtin_expect):  Do not predict
16074         flag_guess_branch_prob is not set.
16075         * c-semantics.c (expand_stmt): Likewise.
16076         * predict.c (predict_insn): Likewise.
16077         * stmt.c (expand_continue_loop): Likewise.
16078         * toplev.c (rest_of_compilation): Do not call
16079         note_prediction_to_br_prob and note_prediction_to_br_prob
16080         when not optimizing.
16082 2003-02-21  Jan Hubicka  <jh@suse.cz>
16084         * cfgrtl.c (commit_edge_insertions):  Call
16085         find_many_sub_basic_block only when some code has been emitted.
16086         (commit_edge_insertions_watch_calls): Bring into sync with
16087         commit_edge_insertions
16089 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
16091         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
16093         * sh.md (binary_sf_op): Use extra constant operand instead of
16094         negating constant operand 4.
16095         * sh.c (sh_expand_binop_v2sf): Supply it.
16097 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
16099         * cpphash.h (struct lexer_state): Add directive_wants_padding.
16100         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
16101         for directives of type INCL.
16102         (glue_header_name, parse_include): Use get_token_no_padding.
16103         * cppmacro.c (replace_args): If directive_wants_padding,
16104         provide padding tokens.
16106 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
16108         * config/h8300/h8300.md (a peephole2): New.
16110 2003-02-21  Jan Hubicka  <jh@suse.cz>
16112         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
16113         (commit_edge_insertions): Call find_many_sub_basic_blocks
16115         * reg-stack.c (convert_regs): Cleax aux for blocks.
16117 2003-02-21  Jan Hubicka  <jh@suse.cz>
16119         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
16121 2003-02-21  Glen Nakamura  <glen@imodulo.com>
16123         PR optimization/8613
16124         * builtins.c (expand_builtin): Emit postincrements before expanding
16125         builtin functions.
16127 2003-02-21  Ben Elliston  <bje@redhat.com>
16129         PR other/5634
16130         * doc/install.texi (Configuration): Explain using $HOME instead of
16131         the ~ metacharacter when referring to home directories.
16133 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
16135         * configure.in (TARGET_SYSTEM_ROOT): Set default to
16136         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
16137         '${exec_prefix}' (in addition to the expansion thereof) as
16138         relocatable.
16139         * configure: Rebuilt.
16141 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
16143         * config/h8300/h8300.md (addhi3_incdec): Change the name to
16144         *addhi3_incdec.
16145         (addsi3_incdec): Change the name to *addsi3_incdec.
16147 2003-02-20  Roger Sayle  <roger@eyesopen.com>
16149         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
16151 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
16153         PR fortran/9038
16154         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
16155         options to be ignored.
16156         (c_common_decode_option): Ignore them when preprocessing.
16158 2003-02-20  Jan Hubicka  <jh@suse.cz>
16160         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
16161         global variables.
16162         (lang_independent_options):  Add -fsched2-use-superblocks
16163         -fsced2-use-traces.
16164         (rest_of_compilation): Deal with it.
16165         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
16166         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
16167         Declare.
16168         * rtl.h (reg_to_stack):  Update prototype.
16169         * reg-stack.c (reg_to_stack): Return when something has changed;
16170         update liveness when executing after superblock scheduling.
16172         * combine.c (simplify_shift_const):  Simplify few special cases
16173         into constants.
16175 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
16177         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
16178         (add.,subf.,neg.): Change attribute to fast_compare.
16179         All DFA descriptions updated.
16181 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
16183         Change base class access representation.
16184         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
16185         TREE_VIA_PRIVATE): Remove.
16186         (BINFO_BASEACCESSES): New binfo elt.
16187         (BINFO_BASEACCESS): New accessor.
16188         (BINFO_ELTS): Increase.
16189         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
16190         (access_public_node, access_protected_node,
16191         access_private_node): New global nodes.
16192         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
16193         * dbxout.c (dbxout_type): Adjust.
16194         * dwarf2out.c (gen_inheritance_die): Add access parameter.
16195         (gen_member_die): Adjust.
16196         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
16197         (output_type): Adjust.
16198         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
16200         Change base class access representation. Share virtual base
16201         binfos.
16202         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
16203         call.
16204         * cp/class.c (build_base_path): Likewise.
16205         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
16206         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
16207         (make_new_vtable): Adjust.
16208         (force_canonical_binfo_r): Delete.
16209         (force_canonical_binfo): Delete.
16210         (mark_primary_virtual_base): Delete.
16211         (dfs_unshared_virtual_bases): Delete.
16212         (mark_primary_bases): Adjust.
16213         (maybe_warn_about_overly_private_class): Adjust.
16214         (dfs_base_derived_from): Delete.
16215         (base_derived_from): Follow the inheritance chain.
16216         (struct find_final_overrider_data): Add vpath member.
16217         (dfs_find_final_overrider): Adjust.
16218         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
16219         (find_final_overrider): Adjust.
16220         (update_vtable_entry_for_fn): Adjust.
16221         (modify_all_vtables): Adjust.
16222         (walk_subobject_offsets): Adjust.
16223         (layout_nonempty_base_or_field): Adjust.
16224         (layout_empty_base): Remove last parameter. Adjust.
16225         (build_base_field): Adjust.
16226         (build_base_fields): Adjust.
16227         (propagate_binfo_offsets): Remove last parameter. Adjust.
16228         (dfs_set_offset_for_unshared_vbases): Delete.
16229         (layout_virtual_bases): Adjust.
16230         (finish_struct_1): Adjust.
16231         (init_class_processing): Don't init access nodes.
16232         (dfs_get_primary_binfo): Delete.
16233         (get_primary_binfo): Adjust.
16234         (dump_class_hierarchy_r): Remove most derived arg, add IGO
16235         parameter. Adjust.
16236         (dump_class_hierarchy): Adjust.
16237         (finish_vtbls): Adjust.
16238         (get_original_base): Delete.
16239         (build_vtt_inits): Adjust.
16240         (dfs_build_secondary_vptr_vtt_inits): Adjust.
16241         (dfs_ctor_vtable_bases_queue_p): Adjust.
16242         (build_ctor_vtbl_group): Adjust.
16243         (dfs_accumulate_vtbl_inits): Adjust.
16244         (build_vtbl_initializer): Adjust.
16245         (build_vbase_offset_vtbl_entries): Adjust.
16246         (add_vcall_offset_vtbl_entries_1): Adjust.
16247         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
16248         (access_*_node): Remove.
16249         (CANONICAL_BINFO): Delete.
16250         (BINFO_UNSHARED_MARKED): Remove.
16251         (BINFO_MARKED): Set LANG_FLAG_0 directly.
16252         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
16253         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
16254         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
16255         Delete.
16256         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
16257         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
16258         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
16259         Delete.
16260         (BINFO_DEPENDENT_BASE_P): New.
16261         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
16262         index.
16263         (markedp, unmarkedp): Adjust.
16264         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
16265         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
16266         find_vbase_instance, binfo_for_vbase): Delete.
16267         (copied_binfo, original_binfo): Declare.
16268         (finish_base_specifier): Add virtual_p arg.
16269         (unshare_base_binfos): Delete.
16270         (copy_base_binfos): Declare.
16271         (reverse_path): Delete.
16272         * cp/decl.c (xref_basetypes): Access and virtuality passed
16273         differently. Don't copy direct base binfos here. Call
16274         copy_base_binfos.
16275         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
16276         (initialize_vtbl_ptrs): Adjust.
16277         (expand_member_init): Adjust.
16278         * cp/parser.c (cp_parser_base_specifier): Adjust.
16279         * cp/pt.c (instantiate_class_template): Adjust.
16280         (get_template_base_recursive): Adjust.
16281         * cp/rtti.c (get_pseudo_ti_init): Adjust.
16282         (get_pseudo_ti_desc): Adjust.
16283         * cp/tree.c (unshare_base_binfos): Rename to ...
16284         (copy_base_binfos): ... here, reimplement.
16285         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
16286         (reverse_path): Remove.
16287         * cp/typeck.c (get_delta_difference): Adjust error messages.
16288         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
16289         * cp/search.c (lookup_base_r): Adjust.
16290         (dynamic_cast_base_recurse): Adjust.
16291         (canonical_binfo): Remove.
16292         (dfs_canonical_queue): Remove.
16293         (dfs_assert_unmarked_p): Remove.
16294         (assert_canonical_unmarked): Remove.
16295         (shared_marked_p, shared_unmarked_p): Remove.
16296         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
16297         (dfs_access_in_type): Adjust.
16298         (access_in_type): Adjust.
16299         (dfs_accessible_queue_p): Adjust.
16300         (dfs_accessible_p): Adjust.
16301         (is_subobject_of_p_1, is_subobject_of_p): Remove.
16302         (struct lookup_field_info): Remove from_dep_base_p field.
16303         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
16304         (lookup_field_r): Remove dependent base code.
16305         (lookup_member): Likewise.
16306         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
16307         (dfs_unmarked_real_bases_queue_p): Remove.
16308         (dfs_marked_real_bases_queue_p): Remove.
16309         (dfs_skip_vbases): Remove.
16310         (dfs_get_pure_virtuals): Adjust.
16311         (markedp, unmarkedp): Adjust.
16312         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
16313         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
16314         (dfs_unmark): Adjust.
16315         (dfs_get_vbase_types):Remove.
16316         (dfs_build_inheritance_graph_order): Remove.
16317         (get_vbase_types): Remove
16318         (dfs_find_vbase_instance): Remove.
16319         (find_vbase_instance): Remove.
16320         (dfs_debug_unmarkedp): Adjust.
16321         (dependent_base_p): Remove.
16322         (dfs_push_type_decls): Adjust.
16323         (dfs_push_decls): Adjust.
16324         (dfs_no_overlap_yet): Adjust.
16325         (copied_binfo): New function.
16326         (original_binfo): New function.
16327         (binfo_for_vbase): Remove.
16329         Change base class access representation.
16330         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
16331         (add_interface_do): Likewise.
16333 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
16335         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16336         * config/rs6000/power4.md (power4-store,power4-vecstore): New
16337         insn reservations.
16338         (power4-fpstore): Compact.
16340 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
16342         * config/h8300/h8300.md (*iorsi3_w): New.
16344 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
16346         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
16347         * rtl.c (reg_note_name): Likewise.
16348         * rtl.h (enum reg_note): Likewise.
16349         * doc/invoke.texi: Likewise.
16350         * doc/rtl.texi: Likewise.
16352 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
16354         * bb-reorder.c (find_traces_1_round): Fix comment typo.
16356 2003-02-19  Roger Sayle  <roger@eyesopen.com>
16358         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
16359         addition in the presence of signaling NaNs.
16361 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
16363         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
16365 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16367         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
16368         ORing with 0xffff??00 with the highest bit of the ?? part set.
16369         (compute_logical_op_length): Update.
16370         (compute_logical_op_cc): Likewise.
16372 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
16374         * bb-reorder.c (find_traces_1_round): Fixed condition for small
16375         destination block with multiple predecessors.
16376         (connect_traces): Check whether the block is a start of trace.
16378 2003-02-19  Jan Hubicka  <jh@suse.cz>
16380         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
16381         * function.c (assign_params): Likewise.
16382         * arm-protos.h (arm_init_cumulative_args): Update prototype.
16383         * arm.c (arm_init_cumulative_args): Update function.
16384         * arm.h (INIT_CUMULATIVE_ARGS): Update.
16385         * avr-protos.h (init_cumulative_args): Update prototype.
16386         * avr.c (init_cumulative_args): Update function.
16387         * avr.h (INIT_CUMULATIVE_ARGS): Update.
16388         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
16389         * d30v.c (d30v_init_cumulative_args): Update function.
16390         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
16391         * frv-protos.h (frv_init_cumulative_args): Update prototype.
16392         * frv.c (frv_init_cumulative_args): Update function.
16393         * frv.h (INIT_CUMULATIVE_ARGS): Update.
16394         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
16395         * pa.h (INIT_CUMULATIVE_ARGS): Update.
16396         * sparc-protos.h (init_cumulative_args): Update prototype.
16397         * sparc.c (init_cumulative_args): Update function.
16398         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
16399         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
16401 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16403         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
16404         (*ashiftsi_sextqi_7): Likewise.
16406 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16408         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
16409         ISO C99 and C++.
16411         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
16412         for C++ on IRIX 6.5.1[89].
16413         * fixinc/tests/base/internal/sgimacros.h: New file.
16415         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
16416         * fixinc/tests/base/internal/wchar_core.h: New file.
16418         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
16419         socklen_t definition.
16420         * fixinc/fixincl.x: Regenerate.
16421         * fixinc/tests/base/sys/socket.h: New file.
16422         Fixes PR libgcj/9652.
16424 2003-02-19  Jan Hubicka  <jh@suse.cz>
16426         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
16428 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
16430         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
16431         align_jumps_max_skip and align_loops_max_skip.
16433 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
16435         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
16436         test size if named section.
16438 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
16440         * expr.c (expand_expr): Use gen_int_mode for the argument
16441         to gen_rtx_MULT.
16443 2003-02-19  Jan Hubicka  <jh@suse.cz>
16445         * i386.md (cosxf2):  Fix conditional.
16447 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16449         * config/h8300/h8300.md (extendqisi2): Change to an expander.
16450         (*extendqisi2_h8300): New.
16451         (*extendqisi2_h8300hs): Likewise.
16453 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16455         * config/h8300/h8300-protos.h: Update the prototype for
16456         split_adds_subs.  Remove the prototypes for
16457         const_int_le_2_operand and const_int_le_6_operand.
16458         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
16459         (const_int_le_2_operand): Remove.
16460         (const_int_le_6_operand): Likewise.
16461         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
16462         for const_int_le_2_operand and const_int_le_6_operand.
16463         * config/h8300/h8300.md: Update all uses of split_adds_subs.
16464         (a peephole2): New.
16466 2003-02-18  Jan Hubicka  <jh@suse.cz>
16468         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
16469         (cgraph_expand_function): Rewrite.
16471 2003-02-18  Matt Austern <austern@apple.com>
16473         * toplev.c, langhooks.c, langhooks-def.h: Move
16474         write_global_declarations from toplev.c to langhooks.c.
16476 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
16478         * config/h8300/h8300.c (general_operand_src): Always check
16479         MODE.
16480         (general_operand_dst): Likewise.
16482 2003-02-18  Roger Sayle  <roger@eyesopen.com>
16484         * convert.c (convert_to_real): Also optimize (float)log(x) into
16485         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
16487 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16489         * config/sh/sh.c (unspec_caller_rtx_p): New.
16490         (sh_cannot_copy_insn_p): New.
16491         (TARGET_CANNOT_COPY_INSN_P): New.
16493 2003-02-18  Richard Henderson  <rth@redhat.com>
16495         * c-common.c (handle_used_attribute): Accept static data too.
16497 2003-02-18  Nick Clifton  <nickc@redhat.com>
16498             Aldy Hernandez  <aldyh@redhat.com>
16500         * testsuite/gcc.dg/20030218-1.c: New.
16502         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
16504         * target-def.h (TARGET_INITIALIZER): Add
16505         TARGET_VECTOR_TYPES_COMPATIBLE.
16506         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
16508         * target.h (struct gcc_target): Add field vector_types_compatible.
16510         * c-typeck.c (comptypes): Take into account
16511         TARGET_VECTOR_TYPES_COMPATIBLE.
16512         (convert_for_assignment): Same.
16514         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
16515         (rs6000_spe_vector_types_compatible): New.
16516         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
16518 2003-02-19  Andreas Schwab  <schwab@suse.de>
16520         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
16521         * toplev.c: Include langhooks-def.h.
16523 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
16525         * config/mips/mips.h (enum processor_type): Sort entries
16526         alphabetically.
16527         * config/mips/mips.md (define_attr cpu): Sync with processor_type
16528         enum values, including adding entries that were missing.
16530 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
16532         * sh.c (calc_live_regs): Also check GET_CODE when checking if
16533         initial value for PR_REG is still the PR_REG register.
16535 2003-02-18  Jim Wilson  <wilson@redhat.com>
16537         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
16538         instruction in output template.
16539         (bsp_value): Change output template from string to C code, add %,
16540         before actual instruction.
16541         (flushrs): Mark as not predicable.
16543 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
16545         * inclhack.def (netbsd_bogus_semicolon): New fix.
16546         * fixincl.x: Rebuilt.
16547         * tests/base/ctype.h: Update.
16549 2003-02-18  Roger Sayle  <roger@eyesopen.com>
16551         * fold-const.c (negate_expr_p): New function to determine whether
16552         an expression can be negated cheaply.
16553         (fold) [MINUS_EXPR]: Use it to determine whether to transform
16554         -A - B into -B - A for floating point types.
16556 2003-02-18  Roger Sayle  <roger@eyesopen.com>
16558         * sbitmap.c (sbitmap_resize): New function.
16559         * sbitmap.h (sbitmap_resize): Prototype here.
16560         * recog.c (split_all_insns): Use sbitmap_resize.
16562 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
16564         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
16565         insn length.
16566         (extendqisi2): Likewise.
16567         (*extendhisi2_h8300): Likewise.
16569 2003-02-18  Matt Austern <austern@apple.com>
16571         * langhooks.h, langhooks-def.h: introduce new langhook,
16572         final_write_globals, with write_global_declarations as default.
16573         * toplev.c: Move invocation of wrapup_global_declarations from
16574         compile_file to new function, write_global_declarations.  Change
16575         compile_file to use final_write_globals hook.  Change
16576         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
16577         conditional.
16579 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16581         * pa.md: Correct and enhance comment.
16583 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
16585         * gcc.c (validate_switches): Don't scan past closing '}'.
16587 2003-02-18  Ben Elliston  <bje@redhat.com>
16589         PR c++/1607
16590         * doc/extend.texi (Function Attributes): Document the effect of
16591         the C++ "this" parameter on the counting of arguments for the
16592         "format" and "format_arg" attributes.
16594 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
16596         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
16597         (__ev_stdw): Same.
16598         (__ev_stdh): Same.
16600 2003-02-17  Jan Hubicka  <jh@suse.cz>
16602         * recog.c (split_all_insns):  Fix memory overflow.
16604 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
16606         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
16607         (cmphi): Likewise.
16608         (*cmphi_h8300): Likewise.
16609         (*cmphi_h8300hs): Likewise.
16610         (cmpsi): Likewise.
16611         (7 peephole2): Likewise.
16613 2003-02-16  Jan Hubicka  <jh@suse.cz>
16615         * c-typeck.c (build_c_cast):  Fold constant variables into
16616         initial values.
16618 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16620         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
16621         (Binaries): Ditto for Sinix/Reliant Unix.
16623 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
16625         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
16626         not overlap the final result register.
16628 2003-02-16 Arend Bayer <arend.bayer@web.de>
16629            Richard Henderson  <rth@redhat.com>
16631         PR c/8068
16632         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
16633         rearrange mult arguments for less recursion.
16634         (extract_muldiv): New.  Prevent runaway recursion.
16636 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
16638         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
16639         MASK_ALIGN_DOUBLE.
16641 2003-02-15  Roger Sayle  <roger@eyesopen.com>
16643         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
16644         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
16645         (ext_80387_constants_table): Global table of 80387 special constants
16646         guarded by ext_80387_constants_init flag when not initialized.
16647         (init_ext_80387_constants): New function to initialize this table.
16648         (standard_80387_constant_p): Extend to recognize extra 80387
16649         constants, in XFmode, on processors where this is a win.
16650         (standard_80387_constant_opcode): New function to return the
16651         opcode associated with standard_80387_constant_p.
16652         (standard_80387_constant_rtx): New function to return the XFmode
16653         CONST_DOUBLE associated with standard_80387_constant_p.
16654         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
16656         * config/i386/i386-protos.h (standard_80387_constant_opcode):
16657         Prototype here.
16658         (standard_80387_constant_rtx): Likewise.
16660         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
16661         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
16662         *movtf_integer): Simplify using new standard_80387_constant_opcode.
16664 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
16666         * doc/invoke.texi (Optimize Options): Correct @option syntax.
16668 2003-02-15  Richard Henderson  <rth@redhat.com>
16670         * Makefile.in (cfglayout.o): Depend on TARGET_H.
16671         * cfglayout.c: Include target.h.
16672         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
16673         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
16674         * target.h (struct gcc_target): Add cannot_copy_insn_p.
16676         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
16677         (TARGET_CANNOT_COPY_INSN_P): New.
16678         (override_options): Revert 2003-02-08 hack.
16680 2003-02-15  Richard Henderson  <rth@redhat.com>
16682         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
16683         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
16685 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
16687         * config/rs6000/rs6000.h (processor_type): Add PPC440.
16688         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16689         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16690         TARGET_SCHED_VARIABLE_ISSUE): Define.
16691         (rs6000_use_dfa_pipeline_interface): New function.
16692         (rs6000_multipass_dfa_lookahead): New Function.
16693         (rs6000_variable_issue): New function.
16694         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
16695         (rs6000_issue_rate): Add PPC440.
16696         * config/rs6000/rs6000.md (unspec list): Correct typo.
16697         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
16698         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
16699         cmp, delayed_cr, mfcr, mtcr.
16700         (automata_option): Set "ndfa".
16701         (extendMMNN2): Update attributes.
16702         (movcc_internal1): Discourage move to non-cr0.  Update
16703         attributes.
16704         (movMM_update): Update attributes.
16705         (cmpMM_internal): Update attributes.
16706         (sCC CR materialization): Update attributes.
16707         (branch patterns): Do not discourage non-cr0.
16708         (cr logical patterns): Prefer destructive register allocation.
16709         Update attributes.
16710         (movesi_from_cr): Update attribute.
16711         (mtcrf_operation): Update attribute.
16712         (mtcrfsi): Update attribute.
16713         * config/rs6000/40x.md: New file.
16714         * config/rs6000/603.md: New file.
16715         * config/rs6000/6xx.md: New file.
16716         * config/rs6000/7450.md: New file.
16717         * config/rs6000/7xx.md: New file.
16718         * config/rs6000/mpc.md: New file.
16719         * config/rs6000/power4.md: New file.
16720         * config/rs6000/rios1.md: New file.
16721         * config/rs6000/rios2.md: New file.
16722         * config/rs6000/rs64.md: New file.
16723         [Some DFA descriptions based on work by Michael Hayes]
16725 2003-02-15  Richard Henderson  <rth@redhat.com>
16727         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
16728         successors with multiple predecessors.
16729         (connect_traces): Try harder to copy traces of length 1.
16731         * function.h (struct function): Add computed_goto_common_label,
16732         computed_goto_common_reg.
16733         * function.c (free_after_compilation): Zap them.
16734         * stmt.c (expand_computed_goto): Use them to produce one
16735         indirect branch per function.
16737 2003-02-15  Richard Henderson  <rth@redhat.com>
16739         * cfgcleanup.c: Include params.h.
16740         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
16741         too many outgoing edges from a block.
16742         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
16743         * params.def (max-crossjump-edges): New.
16744         * doc/invoke.texi: Document it.
16746 2003-02-15  Richard Henderson  <rth@redhat.com>
16748         * recog.c (split_all_insns): Include new blocks in life update;
16749         do a global life update.
16751 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
16753         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
16754         Update copyright.
16755         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
16756         -mno-cygwin case.
16758 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
16760         PR optimization/7702
16761         * reload1.c (reload_cse_simplify_set): Honor
16762         CANNOT_CHANGE_MODE_CLASS.
16764 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
16766         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
16767         function.
16768         * config/mn10300/mn10300-protos.h: Declare it.
16769         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
16770         attribute cc of instructions that may use clr.
16772 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
16774         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
16775         (x - (x & y)) is found.
16777 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16779         * configure.in: Fix typo.
16780         * configure: Regenerate.
16782 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
16784         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
16786 2003-02-13  Adam Nemet  <anemet@lnxw.com>
16788         PR opt/2391
16789         * combine.c: Fix spelling in comment.
16790         (cached_nonzero_bits): New function.
16791         (cached_num_sign_bit_copies): New function.
16792         (nonzero_bits_with_known): New macro.
16793         (num_sign_bit_copies_with_known): New macro.
16794         (nonzero_bits1): Rename from nonzero_bits.  Add three new
16795         arguments.  Change calls from nonzero_bits to
16796         nonzero_bits_with_known.
16797         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
16798         three new arguments.  Change calls from num_sign_bit_copies to
16799         num_sign_bit_copies_with_known.
16800         (nonzero_bits): New macro.
16801         (num_sign_bit_copies): New macro.
16802         (update_table_tick): Don't traverse identical subexpression more
16803         than once.
16804         (get_last_value_validate): Likewise.
16806 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
16808         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
16809         * function.h (struct emit_status): Length of regno_pointer_align
16810         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
16811         not regno_pointer_align_length (i.e. length actually used, not
16812         length as allocated)
16814         * config/i386/i386.c (struct stack_local_entry): New.
16815         (struct machine_function): Replace huge array with alist.
16816         (assign_386_stack_local): Change to match.
16818 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
16820         * inclhack.def (hpux_long_double): Tighten select and add bypass
16821         regexp.
16822         * fixincl.x: Rebuilt.
16824 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
16826         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
16827         edge and block ends with a jump insn it must be simple jump.
16829 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
16831         * Makefile.in (PREPROCESSOR_DEFINES): Add
16832         @TARGET_SYSTEM_ROOT_DEFINE@.
16833         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
16834         is specified or if building a cross compiler.
16835         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
16836         if the sysroot is under $exec_prefix.
16837         * configure: Regenerated.
16838         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
16839         defined.
16840         (struct default_include): Add add_sysroot field.
16841         (cpp_SYSROOT): Declare.
16842         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
16843         field.
16844         (cpp_SYSROOT): New variable.
16845         * cppinit.c (cpp_create_reader): Initialize
16846         CPP_OPTION (pfile, sysroot).
16847         (init_standard_includes): Handle add_sysroot.  Do not
16848         add unrelocated copies of relocated directories.
16849         (COMMAND_LINE_OPTIONS): Add -isysroot.
16850         (cpp_handle_option): Handle -isysroot.
16851         * cpplib.h (struct cpp_options): Add sysroot member.
16852         * gcc.c (The Specs Language): Update description of %I.
16853         (target_system_root_changed): New variable.
16854         (process_command): Conditionalize make_relative_prefix call
16855         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
16856         target_system_root_changed.
16857         (do_spec_1): Add -isysroot to %I.
16858         * doc/invoke.texi (Spec Files): Update description of %I.
16859         * doc/install.texi (--with-sysroot): Update comment about
16860         relocation.
16862 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
16864         * config/h8300/h8300.md (a peephole2): New.
16866 2003-02-13  Robert Lipe <robertlipe@usa.net>
16867             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16869         * doc/install.texi (Specific): Update three SCO-related URLs.
16871 2003-02-13  Andreas Schwab  <schwab@suse.de>
16873         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
16874         Parenthesize properly.
16875         (NPREDECESORS): Parenthesize properly.
16877 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16879         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
16881 2003-02-12  Roger Sayle  <roger@eyesopen.com>
16883         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
16884         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
16886         * reg-stack.c (subst_stack_regs_pat): Add support for binary
16887         UNSPEC instructions (e.g. "fpatan").
16889 2003-02-12  Mike Stump  <mrs@apple.com>
16891         * varray.c (element_size): Remove.
16892         (uses_ggc): Remove.
16893         (element): Add.
16894         (varray_init): Use new interface.
16895         (varray_grow): Use new interface.
16896         (varray_clear): Use new interface.
16898 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
16900         * config/rs6000/spe.h: Add casts to the arguments of the following
16901         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
16902         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
16903         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
16904         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
16905         __ev_get_u16, __ev_get_s16.
16907 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
16909         * config/h8300/h8300.md (a peephole2): New.
16911 2003-02-12  Jan Hubicka  <jh@suse.cz>
16913         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
16914         (OBJS): Add callgraph.o
16915         (callgraph.o): New.
16916         * c-decl.c (expand_body_1): Break out from ...
16917         (expand_body): This one;  change calling convention
16918         (finish_function): Move some of expand_body logic here.
16919         (c_expand_deferred_function): Update call of expand_body
16920         (c_expand_stmt): Use c_expand_body_1.
16921         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
16922         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
16923         * c-tree.h (c_expand_body): Declare.
16924         * callgraph.c: New file.
16925         * flags.h (flag_unit_at_a_time): Declare.
16926         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
16927         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
16928         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
16929         * langhooks.h (struct lang_hooks_for_callgraph): New.
16930         (struct lang_hooks): Add callgraph field.
16931         * toplev.c (flag_unit_at_a_time): New.
16932         (lang_independent_options): Add flag_unit_at_a_time.
16933         (process_options): Disable unit-at-a-time mode for frontends not
16934         supporting callgraph.
16935         * tree-inline.c (typedef struct inline_data): Add "decl"
16936         (expand_call_inline): Update callgraph.
16937         (optimize_inline_calls): Set id.decl.
16938         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
16939         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
16940         cgraph_calls_p): Declare.
16941         * invoke.texi (-funit-at-a-time): Document
16943 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
16945         * config/rs6000/spe.h: Fix misc formatting.
16946         (__ev_create_ufix32_fs): Cast ev argument.
16947         (__ev_create_sfix32_fs): Same.
16948         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
16949         (__ev_get_ufix32_fs_internal): Same.
16951 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
16953         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
16954         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
16956 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
16958         * cpplib.c (do_include_common): Move warnings for
16959         #include_next and #import out to callers.  Use early-return
16960         instead of nested ifs.  Don't do check_eol here.
16961         (parse_include): Do check_eol here with the rest of the
16962         parsing stuff.
16963         (do_include_next, do_import): Now handle warnings.
16965 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16967         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
16969 2003-02-12  Jan Hubicka  <jh@suse.cz>
16971         * predict.c (estimate_probability):  Fix roundoff error.
16973 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
16975         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
16976         (two peephole2): New.
16978 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
16980         * config/h8300/h8300.md (several peephole2): Replace
16981         find_regno_note with peep2_reg_dead_p.
16983 2003-02-11  Richard Henderson  <rth@redhat.com>
16985         * gcse.c (lookup_set): Remove unused argument PAT.  Update
16986         both callers.
16988 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
16990         * diagnostic.c (real_abort): New.
16991         (diagnostic_report_diagnostic): Call real_abort on error.
16992         * diagnostic.h (diagnostic_abort_on_error): New.
16993         (struct diagnostic_context): Add abort_on_error field.
16994         * toplev.c (setup_core_dumping): New.
16995         (decode_d_option): Handle 'H' case.
16996         * doc/invoke.texi (Debugging Options): Document -dH.
16998 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
17000         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
17001         which refers to obsolete directories.
17003 2003-02-11  Richard Henderson  <rth@redhat.com>
17005         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
17007 2002-10-21  Jan Hubicka  <jh@suse.cz>
17009         * i386.c (contains_128bit_aligned_vector_p): New function.
17010         (ix86_function_arg_boundary): Properly align vector modes.
17012 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
17014         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
17015         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
17016         as a SET pattern.
17018 2003-02-11  Roger Sayle  <roger@eyesopen.com>
17020         * builtins.c:  Fix failure caused by commiting wrong patch.
17022 2003-02-11  Dale Johannesen  <dalej@apple.com>
17023         * ra-build.c (compare_and_free_webs):  Relax checking.
17024         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
17025         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
17027 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
17029         PR optimization/9651
17030         * rtlanal.c (may_trap_p): Handle FIX.
17032 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
17034         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
17035         * doc/invoke.texi: Extra alias.
17037 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
17039         * config/rs6000/host-darwin.c: Fix comment.
17041 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
17043         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
17044         predicate for mod result.
17046 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17048         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
17049         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
17050         * fixincl.x: Rebuilt.
17051         * tests/base/stdlib.h: Update.
17052         * tests/base/ctype.h: New file.
17054 2003-02-11  Jan Hubicka  <jh@suse.cz>
17056         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
17058 2003-02-11  Richard Henderson  <rth@redhat.com>
17060         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
17061         appropriated as globals.
17062         (ix86_expand_clrstr): Similarly.
17063         * config/i386/i386.md (cmpstrsi): Similarly.
17065 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17067         * config/h8300/h8300.md (a peephole2): Add a case of 255.
17069 2003-02-11  Roger Sayle  <roger@eyesopen.com>
17071         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
17072         (pow_optab, atan2_optab): Define corresponding macros.
17073         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
17074         * genopinit.c (optabs): Implement pow_optab and atan2_optab
17075         using pow?f3 and atan2?f3 patterns.
17076         * builtins.c (expand_errno_check): New function to update errno
17077         if necessary, split out from expand_builtin_mathfn.
17078         (expand_builtin_mathfn): Use expand_errno_check.
17079         (expand_builtin_mathfn_2): New function to handle expanding binary
17080         math functions, reusing the code in expand_errno_check.
17081         (expand_builtin): Handle the pow and atan2 math built-ins,
17082         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
17083         expand_builtin_mathfn_2.
17085         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
17087 2003-02-11  Jan Hubicka  <jh@suse.cz>
17089         * combine.c (combine_simplify_rtx): Fix folding of
17090         nested float_truncates.
17092 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17094         * config/h8300/h8300.md (a peephole2): Fix a typo.
17096 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
17098         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
17099         register number.
17101 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17103         * config/h8300/h8300-protos.h: Add a prototype for
17104         gtuleu_operator.
17105         * config/h8300/h8300.c (gtuleu_operator): New.
17106         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
17107         * config/h8300/h8300.md (a peephole2): New.
17109 2003-02-11  Jan Hubicka  <jh@suse.cz>
17111         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
17113 2003-02-11  Jan Hubicka  <jh@suse.cz>
17115         * predict.c (choose_function_section): Choose sections correctly.
17117 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17119         * reload1.c (first_label_num): New.
17120         (reload): Index offsets_known_at and offsets_at using difference of
17121         label number and first label number.  Don't use offset pointers.
17122         (set_label_offsets, set_initial_label_offsets): Likewise.
17124 2003-02-10  Roger Sayle  <roger@eyesopen.com>
17126         * mips-tfile.c (init_file): Add missing initializers in the
17127         "#ifdef __alpha" case.
17128         (file_offset, max_file_offset): Declare as unsigned long.
17129         (write_varray): Cast to "unsigned long" in comparisons against
17130         either file_offset or max_file_offset.
17131         (write_object): Likewise.
17132         (read_seek): Likewise.
17133         (copy_object): Likewise. Declare "ifd" as int to match its use
17134         in add_ext_symbol, and avoid signed/unsigned conditional warning.
17136 2003-02-10  Nick Clifton  <nickc@redhat.com>
17137             Aldy Hernandez  <aldyh@redhat.com>
17139         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
17140         override options which have been specified on the command line.
17142 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17144         * config/h8300/h8300.md (abssf2): New.
17145         (*abssf2_h8300): Likewise.
17146         (*abssf2_h8300hs): Likewise.
17148 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
17150         * tree.c (build_tree_list):  Fix parameter names in comment.
17152 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
17154         * config/rs6000/ppc64-fp.c: New file.
17155         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
17157 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
17159         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
17160         * bb-reorder.c (make_reorder_chain): Deleted.
17161         (make_reorder_chain_1): Deleted.
17162         (find_traces): New function.
17163         (rotate_loop): New function.
17164         (mark_bb_visited): New function.
17165         (find_traces_1_round): New function.
17166         (copy_bb): New function.
17167         (bb_to_key): New function.
17168         (better_edge_p): New function.
17169         (connect_traces): New function.
17170         (copy_bb_p): New function.
17171         (get_uncond_jump_length): New function.
17172         (reorder_basic_blocks): Use new functions (Software Trace Cache).
17173         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
17174         boundaries.
17176 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
17178         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
17180 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
17182         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
17183         (DECL_LIVE_RANGE_RTL): Remove.
17185 2003-02-10  Nick Clifton  <nickc@redhat.com>
17187         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
17188         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
17189         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
17190         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
17191         config/arm/freebsd.h, config/arm/linux-elf.h,
17192         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
17193         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
17194         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
17195         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
17196         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
17197         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
17198         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
17199         and reformat as appropriate.
17201 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17203         * config/h8300/clzsi2.c: Remove.
17204         * config/h8300/ctzsi2.c: Likewise.
17205         * config/h8300/paritysi2.c: Likewise.
17206         * config/h8300/popcountsi2.c: Likewise.
17207         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
17208         ctzsi2, paritysi2, and popcountsi2.
17210 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
17211             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
17213         PR c/7741
17214         * c-decl.c (duplicate_decls): Discard the initializer of the
17215         new decl when the types are conflicting.
17217 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
17219         * Makefile.in (sreal.o): Added.
17220         (predict.o): Depends on sreal.h instead of real.h.
17221         * sreal.c: New file.
17222         * sreal.h: New file.
17223         * predict.c: Use sreal.c instead of real.c.
17225 2003-02-10  Nick Clifton  <nickc@redhat.com>
17227         * Contributed support for the Cirrus EP9312 "Maverick"
17228         floating point co-processor.  Written by Aldy Hernandez
17229         <aldyh@redhat.com>.
17230         (config/arm/arm.c): Add Cirrus support.
17231         (config/arm/arm.h): Likewise.
17232         (config/arm/aout.h): Likewise.
17233         (config/arm/arm.md): Likewise.
17234         (config/arm/arm-protos.h): Likewise.
17235         (config.gcc): Likewise.
17236         (doc/invoke.texi): Describe new -mcpu value and new
17237         -mcirrus-fix-invalid-insns switch,
17238         (cirrus.md): New file.
17240 2003-02-10  Jan Hubicka  <jh@suse.cz>
17242         * combine.c (combine_simplify_rtx): Simplify using
17243         (float_truncate (float x)) is (float x)
17244         (float_extend (float_extend x)) is (float_extend x).
17246 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
17248         * calls.c (try_to_integrate): Tidy stack_usage_map access.
17249         (emit_library_call_value_1): Likewise.  Formatting.
17250         (store_one_arg): Likewise.
17252 2003-02-09  Nick Clifton  <nickc@redhat.com>
17253             Aldy Hernandez  <aldyh@redhat.com>
17255         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
17256         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
17257         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
17258         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
17259         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
17260         docs.  Add range test for immediate value.
17262 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
17264         Rename spe_evxor to xorv2si3.
17265         (xorv4hi3): New.
17266         (xorv1di3): New.
17268 2003-02-10  Glen Nakamura  <glen@imodulo.com>
17270         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
17271         tag.
17273 2003-02-10  Jan Hubicka  <jh@suse.cz>
17275         * i386.c (vector_move_operand): New predicate.
17276         (ix86_expand_vector_move): Be happy about 0.
17277         * i386.h (PREDICATE_CODES): Add sse-move_operand.
17278         * i386.md (mov*_internal): Add 'C' alternative.
17280 2003-02-09  Jan Hubicka  <jh@suse.cz>
17282         * i386.md (floathi*): Deal with SSE.
17284 2003-02-09  Jan Hubicka  <jh@suse.cz>
17286         * simplify-rtx.c (simplify_unary_operation,
17287         simplify_binary_operation):  Deal with vector modes
17288         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
17290 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
17292         * toplev.c (rest_of_compilation): Recompute register usage after
17293         split_all_insns.
17295 2003-02-09  Richard Henderson  <rth@redhat.com>
17297         * libgcc-std.ver (__clztf2): New.
17298         (__ctztf2, __popcounttf2, __paritytf2): New.
17299         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
17300         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
17301         adjust code to match the different type sizes.
17302         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
17303         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
17305         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
17306         TImode; select word_mode and twice that.
17307         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
17308         select the modes from float, double, and long double.
17309         (init_optabs): Remove duplicate initializations.
17311 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
17313         * doc/install.texi: Squeeze and streamline section on
17314         testing and regression checking.
17316 2003-02-09  Jan Hubicka  <jh@suse.cz>
17318         * i386.md (ahi?v*3): Set third operand type to TImode.
17319         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
17321         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
17322         integer mode.
17324         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
17325         Change code so they are arithmetic expressions now.
17326         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
17327         simplify_ternary_operation): Deal with VEC_* expressions.
17329         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
17331 2003-02-08  Jan Hubicka  <jh@suse.cz>
17333         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
17334         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
17335         possibly got duplicated.
17337 2003-02-08  Richard Henderson  <rth@redhat.com>
17339         * config/alpha/alpha.c (override_options): Turn off explicit
17340         relocs until post-peep2 code duplication resolved.
17342 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17344         * optabs.c (expand_unop): Widen clz properly when clz is done
17345         via libcall.
17347 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17349         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
17350         * config/h8300/crti.asm: Likewise.
17351         * config/h8300/crtn.asm: Likewise.
17352         * config/h8300/ctzsi2.c: Likewise.
17353         * config/h8300/fixunssfsi.c: Likewise.
17354         * config/h8300/h8300-protos.h: Likewise.
17355         * config/h8300/h8300.c: Likewise.
17356         * config/h8300/h8300.h: Likewise.
17357         * config/h8300/h8300.md: Likewise.
17358         * config/h8300/paritysi2.c: Likewise.
17359         * config/h8300/popcountsi2.c: Likewise.
17360         * config/h8300/rtems.h: Likewise.
17362 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17364         * doc/invoke.texi: Documentation for my previous commit.
17365         * doc/passes.texi: Ditto.
17367 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17369         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
17370         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17371         Declare.
17372         (DLTHE_FLAG_UPDATE_FREQ): New.
17373         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
17374         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
17375         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
17376         fix_bb_placement, fix_bb_placements, place_new_loop,
17377         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
17378         New static functions.
17379         (fix_loop_placement, can_duplicate_loop_p,
17380         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17381         New functions.
17383         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
17384         unswitch_loops): Declare.
17385         * loop-init.c: New file.
17386         * loop-unswitch.c: New file.
17387         * Makefile.in (loop-init.o, loop-unswitch.o): New.
17388         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
17389         * toplev.c (DFI_loop2): New dump.
17390         (flag_unswitch_loops): New.
17391         (lang_independent_options): Add it.
17392         (rest_of_compilation): Call new loop optimizer.
17393         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
17395 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17397         * config/h8300/clzsi2.c: New.
17398         * config/h8300/ctzsi2.c: Likewise.
17399         * config/h8300/paritysi2.c: Likewise.
17400         * config/h8300/popcountsi2.c: Likewise.
17401         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
17403 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
17405         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17406         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
17407         (ctzsi2): New pattern.
17408         (ffssi2): Use clz instead of unspec.
17409         (clzdi2): Rename from cntlzd2.
17410         (ctzdi2): New pattern.
17411         (ffsdi2): Use clz instead of unspec.
17413 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
17415         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
17416         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
17417         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17418         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
17420 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
17422         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
17424 2003-02-07  Richard Henderson  <rth@redhat.com>
17426         PR 9226
17427         * gcse.c (local_cprop_find_used_regs): New.
17428         (local_cprop_pass): Use it.
17430 2003-02-07  Fred Fish  <fnf@intrinsity.com>
17432         * mips-tfile.c (parse_def): Parenthesize assignments to fix
17433         precedence bugs.
17435 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
17437         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
17439 2003-02-07  Roger Sayle  <roger@eyesopen.com>
17441         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
17442         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
17443         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
17444         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
17445         builtin functions (and their __builtin_* variants).
17446         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
17447         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
17448         when not optimizing.
17450         * doc/extend.texi: Document new pow and atan2 builtins, and
17451         their float and long double variants.  Realphabetize builtins.
17453 2003-02-07  Jan Hubicka  <jh@suse.cz>
17455         * i386.md (sse2_nandv2di3): Fix.
17457 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
17459         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
17460         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
17461         definition.
17462         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
17463         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
17465 2003-02-07  Jan Hubicka  <jh@suse.cz>
17467         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
17469 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
17471         * cfg.c (dump_flow_info): Add back accidently deleted line.
17473 2003-02-07  Andrey Petrov <petrov@netbsd.org>
17475         * optabs.c (expand_float): Search wider integer modes first.
17477 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
17479         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
17480         based on preprocessor flag.
17482 2003-02-07  Roger Sayle  <roger@eyesopen.com>
17483             Richard Henderson  <rth@redhat.com>
17485         * gcse.c (implicit_sets): New.
17486         (compute_hash_table_work): Include them in hash table.
17487         (find_implicit_sets, fis_get_condition): New.
17488         (one_cprop_pass): Allocate and free implicit_sets; call
17489         find_implicit_sets before building hash table.
17491 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
17493         * config/t-netbsd (USER_H): Revert previous change.
17495 2003-02-07  Gabor Greif  <ggreif@lucent.com>
17497         * doc/c-tree.texi (Namespaces): Fix typo.
17499 2003-02-07  Jan Hubicka  <jh@suse.cz>
17501         * regrename.c (do_replace, find_oldest_value_reg,
17502         copyprop_hardreg_forward_1): Update register attributes.
17504 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
17506         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
17507         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
17508         variables starting with underscore.
17509         (struct unit_usage): New structure.
17510         (unit_usages, cycle_alt_unit_usages): New global variables.
17511         (check_unit_distribution_in_reserv): Remove it.
17512         (store_alt_unit_usage): New function.
17513         (check_regexp_units_distribution): Rewrite it.
17515 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17517         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
17518         target_cpu_default.
17519         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
17520         if not MASK_NO_SPACE_REGS.
17521         (output_call): Adjust return pointer, don't load new space register
17522         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
17523         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
17524         TARGET_NO_SPACE_REGS is true.
17525         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
17526         conditions.
17527         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
17528         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
17529         true.  Use bve when TARGET_64BIT is true.
17531 2003-02-06  Richard Henderson  <rth@redhat.com>
17533         * combine.c (nonzero_bits): Fix double break.
17535 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
17536             Richard Henderson <rth@redhat.com>
17538         PR c/9530
17539         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
17540         from functions that return a float to functions that don't.
17542 2003-02-06  Jan Hubicka  <jh@suse.cz>
17544         * i386.c (x86_inter_unit_moves): New variable.
17545         (ix86_secondary_memory_needed): Fix 64bit case, honor
17546         TARGET_INTER_UNIT_MOVES
17547         * i386.h (x86_inter_unit_moves): Declare.
17548         (TARGET_INTER_UNIT_MOVES): New macro.
17549         * i386.md (movsi_1): Cleanup constraints; disable
17550         when not doing inter-unit moves.
17551         (movsi_1_nointernunit): New.
17552         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
17553         (movdi_1_rex64_nointerunit): New.
17554         (mivsf_1): disable when not doing inter-unit moves.
17555         (movsf_1_nointerunit): New.
17557         * basic-block.h (inside_basic_block_p):  Declare.
17558         * cfgbuild.c (inside_basic_block_p): Make global.
17559         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
17560         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
17561         update CFG.
17562         (fix_basic_block_boundaries, add_missing_bbs): New.
17563         (rank): Use profile.
17564         (scheudle_ebbs): Rely on CFG; update coments.
17566 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
17568         * Makefile.in (host_hook_obj): New.
17569         (OBJS): Add $(host_hook_obj).
17570         (host_default.o): New rule.
17571         * config.gcc (host_hook_obj): New, default to host-default.o.
17572         (powerpc-*-darwin*): Use host-darwin.o.
17573         (out_host_hook_obj): New.
17574         * configure: Regenerate.
17575         * configure.in: Print information about out_host_hook_obj, substitute
17576         into output files.
17577         * host-default.c: New file.
17578         * hosthooks.h: New file.
17579         * toplev.c (general_init): Call host_hooks.extra_signals.
17580         * config/rs6000/host-darwin.c: New file.
17581         * config/rs6000/x-darwin: New file.
17582         * doc/hostconfig.texi: Add documentation for new host hook.
17583         Rearrange existing documentation.
17585 2003-02-05  Roger Sayle  <roger@eyesopen.com>
17587         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
17588         with *targetm.delegitimize_address.
17589         (rtl_for_decl_location): Likewise.
17590         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
17591         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
17593         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17594         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
17595         prototype.
17596         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
17597         i386_simplify_dwarf_addr.  Made static.  Prototyped.
17598         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
17599         i386_simplify_dwarf_addr to ix86_delegitimize_address.
17600         (ix86_find_base_term): Likewise.
17601         (maybe_get_pool_constant): Likewise.
17603         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17604         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
17605         prototype.
17606         * config/s390/s390.c (s390_delegitimize_address): Renamed from
17607         s390_simplify_dwarf_addr.  Made static.  Prototyped.
17608         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
17610 2003-02-05  Richard Henderson  <rth@redhat.com>
17612         PR c/8602
17613         * integrate.c (output_inline_function): Reset input_filename
17614         and lineno from the decl before rest_of_compilation.
17616 2003-02-05  Richard Henderson  <rth@redhat.com>
17618         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17619         (CTZ_DEFINED_VALUE_AT_ZERO): New.
17620         * doc/rtl.texi, doc/tm.texi: Document them.
17622         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
17623         of the value at zero properly.
17624         * fold-const.c (tree_expr_nonnegative_p): Likewise.
17625         * simplify-rtx.c (simplify_unary_operation): Likewise.
17627         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17628         (CTZ_DEFINED_VALUE_AT_ZERO): New.
17630         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
17631         (TARGET_EXPAND_BUILTIN): Remove.
17632         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
17633         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17634         (enum arm_builtins): Remove.
17635         * config/arm/arm.md (UNSPEC_CLZ): Remove.
17636         (clzsi2): Rename from clz; use clz instead of unspec.
17637         (ctzsi2): New.
17638         * config/arm/arm-protos.h: Update.
17640 2003-02-05  Jan Hubicka  <jh@suse.cz>
17642         * i386-protos.h (x86_emit_floatuns):  Declare.
17643         * i386.c (x86_emit_floatuns): New global function.
17644         * i386.md (floatunssisf2, floatunsdisf2,
17645         floatunsdidf2):  New patterns.
17647 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17649         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
17651 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
17653         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
17654           config/ia64/linux.h
17656 2003-02-05  Roger Sayle  <roger@eyesopen.com>
17658         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
17660 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
17662         PR optimization/8555
17663         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
17664         instead of aborting.
17666 2003-02-04  Richard Henderson  <rth@redhat.com>
17668         * config/i386/i386.md (UNSPEC_BSF): Remove.
17669         (ffssi2): Split into cmove and no_cmove insns and splitters;
17670         lose pentium float trick for now.
17671         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
17672         (ctzsi2, clzsi2, bsr): New.
17674 2003-02-04  Richard Henderson  <rth@redhat.com>
17676         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
17677         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
17678         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
17679         (ffsdi2): Use popcount instead of unspec.
17680         (popcountdi2): Rename from *popcnt.
17681         (ctzdi2, clzdi2, getf_exp_tf): New.
17683 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
17685         * genconfig.c (main): Generate CC0_P.
17686         * rtl.h (CC0_P): Remove.
17688 2003-02-04  Richard Henderson  <rth@redhat.com>
17690         * libgcc2.h, libgcc2.c (__ffsSI2): New.
17691         (__ffsDI2): Rename from __ffsdi2.
17692         * mklibgcc.in (lib2funcs): Add _ffssi2.
17694 2003-02-04  Richard Henderson  <rth@redhat.com>
17696         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
17697         rounds with a "bit table" lookup.
17699 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
17701         * reload.c (find_reloads): Do not use the mode specified in the insn
17702         pattern as reload mode for address operands.  Do not generate optional
17703         reloads for operands where a mandatory reload was already pushed.
17705 2003-02-04  Richard Henderson  <rth@redhat.com>
17707         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
17708         builtins instead of inline assembly.
17710 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
17712         PR c/9376
17713         * libgcc2.c (__subvdi3): Fix typo.
17715 2003-02-04  Jan Hubicka  <jh@suse.cz>
17717         * i386.md (movti_rex64):  Fix constraint.
17719 2003-02-04  Jan Hubicka  <jh@suse.cz>
17721         * i386.md (vector push splitters):  Fix typo in resolving conflict.
17723 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
17725         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
17727 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
17729         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
17730         for recent libstdc++.  Remove formatting cruft.
17732 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
17734         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
17735         attribute even if input file name is absolute, but one of the
17736         includes is relative.
17738 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
17740         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
17741         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
17742         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
17744 2003-02-03  Richard Henderson  <rth@redhat.com>
17746         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
17747         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
17748         return type to "int".  Shuffle declarations and undef int trap.
17749         * libgcc2.h: Remove their declarations.
17750         * optabs.c (expand_unop): Force outmode to int for bitops.
17752 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
17754         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
17755         coprocessor registers before floating-point registers.
17756         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
17757         to account for a previously removed register.
17758         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
17759         Delete unused macros.
17761 2003-02-03  Jan Hubicka  <jh@suse.cz>
17763         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
17764         (mov*_internal): Fix predicates; require one of operands to not be
17765         memory.
17766         (SSE?MMX move expanders):  Fix predicates; force one of operands to
17767         register.
17768         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
17769         (movups/movupd/movdqu patterns): Force one of operands to not be
17770         memory.
17772 2003-02-03  Roger Sayle  <roger@eyesopen.com>
17774         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
17775         takes a single rtx and returns it unmodified.
17776         * hooks.h (hook_rtx_rtx_identity): Prototype here.
17777         * target.h (struct gcc_target): Add "delegitimize_address"
17778         field to target structure.
17779         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
17780         for delegitimize_address target using hook_rtx_rtx_identity.
17781         (TARGET_INITIALIZER): Initialize delegitimize_address field
17782         using TARGET_DELEGITIMIZE_ADDRESS macro.
17783         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
17784         extensions of constant pool references.  Use delegitimize_address
17785         to undo the obfuscation of "-fpic".
17786         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
17788         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
17789         i386_simplify_dwarf_addr.
17790         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
17791         (maybe_get_pool_constant): Likewise.
17793 2003-02-03  Jan Hubicka  <jh@suse.cz>
17795         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
17797 2003-02-03  Jan Hubicka  <jh@suse.cz>
17799         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
17801 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17803         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
17804         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
17806 2003-02-02  Andreas Schwab  <schwab@suse.de>
17808         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
17810 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
17812         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
17813         (epilogue_insns): Likewise.
17815 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17817         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
17819 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17821         * pa-protos.h (attr_length_millicode_call): Remove second argument.
17822         (attr_length_indirect_call, attr_length_indirect_call,
17823         attr_length_save_restore_dltp): New prototypes.
17824         * pa.c (attr_length_millicode_call): Remove second argument.  Check
17825         INSN_ADDRESSES_SET_P in distance calculation.
17826         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
17827         INSN_ADDRESSES.
17828         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
17829         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
17830         Call attr_length_call directly.
17831         (attr_length_indirect_call, output_indirect_call,
17832         attr_length_save_restore_dltp): New functions.
17833         * pa.md (attr_length_millicode_call): Drop second argument from all
17834         patterns.
17835         (return_internal_pic): Delete.
17836         (return_external_pic): Remove use of PIC register and pic operand and
17837         flag checks.
17838         (epilogue): Use return_internal for both normal and pic code.
17839         (call, call_value): Emit new 32-bit pic patterns for symref and
17840         indirect calls.  Remove uses for arg pointer and pic register.
17841         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
17842         call_reg_pic_post_reload, call_val_symref_pic,
17843         call_val_symref_pic_post_reload, call_val_reg_pic,
17844         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
17845         Implement define_split and define_peephole2 patterns for pre reload
17846         patterns.
17847         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
17848         call_value_internal_reg_64bit): Shorten names.
17849         (all call patterns): Explicitly indicate registers used and clobbered.
17850         Use attr_length_indirect_call and attr_length_save_restore_dltp for
17851         attribute length calculation.  Move code generation for indirect calls
17852         to output_indirect_call.
17853         (sibcall, sibcall_value): Don't restore PIC register.
17854         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
17855         register retore.
17857 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17859         * doc/install.texi (Testing): Simplify and compress instructions
17860         concerning Dejagnu.
17862 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17864         * collect2.c (pexecute_pid): Rename to pid.
17865         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
17866         pid.
17868 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
17870         * doc/extend.texi (Function Attributes): Remove documentation
17871         for PowerPC Windows NT function attributes..
17873 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
17875         * dwarf2out.c (gen_type_die): Check for typedefs before calling
17876         for TYPE_MAIN_VARIANT.
17878 2003-02-01  Richard Henderson  <rth@redhat.com>
17880         * libgcc2.c: Include auto-host.h.
17881         (ATTRIBUTE_HIDDEN): New.
17882         (__clz_tab): Don't declare here for clz and ctz.
17883         (__clzsi2, __clzdi2): Use count_leading_zeros.
17884         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
17885         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
17886         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
17887         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
17889 2003-02-01  Richard Henderson  <rth@redhat.com>
17891         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
17892         to the conditional.
17893         (ashlsi3_1_zext splitter): Likewise.
17895 2003-02-01  Richard Henderson  <rth@redhat.com>
17897         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
17898         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
17899         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
17900         return type to Wtype.
17902         * libgcc-std.ver (GCC_3.4): Fix inheritance.
17904         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
17905         expander input constraint.
17907 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
17909         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
17910         OTI_parity.
17911         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
17912         * optabs.c (widen_clz, expand_parity): New.
17913         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
17914         for libcalls to clz, ctz, popcount, and parity.
17915         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
17916         parity_optab, and set up libfunc handlers.
17917         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
17918         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
17919         __popcount_tab): New.
17920         * libgcc2.h: Declare them.
17921         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
17922         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
17923         and parity_optab.
17924         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
17925         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
17926         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
17927         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
17928         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
17929         BUILT_IN_PARITYLL): New.
17930         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
17931         and add optab argument.
17932         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
17933         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
17934         * expr.c (expand_expr): Handle them.
17935         * fold-const.c (tree_expr_nonnegative_p): Likewise.
17936         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
17937         * reload1.c (eliminate_regs): Handle them.
17938         (elimination_effects): Likewise.
17939         * function.c (instantiate_virtual_regs_1): Likewise
17940         * genattrtab.c (check_attr_value): Likewise.
17941         * simplify-rtx.c (simplify_unary_operation): Likewise.
17942         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
17943         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
17944         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
17945         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
17946         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
17947         __builtin_arm_clz.
17948         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
17949         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
17950         * doc/extend.texi (Other Builtins): Add new builtins.
17951         * doc/md.texi (Standard Names): Add new patterns.
17953 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
17955         * reload.c: Revert 2003-01-31 change.
17957 2003-02-01  Jan Hubicka  <jh@suse.cz>
17959         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
17961 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
17963         * flags.h (flag_volatile): Remove declaration.
17964         (flag_volatile_global, flag_volatile_static): Likewise.
17965         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
17966         * toplev.c (flag_volatile): Remove definition.
17967         (flag_volatile_global, flag_volatile_static): Likewise.
17968         (f_options): Remove corresponding entries here.
17969         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
17970         or flag_volatile_static.
17971         * doc/invoke.texi: Remove documentation of -fvolatile,
17972         -fvolatile-global and -fvolatile-static.
17974 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17976         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
17977         updating of total_code_bytes from prologue to epilogue.
17979 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
17981         * reload.c (find_reloads): Do not use the mode specified in the insn
17982         pattern as reload mode for address operands.  Do not generate optional
17983         reloads for operands where a mandatory reload was already pushed.
17984         Generate optional reloads only in the final pass though find_reloads.
17985         (have_replacement_p): New function.
17987 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17989         * doc/install.texi (Testing): Remove a reference to our obsolete
17990         /testresults web pages and strip redundant information concerning
17991         test results.
17992         (Binaries): Refer to Microsoft Windows instead of listing all
17993         possible variants.
17995 2003-02-01  Jan Hubicka  <jh@suse.cz>
17997         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
17998         RTL chain.
18000         * combine.c (simplify_set): Reverse order of ragumetns to
18001         REG_CANNOT_CHANGE_MODE_P
18002         * df.c (df_def_record_1): Likewise.
18003         * recog.c (register_operand): Likewise.
18004         * simplify-rtx.c (simplify_subreg): Likewise.
18005         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
18006         CANNOT_CHANGE_MODE_CLASS.
18007         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
18008         Likewise.
18009         * reload.c (push_reload): Likewise.
18010         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18011         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18012         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18013         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
18014         * mips.c (mips_cannot_change_mode_class): Update.
18015         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18016         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18017         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18018         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18019         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
18020         * sh.c (sh_cannot_change_mode_class): Update.
18021         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
18022         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
18024 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
18026         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
18027         change to LINK_COMMAND_SPEC in gcc.c.
18029 2003-01-31  Jan Hubicka  <jh@suse.cz>
18031         PR c/9506
18032         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
18034 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18036         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
18037         duplicated code.
18039 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
18041         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
18042         (BINFO_ELTS): New #define.
18043         * stor-layout.c (finalize_record_size): Don't set them.
18044         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
18045         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
18046         (BINFO_LANG_ELTS): New #define.
18047         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
18048         * java/class.c (make_class): Use BINFO_ELTS.
18049         (set_super_info): Likewse.
18050         (add_interface_do): Likewise.
18051         * objc/objc-act.c (start_class): Use BINFO_ELTS.
18053 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
18055         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
18056         (times): Don't ever declare if not HAVE_TIMES.
18057         (clock): Don't ever declare if not HAVE_CLOCK.
18059 2003-01-30  Richard Henderson  <rth@redhat.com>
18061         * flow.c (update_life_info): Zap life info after cleanup_cfg.
18062         (regno_uninitialized): Use correct live at function entry set.
18063         (regno_clobbered_at_setjmp): Likewise.
18065         * expr.c (store_expr): Promote all MEM intermediates to regs.
18067 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18069         * config/arm/arm.c: Fix comment typos.
18070         * config/arm/arm.h: Likewise.
18071         * config/arm/netbsd-elf.h: Likewise.
18072         * config/arm/netbsd.h: Likewise.
18074 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
18076         * gengtype.c (struct walk_type_data): Add needs_cast_p.
18077         (walk_type): Set needs_cast_p in walk_type_data.
18078         (write_types_process_field): Supply casts when required to suppress
18079         warnings.
18080         (write_root): Cast gt_pch_n_S to suppress warning.
18081         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
18082         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
18083         when they might exist.
18084         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
18085         insn-conditions.o, and rs6000.o.
18087 2003-01-30  Richard Henderson  <rth@redhat.com>
18089         * ggc-page.c (G.context_depth_allocations): New.
18090         (G.context_depth_collections): New.
18091         (alloc_page): Set G.context_depth_allocations.
18092         (ggc_collect): Set G.context_depth_collections.
18093         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
18094         (ggc_pop_context): Early exit for no allocations or collections.
18096 2003-01-30  Richard Henderson  <rth@redhat.com>
18098         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
18100 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
18102         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
18103         size, the link register is always saved if any other register is
18104         saved.
18106 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18108         * config/h8300/h8300-protos.h: Update the prototype for
18109         compute_plussi_cc.
18110         (cpp_reader): Declare before it is used.
18111         * config/h8300/h8300.c (compute_plussi_cc): Change the return
18112         type to int.
18113         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
18114         see an unknown H8 variant.
18116 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
18118         PR target/9316
18119         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
18120         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
18121         * config/rs6000/t-rtems: New file. multilib variants to match OS.
18122         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
18123         rs6000/t-ppcgas so we get the desired multilibs.
18125 2003-01-30  Nick Clifton  <nickc@redhat.com>
18127         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
18128         when popping saved IP register off the stack.
18130 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18132         * config/rs6000/aix43.h: Fix comment typos.
18133         * config/rs6000/aix51.h: Likewise.
18134         * config/rs6000/aix52.h: Likewise.
18135         * config/rs6000/altivec.h: Likewise.
18136         * config/rs6000/rs6000.c: Likewise.
18137         * config/rs6000/rs6000.h: Likewise.
18138         * config/rs6000/rs6000.md: Likewise.
18139         * config/rs6000/spe.md: Likewise.
18141 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
18143         * c-common.c (builtin_define_float_constants): Define
18144         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
18146 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18148         * config/sh/lib1funcs.asm: Fix comment typos.
18149         * config/sh/linux.h: Likewise.
18150         * config/sh/sh.c: Likewise.
18151         * config/sh/sh.md: Likewise.
18153 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
18155         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
18157 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
18159         * config/fp-bit.h (__make_dp): Declare if TMODES.
18161 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
18163         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
18164         general_operand_src and general_operand_dst.
18166 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
18168         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
18169         Return true for variable sized types.
18170         (rs6000_va_arg): Handle variable sized types passed by reference
18171         on non-SVR4 ABI.
18173 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
18175         * arm.c (arm_legtimize_address): New function.
18176         * arm-protos.h (arm_legtimize_address): Add prototype.
18177         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
18178         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
18179         do ... while (0)
18181 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18183         PR bootstrap/9296
18184         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
18185         depended on it being defined until now.
18187 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18189         PR target/9295
18190         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
18191         RTEMS code knows which C++ initialization style the toolset
18192         configuration is using.
18194 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18196         PR bootstrap/9293
18197         * config/m68k/t-crtstuff: Replace spaces with tabs, add
18198          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
18200 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18202         PR bootstrap/9292
18203         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
18204         RTEMS threads.
18205         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
18207 2003-01-29  Nick Clifton  <nickc@redhat.com>
18209         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
18210         not $(srcdir).
18212 2003-01-29  Andrew Haley  <aph@redhat.com>
18214         * tree-inline.c (walk_tree): Add CHAR_TYPE.
18216 2003-01-29  Jan Hubicka  <jh@suse.cz>
18218         * i386.md (subdi3_carry_rex64): Fix typo.
18220 2003-01-28  Stan Shebs  <shebs@apple.com>
18222         * coretypes.h (cpp_reader): Forward declare struct.
18223         * c-pragma.h (cpp_reader): Remove forward declaration.
18224         * hashtable.h (cpp_reader): Likewise.
18225         * scan.h (cpp_reader): Likewise.
18226         * tree.h (cpp_reader): Likewise.
18227         * config/darwin-protos.h (cpp_reader): Likewise.
18228         * config/arm/arm-protos.h (cpp_reader): Likewise.
18229         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
18230         struct cpp_reader in prototypes.
18232 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
18234         * doc/install.texi: Add documentation for installation into
18235         tooldirs and with DESTDIR.
18237 2003-01-28  Richard Henderson  <rth@redhat.com>
18239         * config.gcc (ia64*-*-aix*): Remove.
18240         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
18241         * config/ia64/unwind-aix.c: Remove file.
18243 2003-01-28  Andreas Schwab  <schwab@suse.de>
18245         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
18246         register.
18247         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
18248         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
18249         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
18250         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18251         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
18252         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18253         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
18255 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
18257         * combine.c (nonzero_bits): Fix check for negative divide operands.
18259 2003-01-28  Richard Henderson  <rth@redhat.com>
18261         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
18262         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
18264 2003-01-28  Richard Henderson  <rth@redhat.com>
18266         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
18268         * config/cris/cris.c (cris_address_cost): Make static.
18269         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
18270         * config/cris/cris.h (ADDRESS_COST): Remove.
18271         * config/cris/cris-protos.h: Update.
18273 2003-01-23  Mike Stump  <mrs@apple.com>
18275         * regclass.c (init_reg_autoinc): New function.
18276         (regclass): Move initialization of forbidden_inc_dec_class from
18277         here...
18278         (init_regs): to here.  Avoids reinitialization for each function,
18279         saving compilation time.
18281 2003-01-28  Jason Merrill  <jason@redhat.com>
18283         * cpplib.h (struct cpp_options): Add warn_deprecated field.
18284         * cppinit.c (cpp_create_reader): Turn it on by default.
18285         * c-opts.c (c_common_decode_option): Set it.
18286         * cpplib.c (do_pragma_once): Only complain about #pragma once
18287         if warn_deprecated is set.
18289 2003-01-28  Dale Johannesen  <dalej@apple.com>
18291         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
18292         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
18293         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
18295 2003-01-28  Richard Henderson  <rth@redhat.com>
18297         * target.h (targetm.address_cost): New.
18298         * target-def.h (TARGET_ADDRESS_COST): New.
18299         (TARGET_RTX_COSTS): Uncomment.  Oops.
18300         * cse.c (address_cost): Use new target hook.
18301         (default_address_cost): New.
18302         * output.h (default_address_cost): Declare.
18303         * hooks.c (hook_int_rtx_0): New.
18304         * hooks.h (hook_int_rtx_0): Declare.
18305         * loop.c (combine_givs_p): Remove if 0 code.
18306         * system.h (ADDRESS_COST): Poison.
18308         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
18309         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
18310         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
18311         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
18312         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
18313         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
18314         config/xtensa/xtensa.c, config/xtensa/xtensa.h
18315         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
18316         (ADDRESS_COST): Remove.
18318         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
18319         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18320         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18321         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
18322         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
18323         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
18324         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
18325         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
18326         config/mips/mips.c, config/mips/mips.h,
18327         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
18328         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
18329         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
18330         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
18331         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
18332         config/vax/vax.c, config/vax/vax.h
18333         (foo_address_cost): Make static.
18334         (TARGET_ADDRESS_COST): New.
18335         (ADDRESS_COST): Remove.
18337         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
18338         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
18339         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18340         config/stormy16/stormy16.h
18341         (ADDRESS_COST): Move code ...
18342         (foo_address_cost): ... here.
18343         (TARGET_ADDRESS_COST): New.
18345         * config/m32r/m32r.c (m32r_address_cost): Remove.
18346         * config/m32r/m32r-protos.h: Update.
18348         * config/mmix/mmix.c (mmix_address_cost): Remove.
18349         * config/mmix/mmix-protos.h: Update.
18351         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
18352         mn10300_address_cost; move unsig allocation ...
18353         (mn10300_address_cost): ... here.
18354         (TARGET_ADDRESS_COST): New.
18355         * config/mn10300/mn10300-protos.h: Update.
18356         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
18358         * doc/tm.texi: Update.
18360 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
18362         * haifa-sched.c (schedule_insn): Return necessary cycle advance
18363         after issuing the insn.
18364         (rank_for_schedule): Make a insn with /S the highest priority
18365         insn.
18366         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
18367         (choose_ready): Check SCHED_GROUP_P.
18368         (schedule_block): Advance cycle after issuing insn if it is
18369         necessary.  Don't reorder insns if there is an insn with /S.
18370         (set_priorities): Ignore schedule groups.
18372         * sched-deps.c (remove_dependence, group_leader): Remove the
18373         functions.
18374         (add_dependence): Ignore schedule groups.
18375         (set_sched_group_p): Don't make copy of dependencies from previous
18376         insn of the schedule group.  Add anti-dependency to the previous
18377         insn of the schedule group.
18378         (compute_forward_dependences): Ignore schedule groups.
18380         * sched-ebb.c (init_ready_list): Ignore schedule groups.
18382         * sched-rgn.c (init_ready_list): Ditto.
18383         (can_schedule_ready_p): Ditto.
18385 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
18387         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
18388         register to another one.
18390 2003-01-28  Richard Henderson  <rth@redhat.com>
18392         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
18394 2003-01-28  Roger Sayle  <roger@eyesopen.com>
18396         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
18398 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
18400         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
18401         class contains a floating-point register, return the size of the
18402         mode in half words.
18404 2003-01-28  Jan Hubicka  <jh@suse.cz>
18406         * i386.c (ix86_carry_flag_operator):  New predicate.
18407         (fcmov_operator): Fix whitespace.
18408         (ix86_expand_carry_flag_compare):  Deal with floating point.
18409         (ix86_expand_int_movcc): Deal with fp; update insn expansion
18410         (ix86_expand_int_addcc): Likewise.
18411         (ix86_expand_strlensi_unroll_1): likewsie.
18412         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
18413         * i386.md (add?i_carry_rex64): Use new predicate.
18414         (sub?i3_carry_rex64): Likewise.
18415         (x86_mov?icc_0_m1*): Likewise.
18417 2003-01-28  Andreas Schwab  <schwab@suse.de>
18419         * cfgloopmanip.c (create_preheader): Initialize src to avoid
18420         warning.
18422         * expmed.c (emit_store_flag): Fix cast to avoid sign
18423         comparison warning.
18425         * combine.c (force_to_mode): Add cast to fix warning when
18426         STORE_FLAG_VALUE is negative.
18428 2003-01-27  Richard Henderson  <rth@redhat.com>
18430         * Makefile.in (cse.o): Depend on TARGET_H.
18431         * cse.c (rtx_cost): Use targetm.rtx_costs.
18432         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
18433         * doc/tm.texi: Update.
18435         * target.h (targetm.rtx_costs): New.
18436         * target-def.h (TARGET_RTX_COSTS): New.
18437         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
18438         * hooks.h: Update.
18440         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
18441         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
18442         * config/alpha/alpha.h (PROCESSOR_MAX): New.
18443         (CONST_COSTS, RTX_COSTS): Remove.
18445         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
18446         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
18447         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
18448         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
18449         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
18450         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
18451         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
18452         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
18453         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
18454         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
18455         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
18456         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
18457         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
18458         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
18459         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
18460         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
18461         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
18462         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
18463         config/v850/v850.c, config/v850/v850.h,
18464         config/xtensa/xtensa.c, config/xtensa/xtensa.h
18465         (CONST_COSTS, RTX_COSTS): Move code ...
18466         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
18468         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
18469         (arm_rtx_costs, TARGET_RTX_COSTS): New.
18470         * config/arm/arm-protos.h: Update.
18471         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
18473         * config/avr/avr.h (CONST_COSTS): Move code ...
18474         * config/avr/avr.c (avr_rtx_costs): ... here.
18475         (default_rtx_costs): Make static.
18476         * config/avr/avr-protos.h: Update.
18478         * config/h8300/h8300.c (const_costs): Make static.
18479         (h8300_and_costs, h8300_shift_costs): Likewise.
18480         * config/h8300/h8300-protos.h: Update.
18482         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
18483         (CONST_COSTS): Move code ...
18484         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
18485         default_rtx_costs; update for signature change.
18486         * config/ip2k/ip2k-protos.h: Update.
18488         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
18489         (CONST_COSTS): Move code ...
18490         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
18491         (TARGET_RTX_COSTS): New.
18492         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
18493         * config/m68hc11/m68hc11-protos.h: Update.
18495         * config/m68k/m68k.c (const_int_cost): Make static.
18496         * config/m68k/m68k-protos.h: Update.
18498         * config/mcore/mcore.c (mcore_const_costs): Make static.
18499         (mcore_and_cost, mcore_ior_cost): Likewise.
18500         * config/mcore/mcore-protos.h: Update.
18502         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
18503         (mmix_rtx_cost_recalculated): Remove.
18504         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
18505         * config/mmix/mmix-protos.h: Update.
18507         * config/sh/sh.c (shiftcosts): Make static.
18508         (addsubcosts, andcosts, multcosts): Likewise.
18509         * config/sh/sh-protos.h: Update.
18511         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
18512         (sparc_rtx_costs): Make static; update for change in signature.
18513         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
18514         * config/sparc/sparc-protos.h: Update.
18516         * config/v850/v850.c (const_costs): Make static.
18517         * config/v850/v850-protos.h: Update.
18519         * config/vax/vax.h (RTX_COSTS): Remove.
18520         (CONST_COSTS): Move code ...
18521         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
18522         from vax_rtx_cost.
18523         (vax_rtx_costs, TARGET_RTX_COSTS): New.
18525 2003-01-27  Richard Henderson  <rth@redhat.com>
18527         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
18528         * config/vax/vax-protos.h: Update.  Really.
18530 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
18532         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
18533         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
18534         zero if no hardware floating point.
18535         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
18536         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
18537         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
18538         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
18539         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
18540         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
18541         even FP registers on N32 and N64.
18542         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
18543         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
18544         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
18545         even-register-like alignment to 128-bit arguments.
18546         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
18547         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
18548         on N32 or N64.
18549         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
18550         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
18551         (TPBIT): Set to tp-bit.c.
18552         (tp-bit.c): Create out of fp-bit.c.
18554 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18556         * c-parse.in: Remove '%expect 32' directive in objc mode.
18558 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
18560         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
18561         (LIBGCOV): New variable.
18562         (libgcc.mk): Add LIBGCOV.
18563         (LIBGCC_DEPS): Add libgcov.c.
18564         (libgcov.a): New target.
18565         (clean): Remove libgcov.a.
18566         (install-libgcc): Do libgcov too.
18567         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
18568         with libgcov.a.
18569         * libgcc2.c (L_gcov): Move into ...
18570         * libgcov.c: ... here. New file.
18571         * mklibgcc.in: Add libgcov rules.
18572         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
18574         * doc/invoke.texi (profile-arcs, test-coverage): Update and
18575         clarify.
18577         * profile.c (index_counts_file): Remove duplicate check for open file.
18579 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
18581         * gcc/doc/invoke.texi (Optimization Options): Group together
18582         optional and experimental flags.  Move trapv and bounds-check
18583         out of this section.  Group floating point flags together.
18584         (Code Gen Options): Move trapv and bounds-check to here.
18586 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
18588         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
18590 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
18592         PR optimization/9090
18593         * function.c (purge_addressof_1): After pushing an addressed register
18594         onto the stack, simplify the result.
18596 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18598         * doc/extend.texi: Fix typo.
18600 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18602         * doc/cppopts.texi: Fix typo.
18603         * doc/objc.texi: Likewise.
18604         * doc/passes.texi: Likewise.
18606 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
18608         * real.c (ibm_extended_format): Add 53 to minimum exponent.
18609         (encode_ibm_extended): Adjust.
18611 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
18613         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
18614         timevar_id enumerations.
18616 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18618         * combine.c: Fix formatting.
18620 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18622         * doc/gccint.texi: Update the copyright.
18624 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18626         * doc/cpp.texi: Fix typos.
18627         * doc/extend.texi: Likewise.
18628         * doc/gty.texi: Likewise.
18629         * doc/install.texi: Likewise.
18630         * doc/passes.texi: Likewise.
18631         * doc/rtl.texi: Likewise.
18632         * doc/tm.texi: Likewise.
18634 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18636         * config/ia64/fde-glibc.c: Fix comment typos.
18637         * config/ia64/hpux.h: Likewise.
18638         * config/ia64/ia64.c: Likewise.
18639         * config/ia64/ia64.h: Likewise.
18640         * config/ia64/unwind-ia64.c: Likewise.
18642 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18644         * config/i386/i386-modes.def: Fix comment typos.
18645         * config/i386/i386.c: Likewise.
18646         * config/i386/i386.md: Likewise.
18648 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
18650         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
18651         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
18652         ASM_FINISH_DECLARE_OBJECT before defining it.
18653         * toplev.c (rest_of_decl_compilation):  Don't define
18654         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
18655         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
18656         parameters for DWARF2 targets because they _are_ used.
18658 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
18660         * fp-bit.h: Define macros for TFmode floating-point constants
18661         in IBM-extended TFmode types.
18662         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
18663         widths.
18664         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
18665         TFmode type.
18667         * config/fp-bit.h: Define macros for TFmode floating-point
18668         constants in IEEE quad TFmode type.  Declare functions according
18669         to L_ macros.
18670         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
18671         (TFtype, TItype, UTItype): Define if TMODES is defined.
18672         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
18673         (F_T_BITOFF, D_T_BITOFF): Define.
18674         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
18675         guaranteed to be wide enough.
18676         * config/fp-bit.c: Check for L_ macros for tf functions.
18677         (__thenan_tf): New.
18678         (nan): Adjust.
18679         (pack_d, unpack_d): Support IEEE 854 quad type.
18680         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
18681         from FRAC_NBITS, FRAC_BITS and NGARDS.
18682         (usi_to_float): Cast constants to be shifted to fractype
18683         instead of assuming long long is wide enough.
18684         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
18686 2003-01-26  Andreas Jaeger  <aj@suse.de>
18688         * df.c: Remove prototype of unused function df_regno_rtl_debug.
18690 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
18692         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
18693         (DBBIT_FUNCS): Added _df_to_tf.
18694         (TPBIT_FUNCS): New.
18695         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
18696         (LIBGCC_DEPS): Added TPBIT.
18697         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
18699         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
18700         been able to move the result to target.
18702         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
18703         for the appropriate mode.
18705         * calls.c (emit_library_call_value_1): Handle return values
18706         in a PARALLEL.
18708         * rtl.c (get_mode_alignment): Moved to...
18709         * stor-layout.c: ... here.
18711         * print-rtl.c (print_rtx): Don't print MEM details in
18712         GENERATOR_FILEs.
18714 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
18716         * df.h: Update comments, tidy formatting.
18717         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
18718         REVERSE, UNION, INTERSECTION.  All uses updated.
18719         (OLD_DF_INTERFACE): Remove.
18720         (struct insn_info): Remove commented out insn field.
18721         * df.c: Update comments, tidy formatting.
18722         (df_def_table_realloc): Remove.
18725 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
18727         * calls.c (save_fixed_argument_area): Tidy.
18728         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
18729         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
18730         call chain loop at 1 if !try_tail_call.  Formatting.
18731         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
18732         Use save_fixed_argument_area and restore_fixed_argument_area.
18734 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18736         * df.c (df_uses_record): Handle CC0.
18738 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
18740         * reload.c (maybe_memory_address_p): New function.
18741         (find_reloads_address): Use it instead of memory_address_p.
18743 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
18745         * final.c (shorten_branches): Align the address of code label
18746         when computing initial lengths and addresses.
18748 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
18750         * config/m68hc11/m68hc11.md: Fix a comment typo.
18752 2003-01-25  Andreas Jaeger  <aj@suse.de>
18754         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
18755         TARGET_MACHO.
18757 2003-01-25  Roger Sayle  <roger@eyesopen.com>
18759         * gcse.c (bypass_last_basic_block): New global variable.
18760         (bypass_block):  Use redirect_edge_and_branch_force to redirect
18761         fall-through edges.  Use bypass_last_basic_block to determine
18762         which blocks have valid PRE information.
18763         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
18765 2003-01-25  Jan Hubicka  <jh@suse.cz>
18767         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
18769 2003-01-25  Jan Hubicka  <jh@suse.cz>
18770                               Eric Botcazou <ebotcazou@libertysurf.fr>
18771         PR opt/8492
18772         * gcse.c (one_cprop_pass): Delete unreachable blocks.
18774 2003-01-25  Richard Henderson  <rth@redhat.com>
18776         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
18777         from ia64_aix_select_rtx_section.
18778         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
18779         instead of saving and restoring flag_pic.
18780         (ia64_rwreloc_unique_section): Similarly.
18781         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
18782         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
18783         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
18784         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
18786 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
18788         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
18789         comment.
18791 2003-01-25  Richard Henderson  <rth@redhat.com>
18793         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
18795 2003-01-25  Kelley Cook <kelleycook@comcast.net>
18797         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
18799 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
18801         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
18802         type for bitmaps.  Use unsigned long.
18803         (nBITMAP_WORD_BITS): New macro.
18804         (BITMAP_WORD_BITS): New macro.
18805         (rest of file): Use it.
18806         * bitmap.c: Use it.
18808 2003-01-25  Richard Henderson  <rth@redhat.com>
18810         2002-02-19  Robert Lipe  <robertlipe@usa.net>
18811         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
18813 2003-01-25  Roger Sayle  <roger@eyesopen.com>
18815         * builtins.c (purge_builtin_constant_p): Scan insn stream
18816         sequentially rather than by basic block.
18817         * function.c (purge_addressof): Simplify test with INSN_P.
18819 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
18821         * combine.c (simplify_comparison, case AND): Remove a redundant test.
18823 2003-01-25  Roger Sayle  <roger@eyesopen.com>
18825         * function.h (struct function): New field calls_constant_p.
18826         (current_function_calls_constant_p): New macro for above.
18827         * function.c (prepare_function_start): Initialize calls_eh_return
18828         and calls_constant_p.
18829         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
18830         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
18831         when the current_function_calls_constant_p.
18832         * integrate.c (expand_inline_function): Set calls_constant_p if
18833         the function being inlined has calls_constant_p set.
18835 2003-01-25  Roger Sayle  <roger@eyesopen.com>
18837         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
18838         optimizing, even if flag_gcse is true.
18839         * toplev.c (rest_of_compilation): purge_builtin_constant_p
18840         only needs to be called when "optimize > 0 && flag_gcse".
18842 2003-01-25  Roger Sayle  <roger@eyesopen.com>
18844         * stmt.c (emit_case_bit_tests): New routine to implement suitable
18845         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
18846         (case_bit_test_cmp): New comparison function for "qsort" to order
18847         case_bit_tests by decreasing number of destination nodes.
18848         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
18849         (expand_end_case_type): Use emit_case_bit_tests to implement
18850         suitable switch statments.
18851         (CASE_USE_BIT_TESTS): New target macro to disable the above.
18852         * Makefile.in (stmt.o): Add dependency on optab.h.
18853         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
18855 2003-01-23  Andreas Schwab  <schwab@suse.de>
18857         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
18858         __do_global_ctors_aux hidden global and don't put it in
18859         .init_array.
18860         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
18861         instead so that it comes first.
18863 2003-01-25  Jan Hubicka  <jh@suse.cz>
18865         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
18866         subreg is read/modify.
18868 2003-01-25  Jan Hubicka  <jh@suse.cz>
18870         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
18871         do libcall for large blocks.
18872         * i386.md (comi patterns): Set type to ssecomi.
18873         (sse2_unpck?pd): Fix mode of vec_select.
18875         * cse.c: Include except.h
18876         (cse_set_around_loop):  Do not create new basic blocks.
18877         * Makefile.in (cse.o): Add dependnecy on except.h
18879 2003-01-25  Jan Hubicka  <jh@suse.cz>
18881         * builtins.c (fold_trunc_transparent_mathfn): New function.
18882         (fold_builtin): Use it.
18883         * convert.c (convert_to_real): Re-enable code to convert
18884         math functions; add support for floor familly functions.
18886 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18888         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
18889         dependencies on coretypes.h and $(TM_H).
18891 2003-01-25  Jan Hubicka  <jh@suse.cz>
18893         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
18895 2003-01-24  Stuart Hastings  <stuart@apple.com>
18897         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
18899 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18901         * config/c4x/c4x.md (UNSPEC_BU): New constants.
18902         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
18903         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
18904         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
18905         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
18906         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
18907         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
18908         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
18910 2003-01-24  Jan Hubicka  <jh@suse.cz>
18912         * emit-rtl.c (reg_attrs_htab): New static variable.
18913         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
18914         functions.
18915         (reg_rtx): Do not maintain regno_decl.
18916         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
18917         set_mem_attrs_from_reg): New global function.
18918         (init_emit): Do not initialize regno_decl.
18919         (init_emit_once): initialize reg_attrs_htab.
18920         * final.c (alter_subreg): Do not replace REG by SUBREG.
18921         (gen_mem_expr_from_op): Improve output.
18922         (output_asm_operands): Likewise.
18923         * function.c (assign_params): Do not set REGNO_DECL.
18924         * function.h (struct function): Kill regno_decl.
18925         (REGNO_DECL): Kill.
18926         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
18927         * print_rtl.c (print_rtx): Output REG information.
18928         * regclass.c (reg_scan_mark_refs): Update attrs.
18929         * reload1.c (alter_reg): Likewise.
18930         * simplify_rtx.c (simplify_subreg): Likewise.
18931         * stmt.c (expand_decl): Likewise.
18932         * rtl.def (REG): Add new field.
18933         * rtl.h (struct reg_attrs): New.
18934         (rtunion_def): At rtreg.
18935         (X0MEMATTR): Add checking.
18936         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
18937         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
18938         Declare.
18939         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
18941 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
18943         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
18944         (xtensa_emit_call, print_operand): Fix printf format strings
18945         to avoid compile warnings.
18946         (xtensa_function_prologue, xtensa_function_epilogue): Change type
18947         of "size" argument to HOST_WIDE_INT to fix compile warnings.
18948         * config/xtensa/xtensa-protos.h
18949         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
18951 2003-01-24  Jan Hubicka  <jh@suse.cz>
18953         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
18954         (implicit_built_in_decls): New global array.
18955         (mathfn_built_in): New global function.
18956         (fold_trunc_transparent_mathfn): New static function
18957         (expand_builtin_strstr, expand_bultin_strchr,
18958         expand_builtin_strpbrk, expand_builtin_strcpy,
18959         expand_builtin_strncpy, expand_bultin_strcmp,
18960         expand_bultin_strncat, expand_builtin_fputs): Use
18961         implicint_built_in_decls.
18962         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
18963         * builtins.def: Fix comments.
18964         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
18965         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
18966         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
18967         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
18968         (DEF_C99_C90RES_BULTIN): New.
18969         (*f, *l builtins): Update.
18970         * c-common.c (DEF_BUILTIN): Initialize implicit array.
18971         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
18972         * convert.c (strip_float_extensions): New global function.
18973         * tree.h (DEF_BUILTIN): Accept 10 arguments.
18974         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
18975         Declare.
18976         * java/builtins.c (define_builtin): Handle implicit.
18977         (DEF_BUILTIN): Update.
18978         * tm.texi (TARGET_C99_FUNCTIONS): Document.
18979         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
18980         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
18981         when using glibc2.
18983 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
18985         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
18986         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
18987         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
18988         * config/xtensa/crti.asm: New file.
18989         * config/xtensa/crtn.asm: New file.
18990         * config/xtensa/t-elf: New file.
18991         * config/xtensa/t-linux: New file.
18992         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
18993         Move various CFLAGS settings to new t-elf file.
18995 2003-01-24  Richard Henderson  <rth@redhat.com>
18997         PR optimization/4382
18998         * tree-inline.c (find_builtin_longjmp_call_1): New.
18999         (find_builtin_longjmp_call): New.
19000         (inlinable_function_p): Use it.
19002 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19004         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
19005         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
19006         * config/i386/i386.c (function_arg_pass_by_reference): New.
19007         (ix86_va_arg): Support arguments passed by reference.
19009 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19011         * cfgloopanal.c: New file.
19012         * cfgloopmanip.c: New file.
19013         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
19014         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
19015         cfglayout.o): Add dependency on cfgloop.h.
19016         (cfgloop.o): Add flags.h dependency.
19017         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
19018         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
19019         (struct loop, struct loops, flow_loops_find, flow_loops_update,
19020         flow_loops_free, flow_loops_dump, flow_loop_dump,
19021         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
19022         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
19023         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
19024         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
19025         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
19026         find_common_loop, verify_loop_structure): Declarations moved to ...
19027         * cfgloop.h: New file.
19028         * bb-reorder.c (reorder_basic_blocks): Modified.
19029         * cfglayout.c: Include cfgloop.h.
19030         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
19031         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
19032         (break_superblocks): New static function.
19033         (cfg_layout_finalize): Use it.
19034         (cfg_layout_split_block): New function.
19035         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
19036         fields.
19037         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
19038         changed.
19039         (cfg_layout_split_block): Declare.
19040         * cfgloop.c: Include cfgloop.h and flags.h.
19041         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
19042         get_loop_body): Avoid signed versus unsigned comparison warnings.
19043         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
19044         loop_latch_edge): Modified.
19045         (verify_loop_structure): Modified to use flags stored in loop structure;
19046         check irreducible loops.
19047         (cancel_loop, cancel_loop_tree): New functions.
19048         (estimate_probability): Use loop analysis code for predictions.
19049         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
19050         warnings.
19051         * doloop.c: Include cfgloop.h.
19052         * loop.c: Include cfgloop.h.
19053         * predict.c: Include cfgloop.h.
19054         * toplev.c: Include cfgloop.h.
19055         * unroll.c: Include cfgloop.h.
19056         * tracer.c (tracer): Modified.
19058 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
19060         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
19062 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
19064         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
19065         * configure: Regenerate.
19067         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
19068         (tls_symbolic_reference_mentioned_p): Add prototype.
19069         (s390_tls_get_offset): Add prototype.
19070         (emit_pic_move): Remove prototype, replace by ...
19071         (emit_symbolic_move): .. this new prototype.
19073         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
19074         (tls_model_chars): New global variable.
19075         (s390_encode_section_info): Encode TLS model.
19076         Use targetm.binds_local_p to check for local symbols.
19077         (s390_strip_name_encoding): New function.
19078         (TARGET_STRIP_NAME_ENCODING): Define.
19080         (get_thread_pointer): New function.
19081         (legitimize_tls_address): New function.
19082         (legitimize_address): Call it.
19083         (emit_pic_move): Remove, replace by ...
19084         (emit_symbolic_move): ... this new function.
19086         (larl_operand): Handle TLS operands.
19087         (legitimate_constant_p): Likewise.
19088         (s390_decompose_address): Likewise.
19089         (s390_cannot_force_const_mem): New function.
19090         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19092         (s390_output_symbolic_const): Handle TLS unspecs.
19093         (print_operand): New code 'J'.
19094         (machine_function): Add struct member 'some_ld_name'.
19095         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
19097         (enum s390_builtin): New type.
19098         (code_for_builtin_64, code_for_builtin_31): New global variables.
19099         (s390_init_builtins, s390_expand_builtin): New functions.
19100         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19102         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
19103         (ASM_OUTPUT_LABELREF): Define.
19104         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
19106         * config/s390/s390.md: Define TLS UNSPEC constants.
19107         ("movdi", "movsi"): Handle TLS operands.
19108         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
19109         ("*tls_load_64", "*tls_load_31"): New insns.
19110         ("call_value_tls", "call_value_tls_exp"): New expanders.
19111         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
19112         "bas_tls_64", "bas_tls_31"): New insns.
19114 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
19116         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
19117         spe ABI is configured, if requested.
19119 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19121         * doc/passes.texi: Fix typo.
19123 2003-01-24  Andreas Schwab  <schwab@suse.de>
19125         * stor-layout.c (excess_unit_span): Only define if used.
19127 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
19129         * gcc/doc/invoke.texi (Optimization Options): List -O levels
19130         for each optimization flag.
19132 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
19134         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
19136 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19138         * doc/bugreport.texi: Use @command instead of @code for commands.
19139         * doc/collect2.texi: Likewise.
19140         * doc/headerdirs.texi: Likewise.
19141         * doc/invoke.texi: Likewise.
19142         * doc/standards.texi: Likewise.
19143         * doc/tm.texi: Likewise.
19144         * doc/trouble.texi: Likewise.
19146 2003-01-24  Nick Clifton  <nickc@redhat.com>
19148         * config/arm/arm.c (use_return_insn): Do not use a single return
19149         instruction for interrupt handelrs which have to create a stack
19150         frame.
19151         (arm_expand_prologue): Do not pre-bias the return address of
19152         interrupt handlers which create a stack frame.
19154 2003-01-24  Nick Clifton  <nickc@redhat.com>
19156         * Add sh2e support:
19158         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
19160                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
19161                 med_cbranches.  Fix logic in short_cbranches.
19163         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
19165                 * config/sh/sh.md (delay for cbranch): Don't annul delay
19166                 slots on SH2e.
19167                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
19168                 cbranch with unfilled delay slot on SH2e.
19169                 (output_branch): Fill with a nop the delay slot of a
19170                 branch that required a delay slot but didn't get one.
19172         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
19174                 * doc/invoke.texi (SH options): Document -m2e.
19175                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
19176                 * config/sh/lib1funcs.asm: Likewise.
19177                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
19178                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
19179                 not __sh1__.
19180                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
19181                 SH2E up.
19182                 (SH3E_BIT): Renamed to...
19183                 (SH_E_BIT): ... this.  Replace all uses.
19184                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
19185                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
19186                 (TARGET_SWITCHES): Added 2e.
19187                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
19188                 (processor_type): Added PROCESSOR_SH2E.
19189                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
19190                 TARGET_SH2E, except in sqrtsf2_i.
19191                 (attribute cpu): Added sh2e.
19192                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
19193                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
19194                 * config.gcc: Add sh2e target support.
19196 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
19198         Rename -W to -Wextra.
19199         * c-decl.c:  Update comments.
19200         * c-typeck.c:  Likewise.
19201         * flags.h:  Likewise.
19202         * function.c:  Likewise.
19203         * stmt.c:  Likewise.
19204         * toplev.c:  Update comments.
19205         (W_options):  Add 'extra'.
19206         (display_help):  Remove '-W'.
19207         (decode_W_option):  Special warn_uninitialized treatment in the case
19208         of -Wextra.
19209         * doc/invoke.texi:  Update with new entries.
19211 2003-01-23  Richard Henderson  <rth@redhat.com>
19213         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
19214         in no-else-block case.  Add commentary.
19216 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19218         * configure.in: Revert last change.
19220 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19222         * configure.in: Don't include ansidecl.h in tconfig.h.
19223         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
19224         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
19225         ATTRIBUTE_UNUSED.
19227         * configure: Regenerate.
19229 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19231         PR java/6748
19232         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
19233         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
19234         kernels.
19236 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19238         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
19240 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
19242         * genattrtab.c (write_attr_get): Mark 'insn' paramter
19243         as ATTRIBUTE_UNUSED.
19245 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
19247         * arm.c (thumb_base_register_rtx_p): New function.
19248         (thumb_index_register_rtx_p): New function.
19249         (thumb_legitimate_address_p): New function.
19250         (thumb_legitimate_offset_p): New function.
19251         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
19252         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
19253         definitions.
19254         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
19255         (THUMB_LEGITIMATE_OFFSET): Delte.
19256         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
19257         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
19258         (thumb_legitimate_offset_p): Likewise.
19260 2003-01-23  Andreas Schwab  <schwab@suse.de>
19262         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
19264 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19266         * fixinc/Makefile.in (FL_LIST): Revert last change.
19268 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19270         PR other/7341
19271         * invoke.texi (ftest-coverage): Fix broken cross-reference.
19272         Change @code to @command for gcov command.
19274         * gcc.texi: Adjust title of gcov section.
19275         Adjust copyright.
19276         * gcov.texi: Likewise.
19278 2003-01-22  Roger Sayle  <roger@eyesopen.com>
19280         PR optimization/8423
19281         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
19282         its argument is constant, or 0 if !flag_gcse.
19283         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
19284         if it's argument is constant.
19285         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
19286         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
19287         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
19288         * builtins.c (purge_builtin_constant_p): New function to force
19289         instantiation of any remaining CONSTANT_P_RTX nodes.
19290         * rtl.h (purge_builtin_constant_p): Prototype here.
19291         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
19292         pass after GCSE and before loop.
19293         (flag_gcse): No longer static.
19294         * flags.h (flag_gcse): Prototype here.
19296 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
19298         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
19299         introduced by last change.
19301 2003-01-22  Andreas Schwab  <schwab@suse.de>
19303         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
19305 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
19307         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
19308         request a scratch reg on H8S when the shift count is 8.
19310 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
19312         * config/s390/s390-protos.h (preferred_la_operand_p):
19313         Remove second parameter.
19314         * config/s390/s390.c (preferred_la_operand_p): Likewise.
19315         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
19316         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
19317         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
19318         Add peepholes to transform ADD to LOAD ADDRESS.
19320 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
19322         * arm.c (arm_address_register_rtx_p): New function.
19323         (arm_legitimate_address_p): New function.
19324         (arm_legitimate_index_p): New function.
19325         (legitimize_pic_address): Use arm_legitimate_index_p.
19326         * arm-protos.h (arm_legtimate_address_p): Add prototype.
19327         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
19328         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
19330 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
19332         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
19333         * config/s390/2064.md (define_bypass): Correct 'Load' and
19334         'Load-address' bypass values.
19336 2003-01-22  Andreas Schwab  <schwab@suse.de>
19338         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
19340 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19342         * genautomata.c (output_internal_insn_latency_func,
19343         output_print_reservation_func): Short circuit when there is no
19344         automaton to generate code for.
19346 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19348         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
19349         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
19351 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
19353         * config/rs6000/rs6000.md: Remove warning.
19354         (builtin_setjmp_receiver): Likewise.
19355         * config/darwin.c (update_stubs): Slightly improve terrible hack
19356         with identifiers.  Add comment pointing out problems with it.
19357         (update_non_lazy_ptrs): Likewise.
19359 2003-01-21  Richard Henderson  <rth@redhat.com>
19361         * dwarf2out.c (lookup_filename): Fix printf format warning.
19362         * system.h (fread_unlocked, fwrite_unlocked): Undef.
19364         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
19365         (fixincl.o-warn, gnu-regex.o-warn): New.
19366         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
19367         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
19368         * fixinc/fixincl.c (process): Fix printf format warning.
19370 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
19372         * dwarf2out (output_file_names): Don't crash if called
19373         with empty file_table.
19375 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19377         * genautomata.c (output_internal_insn_latency_func): Add
19378         missing break statement to generated code.
19380 2003-01-21  Roger Sayle  <roger@eyesopen.com>
19382         * stmt.c (same_case_target_p): New function to determine whether
19383         two case labels branch to the same target.  Split out from...
19384         (group_case_nodes): ... here.  Use same_case_target_p instead.
19385         (strip_default_case_nodes): Remove explicit case nodes
19386         that branch to the default destination.
19387         (expand_end_case_type): Call strip_default_case_nodes after
19388         group_case_nodes, to simplify the case-list before we count it.
19389         Only generate table_label RTX when actually needed.  Try to share
19390         thiscase->exit_label and thiscase->data.case_stmt.default_label
19391         when a switch has no explicit default case.  Simplify test for
19392         constant index.
19394 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
19396         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
19397         \t.
19398         (*negsf2_h8300hs): Likewise.
19399         (*addsi3_lshiftrt_16_zexthi): Likewise.
19400         (*iorhi3_lshiftrt_8): Likewise.
19402 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
19404         * dwarf2out.c (fde_table_in_use): Mark GTY.
19405         (dwarf2out_cfi_label_num): New variable, marked GTY.
19406         (dwarf2out_cfi_label): Use it instead of static label_num.
19407         * emit-rtl.c (label_num): Mark GTY.
19409 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
19411         * config/h8300/h8300.c (output_plussi): Support H8/300.
19412         (compute_plussi_length): Likewise.
19413         (compute_plussi_cc): Likewise.
19414         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
19415         output assembly instructions.
19417 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19419         * calls.c (fix_unsafe_tree): Prototype.
19421         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
19422         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
19423         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
19424         c-parse.o-warn): Add -Wno-error.
19425         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
19427         * configure.in (--enable-werror): Add new flag.
19428         * doc/install.texi (--enable-werror): Document.
19429         * configure: Regenerate.
19431         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
19433 2003-01-21  Andreas Schwab  <schwab@suse.de>
19435         * genautomata.c (output_internal_insn_latency_func): Fix missing
19436         close paren in output.
19438 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19440         * genautomata.c: Space savings in generated code:
19441         (output_dfa_insn_code_func): Split out the table-enlargement
19442         path to an out-of-line static function, dfa_insn_code_enlarge.
19443         (output_internal_insn_latency_func): Use a lookup table for the
19444         default latencies.
19445         (output_print_reservation_func): Use a lookup table for the
19446         strings.
19448 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
19450         PR opt/7507
19451         * calls.c (fix_unsafe_tree): Split out from ...
19452         (expand_call): ... here.  Use it on the function address too.
19454 2003-01-20  Richard Henderson  <rth@redhat.com>
19456         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
19458 2003-01-20  Richard Henderson  <rth@redhat.com>
19460         PR opt/7154
19461         * stmt.c (expand_asm_operands): Validize memory operands.
19463 2003-01-20  Richard Henderson  <rth@redhat.com>
19465         PR opt/8848
19466         * ifcvt.c (noce_process_if_block): Correct arguments to
19467         modified_between_p for no-else-block case.
19469 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19471         * config/h8300/h8300.c (const_costs): Remove a warning.
19472         (output_plussi): Likewise.
19473         (compute_plussi_length): Likewise.
19474         (compute_plussi_cc): Likewise.
19476 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19478         * config/h8300/h8300.md (addsi_h8300): Remove the last
19479         alternative.
19481 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19483         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
19485 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19487         * system.h (__NO_STRING_INLINES): Define.
19489 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19491         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
19492         is not a scalar int mode.
19494 2003-01-20  Roger Sayle  <roger@eyesopen.com>
19496         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
19497         insn's notes following a substitution inside a libcall.
19499 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
19501         * configure.in: Check for system-provided 'uchar' type.
19502         * configure, config.in: Regenerate.
19503         * cpphash.h: Only typedef 'uchar' if the system doesn't.
19505 2003-01-20  Richard Henderson  <rth@redhat.com>
19507         * expr.h (MUST_PASS_IN_STACK): Move implementation...
19508         * calls.c (default_must_pass_in_stack): ... here.
19510 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
19512         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
19514         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
19516         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
19517         Wrap up definition of `insn_alts'.
19519         * genattrtab.c (main): Wrap up `insn_alts'.
19521 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19523         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
19524         prototyping.
19525         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
19527         * config.in, configure: Regenerate.
19529 2003-01-20  Nick Clifton  <nickc@redhat.com>
19531         * config/arm/arm.md (sibcall_epilogue): Add an
19532         UNSPEC_PROLOGUE_USE to prevent the link register from being
19533         considered dead.
19535 2003-01-20  Jan Hubicka  <jh@suse.cz>
19537         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
19539 2003-01-20  Andreas Schwab  <schwab@suse.de>
19541         * system.h: Don't declare strsignal if the decl test hasn't been
19542         run yet.
19544 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19546         * config/h8300/h8300.c (notice_update_cc): Don't assume that
19547         recog_data.operands[0] is always associated with cc0.
19549 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
19551         * collect2.c (ldgetname): Expand declaration to prototype.
19552         * read-rtl.c (atoll): Add prototype.
19553         * system.h (strsignal): Also declare if no declaration found.
19555 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
19557         * config.gcc (mips64*-*-linux*): Added.
19558         * config/mips/linux64.h, config/mips/t-linux64: New file.
19559         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
19560         * config/mips/mips.c (override_options): Use it.
19561         * config/mips/mips.h (TARGET_SWITCHES): Added...
19562         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
19563         * Makefile.in (SPECS): New.
19564         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
19565         * gcc.c (process_command): Move self-spec processing past spec
19566         file loading.
19567         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
19568         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
19569         CRTSTUFF_T_CFLAGS.
19570         (SPECS): Document.
19571         * doc/invoke.texi (-mabi-fake-default): Document.
19573 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
19575         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
19576         z_reg, z_reg_qi): Declare static and GTY().
19577         (da_reg): Remove.
19578         (create_regs_rtx): Don't create da_reg.
19579         ("gt-m68hc11.h"): Include for GTY roots.
19580         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
19581         and GTY() here.
19582         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
19583         (m68hc11_soft_tmp_reg): Likewise.
19584         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
19586 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
19588         * basic-block.h: Fix comment formatting.
19589         * calls.c: Likewise.
19590         * combine.c: Likewise.
19591         * convert.c: Likewise.
19592         * gcov.c: Likewise.
19593         * haifa-sched.c: Likewise.
19594         * libgcc2.c: Likewise.
19595         * loop.c: Likewise.
19596         * profile.c: Likewise.
19597         * system.h: Likewise.
19599 2003-01-18  Roger Sayle  <roger@eyesopen.com>
19601         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
19603 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19605         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
19607 2003-01-17  Dale Johannesen  <dalej@apple.com>
19609         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
19610           (*floatunssidf2_internal):  Ditto.
19612 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
19614         * alias.c: Fix comment typos.
19615         * basic-block.h: Likewise.
19616         * c-common.c: Likewise.
19617         * c-common.h: Likewise.
19618         * c-decl.c: Likewise.
19619         * c-opts.c: Likewise.
19620         * c-pragma.c: Likewise.
19621         * c-pretty-print.h: Likewise.
19622         * cfg.c: Likewise.
19623         * cfganal.c: Likewise.
19624         * cfgbuild.c: Likewise.
19625         * cfgcleanup.c: Likewise.
19626         * cfglayout.c: Likewise.
19627         * cfgrtl.c: Likewise.
19628         * convert.c: Likewise.
19629         * cpphash.h: Likewise.
19630         * cpplex.c: Likewise.
19631         * cpplib.h: Likewise.
19632         * df.h: Likewise.
19633         * diagnostic.c: Likewise.
19634         * diagnostic.h: Likewise.
19635         * dwarf2.h: Likewise.
19637 2003-01-17  Stan Shebs  <shebs@apple.com>
19639         * config/darwin-protos.h: Forward-declare struct cpp_reader.
19641 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
19643         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
19644         mistake in last checkin.
19646 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
19648         * et-forest.c: Fix comment typos.
19649         * et-forest.h: Likewise.
19650         * except.c: Likewise.
19651         * expr.c: Likewise.
19652         * flags.h: Likewise.
19653         * flow.c: Likewise.
19654         * gcc.c: Likewise.
19655         * gcse.c: Likewise.
19656         * genattrtab.c: Likewise.
19657         * genautomata.c: Likewise.
19658         * gengtype.c: Likewise.
19659         * genrecog.c: Likewise.
19660         * global.c: Likewise.
19661         * gthr-rtems.h: Likewise.
19663 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19665         * i386.c (x86_function_profiler): Fix format specifier.
19667 2003-01-17  Richard Henderson  <rth@redhat.com>
19669         * gengtype.c (walk_type): Allow paramN_is.
19671 2003-01-17  Nick Clifton  <nickc@redhat.com>
19673         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
19675 2003-01-16  Richard Henderson  <rth@redhat.com>
19677         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
19679 2003-01-16  Richard Henderson  <rth@redhat.com>
19681         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
19682         (alpha_next_sequence_number): Likewise.
19683         (alpha_this_literal_sequence_number): Likewise.
19684         (alpha_this_gpdisp_sequence_number): Likewise.
19685         (struct alpha_funcs, alpha_funcs_num): Likewise.
19686         (struct alpha_links): Fix branch merge error.
19687         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
19689 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
19691         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
19692         R. Ghazi.
19694 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
19696         * ifcvt.c: Fix comment typos.
19697         * lcm.c: Likewise.
19698         * libgcc2.c: Likewise.
19699         * local-alloc.c: Likewise.
19700         * loop.c: Likewise.
19701         * predict.c: Likewise.
19702         * ra-build.c: Likewise.
19703         * ra.c: Likewise.
19704         * ra-colorize.c: Likewise.
19705         * ra.h: Likewise.
19706         * ra-rewrite.c: Likewise.
19707         * regmove.c: Likewise.
19708         * reload.h: Likewise.
19709         * rtlanal.c: Likewise.
19710         * toplev.c: Likewise.
19711         * tree.h: Likewise.
19712         * unwind-dw2-fde-glibc.c: Likewise.
19713         * vmsdbgout.c: Likewise.
19715 2003-01-16  Richard Henderson  <rth@redhat.com>
19717         * dwarf2out.c (struct file_table): Remove.
19718         (FILE_TABLE_INCREMENT): Remove.
19719         (file_table): Make a varray; mark for GC.  Update all users.
19720         (file_table_last_lookup_index): Extract from struct file_table.
19721         (output_file_names): Fix unsigned compare warnings.
19722         (add_name_attribute): Remove inline marker.
19723         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
19724         (lookup_filename): Don't manage size of file_table.
19725         (init_file_table): Allocate file_table with GC.
19726         (dwarf2out_init): Don't record main_input_filename here.
19727         (dwarf2out_finish): Do it here instead.
19729 2003-01-16  Bruce Korb  <bkorb@gnu.org>
19731         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
19733 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
19735         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
19736         instead of rotldi3_mextr.
19738 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
19740         * haifa-sched.c (move_insn): Restore moving all schedule group.
19741         (set_priorities): Restore taking SCHED_GROUP_P into account.
19743         * sched-deps.c (add_dependence): Restore processing the last group
19744         insn.
19745         (remove_dependence, group_leader): Restore the functions.
19746         (set_sched_group_p): Restore adding dependencies from previous insn
19747         in the group.
19748         (compute_forward_dependences): Restore usage of group_leader.
19750         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
19751         account.
19753         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
19754         account.
19755         (can_schedule_ready_p): Ditto.
19756         (add_branch_dependences): Restore skipping over the group insns.
19758 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
19760         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
19761         68HC12 pre/post inc/dec side effects.
19763 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
19765         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
19767 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
19769         * sh.md (mshflo_w_x): Fix description of operation.
19771 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
19773         * config/rs6000/rs6000.h: Mention Altivec registers in
19774         commentary.  Fix typo.
19776 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
19778         * config/rs6000/rs6000.md (movti_string): Remove clobber.
19779         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
19780         generate PARALLEL with clobber for TARGET_POWER.
19782 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19784         * ra-colorize.c (colorize_one_web): Initialize variable.
19785         * regmove.c (fixup_match_1): Likewise.
19786         * reload1.c (reload_as_needed): Likewise.
19787         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
19789 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19791         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
19793 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19795         * dbxout.c (lastfile, cwd): Fix `unused' warning.
19796         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
19797         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
19798         is_main_source, file_table, decl_die_table_in_use,
19799         abbrev_die_table_in_use, line_info_table_in_use,
19800         separate_line_info_table_in_use, pubname_table_in_use,
19801         arange_table_in_use, ranges_table_in_use,
19802         current_function_has_inlines): Likewise.
19803         * flow.c (life_analysis): Likewise.
19804         * genemit.c (gen_insn): Likewise.
19805         * protoize.c (cplus_suffix): Likewise.
19807         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
19808         * arm.h (ROUND_UP_WORD): Likewise.
19810         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
19811         warning.
19812         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
19813         init_emit_once): Likewise.
19814         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
19815         Likewise.
19816         * function.c (assign_stack_temp_for_type): Likewise.
19817         * loop.c (loop_invariant_p): Likewise.
19818         * recog.c (push_operand): Likewise.
19819         * regclass.c (init_reg_sets_1): Likewise.
19820         * reload.c (update_auto_inc_notes): Likewise.
19821         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
19822         * stmt.c (expand_asm_operands): Likewise.
19823         * stor-layout.c (start_record_layout): Likewise.
19825 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
19827         * config/c4x/c4x.md (epilogue): Correct last patch.
19829 2003-01-15  Richard Henderson  <rth@redhat.com>
19831         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
19832         also check that GP is being used.
19833         (alpha_find_lo_sum_using_gp): New.
19834         (alpha_does_function_need_gp): Use get_attr_usegp.
19835         * config/alpha/alpha-protos.h: Update.
19836         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
19837         as needed.
19839 2003-01-15  Roger Sayle  <roger@eyesopen.com>
19841         * gcse.c (one_cprop_pass): Change function arguments to take both
19842         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
19843         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
19844         (bypass_jumps): New function to perform separate jump bypassing pass.
19845         * rtl.h (bypass_jumps): Add function prototype.
19846         * timevar.def (TV_BYPASS): New timing variable.
19847         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
19848         (dump_file): New entry for the bypass RTL dump file.
19849         (rest_of_compilation): Insert new jump bypassing optimization
19850         pass after loop.
19851         * doc/passes.texi: Document new pass.
19853 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19855         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
19856         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
19857         * pa.h (TARGET_SOM_SDEF): Define.
19858         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
19860 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
19862         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
19863         allocate 4-bytes of locals on 68HC11.
19864         (expand_epilogue): Likewise.
19865         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
19867 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
19869         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
19870         and -mshort-double to the assembler to specify the ABI.
19871         (LINK_SPEC): Likewise.
19872         (CPP_SPEC): Pass HCS12 specific define.
19873         (MASK_M68S12): New define.
19874         (TARGET_M68S12): Likewise.
19875         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
19876         (TARGET_VERSION): Update.
19877         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
19878         (LINK_SPEC): Update.
19879         (ASM_SPEC): Update.
19880         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
19881         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
19883 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
19885         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
19886         the return code.
19888 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
19890         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
19891         flag before setting it.
19893 2003-01-15  Roger Sayle  <roger@eyesopen.com>
19895         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
19896         when loop condition is known true, i.e.  "while (1) { ... }".
19897         (genrtl_for_stmt): Similarly for "for" statements.
19899 2003-01-15  Roger Sayle  <roger@eyesopen.com>
19901         * real.c (real_sqrt): Return a bool result indicating whether
19902         a floating point exception or trap should be raised.
19903         * real.h (real_sqrt): Update function prototype.
19904         * builtins.c (fold_builtin): Only fold non-trapping square
19905         roots unless we're ignoring errno and trapping math.
19907 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
19909         * expr.h (emit_conditional_add): Add PARAMS to declaration.
19910         * gengtype-lex.l (malloc, realloc): Move defines after include of
19911         system.h.  Remove duplicate include of system.h.
19913 2003-01-15  Roger Sayle  <roger@eyesopen.com>
19915         PR middle-end/9009
19916         * optabs.c (expand_unop):  When manipulating the FP sign bit
19917         using integer operations, account for targets with different
19918         integer and FP word orders.
19919         (expand_abs): Likewise.
19921 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
19923         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
19924         file extension in section name.
19926 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
19928         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
19929         constant offset.
19931 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
19933         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
19934         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
19935         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
19936         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
19938 2003-01-15  Jan Hubicka  <jh@suse.cz>
19940         PR f/9258
19941         * global.c (struct allocno): Add no_stack_reg.
19942         (global_conflicts): Set no_stack_reg.
19943         (find_reg): Use it.
19945         * convert.c (convert_to_real): Fold - and abs only when profitable.
19946         * fold-const.c (fold): Fold truncates in - and abs.
19948 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
19950         Segher Boessenkool  <segher@koffie.nl>
19952         * predict.c (real_inv_br_prob_base): New variable.
19953         (propagate_freq): Use multiply by reciprocal instead of
19954         division.  Don't divide by 1.0 at all.
19955         (estimate_bb_frequencies): Similar.
19957 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
19959         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
19960         * configure: Rebuilt.
19962 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
19964         * config/s390/s390.c (s390_safe_attr_type): New function.
19965         (s390_use_dfa_pipeline_interface): New function, return true for z900.
19966         (s390_issue_rate): New function.
19967         (s390_agen_dep_p): New function.
19968         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
19969         (s390_adjust_cost): Return 'cost' if new DFA is used.
19970         (s390_adjust_priority): Delete function.
19971         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
19972         * config/s390/s390.md (atype attribute): Attribute 'atype' default
19973         determined by 'op_type'.
19974         (type attribute): Added more type attributes.
19975         * config/s390/2064.md: New DFA description for z900 pipeline.
19977 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
19979         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
19980         forced to memory.  Fixes PR bootstrap/9036.
19982         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
19983         to set $gp before the call.
19985 2003-01-14  Richard Henderson  <rth@redhat.com>
19987         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
19988         for force_const_mem.
19990 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19992         * genattr.c (main): Rearrange output to avoid prototype warning.
19993         * genautomata.c (transform_3): Fix ambiguous-else warning.
19994         * local-alloc.c (requires_inout): Add parentheses around
19995         assignment used as truth-value.
19996         * timevar.c: Move system includes above local includes.  Include
19997         toplev.h
19998         * Makefile.in (timevar.o): Depend on toplev.h.
20000 2003-01-14  Denis Chertykov  <denisc@overta.ru>
20002         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
20003         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
20005         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
20006         attributes.
20007         (TARGET_ATTRIBUTE_TABLE): New macro.
20008         (valid_machine_type_attribute): Remove.
20009         (valid_machine_decl_attribute): Remove.
20010         (ip2k_handle_progmem_attribute): New function.
20011         (ip2k_handle_fndecl_attribute): New function.
20013 2003-01-10  Andrew Haley  <aph@redhat.com>
20015         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
20016         registers to be in correct order.  Add rip.
20018 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
20020         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
20021         (*iorsi3_and_lshiftrt_9_sb): Likewise.
20023 2003-01-14  Jan Hubicka  <jh@suse.cz>
20025         * convert.c (strip_float_extensions):  Look for narrowest type handling
20026         FP constants.
20028         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
20029         float1 CMP float2.
20030         * convert.c (strip_float_extensions): Make global.
20031         * tree.h (strip_float_extensions): Declare.
20033 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20035         * timevar.def: define TV_NAME_LOOKUP.
20036         * timevar.c (timevar_pop): Be verbose when aborting.
20038 2003-01-13  Andreas Schwab  <schwab@suse.de>
20040         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
20041         $(parsedir), just move the temporary file at the end.
20042         ($(parsedir)/gengtype-yacc.c): Likewise.
20044 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
20046         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
20047         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
20048         splitting.
20049         * configure: Rebuilt.
20051 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20053         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
20054         internal_mcount): Don't use PARAMS.
20055         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
20056         ISO C style.
20057         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
20059 2003-01-13  Andreas Schwab  <schwab@suse.de>
20061         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
20062         directive.
20064 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
20066         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
20067         (*iorsi3_and_lshiftrt_n_sb): Likewise.
20069 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
20071         PR c++/9264
20072         * c-lex.c (c_lex): Set the token value to error_mark_node for
20073         invalid numeric constants.
20075 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20077         * c-pch.c (asm_file_startpos): Change to `long'.
20078         (pch_init): Use ftell, not ftello.
20079         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
20080         Use `long' instead of `off_t'.
20081         (c_common_read_pch): Likewise.
20082         * ggc-common.c (gt_pch_save): Use long/ftell instead of
20083         off_t/ftello.
20085 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
20087         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
20089 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
20091         * arm-protos.h (struct cpp_reader): Add declaration.
20093 2003-01-11  Jan Hubicka  <jh@suse.cz>
20095         PR target/9068
20096         * i386.c (output_fp_compare): Fix typo.
20098 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
20100         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
20102 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
20104         * Makefile.in (parsedir): New variable.
20105         (docobjdir): New variable.
20106         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
20107         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
20108         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
20109         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
20110         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
20111         Use docobjdir.
20112         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
20113         objc.maintainer-clean): Use parsedir.
20115         * varasm.c (struct constant_descriptor_rtx): Remove unused
20116         `label' field.
20118         * toplev.c (documented_lang_options): Document -Winvalid-pch.
20120 2003-01-10  Richard Henderson  <rth@redhat.com>
20122         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
20123         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
20125 2003-01-10  Richard Henderson  <rth@redhat.com>
20127         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
20128         not INTEGRAL_MODE_P when widening extensions.
20130 2003-01-10  Richard Henderson  <rth@redhat.com>
20132         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
20134 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
20136         * ggc-page.c (ggc_collect): Avoid overflow computing
20137         min_expand.
20139         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
20140         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
20141         Remove calls.
20142         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
20144 2003-01-10  Jan Hubicka  <jh@suse.cz>
20146         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
20147         with weird operands.
20149 2003-01-10  Dale Johannesen <dalej@apple.com>
20151         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
20152         parameters.  Call check_sibcall_argument_overlap if indicated.
20153         (check_sibcall_argument_overlap):  Add mark_stored_args_map
20154         parameter.  Don't mark parameter area as clobbered if not set.
20155         (expand_call):  Adjust calls to above.
20157 2003-01-10 Kelley Cook <kelleycook@comcast.net>
20159         * configure.in (linker read-only and read-write section mixing):
20160         Squelch some assembler warnings.
20161         * configure: Likewise.
20163 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
20165         * doc/invoke.texi: Document -mtune, delete -mcpu
20166         option for S/390 and zSeries.
20167         * config/s390/s390.c (s390_tune_string) New variable.
20168         (s390_cpu_string) Delete variable.
20169         (override_options): Use s390_tune_string instead of
20170         s390_cpu_string.
20171         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
20173 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
20175         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
20177 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
20179         * jump.c (next_nonnote_insn_in_loop): New function.
20180         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
20181         next_nonnote_insn.
20182         (duplicate_loop_exit_test). Likewise.
20184 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
20186         Merge from pch-branch:
20188         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
20190         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
20191         load.
20193         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
20195         * cpplib.c (count_registered_pragmas): New function.
20196         (save_registered_pragmas): New function.
20197         (_cpp_save_pragma_names): New function.
20198         (restore_registered_pragmas): New function.
20199         (_cpp_restore_pragma_names): New function.
20200         * cpphash.h (_cpp_save_pragma_names): Prototype.
20201         (_cpp_restore_pragma_names): Likewise.
20202         * cpppch.c (struct save_macro_item): Split from save_macro_data.
20203         (struct save_macro_data): New field 'saved_pragmas'.
20204         (save_macros): Update for changes to struct save_macro_data.
20205         (cpp_prepare_state): Call _cpp_save_pragma_names, update
20206         for changes to struct save_macro_data.
20207         (cpp_read_state): Call _cpp_restore_pragma_names, update
20208         for changes to struct save_macro_data.
20210         * cpppch.c (cpp_read_state): Restore the hashtable references
20211         in the cpp_reader.
20213         * tree.h (built_in_decls): Mark for PCH.
20215         * dbxout.c (lastfile): Don't mark for PCH.
20217         * ggc.h: Document PCH calls into memory managers.
20219         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
20221         * doc/invoke.texi (Precompiled Headers): Document the
20222         directory form of PCH.
20223         * cppfiles.c (validate_pch): New function.
20224         (open_file_pch): Search suitably-named directories for PCH files.
20226         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
20228         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
20229         reorder options.
20230         (Type Information): Mention that the information is also
20231         used to implement PCH.
20232         * doc/passes.texi (Passes): Improve documentation of
20233         language-specific files.
20235         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
20237         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
20238         (struct walk_type_data): Add reorder_fn field.
20239         (walk_type): Process 'reorder' option.
20240         (write_types_process_field): Reorder parameters to gt_pch_note_object,
20241         call reorder_note_routine.
20242         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
20243         (ggc_wtd): Update for change to struct write_types_data.
20244         (pch_wtd): Likewise.
20245         * ggc.h (gt_pch_note_object): Reorder parameters.
20246         (gt_handle_reorder): New definition.
20247         (gt_pch_note_reorder): New prototype.
20248         * ggc-common.c (struct ptr_data): Add reorder_fn.
20249         (gt_pch_note_object): Reorder parameters.
20250         (gt_pch_note_reorder): New.
20251         (gt_pch_save): Call reorder_fn.
20252         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
20254         * dbxout.c (cwd): Don't mark for PCH.
20256         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
20258         * gengtype.c (finish_root_table): Fix some warnings.
20259         (write_root): Handle TYPE_STRING.
20260         * ggc.h (gt_ggc_m_S): Add prototype.
20261         * stringpool.c (gt_ggc_m_S): New function.
20263         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
20265         * dwarf2out.c (dw2_string_counter): New.
20266         (AT_string_form): Use it.
20267         (same_dw_val_p): Update for removal of hashtable.h hash tables.
20269         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
20271         * dbxout.c: Include gt-dbxout.h.
20272         (lastfile): Mark for PCH/GGC.
20273         (cwd): Likewise.
20274         (struct typeinfo): Likewise.
20275         (typevec): Likewise.
20276         (typevec_len): Likewise.
20277         (next_type_number): Likewise.
20278         (struct dbx_file): Likewise.
20279         (current_file): Likewise.
20280         (next_file_number): Likewise.
20281         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
20282         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
20283         (dbxout_end_source_file): Don't free struct dbx_file.
20284         (dbxout_type): Use GGC to allocate typevec.
20285         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
20286         (GTFILES): Add dbxout.c.
20287         (gt-dbxout.h): New rule.
20289         * Makefile.in (c-pch.o): Add debug.h as dependency.
20290         * c-pch.c: Include debug.h.
20291         (pch_init): Call start_source_file to keep nesting right.
20292         (c_common_read_pch): Add orig_name parameter.  Call
20293         start_source_file debug hook.  Call end_source_file debug hook.
20294         * c-common.h (c_common_read_pch): Update prototype.
20295         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
20296         callback.
20297         * cppfiles.c (struct include_file): Add new field `header_name'.
20298         (find_or_create_entry): Default it to `name'.
20299         (open_file_pch): Set it to the original header file searched for.
20300         (stack_include_file): Don't stack an empty buffer, just handle
20301         PCH files immediately.  Pass header_name field to read_pch callback.
20303         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
20305         * function.c (funcdef_no): Mark to be saved in a PCH.
20307         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
20309         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
20311         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
20313         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
20315         * optabs.h (code_to_optab): Add GTY marker.
20317         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
20319         * Makefile.in (GTFILES): Add cpplib.h.
20320         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
20321         * c-decl.c (build_compound_literal): Don't use var_labelno.
20322         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
20323         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
20324         * varasm.c (const_labelno): Use gengtype to mark.
20325         (var_labelno): Likewise.
20326         (in_section): Likewise.
20327         (in_named_name): Likewise.
20328         (struct in_named_entry): Likewise.
20329         (in_named_htab): Likewise.
20330         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
20331         (init_varasm_once): Use GGC to allocate in_named_htab.
20332         * config/darwin.c (current_pic_label_num): Mark for PCH.
20334         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
20336         * ggc-simple.c (init_ggc_pch): New stub procedure.
20337         (ggc_pch_count_object): Likewise.
20338         (ggc_pch_total_size): Likewise.
20339         (ggc_pch_this_base): Likewise.
20340         (ggc_pch_alloc_object): Likewise.
20341         (ggc_pch_prepare_write): Likewise.
20342         (ggc_pch_write_object): Likewise
20343         (ggc_pch_finish): Likewise.
20344         (ggc_pch_read): Likewise.
20346         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
20348         * c-pch.c (c_common_write_pch): Write the macro definitions after
20349         the GCed data.
20350         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
20351         definitions after the GCed data.
20352         * cpplib.c (save_macros): New.
20353         (reset_ht): New.
20354         (cpp_write_pch_deps): Split out of cpp_write_pch.
20355         (cpp_write_pch_state): Split out of cpp_write_pch.
20356         (cpp_write_pch): Delete.
20357         (struct save_macro_data): Delete.
20358         (cpp_prepare_state): New.
20359         (cpp_read_state): Erase and restore initial macro definitions.
20360         * cpplib.h (struct save_macro_data): Forward-declare.
20361         (cpp_write_pch_deps): Prototype.
20362         (cpp_write_pch_state): Prototype.
20363         (cpp_write_pch): Delete prototype.
20364         (cpp_prepare_state): Prototype.
20365         (cpp_read_state): Add fourth argument.
20367         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
20369         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
20370         (write_array): Remove warning.
20372         * gengtype.c (contains_scalar_p): New.
20373         (finish_root_table): Add the table to all languages, even if it's
20374         empty.
20375         (write_roots): Output gt_pch_scalar_rtab.
20376         * ggc-common.c (gt_pch_save): Write out scalars.
20377         (gt_pch_restore): Read scalars back.
20379         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
20380         (struct page_entry): Delete pch_page field.
20381         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
20382         (clear_marks): Likewise.
20383         (sweep_pages): Likewise.
20384         (poison_pages): Likewise.
20385         (ggc_print_statistics): Likewise.
20386         (ggc_pch_read): Don't free objects read from a PCH.
20387         Properly set up in_use_p and page_tails.
20389         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
20391         * gengtype.c (struct write_types_data): New.
20392         (struct walk_type_data): Make `cookie' const; add extra
20393         prev_val item; add `orig_s' field.
20394         (walk_type): Update prev_val[3].
20395         (write_types_process_field): New.
20396         (write_func_for_structure): Take write_types_data structure.
20397         (write_types): New.
20398         (ggc_wtd): New.
20399         (pch_wtd): New.
20400         (write_types_local_process_field): New.
20401         (gc_mark_process_field): Delete.
20402         (write_local_func_for_structure): New.
20403         (gc_mark_func_name): Delete.
20404         (write_gc_types): Delete.
20405         (write_local): New.
20406         (finish_root_table): Don't include 'ggc_' in PFX.
20407         (write_root): Rename from write_root.  Fill pchw field of structures.
20408         (write_array): New.
20409         (write_roots): Rename from write_gc_roots.  Split out to write_array.
20410         Update to changes to other routines.  Write gt_pch_cache_rtab table.
20411         (main): Write PCH walking routines.
20412         * ggc-common.c: Include toplev.h, sys/mman.h.
20413         (ggc_mark_roots): For cache hashtables, also mark the hash table
20414         and the array of entries.
20415         (saving_htab): New.
20416         (struct ptr_data): New.
20417         (POINTER_HASH): New.
20418         (gt_pch_note_object): New.
20419         (saving_htab_hash): New.
20420         (saving_htab_eq): New.
20421         (struct traversal_state): New.
20422         (call_count): New.
20423         (call_alloc): New.
20424         (compare_ptr_data): New.
20425         (relocate_ptrs): New.
20426         (write_pch_globals): New.
20427         (struct mmap_info): New.
20428         (gt_pch_save): New.
20429         (gt_pch_restore): New.
20430         * ggc-page.c (ROUND_UP_VALUE): New.
20431         (ROUND_UP): New.
20432         (struct page_entry): Add field `pch_page'.
20433         (init_ggc): Use ROUND_UP.
20434         (struct ggc_pch_data): Declare.
20435         (init_ggc_pch): New.
20436         (ggc_pch_count_object): New.
20437         (ggc_pch_total_size): New.
20438         (ggc_pch_this_base): New.
20439         (ggc_pch_alloc_object): New.
20440         (ggc_pch_prepare_write): New.
20441         (ggc_pch_write_object): New.
20442         (ggc_pch_finish): New.
20443         (ggc_pch_read): New.
20444         * ggc.h (gt_pointer_operator): New.
20445         (gt_note_pointers): New.
20446         (gt_pch_note_object): New prototype.
20447         (gt_pointer_walker): New.
20448         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
20449         (LAST_GGC_ROOT_TAB): Update.
20450         (gt_pch_cache_rtab): Declare.
20451         (gt_pch_scalar_rtab): Declare.
20452         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
20453         (LAST_GGC_CACHE_TAB): Update.
20454         (gt_pch_save_stringpool): Declare.
20455         (gt_pch_restore_stringpool): Declare.
20456         (gt_pch_p_S): Declare.
20457         (gt_pch_n_S): Declare.
20458         (struct ggc_pch_data): Forward-declare.
20459         (init_ggc_pch): Declare.
20460         (ggc_pch_count_object): Declare.
20461         (ggc_pch_total_size): Declare.
20462         (ggc_pch_this_base): Declare.
20463         (ggc_pch_alloc_object): Declare.
20464         (ggc_pch_prepare_write): Declare.
20465         (ggc_pch_write_object): Declare.
20466         (ggc_pch_finish): Declare.
20467         (ggc_pch_read): Declare.
20468         (gt_pch_save): Declare.
20469         (gt_pch_restore): Declare.
20470         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
20471         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
20472         const_double_htab, mem_attrs_htab using GGC.
20473         * c-pch.c: Include ggc.h.
20474         (pch_init): Allow reading PCH file back.
20475         (c_common_write_pch): Call gt_pch_save.
20476         (c_common_read_pch): Call gt_pch_restore.
20477         * c-parse.in (init_reswords): Delete now-untrue comment.
20478         Allocate ridpointers using GGC.
20479         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
20480         calling expand_deferred_fns.
20481         * c-common.h (ridpointers): Mark for GTY machinery.
20482         * Makefile.in (stringpool.o): Update dependencies.
20483         (c-pch.o): Update dependencies.
20484         (ggc-common.o): Update dependencies.
20485         * stringpool.c: Include gt-stringpool.h.
20486         (gt_pch_p_S): New.
20487         (gt_pch_n_S): New.
20488         (struct string_pool_data): New.
20489         (spd): New.
20490         (gt_pch_save_stringpool): New.
20491         (gt_pch_restore_stringpool): New.
20492         * tree.c (init_ttree): Make type_hash_table allocated using GC.
20494         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
20496         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
20497         (output_mangled_typename): Don't pass size_t to printf.
20499         * tree.h (union tree_type_symtab): Add tag to `address' field.
20500         (union tree_decl_u2): Add tag to 'i' field.
20501         * varasm.c (union rtx_const_un): Add tags to all fields.
20502         * gengtype.c (struct walk_type_data): New.
20503         (output_escaped_param): Take struct walk_type_data parameter.
20504         (write_gc_structure_fields): Delete.
20505         (walk_type): New.
20506         (write_gc_marker_routine_for_structure): Delete.
20507         (write_func_for_structure): New.
20508         (gc_mark_process_field): New.
20509         (gc_mark_func_name): New.
20510         (gc_counter): Delete.
20511         (write_gc_types): Use write_func_for_structure.
20512         (write_gc_roots): Use walk_type.
20514         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
20516         * ggc-common.c (ggc_mark_roots): Delete 'x'.
20517         (ggc_splay_dont_free): Fix warning about unused 'x'.
20518         (ggc_print_common_statistics): Remove warnings.
20520         2002-10-01  Mike Stump  <mrs@apple.com>
20522         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
20523         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
20525         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
20526             Catherine Moore  <clm@redhat.com>
20528         * Makefile (c-pch.o): Update dependencies.
20529         (LIBCPP_OBJS): Add cpppch.o.
20530         (cpppch.o): New.
20531         * c-common.c (c_common_init): Don't call pch_init here.
20532         * c-common.h (c_common_read_pch): Update prototype.
20533         * c-lex.c (c_common_parse_file): Call pch_init here.
20534         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
20535         (c_common_decode_option): Handle them.
20536         * c-pch.c: Include c-pragma.h.
20537         (save_asm_offset): Delete.
20538         (pch_init): Move contents of save_asm_offset into here, call
20539         cpp_save_state.
20540         (c_common_write_pch): Call cpp_write_pch.
20541         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
20542         cpp_valid_state.
20543         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
20544         * cppfiles.c (stack_include_file): Update for change to
20545         parameters of cb.read_pch.
20546         * cpphash.h (struct cpp_reader): Add `savedstate' field.
20547         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
20548         `restore_pch_deps' fields.
20549         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
20550         (cpp_save_state): Prototype.
20551         (cpp_write_pch): Prototype.
20552         (cpp_valid_state): Prototype.
20553         (cpp_read_state): Prototype.
20554         * cpppch.c: New file.
20555         * flags.h (version_flag): Remove prototype.
20556         * mkdeps.c (deps_save): New.
20557         (deps_restore): New.
20558         * mkdeps.h (deps_save): Prototype.
20559         (deps_restore): Prototype.
20560         * toplev.c (late_init_hook): Delete.
20561         (version_flag): Make static again.
20562         (compile_file): Don't call late_init_hook.
20563         * toplev.h (late_init_hook): Delete.
20564         * doc/cppopts.texi: Document -fpch-deps.
20565         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
20567         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
20569         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
20570         callers.
20571         (c_common_valid_pch): Rename from c_valid_pch, change callers.
20572         (c_common_read_pch): Rename from c_read_pch, change callers.
20574         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
20575         a space between it and its argument.
20577         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
20579         * c-pch.c: New file.
20580         * toplev.h (late_init_hook): Declare.
20581         * toplev.c (late_init_hook): Define.
20582         (version_flag): Make globally visible.
20583         (compile_file): Call late_init_hook.
20584         (init_asm_output): Make output file seekable.
20585         * gcc.c (default_compilers): Update c-header rule.
20586         * flags.h (version_flag): Declare.
20587         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
20588         fields.
20589         * cppfiles.c (struct include_file): Add 'pch' field.
20590         (INCLUDE_PCH_P): New.
20591         (open_file_pch): New.
20592         (stack_include_file): Handle PCH files specially.
20593         (find_include_file): Call open_file_pch instead of open_file.
20594         (_cpp_read_file): Explain why open_file is used instead of
20595         open_file_pch.
20596         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
20597         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
20598         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
20599         in cpplib callbacks.
20600         * c-common.c (pch_file): Correct comment.
20601         (allow_pch): Define.
20602         (c_common_init): Call pch_init.
20603         * c-common.h (allow_pch): Declare.
20604         (pch_init): Declare.
20605         (c_valid_pch): Declare.
20606         (c_read_pch): Declare.
20607         (c_write_pch): Declare.
20608         * Makefile.in (c-pch.o): New.
20609         (C_AND_OBJC_OBJS): Add c-pch.o.
20610         * doc/invoke.texi (Precompiled Headers): Add index entries,
20611         complete truncated paragraph.
20613         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
20615         * c-common.c: (pch_file): Define.
20616         * c-common.h (pch_file): Declare.
20617         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
20618         (missing_arg): Require --output-pch= to have an argument.
20619         (c_common_decode_option): Handle --output-pch=.
20620         * gcc.c: Document new %V.
20621         (default_compilers): Handle compiling C header files.
20622         (do_spec_1): Implement %V.
20623         (main): Handle "gcc foo.h" without trying to run linker.
20624         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
20625         (Overall Options): Document what the driver does with header files,
20626         document new -x option possibilities.
20627         (Invoking G++): More documentation for PCH.
20628         (Precompiled Headers): New.
20630         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
20632         * ggc.h: Don't include varray.h.  Rearrange functions to be more
20633         organized.
20634         (ggc_add_root): Delete.
20635         (ggc_mark_rtx): Delete.
20636         (ggc_mark_tree): Delete.
20637         (struct ggc_statistics): Remove contents.
20638         * ggc-common.c: Remove unneeded includes.
20639         (struct ggc_root): Delete.
20640         (roots): Delete.
20641         (ggc_add_root): Delete.
20642         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
20643         (ggc_print_common_statistics): Remove most of the contents.
20644         * Makefile.in (GGC_H): No longer uses varray.h.
20645         (ggc-common.o): Update dependencies.
20646         (c-parse.o): Add varray.h to dependencies.
20647         (c-common.o): Add varray.h.
20648         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
20649         (mark_ident_hash): Rename to ggc_mark_stringpool.
20650         (init_stringpool): Don't use ggc_add_root.
20651         * c-parse.in: Include varray.h.
20652         * c-common.c: Include varray.h.
20653         * objc/Make-lang.in (objc-act.o): Add varray.h.
20654         * objc/objc-act.c: Include varray.h.
20656         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
20658         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
20659         (dw_cfi_oprnd1_desc): Likewise.
20661         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
20663         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
20664         move out of ifdef.
20665         (alpha_links): Use gengtype to mark; move out of ifdef.
20666         (mark_alpha_links_node): Delete.
20667         (mark_alpha_links): Delete.
20668         (alpha_need_linkage): Use GGC to allocate splay tree, struct
20669         alpha_links, strings.  Don't use ggc_add_root.
20670         * ggc-common.c (ggc_splay_alloc): New.
20671         (ggc_splay_dont_free): New.
20672         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
20673         (ggc_mark_tree): Likewise.
20674         (splay_tree_new_ggc): New.
20675         (ggc_splay_alloc): Declare.
20676         (ggc_splay_dont_free): Declare.
20677         * dwarf2asm.c: Include gt-dwarf2asm.h.
20678         (mark_indirect_pool_entry): Delete.
20679         (mark_indirect_pool): Delete.
20680         (indirect_pool): Use gengtype to mark.
20681         (dw2_force_const_mem): Don't use ggc_add_root.
20682         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
20683         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
20684         (gt-dwarf2asm.h): Depend on s-gtype.
20686         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
20688         * tree.h (union tree_type_symtab): Mark `die' field.
20689         * Makefile.in (dwarf2out.o): Update dependencies.
20690         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
20691         hash tables.
20692         (dw_cfi_oprnd1_desc): New function.
20693         (dw_cfi_oprnd2_desc): New function.
20694         (indirect_string_alloc): Delete.
20695         (debug_str_do_hash): New function.
20696         (debug_str_eq): New function.
20697         (mark_limbo_die_list): Delete.
20698         (dwarf2out_init): Don't call ggc_add_root.
20700 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
20702         The following changes are merged from itanium-sched-branch:
20704         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
20706         * doc/md.texi: Clarify assignment of units to automata description.
20708         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
20710         * genautomata.c (unit_decl): Remove members
20711         `the_same_automaton_unit' and
20712         `the_same_automaton_message_reported_p'.
20713         (process_unit_to_form_the_same_automaton_unit_lists,
20714         form_the_same_automaton_unit_lists_from_regexp,
20715         form_the_same_automaton_unit_lists, the_same_automaton_lists):
20716         Remove them.
20717         (annotation_message_reported_p): New global variable.
20718         (check_unit_distribution_in_reserv,
20719         check_regexp_units_distribution): New functions.
20720         (check_unit_distributions_to_automata): Rewrite it.
20722         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
20724         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
20725         Use continue instead of break if cycle is too big.
20727         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
20729         * genautomata.c (check_unit_distributions_to_automata): Output at
20730         most one message for a unit.
20731         (process_unit_to_form_the_same_automaton_unit_lists): Check
20732         automaton of units instead of units themself.
20734         * doc/md.texi: Describe the constraint about assigning unit to
20735         automata.
20737         2002-12-20  Jan Hubicka  <jH@suse.cz>
20738                     Vladimir Makarov  <vmakarov@redhat.com>
20740         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
20741         and `in_set_p'.
20742         (gen_cpu_unit): Initialize the new members.
20743         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
20744         up `min_occ_cycle_num'.
20745         (evaluate_max_reserv_cycles): Change the function call.
20746         (CLEAR_BIT): New macro.
20747         (states_union, state_shift): Use the mask.
20748         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
20749         (form_reservs_matter): New function.
20750         (make_automaton): Call the function and use the mask.
20751         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
20752         account.
20754         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20756         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
20758         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20760         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
20761         for Itanium.
20763         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20765         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
20766         default cpu.
20768         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
20769                 2002-10-31  Dale Johannesen <dalej@apple.com>
20771         * haifa-sched.c (find_set_reg_weight): New function.
20772         (find_insn_reg_weight): Use the new function.
20773         (schedule_block): Do sorting ready queue always
20774         after insn issue.
20776         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
20778         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
20780         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
20782         * haifa-sched.c (choice_entry): New structure.
20783         (choice_stack, cycle_issued_insns): New variables.
20784         (max_issue): Rewrite it.
20785         (choose_ready): Set up ready_try for unknown insns too.
20786         (schedule_block): Allocate and free choice_stack.  Set up
20787         and modify cycle_issued_insns.
20789         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
20790         with and without filling the bundle.
20791         (bundling): Combine calls of issue_nops_and_insn.
20793         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
20795         * config/ia64/itanium1.md: New file.
20797         * config/ia64/itanium2.md: New file.
20799         * config/ia64/ia64.md: Move DFA descriptions into the new files.
20800         Remove the old pipeline description.
20802         * config/ia64/ia64.c (ia64_override_options): Add aliases of
20803         itanium processor names.
20805         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
20807         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
20808         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
20810         * config/ia64/ia64.md: Add descriptions for Itanium2.
20812         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
20814         * config/ia64/ia64.h (processor_type): New enumeration.
20815         (ia64_tune, ia64_tune_string): New external declarations.
20816         (TARGET_OPTIONS): Add option `tune='.
20818         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
20819         variables.
20820         (ia64_override_options): Set up `ia64_tune'.
20821         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
20822         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
20823         (bundling): Add nops for MM-insns only for Itanium.
20824         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
20825         Itanium.
20827         * config/ia64/ia64.md (cpu): New attribute.
20828         (DFA description): Enable it only for Itanium.
20830         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
20831                     Richard Henderson  <rth@redhat.com>
20833         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
20834         MASK_EARLY_STOP_BITS.
20835         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
20836         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
20837         `early-stop-bits'.
20839         * config/ia64/ia64.c (ia64_dfa_new_cycle,
20840         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
20841         instead of TARGET_TUNE_STOP_BITS.
20843         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
20844         `-mearly-stop-bits'.
20846         * config/ia64/ia64.c (automata_option "v"): Comment it.
20848         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
20850         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
20851         New macros.
20852         (TARGET_SWITCHES): Add entries for the new option.
20854         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
20855         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
20856         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
20857         global variables.
20858         (ia64_sched_reorder2): Set up `clocks'.
20859         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
20860         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
20861         queue when TARGET_TUNE_STOP_BITS.
20862         (bundling): Insert additional nops for MM-insns.
20863         (final_emit_insn_group_barriers): Add insertion of stop bits
20864         according `stops_p'.
20865         (ia64_reorg): Initiate the new varibales.
20867         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
20869         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
20871         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
20872         insns at the end of block insn scheduling.
20874         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
20876         * sched-deps.c (remove_dependence, group_leader): Remove it.
20877         (add_dependence): Add dependence to group leader to.
20878         (set_sched_group_p): Add dependence to the first insn of the
20879         schedule group too.
20880         (sched_analyze_insn): Make dependence to jump as anti-dependence.
20881         Change true dependence by anti-dependence when
20882         `reg_pending_barrier'.
20884         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
20885         add_branch_dependences): Ignore schedule groups.
20887         * sched-ebb.c (init_ready_list): Ditto.
20889         * (move_insn, set_priorities): Ditto.
20891         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
20892         flag is clear after reload.
20893         (adjust_cost): Change cost only for output dependencies.
20895         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
20897         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
20899         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
20901         * target.h (gcc_target): Add member
20902         `dependencies_evaluation_hook'.
20904         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
20905         macro.
20906         (TARGET_SCHED): Add initiatialization of the new member.
20908         * sched-ebb.c: Include `target.h'.
20909         (schedule_ebb): Call `dependencies_evaluation_hook'.
20911         * sched-rgn.c (schedule_region): Call
20912         `dependencies_evaluation_hook'.
20914         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
20915         New macro.
20916         (ia64_dependencies_evaluation_hook): New function.
20918         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
20919         Describe the new hook.
20921         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
20923         * target.h (gcc_target): Add members
20924         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
20926         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
20927         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
20928         macros.
20929         (TARGET_SCHED): Add initiatialization of the new members.
20931         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
20932         insn scheduling too.
20933         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
20934         initialize `ready_try'.
20935         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
20936         `dfa_new_cycle' says not to do it.
20938         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
20939         bundling.
20941         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
20943         * config/ia64/ia64.c: Include `hashtab.h'.
20944         (ia64_first_cycle_multipass_dfa_lookahead_guard,
20945         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
20946         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
20947         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
20948         bundle_state_eq_p, insert_bundle_state,
20949         initiate_bundle_state_table, finish_bundle_state_table,
20950         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
20951         get_template, get_next_important_insn, bundling): New functions.
20952         (ia64_internal_sched_reorder): Remove it.
20953         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
20954         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
20955         (ia64_safe_itanium_requires_unit0): Remove it.
20956         (group_barrier_needed_p): Place group barrier right before a real
20957         insn.
20958         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
20959         Remove them.
20960         (bundle_name): New variable.
20961         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
20962         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
20963         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
20964         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
20965         temp_dfa_state, prev_cycle_state): New global variables.
20966         (insn_matches_slot, maybe_rotate, finish_last_head,
20967         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
20968         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
20969         find_best_packet, itanium_reorder, dump_current_packet,
20970         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
20971         (sched_data, sched_ready, sched_types): Remove them.
20972         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
20973         `init_insn_group_barriers'.
20974         (ia64_sched_reorder, ia64_sched_reorder2): Call
20975         ia64_dfa_sched_reorder.
20976         (ia64_variable_issue): Rewrite it.
20977         (bundle_state): New structure.
20978         (index_to_bundle_states, bundle_states_num,
20979         allocated_bundle_states_chain, free_bundle_state_chain): New
20980         global variables.
20981         (ia64_sched_finish): Add stop bits and call `bundling' after the
20982         2nd insn scheduling.
20983         (ia64_use_dfa_pipeline_interface): Return zero always.
20984         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
20985         insn scheduling.
20986         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
20987         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
20988         (ia64_reorg): Add bundling insns.
20990         * doc/tm.texi
20991         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
20992         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
20994         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
20996         * config/ia64/ia64.md: Add Itanium1 DFA description.
20997         (itanium_class): Add `nop' and `pre_cycle'.  Add
20998         define_function_unit for `nop'.
20999         (nop): Change attribute `itanium_class'.
21000         (pre_cycle): New define_insn.
21002         * config/ia64/ia64-protos.h (bundling_p): New external variable.
21003         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
21004         ia64_produce_address_p): New function prototypes.
21006         * config/ia64/ia64.c (bundling_p): New global variable.
21007         (ia64_use_dfa_pipeline_interface,
21008         ia64_first_cycle_multipass_dfa_lookahead,
21009         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
21010         functions.
21011         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
21012         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
21013         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
21014         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
21015         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
21016         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
21017         (dfa_pre_cycle_insn): New variable.
21019         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21021         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
21022         constructions.
21024         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
21025         New function prototypes.
21027         * genattrtab.c (main): Process the new constructions.
21029         * genautomata.c (gen_presence_absence_set,
21030         process_presence_absence_names, process_presence_absence_patterns,
21031         add_presence_absence, check_absence_pattern_sets): Add parameter
21032         `final_p'.
21033         (unit_decl): Add new members `final_presence_list' and
21034         `final_absence_list'.
21035         (unit_pattern_rel_decl): Add new member `final_p'.
21036         (gen_final_presence_set, gen_final_absence_set): New functions.
21037         (process_decls): Use member `final_p'.
21038         (temp_reserv): New global variable.
21039         (reserv_sets_are_intersected): Add processing `final_presence_set'
21040         and `final_absence_set'.
21041         (initiate_states): Allocate `temp_reserv'.
21042         (unit_final_presence_set_table, unit_final_absence_set_table): New
21043         gloabal variables.
21044         (initiate_presence_absence_pattern_sets): Initiate them.
21045         (NDFA_to_DFA): Fix typo.
21046         (output_description): Output `final_presence_set' and
21047         `final_absence_set'.
21049         * doc/md.texi (final_presence_set, final_absence_set): Describe
21050         them.
21052         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21054         * genautomata.c (transform_3): Process a missing case (nothing on
21055         unit place).
21057         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21059         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
21060         comments about queried units and the minimization.
21062         * doc/md.texi: Ditto.
21064         * genautomata.c (create_composed_state): Return nonzero if the new
21065         state has been created.
21066         (first_cycle_unit_presence): New function.
21067         (state_is_differed): Add new parameter.  Use the new function.
21068         Take queried units into account.
21069         (partition_equiv_class): Pass additional parameter to
21070         `state_is_differed'.
21071         (merge_states): Process composed states too.
21072         (build_automaton, create_automata, output_min_issue_delay_table,
21073         output_tables, output_statistics): Output more information.
21074         (output_reserved_units_table): Use function
21075         `first_cycle_unit_presence'.
21076         (output_tables): Output table of queried units even if the
21077         minimization is switched on.
21078         (write_automata): Output code for querying units even if the
21079         minimization is switched on.
21081         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
21083         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
21084         syntax of the constructions.
21086         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
21087         extended syntax of the constructions.
21089         * genautomata.c (unit_rel_decl): Rename it to
21090         `unit_pattern_rel_decl'.
21091         (pattern_set_el, pattern_reserv): New structures.
21092         (pattern_set_el_t, pattern_reserv_t): New types.
21093         (gen_presence_absence_set): New function.
21094         (process_presence_absence): Remove it.
21095         (process_presence_absence_names,
21096         process_presence_absence_patterns): New functions.
21097         (get_presence_absence_set): Remove it.
21098         (initiate_presence_absence_sets): Rename it on
21099         `initiate_presence_absence_pattern_sets'.  Use new function
21100         `form_reserv_sets_list'.
21101         (form_reserv_sets_list, check_presence_pattern_sets,
21102         check_absence_pattern_sets, output_pattern_set_el_list): New
21103         functions.
21104         (unit_decl): Change types of members `presence_list' and
21105         `absence_list'.
21106         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
21107         (decl): Change types of members `excl', `presence', and `absence'.
21108         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
21109         at the end of the vector.
21110         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
21111         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
21112         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
21113         (gen_presence_set, gen_absence_set): Use new function
21114         `gen_presence_absence_set'.
21115         (add_presence_absence): Process `pattern_list' instead of
21116         `source_list'.
21117         (process_decls): USe new functions
21118         `process_presence_absence_names' and
21119         `process_presence_absence_patterns'.
21120         (reserv_sets_are_intersected): Use new function
21121         `check_presence_pattern_sets'.
21122         (presence_set, absence_set): Remove them.
21123         (unit_presence_set_table, unit_absence_set_table): New global
21124         variables.
21125         (output_description): Use new function
21126         `output_pattern_set_el_list'.
21127         (generate): Use `initiate_presence_absence_pattern_sets'.
21129         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
21131         * genattr.c (main): Add output of prototype of new interface
21132         function `dfa_clean_insn_cache'.
21134         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
21135         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
21136         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
21137         the generated code.
21138         (write_automata): Call the new function.
21140 2003-01-09  Jan Hubicka  <jh@suse.cz>
21142         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
21143         correctly.
21145 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
21147         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
21149 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
21151         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
21152         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
21153         (CONSTRAINT_LEN): Provide default definition.
21154         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21155         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
21156         (EXTRA_CONSTRAINT_STR): Likewise.
21157         (REG_CLASS_FROM_CONSTRAINT): Define.
21158         * genoutput.c (check_constraint_len, constraint_len): New functions.
21159         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
21160         constraint / modifier.
21161         (gen_insn): Call check_constraint_len.
21162         * local-alloc.c (block_alloc): Update to use new macros / pass
21163         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
21164         * ra-build.c (handle_asm_insn): Likewise.
21165         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21166         (constrain_operands, peep2_find_free_register): Likewise.
21167         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
21168         * regmove.c (find_matches): Likewise.
21169         * reload.c (push_secondary_reload, find_reloads): Likewise.
21170         (alternative_allows_memconst): Likewise.
21171         * reload1.c (maybe_fix_stack_asms): Likewise.
21172         (reload_cse_simplify_operands): Likewise.
21173         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21174         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
21175         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21176         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
21177         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
21178         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
21180         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
21182 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21184         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
21185         length.
21186         (*extzv_1_r_h8300hs): Likewise.
21187         (*extzv_1_r_inv_h8300): Likewise.
21188         (*extzv_1_r_inv_h8300hs): Likewise.
21190 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21192         * config/h8300/h8300.h (PREDICATE_CODES): New.
21194 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21196         * config/h8300/h8300.md (*addsi3_upper): New.
21197         (*iorsi3_shift): Likewise.
21198         (two splitters): Likewise.
21199         (*addsi3_shift): Likewise.
21200         (two splitters): Likewise.
21202 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
21204         * Makefile.in (optabs.o): Add dependency on basic-block.h.
21205         * basic-block.h (control_flow_insn_p): Fuction was exported.
21206         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
21207         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
21208         notes only when the region is contained in a single basic block.
21210 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
21212         PR inline-asm/8832
21213         * tree.h (expand_asm): New prototype.
21214         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
21215         to do so.
21216         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
21217         down to expand_asm.
21218         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
21219         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
21220         (volatile_refs_p) [ASM_INPUT]: Likewise.
21221         (side_effects_p) [ASM_INPUT]: Likewise.
21223 2003-01-09  Jan Hubicka  <jh@suse.cz>
21225         * i386.md (*mul*): FIx constraints; remove confused comment; fix
21226         athlon_decode attributes
21227         (imul/k8 optimization peep2s): New.
21229         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
21230         * i386.md (type attribute): Add ssecomi.
21231         (unit, memory, prefix attributes): Handle ssecomi.
21232         (cvt?2? patterns): Fix athlon_decode attribute
21233         (comi patterns): Set attribute to ssecomi.
21235         PR target/8343
21236         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
21238 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
21240         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
21241         that match register_operands.
21242         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
21243         register_operand the default case.
21245 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
21247         PR c/8032
21248         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
21249         an empty element, do not advance the pointer to unfilled
21250         fields if there are pending initializers.
21252 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
21254         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
21255         (install-gcc-tooldir, install-cpp, installdirs,
21256         install-common, install-driver, install-info, install-man,
21257         install-headers, install-include-dir, install-headers-tar,
21258         install-headers-cpio, install-headers-cp, install-mkheaders,
21259         install-collect2, uninstall): Prepend $(DESTDIR) to
21260         destination paths in all (un)installation commands.
21261         (install-driver): Rewrite $(LN) commands to support DESTDIR
21262         with "ln" as well as with "ln -s".
21263         (installdirs): Simply use mkinstalldirs.
21264         (install-libgcc, install-multilib): Also pass DESTDIR.
21265         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
21266         installation destination variable ldir.
21267         * config/alpha/t-osf4, config/arm/t-netbsd,
21268         config/ia64/t-hpux, config/mips/t-iris5-6,
21269         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
21270         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
21271         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
21272         in the definition of SHLIB_INSTALL.
21273         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
21274         $(libsubdir) in the installation commands.
21276 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
21278         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
21279         non-optimizing compile.
21280         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
21281         compile.
21283 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
21285         * config/i386/i386.c (ix86_attribute_table): Add new attributes
21286         ms_struct and gcc_struct.
21287         (ix86_handle_struct_attribute): New function.
21288         (ix86_ms_bitfield_layout_p): Update to take new attributes
21289         into account.
21290         * doc/extend.texi: Document new attributes.
21291         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
21293 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
21295         PR optimization/8750
21296         * config/i386/i386.c (ix86_expand_prologue): Don't allow
21297         scheduling pass to move insns across __alloca call.
21299 2003-01-08  Dale Johannesen  <dalej@apple.com>
21301         * config/rs6000/rs6000.md:  Replace *store_multiple_string
21302         with *stmsi[3-8].
21304 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
21306         PR target/9210
21307         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
21308         Set SYMBOL_REF_FLAG on local data sym_ref.
21310 2003-01-08  Dale Johannesen  <dalej@apple.com>
21312         * function.c (assign_parms):  Don't set pretend_args_size if
21313           REG_PARM_STACK_SPACE.
21314           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
21315           pretend_args_size.
21317 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
21319         * gcc.hlp: Delete.
21321 2003-01-09  Jan Hubicka  <jh@suse.cz>
21323         * i386.c  (ix86_expand_int_addcc): Fix thinko.
21325 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
21327         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
21328         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
21329         as hook_bool_tree_hwi_hwi_tree_true.
21330         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
21331         (rs6000_emit_epilogue): Same.
21332         (rs6000_output_mi_thunk): Re-implement as RTL.
21333         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
21334         xcoffout_declare_function if any debugging enabled.
21336 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
21338         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
21339         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
21340         * config/mips/mips.h (enum processor_type): Rename
21341         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
21342         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
21343         Add PROCESSOR_M4K.
21344         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
21345         (ISA_MIPS32R2): New define.
21346         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
21347         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
21348         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
21349         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
21350         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
21351         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
21352         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
21353         compiling MIPS16 code.
21354         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
21355         comment.
21356         (ISA_HAS_SEB_SEH): New define.
21357         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
21358         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
21359         processor_type value renaming.  Add support for MIPS32R2.
21360         Clean up comments, and move "sb1" entry with other MIPS64 CPU
21361         entries.
21362         (override_options): Reimplement -mipsN option handling so that
21363         it will work correctly for -mips32r2.  Avoid branch-likely
21364         instructions on MIPS32R2.
21365         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
21366         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
21367         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
21368         (extendhisi2_hw, extendqisi2_hw): New.
21369         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
21370         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
21371         MIPS32R2, and MIPS64.
21372         (LINK_SPEC): Pass -mips32r2 to linker.
21373         * config/mips/t-isa3264: Built -mips32r2 multilibs.
21374         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
21375         for mips32r2 in the -march description.  Alphabetically sort
21376         CPU names in the -march description.  Add long-missed -mips32
21377         and -mips64 to MIPS option summary.
21379         * config.gcc: Update copyright years to include 2003.
21380         * config/mips/mips.c: Likewise.
21381         * config/mips/mips.h: Likewise.
21382         * config/mips/mips.md: Likewise.
21383         * config/mips/netbsd.h: Likewise.
21384         * doc/invoke.texi: Likewise.
21386 2003-01-08  Andreas Schwab  <schwab@suse.de>
21388         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
21389         variable.
21390         * configure: Regenerated.
21392 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
21394         * config/h8300/h8300.c (output_logical_op): Replace byte/word
21395         extraction of det with b0, b1, w0, w2, etc.
21396         (compute_logical_op_length): Likewise.
21397         (compute_logical_op_cc): Likewise.
21399 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
21401         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
21402         HIGH on all variants.
21404 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21406         * Makefile.in (PARTITION_H): New.
21407         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
21408         * basic-block.h: Include hard-reg-set.h.
21410 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
21412         * arm.h (ENABLE_XF_PATTERNS): Delete.
21413         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
21414         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
21415         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
21416         (cmpxf_trap): Delete.
21417         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
21419 2003-01-08  Jan Hubicka  <jh@suse.cz>
21421         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
21422         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
21423         (add??cc): New expanders.
21424         * i386.c (expand_int_addcc): New function.
21425         * i386-protos.h (expand_int_addcc): Declare.
21427         * alias.c (memory_modified_1): New static function.
21428         (memory_modified): New static varaible.
21429         (memory_modified_in_insn_p): New global function.
21430         * rtl.h (memory_modified_in_insn_p): Declare.
21431         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
21432         references.
21434         * expr.h (emit_conditional_add): Declare.
21436 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
21438         PR other/8947
21439         * doc/invoke.texi (-malign-double): Explain that the option breaks
21440         binary compatibility.
21442 2003-01-08  Andreas Schwab  <schwab@suse.de>
21444         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
21445         should come from the generic *-*-linux* entry.
21447 2003-01-07  Jan Hubicka  <jh@suse.cz>
21449         * cselib.c (cselib_current_insn_in_libcall): New static variable.
21450         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
21451         we are inside libcall.
21452         * cselib.h (elt_loc_list): Add in_libcall.
21453         * gcse.c (do_local_cprop): Do not copy propagate using insns
21454         in libcalls.
21456 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
21458         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
21459         not normally affect to issue rate.
21461 2003-01-07  Jan Hubicka  <jh@suse.cz>
21463         * genopinit.c (optabs): Add addc_optab.
21464         * ifcvt.c (noce_try_store_flag): Rename to ...
21465         (noce_try_addcc): ... this one; handle generic conditional increment.
21466         (noce_process_if_block): Update noce_try_addcc call.
21467         * optabs.c (emit_conditional_add): New.
21468         (init_obtabs): Initialize addc_optab.
21469         * optabs.h (optab_index): Add OTI_addcc.
21470         (addcc_optab): New macro.
21471         * md.texi: Document addMcc
21473         PR target/8322
21474         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
21475         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21476         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21478         * reload1.c (delete_output_reload): Avoid repeated attempts
21479         to delete insn.
21481 2003-01-07  Andreas Schwab  <schwab@suse.de>
21483         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
21484         Move --enable-initfini-array check ...
21485         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
21486         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
21487         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
21488         * configure: Rebuild.
21490 2003-01-07  Richard Henderson  <rth@redhat.com>
21492         * alias.c (find_base_value): Only use new_reg_base_value shortcut
21493         if the register is set once.
21495 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
21497         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
21498         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
21499         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
21501 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
21502             Sunil Davasam  <sunil.k.davasam@intel.com>
21504         PR libstdc++/9076
21505         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
21506         DW_CFA_same_value, read next and ignore.
21508 2003-01-07  Richard Henderson  <rth@redhat.com>
21510         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
21512 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
21514         * cfg.c: Include alloc-pool.h
21515         (edge_pool): New pool.
21516         (bb_pool): New pool.
21517         (first_deleted_edge): Remove.
21518         (first_deleted_block): Remove.
21519         (init_flow): Alloc/free the pools.
21520         (free_edge): Use pools.
21521         (alloc_block): Ditto.
21522         (expunge_block): Ditto.
21523         (cached_make_edge): Ditto.
21525         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
21527 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
21529         * et-forest.c: Include alloc-pool.h.
21530         (struct et_forest): Add node_pool and occur_pool.
21531         (et_forest_create): Create the new pools.
21532         (et_forest_delete): Delete them.
21533         (et_forest_add_node): Allocate and free using pools.
21534         (et_forest_add_edge): Ditto.
21535         (et_forest_remove_node): Ditto.
21536         (et_forest_remove_edge): Ditto.
21538         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
21540 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
21542         * config/h8300/h8300.c (output_logical_op): Simplify and
21543         optimize the handling of SImode.
21544         * config/h8300/h8300.c (compute_logical_op_length): Update
21545         accordingly.
21546         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
21548 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
21550         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
21551         big-endian correction to indirect arguments too.
21553 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
21555         Segher Boessenkool  <segher@koffie.nl>
21557         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
21558         (alt_reg_names): Ditto, fix formatting.
21559         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
21561 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
21563         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
21564         (output_logical_op): Constify intval and det.
21565         (compute_logical_length): Likewise.
21566         (compute_logical_cc): Likewise.
21567         (output_a_shift): Constify mask.
21568         (h8300_encode_label): Constify len.
21570 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
21572         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
21573         (h8300_expand_epilogue): Likewise.
21575 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
21577         Segher Boessenkool  <segher@koffie.nl>
21579         * config/rs6000/altivec.md: Remove spaces from assembler
21580         instruction argument lists.
21582 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21584         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
21585         c4x_assembler_function_p.
21586         (c4x_null_epilogue_p): Complement return value, all uses updated.
21587         (c4x_insert_attributes): Add naked.
21588         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
21589         * doc/extend.texi: Update C4x function attributes.
21591 2003-01-06  Richard Henderson  <rth@redhat.com>
21593         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
21594         properly when changing "local-ness".
21595         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
21597 2003-01-06  Dale Johannesen  <dalej@apple.com>
21599         * config/darwin-protos.h:  Add prototypes for new section functions.
21601 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
21603         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
21604         to EABI.
21606 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
21608         * hwint.h: If the current compiler has no 64-bit type at all,
21609         make HOST_WIDEST_INT 32 bits.
21611 2003-01-06  Eric Christopher  <echristo@redhat.com>
21613         * config/mips/mips.md (movdf_internal2): Fix constraints.
21615 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
21617         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
21619 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
21621         * config/mips/mips.md (leadi): Use dla rather than la.
21623 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
21625         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
21626         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
21628 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
21630         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
21631         redefinition.
21633 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
21635         * config/h8300/h8300.md (*extzv_8_23): New.
21637 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21639         * pa64-hpux.h (JCR_SECTION_NAME): Define.
21640         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
21641         USE_EH_FRAME_REGISTRY when defining.
21643 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
21645         * config/h8300/h8300.c (output_a_shift): Do not output a
21646         variable shift.
21647         * config/h8300/h8300.md (two splitters): New.
21649 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
21651         * config/mips/mips.md: Disable the movstrsi define_split.
21653 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21655         * alloc-pool.c: Don't include "libiberty.h".
21656         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
21657         * convert.c (convert_to_real): Hide unused variable.
21659 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21661         * Makefile.in (gtyp-gen.h): Const-ify.
21662         * gcov-dump.c (tag_table): Likewise.
21664 2003-01-04  Bruce Korb  <bkorb@gnu.org>
21666         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
21667         of *both* the file name and the fix name.
21669 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
21671         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
21672         collect2.
21673         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
21674         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
21675         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
21676         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
21677         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
21678         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
21679         elfos.h.
21680         (EH_FRAME_IN_DATA_SECTION): Delete define.
21681         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
21682         (STARTFILE_SPEC): Use crtbegin.o.
21683         (ENDFILE_SPEC): Use crtend.o.
21684         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
21685         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
21686         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
21687         DTOR_LIST_BEGIN): Define.
21688         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
21689         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
21690         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
21692 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
21694         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
21695         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
21696         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
21697         Cleanup handling of replacement text.
21698         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
21700 2003-01-04  Bruce Korb  <bkorb@gnu.org>
21702         * fixinc/tests/base/math.h: removed obsolete results
21703         * fixinc/tests/base/stdlib.h: ditto
21704         * fixinc/tests/base/sys/param.h: ditto
21705         * fixinc/tests/base/sys/stat.h: ditto
21706         * fixinc/tests/base/time.h: ditto
21707         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
21708         * fixinc/tests/base/sys/byteorder.h: ditto
21709         * fixinc/inclhack.def: Remove superfluous backslashes
21711 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
21713         * config/h8300/h8300-protos.h: Add prototypes for
21714         the new functions defined below.
21715         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
21716         define.
21717         (dosize): Emit RTL instead of assembly code.
21718         (push): Likewise.
21719         (pop): Likewise.
21720         (h8300_output_function_prologue): Remove.
21721         (h8300_expand_prologue): New.
21722         (h8300_expand_epilogue): New.
21723         (h8300_output_function_epilogue): Do only the reset of
21724         pragma_saveall.
21725         * config/h8300/h8300.md (push_h8300): New.
21726         (push_h8300hs): Likewise.
21727         (pop_h8300): Likewise.
21728         (pop_h8300hs): Likewise.
21729         (*stm_h8300s_2): Change the name to stm_h8300s_2.
21730         (*stm_h8300s_3): Change the name to stm_h8300s_3.
21731         (*stm_h8300s_4): Change the name to stm_h8300s_4.
21732         (*ldm_h8300s_2): New.
21733         (*ldm_h8300s_3): Likewise.
21734         (*ldm_h8300s_4): Likewise.
21735         (return): Likewise.
21736         (*return_1): Likewise.
21737         (prologue): Likewise.
21738         (epilogue): Likewise.
21739         (monitor_prologue): Likewise.
21741 2003-01-03  Dale Johannesen  <dalej@apple.com>
21743         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
21744           machopic_picsymbol_stub1.
21745           (EXTRA_SECTION_FUNCTIONS):  Ditto.
21746         * rs6000/rs6000.c:  Update copyright.
21747           (machopic_output_stub):  Use them.  Remove an insn from stub code.
21749 2003-01-02  Jason Merrill  <jason@redhat.com>
21751         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
21753         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
21754         static/external decls.
21756         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
21757         outermost scope.
21758         * c-decl.c (c_make_fname_decl): Push the decls there, too.
21760 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
21762         * config/h8300/h8300-protos.h: Add a prototype for
21763         h8300_current_function_interrupt_function_p.
21764         * config/h8300/h8300.c (interrupt_handler): Remove.
21765         (os_task): Likewise.
21766         (monitor): Likewise.
21767         (pragma_interrupt): New.
21768         (WORD_REG_USED): Use
21769         h8300_current_function_interrupt_function_p.
21770         (dosize): Likewise.
21771         (h8300_output_function_prologue): Likewise.
21772         Do not set interrupt_handler, os_task, monitor.
21773         (h8300_output_function_prologue): Use
21774         h8300_current_function_interrupt_function_p.
21775         Do not set interrupt_handler, os_task, monitor.
21776         (h8300_current_function_interrupt_function_p): New.
21777         (h8300_pr_interrupt): Set pragma_interrupt.
21778         (h8300_insert_attributes): Reset pragma_interrupt.
21780 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
21782         * doc/install.texi (Configuration): Fix markup for reference to
21783         gcc/config.gcc.
21785 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
21787         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
21788         (*iorhi3_two_qi): Likewise.
21789         (*iorsi3_zexthi): Likewise.
21790         (*xorhi3_zextqi): Likewise.
21791         (*xorsi3_zexthi): Likewise.
21792         (*xorsi3_zextqi): Likewise.
21794 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
21796         * config/h8300/h8300.c (stack_pointer_operand): New.
21797         (const_int_gt_2_operand): Likewise.
21798         (const_int_ge_8_operand): Likewise.
21799         * config/h8300/h8300.md (a splitter): Likewise.
21800         (a peephole2): Likewise.
21801         * config/h8300/h8300-protos.h: Add prototypes for the new
21802         functions above.
21804 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
21806         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
21807         objc/objc-act.h: Fix copyright years.
21809 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
21811         * doc/passes.texi: Fix documentation for -fssa-ccp
21813 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
21815         * gccbug.in: Update for new categories.
21817 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
21819         * config/h8300/h8300.md: Reorder some patterns.
21821 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
21823         * config/h8300/h8300.c (output_logical_op): Fix a warning.
21825 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
21827         * config/darwin-protos.h, config/c4x/c4x-protos.h,
21828         config/cris/cris-protos.h, config/i370/i370-protos.h,
21829         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
21830         config/v850/v850-protos.h: Use struct, and don't conditionally
21831         compile on GCC_C_PRAGMA_H.
21833 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
21835         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
21836         * config/h8300/h8300-protos.h: Likewise.
21837         * config/sh/sh-protos.h: Likewise.
21839 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
21841         * config/arm/arm-protos.h: Use struct cpp_reader instead of
21842         cpp_reader.
21843         * config/h8300/h8300-protos.h: Likewise.
21844         * config/sh/sh-protos.h: Likewise.
21846 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
21848         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
21849         arm_pr_long_calls_off): Use struct.
21850         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
21851         : Similarly.
21852         Don't include cpplib.h.
21853         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
21854         sh_pr_nosave_low_regs): Similarly.
21856 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
21858         * config/h8300/h8300.c: Include cpplib.h.
21860 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
21862         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
21863           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
21864           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
21865           "GCC" in the copyright header.
21867 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
21869         * c-pragma.c (c_register_pragma): New.
21870         (init_pragma): Use it.
21871         * c-pragma.h (cpp_register_pragma): Don't declare.
21872         (c_register_pragma): New.
21873         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
21874         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
21875         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
21876         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
21877         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
21878         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
21879         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
21880         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
21881         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
21882         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
21883         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
21884         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
21886 See ChangeLog.8 for earlier changes.