OSDN Git Service

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