OSDN Git Service

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