OSDN Git Service

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