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