OSDN Git Service

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