OSDN Git Service

* config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
4         (TARGET_STRUCT_VALUE_RTX): Likewise.
5         (vax_struct_value_rtx): Likewise.
6         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
7         VAX_STRUCT_VALUE_REGNUM.
8         (PROMOTE_PROTOTYPES): Remove.
9
10 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11  
12         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
13  
14 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
15
16         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
17         and MIPS64 have HI/LO interlocks.  Update comment.
18
19 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20
21         * config/stormy16/stormy16-protos.h: Remove the prototype for
22         xstormy16_setup_incoming_varargs.
23         * config/stormy16/stormy16.c
24         (xstormy16_setup_incoming_varargs): Remove.
25         (xstormy16_return_in_memory): New.
26         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
27         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
28         (TARGET_PROMOTE_PROTOTYPES): Likewise.
29         (TARGET_STRUCT_VALUE_RTX): Likewise.
30         (TARGET_RETURN_IN_MEMORY): Likewise.
31         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
32         (PROMOTE_FUNCTION_RETURN): Likewise
33         (PROMOTE_PROTOTYPES): Likewise
34         (RETURN_IN_MEMORY): Likewise
35         (STRUCT_VALUE): Likewise
36         (SETUP_INCOMING_VARARGS): Likewise
37
38 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
39
40         * config/mips/mips.c (mips_offset_within_object_p): New function.
41         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
42         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
43         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
44
45 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
46
47         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
48         (PROMOTE_FUNCTION_RETURN): Likewise.
49
50 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
51
52         * config/mn10300/mn10300-protos.h: Remove the prototype for
53         mn10300_builtin_saveregs.
54         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
55         (TARGET_STRUCT_VALUE_RTX): Likewise.
56         (TARGET_RETURN_IN_MEMORY): Likewise.
57         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
58         (mn10300_return_in_memory): Likewise.
59         (mn10300_builtin_saveregs): Make it static.
60         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
61         (RETURN_IN_MEMORY): Likewise.
62         (STRUCT_VALUE): Likewise.
63         (EXPAND_BUILTIN_SAVEREGS): Likewise.
64
65 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
66
67         PR bootstrap/13853
68         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
69
70 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
71
72         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
73         using ccr.
74
75 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
76
77         * config/i860/i860-protos.h: Remove the prototype for
78         i860_saveregs.
79         * config/i860/i860.c (i860_saveregs): Make it static.
80         (i860_struct_value_rtx): New.
81         (TARGET_STRUCT_VALUE_RTX): Likewise.
82         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
83         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
84         I860_STRUCT_VALUE_REGNUM.
85         (EXPAND_BUILTIN_SAVEREGS): Remove.
86
87 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
88
89         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
90         (TARGET_RETURN_IN_MEMORY): Likewise.
91         (m68hc11_struct_value_rtx): Likewise.
92         (m68hc11_return_in_memory): Likewise.
93         * config/m68hc11/m68hc11.h: Remove a commented-out definition
94         of PROMOTE_PROTOTYPES.
95         (RETURN_IN_MEMORY): Remove.
96         (STRUCT_VALUE_REGNUM): Likewise.
97
98 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
99
100         * config/mmix/mmix-protos.h: Remove the prototype for
101         mmix_setup_incoming_varargs.
102         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
103         (TARGET_STRUCT_VALUE_RTX): Likewise.
104         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
105         (mmix_setup_incoming_varargs): Make it static.
106         (mmix_struct_value_rtx): New.
107         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
108         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
109         (STRUCT_VALUE_REGNUM): Remove.
110         (SETUP_INCOMING_VARARGS): Likewise.
111
112 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
113
114         * config/mips/mips-protos.h: Remove the prototypes for
115         mips_setup_incoming_varargs and mips_return_in_memory.
116         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
117         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
118         (TARGET_PROMOTE_PROTOTYPES): Likewise.
119         (TARGET_STRUCT_VALUE_RTX): Likewise.
120         (TARGET_RETURN_IN_MEMORY): Likewise.
121         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
122         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
123         (mips_setup_incoming_varargs): Match the prototype for
124         TARGET_SETUP_INCOMING_VARARGS.
125         (mips_return_in_memory): Make it static.  Add argument fntype.
126         (mips_strict_argument_naming): New.
127         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
128         (PROMOTE_FUNCTION_ARGS): Likewise.
129         (PROMOTE_FUNCTION_RETURN): Likewise.
130         (STRUCT_VALUE): Likewise.
131         (RETURN_IN_MEMORY): Likewise.
132         (SETUP_INCOMING_VARARGS): Likewise.
133         (STRICT_ARGUMENT_NAMING): Likewise.
134
135 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
136
137         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
138         (TARGET_RETURN_IN_MEMORY): Likewise.
139         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
140         (ip2k_return_in_memory): Likewise.
141         (ip2k_setup_incoming_varargs): Likewise.
142         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
143         (STRUCT_VALUE): Likewise.
144         (STRUCT_VALUE_INCOMING): Likewise.
145         (SETUP_INCOMING_VARARGS): Likewise.
146
147 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
148
149         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
150         (TARGET_RETURN_IN_MEMORY): Likewise.
151         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
152         (avr_return_in_memory): Remove.
153         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
154         (STRUCT_VALUE): Likewise.
155         (STRUCT_VALUE_INCOMING): Likewise.
156         (STRICT_ARGUMENT_NAMING): Likewise.
157
158 2004-01-25  Jan Hubicka  <jh@suse.cz>
159
160         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
161
162 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
163
164         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
165         (mips_regno_mode_ok_for_base_p): Declare.
166         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
167         (FRAME_POINTER_REGNUM): Renumber to 78.
168         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
169         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
170         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
171         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
172         (REG_MODE_OK_FOR_BASE_P): Likewise.
173         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
174         entry for 77 to "$arg" and entry for 78 to "$frame".
175         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
176         (mips_reg_mode_ok_for_base_p): Remove.
177         (mips_regno_mode_ok_for_base_p): New function, derived from old
178         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
179         restrictions unless we're being strict.
180         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
181
182 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
183
184         * c-common.h: Fix comment typos.
185         * c-decl.c: Likewise.
186         * cgraphunit.c: Likewise.
187         * combine.c: Likewise.
188         * et-forest.c: Likewise.
189         * flow.c: Likewise.
190         * function.c: Likewise.
191         * ifcvt.c: Likewise.
192         * integrate.c: Likewise.
193         * jump.c: Likewise.
194         * postreload.c: Likewise.
195         * varray.c: Likewise.
196
197 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
198
199         * doc/frontends.texi: Update copyright.
200         * doc/gcov.texi: Likewise.
201         * doc/gty.texi: Likewise.
202         * doc/sourcebuild.texi: Likewise.
203         * doc/standards.texi: Likewise.
204
205 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
206
207         PR target/12978
208         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
209         Remove movstrqi_small because it conflicts with movstrqi_large.
210
211 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
212
213         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
214         (TARGET_STRUCT_VALUE_RTX): Likewise.
215         (cris_struct_value_rtx): Likewise.
216         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
217         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
218         STRUCT_VALUE_REGNUM.
219         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
220
221 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
222
223         PR bootstrap/13848
224         * cse.c (cse_cc_succs): Change the mode of the source expression
225         as soon as decide we need a new mode.  Don't permit changing modes
226         if we found a match in a successor block.
227         (cse_condition_code_reg): Save original mode of source expression
228         so that we know whether we have to change the mode in other
229         insns.
230
231 2004-01-24  Jan Hubicka  <jh@suse.cz>
232
233         * emit-rtl.c (change_address, adjust_address_1, offset_address,
234         widen_memory_access):  Return early when there is nothing to change.
235
236 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
237
238         * simplify-rtx.c (simplify_relational_operation): Don't
239         simplify address == constant into address + -constant == 0.
240
241 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
242
243         * gcc.c (process_command): Don't internationalize the
244         Copyright message.
245         * mips-tfile.c (main): Likewise.
246
247 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
248
249         * cse.c: (cse_cc_succs) Fix comparison warning.
250
251 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
252
253         * config/h8300/h8300.md: Remove extraneous USE in expanders.
254
255 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
256
257         * config/h8300/h8300-protos.h: Provide prototypes for
258         h8300_legitimate_constant_p and h8300_legitimate_address_p.
259         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
260         (h8300_rtx_ok_for_base_p): Likewise.
261         (h8300_legitimate_address_p): Likewise.
262         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
263         h8300_legitimate_constant_p.
264         (RTX_OK_FOR_BASE_P): Remove.
265         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
266
267 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
268
269         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
270         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
271         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
272         (REG_OK_FOR_BASE_STRICT_P): Likewise.
273         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
274         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
275         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
276         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
277
278 2004-01-24  Jan Hubicka  <jh@suse.cz>
279
280         * cselib.c (remove_useless_values):  Do not access discarded values.
281
282 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
283
284         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
285         arrays.
286
287 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
288
289         * recog.c: Fix a typo in copyright.
290
291 2004-01-23  Andrew Pinski  <apinski@apple.com>
292
293         * config/rs6000/rs6000.md (call): Fix misappiled patch.
294         (call_value): Likewise.
295
296 2004-01-23  Richard Henderson  <rth@redhat.com>
297
298         PR opt/12941
299         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
300         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
301         if SHIFT_COUNT_TRUNCATED is set.
302
303 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
304
305         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
306         separate real and imaginary parts.
307         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
308
309 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
310
311         PR target/13674
312         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
313         loading into GPR.
314
315 2004-01-23  Jan Hubicka  <jh@suse.cz>
316
317         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
318         change.
319
320         * alloc-pool.c (align_four): Kill.
321         (create_alloc_pool): Align size to eight.
322         (free_alloc_pool, free_pool): Invalidate deallocated data.
323
324 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
325
326         PR gcc/1532
327         * cse.c (cse_change_cc_mode): New static function.
328         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
329         (cse_condition_code_reg): New function.
330         * rtl.h (cse_condition_code_reg): Declare.
331         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
332         * target.h (struct gcc_target): Add fixed_condition_code_regs and
333         cc_modes_compatible.
334         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
335         (TARGET_CC_MODES_COMPATIBLE): Define.
336         (TARGET_INITIALIZER): Add new initializers.
337         * targhooks.c (default_cc_modes_compatible): New function.
338         * targhooks.c (default_cc_modes_compatible): Declare.
339         * hooks.c (hook_bool_intp_intp_false): New function.
340         * hooks.h (hook_bool_intp_intp_false): Declare.
341         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
342         (TARGET_CC_MODES_COMPATIBLE): Define.
343         (ix86_fixed_condition_code_regs): New static function.
344         (ix86_cc_modes_compatible): Likewise.
345         * doc/tm.texi (Condition Code): Document new hooks.
346
347 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
348
349         * fixinc/inclhack.def (bad_lval): Renamed to ...
350         (alpha_bad_lval): ... this.
351         Removed file list.
352         Restrict to alpha*-dec-osf*.
353         * fixinc/fixincl.x: Regenerate.
354         * fixinc/tests/base/dirent.h: Remove, moving test ...
355         * fixinc/tests/base/testing.h: ... here, reflecting new name.
356
357 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
358
359         PR c/13814
360         * c-decl.c (diagnose_mismatched_decls): Also discard a
361         built-in if we encounter an old-style definition with the
362         same name.
363
364 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
365
366         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
367         set to default{32,64}.
368
369 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
370
371         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
372         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
373
374 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
375             Olivier Hainque  <hainque@act-europe.fr>
376
377         * fold-const.c (fold_binary_op_with_conditional_arg): Only
378         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
379
380 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
381
382         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
383         size for minipool references.
384
385 2004-01-23  Roger Sayle  <roger@eyesopen.com>
386
387         * real.c (real_floor, real_ceil): Tweak to allow input and output
388         arguments to overlap.
389         (real_round): New function to implement round(3m) semantics.
390         * real.h (real_round): Prototype here.
391         * builtins.c (fold_builtin_round): New function to constant fold
392         round, roundf and roundl.
393         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
394
395 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
396
397         PR optimization/13819
398         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
399         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
400         (sh_handle_sp_switch_attribute): Remove warning.
401
402 2003-11-30  Jan Hubicka  <jh@suse.cz>
403
404         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
405
406 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
407
408         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
409         may or may not return non-NIL.
410         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
411         check CANNOT_CHANGE_MODE_CLASS
412
413 2004-01-23  Jan Hubicka  <jh@suse.cz>
414
415         * basic-block.h (PROP_POSTRELOAD): New macro.
416         (CLEANUP_LOG_LINKS): New.
417         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
418         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
419
420         * cselib.c (value_pool): New.
421         (new_cselib_val): Use pool.
422         (cselib_init): Initialize value_pool
423         (cselib_finish): Free pool.
424
425 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
426
427         * config/sparc/sparc.c (scan_record_type): New function.
428         (function_arg_slotno): Use it to determine which kinds of
429         registers the record can be passed in.
430
431 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
432
433         * config/pa/fptr.c: Fix old-style definition.
434
435 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
436
437         PR optimization/13724
438         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
439         represents the zero bits produced by a ZERO_EXTEND operation.
440
441 2004-01-22  Roger Sayle  <roger@eyesopen.com>
442
443         PR optimization/13821
444         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
445         correctly calculate the lowpart offset of the contracted subreg.
446
447 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
448
449         * doc/invoke.texi (Optimize Options): Note that --param arguments
450         are subject to change without notice.
451
452 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
453
454         * config.gcc (mips-sgi-irix6*o32): Removed.
455         * config/mips/iris6-o32-as.h: Likewise.
456         * config/mips/iris6-o32-gas.h: Likewise.
457         * config/mips/iris6-o32.h: Likewise.
458
459 2004-01-22  Jan Hubicka  <jh@suse.cz>
460
461         * cfgcleanup.c (first_pass): New static variable.
462         (try_forward_edges):  Add work limiting check for threading.
463         (try_crossjump_bb):  Add work limiting check for crossjumping.
464         (try_optimize_cfg):  Maintain first pass variable.
465
466 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
467
468         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
469         handles complex and vector modes.
470
471 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
472
473         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
474         (REG_OK_FOR_BASE_P_STRICT): Likewise.
475         (STRICT): Likewise.
476
477 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
478
479         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
480         (genrtl_for_stmt): Remove emit_nop calls.
481
482 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
483
484         PR target/13713
485         PR target/13324
486         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
487         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
488         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
489
490 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
491
492         * config/arm/arm.c: Include "debug.h".
493         (thumb_pushpop): Take two new arguments.  Add some commentary.
494         Output frame information when pushing.
495         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
496         thumb_pushpop.
497         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
498         offset, and pass it to thumb_pushpop.  Output CFI information.
499         (thumb_expand_prologue): Add some frame-related markers and notes.
500
501 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
502
503         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
504         for TARGET_64BIT.
505         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
506         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
507
508 2004-01-22  Roger Sayle  <roger@eyesopen.com>
509             Paolo Bonzini  <bonzini@gnu.org>
510
511         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
512         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
513         * rtl.h (subreg_lsb_1): Prototype here.
514         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
515         sign extensions.
516
517 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
518
519         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
520         macro need not be defined if jump-tables should contain
521         relative addresses only when -fPIC or -fPIC is in effect.
522
523 2004-01-22  Jan Hubicka  <jh@suse.cz>
524
525         * alias.c (reg_base_value): Turn into varray.
526         (reg_base_value_size): Kill.
527         (old_reg_base_value): New deletable varray.
528         (alias_invariant_size): New variable.
529         (REG_BASE_VALUE): Update to use varray.
530         (find_base_value): Likewise.
531         (record_set): Likewise.
532         (record_base_value): Likewise.
533         (memrefs_conflict_p): Likewise.
534         (record_set): Likewise
535         (record_base_value): Likewise.
536         (memrefs_conflict_p): Use alias_invariant_size.
537         (init_alias_analysis): Use varray; set alias_invariant_size;
538         rescale other arrays to be sized by maxreg.
539         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
540
541 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
542
543         * config/sparc/sparc.c (function_arg_slotno): Use
544         FLOAT_TYPE_P to detect FP fields in structures.
545         (function_arg_record_value_1): Likewise.
546         (function_arg_record_value_2): Likewise.
547
548 2004-01-22  Jan Hubicka  <jh@suse.cz>
549
550         * function.c (allocate_struct_function): Do not initialize expr, emit
551         and varasm.
552         (prepare_function_start): Do it here.
553         * c-parse.in (maybe_type_qual): Do not produce line number notes.
554
555 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
556
557         PR target/13559
558         * config/sparc/sparc.c (function_arg_record_value_3): Revert
559         to 'word_mode' once the first slot has been filled.
560
561 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
562
563         * config/sparc/sparc.c (function_arg_record_value_1): Fix
564         computation of the number of integer registers required.
565
566 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
567
568         * config/i386/i386.md: Simplify certain comparisons of
569         const_int.
570
571 2004-01-21  Andrew Pinski  <apinski@apple.com>
572
573         PR target/13785
574         * config/rs6000/rs6000.md (call_value): Force operand
575         1 not operand 0 into a register.
576
577 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
578
579         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
580         unwind-dw2-fde.h: Update copyright.
581
582 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
583
584         * pa-protos.h: Update copyright.
585         * pa.h: Likewise.
586         * pa.md: Likewise.
587
588 2004-01-21  Caroline Tice <ctice@apple.com>
589
590         PR target/12308
591         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
592         flags register.
593         (fix_truncdfdi2): Likewise.
594         (fix_truncsfdi2): Likewise.
595         (*fix_truncdi_1): Likewise.
596         (fix_truncxfsi2): Likewise.
597         (fix_truncdfsi2): Likewise.
598         (fix_truncsfsi2): Likewise.
599         (*fix_truncsi_1): Likewise.
600         (fix_truncxfhi2): Likewise.
601         (fix_truncdfhi2): Likewise.
602         (fix_truncsfhi2): Likewise.
603         (*fix_trunchi_1): Likewise.
604
605 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
606
607         * alias.c, basic-block.h, c-common.c, c-common.h,
608         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
609         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
610         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
611         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
612         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
613         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
614         genautomata.c, genconditions.c, genemit.c, genflags.c,
615         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
616         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
617         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
618         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
619         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
620         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
621         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
622         unwind.h, varray.c, varray.h: Update copyright.
623
624 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
625
626         * config/h8300/coff.h: Update copyright.
627         * config/h8300/elf.h: Likewise.
628         * config/h8300/h8300-protos.h: Likewise.
629         * config/h8300/h8300.c: Likewise.
630         * config/h8300/h8300.h: Likewise.
631         * config/h8300/h8300.md: Likewise.
632
633 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
634
635         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
636         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
637         ultrix_unistd): New hacks.
638         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
639         ULTRIX_CONST2_CHECK): Add checks.
640         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
641         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
642         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
643         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
644         * fixinc/tests/base/locale.h: New file.
645         * fixinc/fixincl.x: Rebuilt.
646
647 2004-01-21  Andreas Jaeger  <aj@suse.de>
648             Michael Matz  <matz@suse.de>
649
650         * doc/extend.texi (Extended Asm): Clarify memory clobber.
651
652 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
653
654         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
655         _Jv_RegisterClasses through a function pointer.
656
657 2004-01-21  Falk Hueffner  <falk@debian.org>
658
659         PR target/12898
660         * config/alpha/alpha.c (alpha_emit_set_const_1): If
661         no_new_pseudos, use gen_rtx_SET directly for SImode constants
662         which need multiple instructions to emit.
663
664 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
665
666         * config/m32r/m32r.h (CPP_SPEC): Define.
667
668 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
669
670         * c-decl.c (merge_decls): Kill different_binding_level and
671         different_tu arguments; simplify throughout.
672         (duplicate_decls): Likewise.
673         (pushdecl, merge_translation_unit_decls): Update calls to
674         duplicate_decls.
675
676 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
677
678         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
679         $(SYSTEM_H).
680         (print-rtl1.o): Depend on $(SYSTEM_H).
681
682 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
683
684         PR bootstrap/12730
685         * configure.ac: Delete definition and subsitution of docdir.
686         Add info, man, srcman and srcinfo to target hooks. Create doc/
687         directory.
688         * configure: Regenerate.
689         * Makefile.in: Don't substitute docdir and delete all references
690         throughout.
691         (MAKEINFOFLAGS): Define.
692         (stmp-docobjdir): Delete.
693         (INFOFILES, MANFILES): Define.
694         (info): Call lang.info, srcinfo and lang.srcinfo.
695         (generated-manpages): Call lang.man, srcman and lang.srcman.
696         (srcinfo, srcman): New rules to copy back files to source directory.
697         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
698         (install-man): Revamp rule.
699         (clean): Update dvi directory.
700         (distclean): Delete TAGS from front end directorys.
701         (maintainer-clean): Delete all document files in source directory.
702
703         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
704         (objc.srcman, objc.srcinfo): Likewise.
705
706 2004-01-20  Bruce Korb  <bkorb@gnu.org>
707
708         * fixinc/inclhack.def(math_exception): bypass only for glibc.
709         (matherr_decl): rename & relocate as exception_structure.
710         This fix must precede the math_exception fix.
711
712 2004-01-20  Roger Sayle  <roger@eyesopen.com>
713
714         * fold-const.c (fold_convert): Rename to fold_convert_const.
715         (fold_convert_const): Change arguments to take a tree_code,
716         a type and the operand/expression to be converted.  Return
717         NULL_TREE if no simplification is possible.  Add support for
718         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
719         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
720         Adjust call to fold_convert to match new fold_convert_const.
721         Avoid modifying the tree passed to fold in-place.
722
723 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
724
725         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
726         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
727         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
728
729 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
730
731         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
732         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
733         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
734         (emit_move_sequence): Check scratch_reg first in various if statements.
735         Extend source simplification to handle all 64-bit CONST_INTs.
736         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
737         frame size.
738         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
739         frame offset calculations.
740         * pa.h (NEW_HP_ASSEMBLER): Add comment.
741         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
742         LEGITIMATE_64BIT_CONST_INT_P): Define.
743         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
744         any CONST_INT as legitimate during and after reload.
745         (VAL_32_BITS_P, INT_32_BITS): Define.
746         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
747
748 2004-01-20  Jan Hubicka  <jh@suse.cz>
749
750         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
751         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
752         containing hard regs are shared.
753         (gen_hard_reg_clobber): New function.
754         (hard_reg_clobbers): New array.
755         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
756         (copy_rtx): Do not copy clobbers containing hard regs.
757         * rtl.h (gen_hard_reg_clobber): Declare.
758
759 2004-01-20  Jan Hubicka  <jh@suse.cz>
760
761         * varray.c:  Include hashtab.h
762         (varray_descriptor): New structure.
763         (hash_descriptor, eq_descriptor, varray_descriptor,
764         print_statistics): New static functions
765         (varray_init, varray_grow): Update statistics
766         (dump_varray_statistics): New function.
767         * varray.h (dump_varray_statistics): Declare.
768         * toplev.c (finalize): Call it.
769         * Makefile.in (varray.o): Add dependency.
770
771 2004-01-20  Jan Hubicka  <jh@suse.cz>
772
773         * cselib.c: Include alloc-pool.h
774         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
775         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
776         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
777         unchain_one_elt_loc_list_pool, unchain_one_value,
778         new_cselib_val): Simplify using allocpool.
779         (cselib_init): Initialize allocpools.
780         (cselib_finish): Finish allocpools.
781         * Makefile.in (cselib.o): Depend on alloc-pool.h
782
783 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
784
785         * config/mips/mips.c (mips_load_call_address): Make the call insn
786         use $gp if it could be calling a lazy binding stub.
787
788 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
789
790         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
791         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
792         (TARGET_STRUCT_VALUE_RTX): Likewise.
793         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
794         (PROMOTE_FUNCTION_RETURN): Remove.
795         (STRUCT_VALUE): Remove.
796
797 2004-01-20  Denis Chertykov  <denisc@overta.ru>
798
799         PR bootstrap/13735
800         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
801         register as pointer after reload.
802
803 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
804
805         PR optimization/12440
806         * loop.c: Include ggc.h.
807         (loop_optimize): Run garbage collector between optimization of loops.
808         * Makefile.in (loop.o): Add GGC_H dependency.
809
810 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
811
812         * gcc/config/rs6000/rs6000.c (function_arg) Handle
813         vector register special in function without prototype.
814         (function_arg_advance): Vector parameters get always
815         GPRs allocated for the linux64 target.
816
817 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
818
819         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
820         not TARGET_M32RX_MASK.
821
822 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
823
824         PR target/13557
825         * config/sparc/sparc.c (function_arg): Reorder the cases.
826
827 2004-01-19  Per Bothner  <per@bothner.com>
828
829         Move cpp_reader's line_maps field to a shared global.
830         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
831         and change the type to a pointer rather than a struct.
832         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
833         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
834         Likewise.
835         * cppfiles.c (validate_pch):  Likewise.
836         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
837         Likewise.
838         * cpperror.c (print_location):  Likewise.
839         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
840         * cppinit.c (cpp_create_reader):  Handle new parameter.
841         (cpp_destroy):  Don't free line_maps - that's no longer our job.
842         * input.h (line_table):  New variable.
843         * toplev.c (line_table):  Declare variable.
844         (general_init):  Initialize line_table.
845         * c-opts.c (c_common_init_options):  Pass line_table to
846         cpp_create_reader.
847         * fix-header.c (read_scan_file):  New local variable line_table.
848         Initialize, and pass it to cpp_create_reader.
849         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
850         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
851
852 2004-01-19  Per Bothner  <per@bothner.com>
853
854         Implement a cache for linemap_lookup.
855         * line-map.h (struct_line_maps):  Add cache field.
856         * line-map.c (linemap_init):  Zero cache field.
857         (linemap_add):  Set cache field to offset of newly allocated map.
858         (linemap_lookup):  Use and set cache field.
859
860 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
861
862         PR optimization/13567
863         * cse.c (cse_basic_block): Call cse_insn with a non-null
864         libcall_insn for the last SET insn of a no-confilict block.
865
866 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
867
868         * Makefile.in (target_noncanonical, program_transform_name): Use
869         immediate define instead of deferred.
870         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
871         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
872         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
873         deferred backquote.
874
875 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
876
877         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
878         true unconditionally.
879         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
880         Remove.
881         (build_unary_op, build_modify_expr): Don't handle extended
882         lvalues.
883         (build_component_ref, build_conditional_expr): Call non_lvalue
884         instead of pedantic_non_lvalue.
885         (build_c_cast): Don't condition use of non_lvalue on pedantic.
886         * fold-const.c (fold): Don't check pedantic directly for
887         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
888         passed to pedantic_non_lvalue.
889         * doc/extend.texi: Remove documentation of extended lvalues.
890
891 2004-01-19  Roger Sayle  <roger@eyesopen.com>
892
893         PR optimization/5263
894         * simplify-rtx.c (associative_constant_p): Delete.
895         (simplify_associative_operation): Rewrite to linearize terms, and
896         attempt to simplify new term against both left and right subterms.
897         (simplify_binary_operation): Call swap_commutative_operands_p on
898         op0 and op1, not trueop0 and trueop1.  Move the initialization of
899         trueop0 and trueop1 down to where first needed.
900         (simplify_relational_operation): Likewise.
901         * rtlanal.c (commutative_operand_precedence): Also order constant
902         operands using avoid_constant_pool_reference.
903
904 2004-01-19  Richard Henderson  <rth@redhat.com>
905
906         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
907         don't check memory mode.
908         (unaligned_memory_operand): Likewise.
909         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
910         abort for op0 not MEM.
911
912         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
913         is not a reg, copy to a scratch first.
914         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
915         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
916         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
917         (reload_inqi, reload_inhi): Fix mode of op0.
918         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
919         reload_outhi_help): Likewise.  Use define_insn_and_split.
920
921         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
922         as well as $29 dead.
923
924 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
925
926         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
927         "tls_object" for thread-local objects.
928         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
929         "#tls" for thread-local sections.
930         * configure.ac (thread-local checks): Specify --fatal-warnings in
931         every binutils-specific checks.  For sparc*-*-*, test whether the
932         OS is Solaris and the tools are native and act accordingly.
933         * configure: Rebuild.
934
935 2004-01-19  Jeff Law  <law@redhat.com>
936
937         * contrib.texi: Update Paolo Carlini's entry.  New entries for
938         Jerry Quinn and Petur Runolfsson.
939
940 2004-01-19  Roger Sayle  <roger@eyesopen.com>
941
942         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
943         size, don't use the larger zero-extending loads.
944
945 2004-01-19  Richard Henderson  <rth@redhat.com>
946
947         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
948         * alpha.md (UNSPEC_NT_LDA): Remove.
949         (UNSPEC_CVTLQ, cvtlq): New.
950         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
951         (extendsidi2_fix): Remove.
952         (extendsidi2 splitter): Use cvtlq.
953         (extendsidi2 fp peepholes): Remove.
954         (cvtql): Use SFmode instead of SImode.
955         (fix_trunc?fsi): Update to match.
956         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
957         (movsi): Rename from movsi_nofix, remove f alternatives.
958         (movsi_nt_vms): Similarly.
959         (movsi_fix, movsi_nt_vms_fix): Remove.
960         (nt_lda): Remove.
961         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
962
963 2004-01-19  Jan Hubicka  <jh@suse.cz>
964
965         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
966         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
967         list.
968         (cgraph_remove_unreachable_nodes): New function
969         (cgraph_decide_inlining_of_small_function): Fix pasto.
970         (cgraph_decide_inlining_incrementally): Fix pasto.
971         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
972
973 2004-01-19  Steven Bosscher  <stevenb@suse.de>
974
975         * gengtype.c (header_file): Make it static.
976         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
977         * gengtype.h (header_file): No longer extern.
978
979 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
980
981         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
982         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
983         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
984
985 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
986
987         * stmt.c (HAVE_casesi): Define it not already defined.
988         (HAVE_tablejump): Likewise.
989         (expand_end_case_type): Resort to the binary tree method if
990         neither casesi or tablejump is available.
991
992 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
993
994         * final.c (final_scan_insn): Make non-static again.
995         * output.h (final_scan_insn): Re-add prototype.
996         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
997         to final_scan_insn call.
998         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
999         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
1000         * config/pa/pa.c (output_lbranch, output_call): Likewise.
1001         * config/sh/sh.c (print_slot): Likewise.
1002         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
1003         (output_sibcall, sparc_flat_function_epilogue): Likewise.
1004
1005 2004-01-18  Jan Hubicka  <jh@suse.cz>
1006
1007         * basic-block.h (try_redirect_by_replacing_jump): Declare.
1008         * cfgcleanup.c (try_optimize_cfg): Use it.
1009         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
1010         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
1011         Kill hack.
1012         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
1013
1014         Revert:
1015         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
1016
1017                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
1018                 even after reload, just don't remove the actual jump tables.
1019
1020 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
1021
1022         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
1023
1024 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
1025
1026         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
1027         the size of a pointer in bytes.
1028
1029 2004-01-18  Roger Sayle  <roger@eyesopen.com>
1030
1031         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
1032         live "next" variable, which could lead to an infinite loop.
1033
1034 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
1035
1036         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
1037         block.
1038
1039         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
1040         Check for NULL in the chain and remove repeated code.
1041
1042 2004-01-18  Jan Hubicka  <jh@suse.cz>
1043
1044         * coverage.c (checksum_string): Rename to ...
1045         (coverage_checksum_string): ... this one, Use crc32_string; recognize
1046         names containing random number and zero the number out in order to get
1047         match.
1048
1049 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
1050
1051         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
1052
1053 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
1054
1055         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
1056         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
1057         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
1058         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
1059         doc/trouble.texi: Remove trailing whitespace.
1060
1061 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
1062
1063         PR target/7618
1064         * config/mips/mips.c: Include cfglayout.h.
1065         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
1066         (mips_unspec_offset_high): Add temporary register argument.
1067         (mips_load_call_address): New function, split out from...
1068         (mips_expand_call): ...here.
1069         (mips_output_cplocal): New function.
1070         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
1071         (mips_emit_loadgp): New function, split out from...
1072         (mips_expand_prologue): ...here.
1073         (mips_output_mi_thunk): New function.
1074
1075 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
1076
1077         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
1078         mcpu32): Remove redundant checks for implied target predefines.
1079
1080 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
1081
1082         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
1083         Return type is unsigned int not int.
1084         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
1085         Likewise.
1086
1087 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
1088
1089         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
1090         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
1091         "GNU/Linux" and "Microsoft Windows" terminology.
1092
1093 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
1094
1095         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
1096         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
1097         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
1098         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
1099         @smallexample instead of @example.
1100
1101 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
1102
1103         * objc/objc-act.c (build_objc_method_call): Use target
1104         hooks instead of macros to determine if ..._stret
1105         dispatchers should be used (NeXT runtime only).
1106
1107 2004-01-17  Roger Sayle  <roger@eyesopen.com>
1108
1109         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
1110         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
1111
1112 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
1113
1114         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
1115         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
1116         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
1117         macros.
1118         * reload1.c (emit_reload_insns): Use them.
1119         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
1120         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
1121         for NULL PATTERN.
1122
1123 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
1124
1125         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
1126         (final_scan_insn): Update to take an additional SEEN argument.  Emit
1127         a line note after the prologue.  Make static.
1128         (line_note_exists): Remove.
1129         (final): Don't initialize line_note_exists.  Update call to
1130         final_scan_insn.
1131         * output.h (final_scan_insn): Remove prologue.
1132         * function.c (set_insn_locators): Update comment.
1133         (thread_prologue_and_epilogue_insns): Add a comment.
1134
1135 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
1136
1137         PR target/10781
1138         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
1139         Prototype.
1140         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
1141         New function.
1142         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
1143         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
1144         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
1145
1146 2004-01-17  Jan Hubicka  <jh@suse.cz>
1147
1148         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
1149         commit.
1150
1151         * toplev.c (HAVE_conditional_execution): Provide default.
1152         (rest_of_handle_reorder_blocks): For conditional_execution target
1153         update liveness once after all transformations
1154         (rest_of_compilation): Do crossjumping before ce3.
1155
1156 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
1157
1158         * alias.c (new_alias_set): Mark last_alias_set for PCH.
1159         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
1160         for PCH.
1161         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
1162         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
1163         (get_TOC_alias_set): Mark 'set' for PCH.
1164
1165 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
1166
1167         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
1168         even after reload, just don't remove the actual jump tables.
1169
1170 2004-01-17  J. Brobecker  <brobecker@gnat.com>
1171
1172         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
1173         Remove checks for is_ada() and TREE_UNSIGNED.
1174         (subrange_type_die): Emit a byte_size attribute if the subrange
1175         type size is different from the base type size.
1176         (modified_type_die): Replace call to is_ada_subrange_type() by
1177         call to is_subrange_type().
1178
1179 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
1180
1181         * config/sh/sh.c: Include ggc.h.
1182
1183 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
1184
1185         * Makefile.in (MD5_H): New.
1186         (fold-const.o): Depend on md5.h.
1187         (dwarf2out.o): Likewise.
1188         (cppfiles.o): Likewise.
1189         * cppfiles.c: Include md5.h.
1190         (should_stack_file): Check against list read from PCH file.
1191         (struct pchf_data): New.
1192         (pchf): New variable.
1193         (struct pchf_adder_info): New.
1194         (pchf_adder): New.
1195         (pchf_save_compare): New.
1196         (_cpp_save_file_entries): New.
1197         (_cpp_read_file_entries): New.
1198         (struct pchf_compare_data): New.
1199         (pchf_compare): New.
1200         (check_file_against_entries): New.
1201         * cpphash.h (_cpp_save_file_entries): Prototype.
1202         (_cpp_read_file_entries): Prototype.
1203         * cpppch.c (cpp_write_pch_state): Write the list of headers.
1204         (cpp_read_state): Read the list of headers.
1205
1206 2004-01-17  Jan Hubicka  <jh@suse.cz>
1207
1208         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
1209         builtin_expect specially.
1210         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
1211         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
1212         * invoke.texi (max-inline-insns-single): Set to 100.
1213         (large-function-insns): Set to 3000.
1214
1215 2004-01-16  Eric Christopher  <echristo@redhat.com>
1216             Chandrakala Chavva <cchavva@redhat.com>
1217
1218         * cppcharset.c (one_iso88591_to_utf8): New function.
1219         (convert_iso88591_utf8): Ditto. Use.
1220         (conversion_tab): Use.
1221         (_cpp_input_to_utf8): New function.
1222         (_cpp_init_iconv_buffer): Ditto.
1223         (_cpp_close_iconv_buffer): Ditto.
1224         * cpphash.h: Prototype new functions.
1225         (cpp_buffer): Add input_cset_desc.
1226         * cppinit.c: Add input_charset default.
1227         * cpplib.c (cpp_push_buffer): Support init and
1228         close of iconv.
1229         * cpplib.h (cpp_options): Add input_charset.
1230
1231 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
1232
1233         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
1234         * config/alpha/unicosmk.h: Remove a commented-out definition
1235         of ASM_OUTPUT_SECTION_NAME.
1236         * config/stormy16/stormy16.h: Likewise.
1237
1238 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1239
1240         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
1241         (alpha___extern_prefix_sys_stat): ... this.
1242         Apply to <sys/mount.h>, too.
1243         Tweak to match more variations.
1244         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
1245
1246         * fixinc/inclhack.def (alpha___extern_prefix,
1247         alpha___extern_prefix_standards): New hacks to obey
1248         __PRAGMA_EXTERN_PREFIX.
1249         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
1250         test.
1251         * fixinc/tests/base/standards.h: Likewise.
1252
1253         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
1254         variations.
1255         New testcase.
1256         * fixinc/tests/base/pthread.h: Handle it.
1257
1258         * fixincl/inclhack.def (bad_lval): Sort file list.
1259         Add many missing files up to Tru64 UNIX V5.1B.
1260         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
1261         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
1262         order.
1263
1264         * fixinc/fixincl.x: Regenerate.
1265
1266 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
1267
1268         * version.c (version_string): Change to 3.5.0.
1269         * doc/include/gcc-common.texi (version-GCC): Likewise.
1270
1271 2004-01-16  Jan Hubicka  <jh@suse.cz>
1272
1273         * i386.md (load_tp_di): Fix pasto.
1274
1275         PR opt/13608
1276         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
1277
1278         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
1279         pp_c_character_constant, pp_c_floating_constant,
1280         pp_c_additive_expression, pp_c_shift_expression,
1281         pp_c_equality_expression, pp_c_and_expression,
1282         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
1283         pp_c_logical_and_expression): Remove inline modifier.
1284         * dwarf2out.c (get_AT): Likewise.
1285         * et-forest.c (et_splay): Likewise.
1286         * ra.h (ra_alloc, ra_calloc): Likewise
1287
1288 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
1289
1290         * config/frv/frv-protos.h: Fix comment formatting.
1291         * config/frv/frv.c: Likewise.
1292         * config/frv/frv.h: Likewise.
1293         * config/frv/frv.md: Likewise.
1294         * config/frv/frvbegin.c: Likewise.
1295         * config/frv/frvend.c: Likewise.
1296
1297 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
1298
1299         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
1300         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
1301         LINKER_DOES_NOT_WORK_WITH_DWARF2.
1302         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
1303
1304 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
1305
1306         PR 11864
1307         * postreload.c (reload_cse_simplify_operands): Don't remove
1308         implicit extension from LOAD_EXTEND_OP.
1309
1310 2004-01-16  Jan Hubicka  <jh@suse.cz>
1311
1312         PR opt/11350
1313         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
1314         after reload.
1315         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
1316         rtl_try_redirect_by_replacing_branch): Likewise.
1317
1318 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
1319
1320         PR pch/13689
1321         * alias.c (struct alias_set_entry): Mark for GC.
1322         (alias_sets): Make static, mark for GC.
1323         (record_alias_subset): Use GC to allocate alias structures.
1324         * varray.c (element): Make generic varrays GCed.
1325
1326         PR pch/13361
1327         * c-typeck.c (constructor_asmspec): Delete.
1328         (struct initializer_stack): Delete field 'asmspec'.
1329         (start_init): Delete saving of asmspec.
1330         (finish_init): Don't update constructor_asmspec.
1331         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
1332         * stmt.c (expand_asm): Duplicate strings from tree.
1333         (expand_asm_operands): Likewise.
1334         * tree.c (tree_size): Update computation of size of STRING_CST.
1335         (make_node): Don't make STRING_CST nodes.
1336         (build_string): Allocate string with tree node.
1337         * tree.def (STRING_CST): Update comment.
1338         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
1339         (tree_string): Place contents of string in tree node.
1340         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
1341         from tree.
1342
1343         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
1344         altivec operands.
1345
1346 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
1347
1348         * c-common.h: Fix comment formatting.
1349         * c-cppbuiltin.c: Likewise.
1350         * c-pragma.c: Likewise.
1351         * calls.c: Likewise.
1352         * collect2.c: Likewise.
1353         * cppcharset.c: Likewise.
1354         * cpptrad.c: Likewise.
1355         * dbxout.c: Likewise.
1356         * defaults.h: Likewise.
1357         * dwarf2out.c: Likewise.
1358         * fold-const.c: Likewise.
1359         * genautomata.c: Likewise.
1360         * genconditions.c: Likewise.
1361         * genflags.c: Likewise.
1362         * gengtype.c: Likewise.
1363         * integrate.c: Likewise.
1364         * loop.c: Likewise.
1365         * predict.c: Likewise.
1366         * sdbout.c: Likewise.
1367
1368 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
1369
1370         * config/ia64/ia64.md (*movti_internal): C output template
1371         extracted to ia64.c.
1372         (*movti_internal_reg): Delete.
1373         (reload_inti, reload_outti): Use the correct mode on operand 2
1374         in the first place, don't fix it up in the output template.
1375         (movtf, reload_ointf, reload_outtf): New expanders.
1376         (*movtf_internal): New define_insn_and_split.
1377         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
1378         make static; do not hand TFmode CONST_DOUBLEs to split_double.
1379         (ia64_split_tmode_move): New function, body mostly pulled
1380         from ia64.md:*movti_internal.
1381         (ia64_function_arg_words): New function, extracted common
1382         logic from ia64_function_arg et seq.
1383         (ia64_function_arg_offset): Likewise.  Handle correctly the
1384         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
1385         (ia64_function_arg, ia64_function_arg_partial_nregs)
1386         (ia64_function_arg_advance): Use ia64_function_arg_words and
1387         ia64_function_arg_offset.
1388         (ia64_function_value): TCmode does not go in float regs.
1389         (ia64_secondary_reload_class): Also handle TFmode.
1390         * config/ia64/ia64-protos.h: Remove prototype for
1391         ia64_split_timode; add prototype for ia64_split_tmode_move.
1392
1393 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
1394
1395         * Makefile.in (MAINT): Make it an immediate assignment.
1396
1397 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
1398
1399         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
1400
1401 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
1402
1403         * config/h8300/coff.h: Replace Hitachi with Renesas.
1404         * config/h8300/elf.h: Likewise.
1405         * config/h8300/h8300-protos.h: Likewise.
1406         * config/h8300/h8300.c: Likewise.
1407         * config/h8300/h8300.h: Likewise.
1408         * config/h8300/h8300.md: Likewise.
1409         * config/h8300/lib1funcs.asm: Likewise.
1410
1411 2004-01-15  Andrew Pinski  <apinski@apple.com>
1412
1413         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
1414         around it.
1415
1416 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
1417
1418         * config/h8300/h8300.c (h8300_return_in_memory): New.
1419         (TARGET_STRUCT_VALUE_RTX): Likewise.
1420         (TARGET_RETURN_IN_MEMORY): Likewise.
1421         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
1422         (RETURN_IN_MEMORY): Likewise.
1423
1424 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
1425
1426         PR optimization/13375
1427         * gcse.c (handle_avail_expr): Just return if the source is not a
1428         single set.
1429
1430 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
1431             Daniel Jacobowitz  <drow@mvista.com>
1432
1433         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
1434         (EQUIV): Define.
1435         (ARM_FUNC_ALIAS): New macro.
1436         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
1437         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
1438
1439 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1440
1441         PR optimization/12372
1442         * calls.c (expand_call): Add call_fusage data for stack arguments in
1443         constant calls.
1444
1445 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1446
1447         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
1448         (rs6000_elf_declare_function_name): Formatting.
1449         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
1450
1451 2004-01-15  Jan Hubicka  <jh@suse.cz>
1452
1453         PR bootstrap/13692
1454         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
1455         previous patch.
1456
1457 2004-01-15  Richard Henderson  <rth@redhat.com>
1458
1459         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
1460         integer regs of the same call-savedness.
1461
1462 2004-01-15  Andreas Schwab  <schwab@suse.de>
1463
1464         PR bootstrap/13562
1465         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
1466         status for NOTB/NOTW/NEGW methods.
1467
1468 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
1469
1470         * doc/invoke.texi: Update dump file names.  Fix a typo.
1471
1472 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
1473
1474         * builtins.c (expand_builtin_va_end): Don't use
1475         EXPAND_BUILTIN_VA_END.
1476         * system.h (EXPAND_BUILTIN_VA_END): Poison.
1477         * config/d30v/d30v.h: Remove a commented-out definition of
1478         EXPAND_BUILTIN_VA_END.
1479         * config/stormy16/stormy16.h: Likewise.
1480
1481 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
1482
1483         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
1484         * targhooks.c (default_struct_value_rtx): Don't use
1485         STRUCT_VALUE_INCOMING_REGNUM.
1486
1487 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
1488
1489         PR bootstrap/12744
1490         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
1491         GENINSRC and not parsedir.  Define srcextra as a langhook.
1492         * configure: Regenerate.
1493         * Makefile.in: Suppress default .l.c rule.  Don't substitute
1494         parsedir and delete all references throughout.  Conditionally define
1495         rule for srcextra dependent on GENINSRC.
1496         (stmp-docobjdir): Delete.
1497         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
1498         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
1499         and gengtype-yacc.h back to source directory.
1500         (maintainer-clean): Delete all parse files in source directory.
1501         (distclean): Delete generated files.
1502
1503         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
1504         (objc-parse.c, objc-parse.y): Don't use parsedir.
1505         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
1506         directory if requested.
1507         (po-generated): Don't use parsedir.
1508         (objc.maintainer-clean): Delete above files from source directory.
1509
1510 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
1511
1512         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
1513
1514 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
1515
1516         * doc/tm.texi: Replace RETURN_IN_MEMORY with
1517         TARGET_RETURN_IN_MEMORY.
1518
1519 2004-01-15  Jan Hubicka  <jh@suse.cz>
1520
1521         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
1522         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
1523         functions accepting SSE arguments
1524         (function_arg): Warn only when asked to warn.
1525         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
1526
1527 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1528
1529         * c-parse.in (stmts_and_decls): Make label at end of compound
1530         statement a hard error.
1531
1532 2004-01-14  Jan Hubicka  <jh@suse.cz>
1533
1534         * cgraph.c (create_edge): Use local.redefined_extern_inline.
1535         * cgraph.h (cgraph_local_info): Sort fields by size; add
1536         redefined_extern_inline
1537         (cgraph_global_info): Sort fields by size.
1538         (cgraph_node): Likewise.
1539         * cgraphunit.c (cgraph_finalize_function): Se
1540         local.redefined_extern_inline on redefinition.
1541         (cgraph_analyze_function): Use it; fix formating.
1542
1543 2004-01-14  Jan Hubicka  <jh@suse.cz>
1544
1545         PR c++/10776
1546         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
1547         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
1548         bitmaps
1549         (cache_size): New variable
1550         (add_dependence): Update use; canonize early memory locations
1551         (sched_analyze_1): Likewise.
1552         (sched_analyze_2): Likewise.
1553         (init_dependency_caches): Initialize bitmaps.
1554         (free_dependency_caches): Free bitmaps
1555
1556 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
1557
1558         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
1559         targetm.calls.strict_argument_naming().
1560         * target.h: Likewise.
1561
1562 2004-01-14  Richard Henderson  <rth@redhat.com>
1563
1564         PR debug/13231
1565         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
1566         instructions.
1567
1568 2004-01-14  Richard Henderson  <rth@redhat.com>
1569
1570         PR c++/12491
1571         * except.c (struct eh_region): Add u.fixup.resolved.
1572         (resolve_one_fixup_region): Split out from ...
1573         (resolve_fixup_regions): ... here.
1574
1575 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
1576
1577         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
1578
1579 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
1580
1581         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
1582         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
1583         (STRUCT_VALUE): Remove.
1584
1585 2004-01-14  Steven Bosscher  <stevenb@suse.de>
1586
1587         * system.h: Poison PROMOTED_MODE
1588         * integrate.c (expand_inline_function): Don't mention the
1589         PROMOTED_MODE.
1590         * loop.c (update_giv_derive): Same.
1591         * tree.h (DECL_RTL): Same.
1592
1593 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
1594
1595         PR target/9365
1596         * sh.c (gen_block_redirect): Add special handling of RETURN.
1597         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
1598         far branch target (i.e. it's a return).
1599
1600 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
1601
1602         * regrename.c (find_oldest_value_reg): Fix a warning.
1603
1604 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
1605
1606         PR bootstrap/12527
1607         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
1608         Move linux-gas.h and linux-elf.h before aout.h.
1609         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
1610         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
1611
1612 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
1613
1614         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
1615         (CONST_INT, VOIDmode, ...).
1616
1617 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
1618
1619         * regrename.c (find_oldest_value_reg): If the replacement uses
1620         multiple hard registers, check that all of them are in CLASS.
1621
1622 2004-01-14  Jan Hubicka  <jh@suse.cz>
1623
1624         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
1625         impossible.
1626
1627 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
1628
1629         * Makefile.in: Define MAINT from --enable-maintainer-mode.
1630
1631 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
1632
1633         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
1634         Calculate always vrsave_mask if TARGET_ALTIVEC.
1635         (rs6000_emit_prologue): Emit code for vrsave
1636         only if TARGET_ALTIVEC_VRSAVE.
1637         (rs6000_emit_epilogue): Likewise.
1638
1639 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
1640
1641         * config/sparc/sparc.md (tie_add32): Fix pasto.
1642         (tie_add64): Likewise.
1643
1644 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1645
1646         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
1647
1648 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
1649
1650         * config/iq2000/iq2000-protos.h: Fix comment formatting.
1651         * config/iq2000/iq2000.c: Likewise.
1652         * config/iq2000/iq2000.md: Likewise.
1653
1654 2004-01-14  J. Brobecker  <brobecker@gnat.com>
1655
1656         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
1657         (subrange_type_die): Add handle for nameless subrange types.
1658
1659 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
1660
1661         * config/h8300/h8300-protos.h: Replace do_movsi with
1662         h8300_expand_movsi.
1663         * config/h8300/h8300.c (do_movsi): Change to
1664         h8300_expand_movsi.
1665         * config/h8300/h8300.md (movsi): Replace do_movsi with
1666         h8300_expand_movsi.
1667         (movsf): Likewise.
1668
1669 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
1670
1671         * config/h8300/h8300.c (dosize): Change to
1672         h8300_emit_stack_adjustment.  Update callers.
1673
1674 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
1675
1676         * config/h8300/h8300.md (movstrictqi): Add an alternative with
1677         the source being post_inc.  Tighten the predicate for the
1678         destination to register_operand.
1679         (movstricthi): Likewise.
1680
1681 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
1682
1683         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
1684         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
1685         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
1686
1687 2004-01-14  Jan Hubicka  <jh@suse.cz>
1688
1689         Partial fix PR c++/12850
1690         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
1691         at zero nest level.
1692
1693 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
1694
1695         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
1696         pseudo-register.
1697
1698 2004-01-13  Devang Patel <dpatel@apple.com
1699
1700         PR debug/7078
1701         * dbxout.c (dbxout_symbol_name): Emit mangled names for
1702         NAMESPACE_DECL memebers.
1703
1704 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
1705
1706         PR c++/12709
1707         * c-common.c (finish_fname_decls): Use the chain only if the
1708         tree is an expr_stmt.
1709
1710 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
1711
1712         * rtl.def: Add comment about new option in automata_option.
1713
1714         * genautomata.c (PROGRESS_OPTION): New macro.
1715         (progress_flag): New global variable.
1716         (gen_automata_option): Process `progress'.
1717         (transform_insn_regexps, check_unit_distributions_to_automata,
1718         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
1719         expand_automata, write_automata): Print about the progress only if
1720         progress_flag.  Remove fflush.
1721         (initiate_automaton_gen): Process command line flag `-progress'.
1722
1723         * doc/md.texi: Describe the new option.
1724
1725 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1726
1727         * cfg.c (dump_bb): Dump entry edges.
1728
1729 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
1730
1731         * arm.c (thumb_legitimate_address_p): Only allow constant pool
1732         references from SImode.
1733         * arm.md (thumb_movhi_insn): Don't allow minipool references.
1734
1735 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
1736
1737         * system.h (TEXT_SECTION): Poison.
1738         * varasm.c (text_section): Don't use TEXT_SECTION.
1739         * config/sh/sh.c (sh_file_start): Fix a comment typo.
1740         * doc/tm.texi (TEXT_SECTION): Remove.
1741
1742 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
1743
1744         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
1745
1746 2004-01-12  James E Wilson  <wilson@specifixinc.com>
1747
1748         * unwind-libunwind.c: Delete.
1749
1750 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
1751
1752         PR 13656
1753         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
1754         oldtype is set, set *newtypep or *oldtypep too.  Do not set
1755         them at the very end.
1756         (validate_proto_after_old_defn): Restructure for comprehensibility;
1757         make error messages clearer.
1758
1759 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
1760
1761         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
1762         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
1763         * varray.c: No need to prototype error.
1764         (varray_check_failed): Wrap long string onto two lines.
1765         (varray_underflow): New function.
1766
1767 2004-01-13  Steven Bosscher  <stevenb@suse.de>
1768
1769         PR c++/13376
1770         * function.h (struct function): Kill `name' field.
1771         (current_function_name): Make it an extern function.
1772         * function.c (current_function_name): New function.
1773         * graph.c: Update all uses of current_function_name.
1774         * gcse.c: Likewise.
1775         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
1776         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
1777         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
1778         instead of a strcmp with "main".
1779
1780 2004-01-13  Jan Hubicka  <jh@suse.cz>
1781
1782         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
1783
1784         * cgraphunit.c (cgraph_optimize_function):  Always do
1785         optimize_inline_calls when there is always_inline callee.
1786         (cgraph_decide_inlining): Fix formating.
1787         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
1788         functions.
1789         (expand_call_inline): Likewise.
1790         * toplev.h (sorry): Fix prototype.
1791
1792 2004-01-12  Roger Sayle  <roger@eyesopen.com>
1793
1794         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
1795         conditional jumps that drop through to unconditional jumps or the
1796         end of the sequence.
1797
1798 2004-01-13  Jan Hubicka  <jh@suse.cz>
1799
1800         * alias.c (new_alias_set): Construct the alias_set varray.
1801         (init_alias_once): Don't do it here.
1802
1803 2004-01-12  Marc Espie <espie@openbsd.org>
1804
1805         * system.h: handle YYBYACC like YYBISON.
1806
1807 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
1808
1809         PR target/10847
1810         * config.gcc: No longer includes conflicting header sparc/sol2.h when
1811         building on sparc64-*-openbsd*.
1812
1813 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
1814
1815         PR debug/13539
1816         * dbxout.c (dbxout_type): Protected inheritance is not
1817         private but protected.
1818
1819 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
1820
1821         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
1822
1823 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
1824
1825         PR optimization/12508.
1826         * combine.c (try_combine): Remove a dead set in a parallel
1827         even if its destination is a subreg.
1828
1829         Revert:
1830         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
1831         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
1832         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
1833
1834 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
1835
1836         * real.c: Update copyright date.
1837         * emit-rtl.c: Likewise.
1838         * rtl.h: Likewise.
1839         * dwarf2out.c: Likewise.
1840         * config/rs6000/darwin-ldouble.c: Likewise.
1841         * config/rs6000/rs6000.md: Likewise.
1842
1843 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
1844
1845         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
1846         TFmode to SImode libfuncs.
1847
1848 2004-01-12  Roger Sayle  <roger@eyesopen.com>
1849
1850         PR middle-end/11397
1851         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
1852
1853 2004-01-12  Jan Hubicka  <jh@suse.cz>
1854
1855         PR opt/12826
1856         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
1857         stored.
1858
1859         PR opt/12863
1860         * cfgcleanup.c (label_is_jump_target_p): Move to...
1861         * rtlanal.c (label_is_jump_target_p): ... here.
1862         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
1863         edges unified with branch edges.
1864
1865 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
1866
1867         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
1868         high word of an integral CONST_DOUBLE.
1869
1870 2004-01-12  Paul Brook  <paul@codesourcery.com>
1871
1872         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
1873
1874 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
1875
1876         PR target/13585
1877         * sh-protos.h (check_use_sfunc_addr): Declare.
1878         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
1879         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
1880
1881 2004-01-12  Jan Hubicka  <jh@suse.cz>
1882
1883         * alias.c:  Invlude varray.h
1884         (alias_sets): Turn into varray.
1885         (get_alias_set_entry): Use VARRAY; mark inline.
1886         (mems_in_disjoint_alias_sets_p): Mark inline.
1887         (record_alias_subset): Use varray.
1888         (init_alias_once): Initialize varray.
1889         (new_alias_set): Grow array.
1890         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
1891
1892 2004-01-12  Jan Hubicka  <jh@suse.cz>
1893
1894         Partial fix for PR opt/10776 II
1895         * cselib.c: Include params.h
1896         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
1897         locations.
1898         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
1899         * Makefile.in (cselib.o): Depend on params.h
1900
1901 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
1902
1903         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
1904         simplify_unary_operation if the operand has a known mode.
1905
1906 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
1907
1908         PR target/13534
1909         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
1910         predicate to handle 'ld' conform addresses.
1911         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
1912         contraint.
1913         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
1914         are memory contraints.
1915         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
1916         New prototype.
1917         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
1918         Change 'o' to 'Y' constraint.
1919         (*movdf_softfloat64): Ditto.
1920
1921 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
1922
1923         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
1924         brace-enclosed syntax in all C output statements.
1925
1926 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
1927
1928         PR target/13401
1929         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1930         Objective-C language type value is 14.
1931
1932 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
1933
1934         PR c/12148
1935         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
1936         `int' in a number of places to make sure we always have a SImode
1937         and not a HImode.  Add a 'L' suffix to a number of constants.
1938
1939 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1940
1941         * pa.c: Don't include obstack.h.
1942
1943         * pa.md: Correct constraint in pattern for loading PIC label address.
1944
1945 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
1946
1947         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
1948          before defining.
1949
1950 2004-01-11  Steven Bosscher  <stevenb@suse.de>
1951
1952         PR fortran/9972
1953         * toplev.c (rest_of_handle_inline): Also consider functions
1954         for deferral if the language is GNU F77.
1955
1956 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
1957
1958         * c-decl.c (diagnose_arglist_conflict): Add missing space to
1959         diagnostic messages.
1960
1961 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
1962
1963         PR middle-end/13392
1964         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
1965         to drop through label.  Don't fall back to SCC even when conditional
1966         jump has not been found.
1967
1968 2004-01-11  Jan Hubicka  <jh@suse.cz>
1969
1970         * invoke.texi: Fix syntax error in previous patch.
1971
1972         Partial fix for PR opt/10776
1973         * Makefile.in (reload.o): Include param.h
1974         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
1975         * reload.c: Include params.h.
1976         (find_equiv_reg): Work limiting check.
1977         * invoke.texi: Document.
1978
1979 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
1980
1981         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
1982         out-of-bounds accesses to string constants.  Simplify mips16
1983         case accordingly.
1984
1985 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
1986
1987         PR optimization/13469
1988         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
1989         reload_cse_regs (-fnon-call-exceptions only).
1990
1991 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
1992
1993         * config/mcore/lib1.asm: Fix comment formatting.
1994         * config/mcore/mcore-elf.h: Likewise.
1995         * config/mcore/mcore.c: Likewise.
1996         * config/mcore/mcore.h: Likewise.
1997         * config/mcore/mcore.md: Likewise.
1998
1999 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
2000
2001         * c-decl.c (duplicate_decls): Break apart into...
2002         (diagnose_arglist_conflict, validate_proto_after_old_defn)
2003         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
2004         ... these new functions.  Restructure for comprehensibility.
2005         Remove various archaic special cases.  Always report the
2006         location of the previous declaration when a diagnostic is issued.
2007         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
2008         (match_builtin_function_types): Delete unnecessary forward declaration.
2009
2010 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
2011
2012         * genautomata.c (make_automaton, NDFA_to_DFA):
2013         Print progress bars with '.' characters instead of '*'.
2014         (build_automaton): Change notes to match.
2015
2016 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
2017
2018         * config/m32r/m32r.md: Use define_constants for unspec and
2019         unspec_volatile.
2020
2021 2004-01-10  Jan Hubicka  <jh@suse.cz>
2022
2023         PR opt/11635
2024         * expr.c (expand_expr_real):  More curefully expand union casts.
2025
2026 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
2027
2028         * config/m32r/m32r.md (flush_icache): Use 1 for
2029         unspec_volatile.
2030
2031 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
2032             James E Wilson  <wilson@specifixinc.com>
2033
2034         PR debug/12860
2035         * dbxout.c (dbxout_symbol): Remove initialization of
2036         current_sym_code, current_sym_value, and current_sym_addr.
2037         (dbxout_symbol_location): Same.
2038         (dbxout_prepare_symbol): Zero current_sym_code,
2039         current_sym_value, and current_sym_addr.
2040
2041 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
2042
2043         * tree.c (get_unwidened): Reorder conditions so that the null pointer
2044         check is done first.
2045
2046 2004-01-09  Eric Christopher  <echristo@redhat.com>
2047
2048         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
2049         if we're running mark_constant_function.
2050
2051 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
2052
2053         PR target/12561
2054         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
2055
2056 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
2057
2058         PR debug/11231
2059         * dbxout.c (dbxout_type_fields): Return if any item is
2060         error_mark_node or the type is error_mark_node.
2061
2062 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
2063
2064         * config/rs6000/darwin-ldouble.c: Add big comment explaining
2065         exactly what is expected as a 'long double'.
2066         (_xlqadd): When a value to be returned is representable as a
2067         'double', just return it directly, do not construct it using a union.
2068         Also, correct final fixup.
2069         (_xlqmul): Likewise.
2070         (_xlqdiv): Likewise.
2071         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
2072
2073         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
2074
2075 2004-01-09  Richard Henderson  <rth@redhat.com>
2076
2077         * recog.c (constrain_operands): Validate mem operands.
2078
2079 2004-01-09   James E Wilson  <wilson@specifixinc.com>
2080
2081         * gcc.c (init_spec): Remove -lunwind from shared case.
2082         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
2083
2084 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
2085
2086         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
2087         * configure: Regenerate
2088
2089 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2090
2091         PR c/11234
2092         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
2093         between function and object pointers.
2094         (digest_init): When comparing a pointer to function type to the
2095         target type, only apply TREE_TYPE once to the pointer to function
2096         type.
2097         * except.c (for_each_eh_label_1): Treat data as a pointer to a
2098         function pointer rather than casting it to a function pointer.
2099         (for_each_eh_label): Update caller.
2100         * recog.h (struct insn_data): Use a struct or union for output.
2101         * genoutput.c (output_insn_data): Update.
2102         * final.c (get_insn_template): Update.
2103
2104 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
2105
2106         * expr.h (expand_expr): Make it a macro, not a function.
2107         (expand_expr_real): New function.
2108         * expr.c (store_expr): Adjust logic for deciding whether or not to
2109         copy the value returned by expand_expr.
2110         (expand_expr): Rename to ...
2111         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
2112         calls to language hooks.
2113         * c-common.h (c_expand_expr): Adjust prototype.
2114         * c-common.c (c_expand_expr): Add alt_rtl parameter.
2115         * langhooks-def.h (lhd_expand_expr): Change prototype.
2116         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
2117         * langhooks.h (lang_hooks): Change type of expand_expr.
2118         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
2119         (last_expr_alt_rtl): Likewise.
2120         (expand_expr_stmt_value): Set last_expr_alt_rtl.
2121         (clear_last_expr): Clear it.
2122         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
2123         (expand_end_bindings): Save and restor last_expr_alt_rtl.
2124         * tree.def (RTL_EXPR): Give it an additional operand.
2125         * tree.h (RTL_EXPR_ALT_RTL): New macro.
2126
2127 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2128
2129         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
2130         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
2131
2132 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
2133
2134         PR target/13380.
2135         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
2136         or (ne:SI (reg:CC 17) (const_int 0)).
2137         Be specific about modes wherever possible.
2138
2139 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
2140
2141         * config/m32r/m32r.c (m32r_expand_block_move): Call
2142         gen_movestrsi_internal with two more arguments.
2143         (m32r_output_block_move): Adjust operand numbers.
2144         Properly update the source and destination pointers.
2145         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
2146         'r+'.  Change the set detinations to match_operand.
2147
2148 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
2149
2150         * final.c (FIRST_INSN_ADDRESS): Remove.
2151         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
2152         * system.h (FIRST_INSN_ADDRESS): Poison.
2153         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
2154         * config/m32r/m32r-protos.h: Remove the prototype for
2155         m32r_first_insn_address.
2156         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
2157         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
2158         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
2159
2160 2004-01-09  J. Brobecker  <brobecker@gnat.com>
2161
2162         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
2163         we just created.
2164         (is_ada_subrange_type): DIEs for enumeration subtypes should be
2165         emitted as subrange types too.
2166         (subrange_type_die): Add handling of enumeration subtypes.
2167
2168 2004-01-08  Richard Henderson  <rth@redhat.com>
2169
2170         PR opt/12441
2171         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
2172         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2173         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2174         (ix86_address_cost): Be prepared for SUBREGed registers.
2175         (legitimate_address_p): Accept SUBREGed registers.
2176
2177 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
2178
2179         * Makefile.in: Rename configure.in to configure.ac
2180         * doc/sourcebuild.texi: Likewise.
2181         * configure: Regenerate.
2182         * config.in: Regenerate.
2183
2184 2004-01-08  Stuart Hastings  <stuart@apple.com>
2185
2186         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
2187
2188 2004-01-08  Jan Hubicka  <jh@suse.cz>
2189
2190         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
2191
2192 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
2193
2194         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
2195         (UNSPEC_FIX_TRUNC_TF): New constant.
2196         (movtf_internal): Make splitter active only when insn is active.
2197         (extenddftf2): Rewrite to properly load zero into low part.
2198         (extenddftf2_internal): New.
2199         (extendsftf2): Rewrite.
2200         (truncdftf2): Correct length.
2201         (floatditf2): Delete.
2202         (fix_trunc_helper): New.
2203         (fix_trunctfdi2): Use fix_trunc_helper.
2204         (fix_trunctfsi2): Likewise.fix_trunc
2205         (fix_trunctfsi2_internal): New.
2206
2207         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
2208         addresses are legitimate on Darwin even when flag_pic.
2209         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
2210         non-offsettable addresses for loads of TFmode constants.
2211
2212 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2213
2214         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
2215         variables in the appropriate bss section.
2216
2217 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
2218
2219         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
2220         target_flags has MASK_POWERPC64 when -m64.
2221         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
2222         to 620, 630, power3, power4 and rs64a entries.
2223         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
2224
2225 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
2226
2227         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
2228         floating-point constants.
2229
2230 2004-01-08  J. Brobecker  <brobecker@gnat.com>
2231
2232         * dwarf2out.c (subrange_type_die): Add context_die parameter.
2233         Create the subrange_type DIE using the given context DIE.
2234         (modified_type_die): Update call to subrange_type_die.
2235
2236 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
2237
2238         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
2239         Add multiple-include guard.
2240
2241 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
2242
2243         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
2244         all vector constant loadable by vsplt*.
2245         (output_vec_const_move): Likewise.
2246
2247 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
2248
2249         PR c/6024
2250         * c-typeck.c (comptypes): Only treat enumerated types in the same
2251         translation unit as compatible with each other when they are the
2252         same type.
2253         * doc/extend.texi: Update.
2254
2255 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
2256
2257         PR c/12165
2258         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
2259         array type from the array element type.
2260
2261 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
2262
2263         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
2264         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
2265         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
2266         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
2267         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
2268
2269 2004-01-06  Eric Christopher  <echristo@redhat.com>
2270
2271         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
2272         (DWARF2_DEBUGGING_INFO): Define.
2273         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
2274         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
2275         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
2276         for irix as.
2277         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
2278         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
2279         * config/mips/iris5gas.h: Ditto.
2280         (DBX_DEBUGGING_INFO): Remove.
2281         (DWARF2_DEBUGGING_INFO): Ditto.
2282         (MIPS_DEBUGGING_INFO): Ditto.
2283         (PREFERRED_DEBUGGING_TYPE): Ditto.
2284         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
2285         (PREFERRED_DEBUGGING_TYPE): Ditto.
2286         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
2287         * config/mips/elf64.h: Ditto.
2288
2289 2004-01-06  Jan Hubicka  <jh@suse.cz>
2290
2291         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
2292         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
2293
2294 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
2295
2296         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
2297         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
2298         * config/rs6000/darwin-ldouble.c: New.
2299
2300         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
2301         for constants.
2302         (constant_subword): Delete.
2303         * rtl.h (constant_subword): Delete prototype.
2304         (immed_double_const): Is not in varasm.c.
2305         * simplify-rtx.c (simplify_immed_subreg): New.
2306         (simplify_subreg): Use simplify_immed_subreg.
2307
2308         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
2309         than trying to generate RTL directly.
2310         (fix_trunctfsi2): Use expand_fix rather than trying to generate
2311         RTL directly.
2312
2313         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
2314
2315 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
2316
2317         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
2318         function into a separate macro.
2319         (read_only_data_section): Add void argument.
2320         (private_data_section): Same.
2321         (read_only_private_data_section): Same.
2322         (toc_section): Same.
2323
2324 2004-01-06  Jan Hubicka  <jh@suse.cz>
2325
2326         * invoke.texi:  Remove typo in last change.
2327
2328         PR target/10301
2329         * config.gcc: Accept opteron and athlon-64 as variants
2330         of k8.
2331         * i386.c (override_options): Likewise.
2332         * invoke.texi (i386 -mtune): Expand documentation.
2333
2334 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
2335
2336         * alias.c: Fix comment typos.
2337         * builtins.c: Likewise.
2338         * cfg.c: Likewise.
2339         * df.c: Likewise.
2340         * dominance.c: Likewise.
2341         * dwarf2out.c: Likewise.
2342         * emit-rtl.c: Likewise.
2343         * expr.c: Likewise.
2344         * final.c: Likewise.
2345         * fold-const.c: Likewise.
2346         * gcse.c: Likewise.
2347         * genattrtab.c: Likewise.
2348         * genrecog.c: Likewise.
2349         * gensupport.c: Likewise.
2350         * ggc-zone.c: Likewise.
2351         * integrate.c: Likewise.
2352         * local-alloc.c: Likewise.
2353         * loop.c: Likewise.
2354         * recog.c: Likewise.
2355         * regmove.c: Likewise.
2356         * reg-stack.c: Likewise.
2357         * reorg.c: Likewise.
2358         * rtlanal.c: Likewise.
2359         * rtl.h: Likewise.
2360         * sched-ebb.c: Likewise.
2361         * simplify-rtx.c: Likewise.
2362         * toplev.c: Likewise.
2363         * varasm.c: Likewise.
2364
2365 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
2366
2367         * doc/install.texi: Fix typos.
2368         * doc/invoke.texi: Likewise.
2369         * doc/md.texi: Likewise.
2370
2371 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2372
2373         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
2374
2375 2004-01-06  Jan Hubicka  <jh@suse.cz>
2376
2377         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
2378         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
2379         of MMX_REGPARM.
2380         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
2381         add MMX_REGPARM.
2382         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
2383         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
2384         (MMX_REGPARM_MAX): Similarly for -mmmx.
2385
2386 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
2387
2388         * config/sh/linux.h: Fix comment formatting.
2389         * config/sh/netbsd-elf.h: Likewise.
2390         * config/sh/sh.c: Likewise.
2391         * config/sh/sh.h: Likewise.
2392         * config/sh/vxworks.h: Likewise.
2393
2394 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
2395
2396         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
2397         * toplev.c (output_file_directive): Don't use
2398         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
2399
2400 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
2401
2402         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
2403         (USING_MMAP): We don't support non-mmap.
2404         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
2405         large objects.
2406         (struct page_entry): Remove bytes_free.
2407         (struct page_table_chain): Remove.
2408         (struct globals): Remove page_table member.
2409         (loookup_page_table_entry): Function deleted.
2410         (set_page_table_entry): Ditto.
2411         (ggc_allocated_p): No longer need page table lookups.
2412         (ggc_marked_p): Ditto.
2413         (alloc_small_page): Don't care about bytes_free anymore.
2414         (alloc_large_page): Round up size.
2415         (ggc_alloc_zone_1): Mark large objects as such, and calculate
2416         their size the new way.
2417         Remove page table lookups and setting.
2418         (ggc_get_size): Calculate large object size the new way.
2419         (sweep_pages): Redo to account for fact that we no longer have
2420         bytes_free.
2421         (ggc_collect): No longer need to reincrement bytes_free.
2422         (ggc_pch_alloc_object): Handle new large objects properly.
2423         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
2424
2425 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
2426
2427         * doc/invoke.texi: Remove a page break.
2428
2429 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
2430
2431         * config/avr/avr.c (avr_output_function_prologue): Remove an
2432         extra pair of curly braces.
2433
2434 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
2435
2436         * config/mn10300/mn10300.c: Fix comment formatting.
2437         * config/mn10300/mn10300.h: Likewise.
2438
2439 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2440
2441         * tree.h: Update documentation on nothrow_flag.
2442         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
2443         types.
2444
2445 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
2446
2447         * doc/invoke.texi: Remove traces of dead ports.
2448
2449 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
2450
2451         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
2452         option.
2453
2454 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
2455
2456         PR target/12945
2457         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
2458         counter labels.
2459         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
2460         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
2461         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
2462         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
2463         (mips_symbol_insns): Don't trust the local/global classification.
2464         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
2465         (override_options): Make -mabicalls -fno-unit-at-a-time imply
2466         -mno-explicit-relocs.
2467         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
2468         between local and global symbols.
2469
2470 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
2471
2472         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
2473         (mips_preferred_reload_class): Declare.
2474         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
2475         (EXTRA_CONSTRAINT): Update accordingly.
2476         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
2477         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
2478         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
2479         mips_dangerous_for_la25_p.
2480         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
2481         if mips_dangerous_for_la25_p.
2482
2483 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
2484
2485         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
2486         warning.
2487
2488 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
2489
2490         * configure.ac: Use AC_PROG_CPP_WERROR.
2491         * configure: Regenerate.
2492
2493 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
2494
2495         * .cvsignore: Add autom4te.cache.
2496
2497 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
2498
2499         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
2500         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
2501         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
2502         then architecture options, then ABI options.  General rewording.
2503
2504 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
2505
2506         PR c/3414
2507         * doc/extend.texi: Clarify definition of malloc attribute.
2508
2509 2004-01-04  Jan Hubicka  <jh@suse.cz>
2510
2511         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
2512         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
2513         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
2514         (cgraph_inline_p): Add extra argument reason.
2515         * cgraphunit.c: Minor formating fixes.
2516         cgraph_first_inlined_callee): New functions.
2517         (record_call_1): Record builtins too.
2518         (cgraph_analyze_function): Update inline_failed messages.
2519         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
2520         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
2521         (cgraph_check_inline_limits): Likewise; Add argument reason.
2522         (cgraph_set_inline_failed): New static function.
2523         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
2524         reasons.
2525         (cgraph_inline_p): Add new argument reason.
2526         * tree-inline.c (expand_call_inline):  Update warning.
2527
2528 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
2529
2530         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
2531         with modern equivalents.
2532         * configure: Regenerate.
2533
2534         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
2535         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
2536         * configure: Regenerate.
2537
2538         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
2539
2540         * configure.in: Rename to configure.ac.
2541         * configure.ac: Renamed from configure.in; make minimum necessary
2542         changes for autoconf 2.5x.
2543         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
2544         * configure: Regenerate with autoconf 2.57.
2545
2546 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
2547
2548         * config/mips/linux.h: Fix comment formatting.
2549         * config/mips/mips.c: Likewise.
2550         * config/mips/mips.h: Likewise.
2551         * config/mips/mips.md: Likewise.
2552         * config/mips/netbsd.h: Likewise.
2553         * config/mips/windiss.h: Likewise.
2554
2555 2004-01-02  Richard Henderson  <rth@redhat.com>
2556
2557         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
2558         for sse and 387; add suppression for mmx.
2559
2560 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
2561
2562         * loop.c (loop_optimize): Free all loops_info's mems.
2563
2564         * c-typeck.c (finish_init): Free spelling_base before
2565         setting it again.
2566
2567         * cfgloop.c (flow_loops_find): Always free the sbitmap
2568         headers.
2569
2570         * predict.c (estimate_probability): Free bbs after being
2571         done with it.
2572
2573 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
2574
2575         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
2576         const_8bit_operand and call_address_operand.
2577
2578 2004-01-02  Jan Hubicka  <jh@suse.cz>
2579
2580         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
2581         when there is nothing to inline but warnings are requested.
2582         (cgraph_decide_inlining):  Fix memory leak.
2583
2584 2004-01-02  Jan Hubicka  <jh@suse.cz>
2585
2586         * expr.c (store_constructor):  Fix pasto in previous patch.
2587
2588 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
2589
2590         * config/i386/cygming.h: Fix comment formatting.
2591         * config/i386/djgpp.h: Likewise.
2592         * config/i386/gthr-win32.c: Likewise.
2593         * config/i386/i386-interix.h: Likewise.
2594         * config/i386/i386.c: Likewise.
2595         * config/i386/i386.h: Likewise.
2596         * config/i386/openbsd.h: Likewise.
2597         * config/i386/winnt.c: Likewise.
2598         * config/i386/xm-mingw32.h: Likewise.
2599
2600 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
2601
2602         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
2603         copyright and last modification dates.
2604
2605 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
2606
2607         * doc/install.texi (Specific): Mention x86_64.
2608
2609 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
2610
2611         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
2612         Call force_operand on plus_constant result.
2613
2614 2004-01-01  Jan Hubicka  <jh@suse.cz>
2615
2616         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
2617         * expr.c (store_constructor): Use vec_init pattern.
2618         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
2619         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
2620         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
2621         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
2622         New patterns.
2623         (sse2_unpc?pd): Fix pattern.
2624         (sse2_movlpd): Kill.
2625         (sse2_movsd): Deal with movlpd too.
2626         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
2627         (ix86_expand_vector_init): New.
2628         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
2629         * md.texi (vec_set, vec_extract): Document
2630
2631 2003-12-31  Jan Hubicka  <jh@suse.cz>
2632
2633         PR opt/13473
2634         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
2635         ASM input operands
2636
2637         PR opt/12617
2638         * toplev.c (dump_file_index): Reorder ce3 and bbro.
2639         (dump_file): Likewise.
2640         (rest_of_compilation): Likewise.
2641
2642         PR debug/13367
2643         * cgraph.c (cgraph_function_possibly_inlined):  Even with
2644         flag_really_no_inline we inline always_inline functions.
2645         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
2646         for non-always_inline functions when there is flag_really_no_inline.
2647         (cgraph_decide_inlining): Limit work done when not inlining.
2648         (cgraph_decide_inlining_incrementally): Likewise.
2649         (cgraph_optimize_function): Check whether something got inlined.
2650         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
2651         extern inline functions when not inlining.
2652
2653         * opts.c (decode_options):  Disable crossjumping at -O1
2654         * invoke.texi (-O1): Document change.
2655
2656 See ChangeLog.10 for earlier changes.
2657