re PR c/13656 (ICE after redeclaring size_t in the system headers)
[gcc.git] / gcc / ChangeLog
1 2004-01-12 Zack Weinberg <zack@codesourcery.com>
2
3 PR 13656
4 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
5 oldtype is set, set *newtypep or *oldtypep too. Do not set
6 them at the very end.
7 (validate_proto_after_old_defn): Restructure for comprehensibility;
8 make error messages clearer.
9
10 2004-01-12 Zack Weinberg <zack@codesourcery.com>
11
12 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
13 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
14 * varray.c: No need to prototype error.
15 (varray_check_failed): Wrap long string onto two lines.
16 (varray_underflow): New function.
17
18 2004-01-13 Steven Bosscher <stevenb@suse.de>
19
20 PR c++/13376
21 * function.h (struct function): Kill `name' field.
22 (current_function_name): Make it an extern function.
23 * function.c (current_function_name): New function.
24 * graph.c: Update all uses of current_function_name.
25 * gcse.c: Likewise.
26 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
27 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
28 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
29 instead of a strcmp with "main".
30
31 2004-01-13 Jan Hubicka <jh@suse.cz>
32
33 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
34
35 * cgraphunit.c (cgraph_optimize_function): Always do
36 optimize_inline_calls when there is always_inline callee.
37 (cgraph_decide_inlining): Fix formating.
38 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
39 functions.
40 (expand_call_inline): Likewise.
41 * toplev.h (sorry): Fix prototype.
42
43 2004-01-12 Roger Sayle <roger@eyesopen.com>
44
45 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
46 conditional jumps that drop through to unconditional jumps or the
47 end of the sequence.
48
49 2004-01-13 Jan Hubicka <jh@suse.cz>
50
51 * alias.c (new_alias_set): Construct the alias_set varray.
52 (init_alias_once): Don't do it here.
53
54 2004-01-12 Marc Espie <espie@openbsd.org>
55
56 * system.h: handle YYBYACC like YYBISON.
57
58 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
59
60 PR target/10847
61 * config.gcc: No longer includes conflicting header sparc/sol2.h when
62 building on sparc64-*-openbsd*.
63
64 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
65
66 PR debug/13539
67 * dbxout.c (dbxout_type): Protected inheritance is not
68 private but protected.
69
70 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
71
72 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
73
74 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
75
76 PR optimization/12508.
77 * combine.c (try_combine): Remove a dead set in a parallel
78 even if its destination is a subreg.
79
80 Revert:
81 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
82 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
83 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
84
85 2004-01-12 Geoffrey Keating <geoffk@apple.com>
86
87 * real.c: Update copyright date.
88 * emit-rtl.c: Likewise.
89 * rtl.h: Likewise.
90 * dwarf2out.c: Likewise.
91 * config/rs6000/darwin-ldouble.c: Likewise.
92 * config/rs6000/rs6000.md: Likewise.
93
94 2004-01-12 David Edelsohn <edelsohn@gnu.org>
95
96 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
97 TFmode to SImode libfuncs.
98
99 2004-01-12 Roger Sayle <roger@eyesopen.com>
100
101 PR middle-end/11397
102 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
103
104 2004-01-12 Jan Hubicka <jh@suse.cz>
105
106 PR opt/12826
107 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
108 stored.
109
110 PR opt/12863
111 * cfgcleanup.c (label_is_jump_target_p): Move to...
112 * rtlanal.c (label_is_jump_target_p): ... here.
113 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
114 edges unified with branch edges.
115
116 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
117
118 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
119 high word of an integral CONST_DOUBLE.
120
121 2004-01-12 Paul Brook <paul@codesourcery.com>
122
123 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
124
125 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
126
127 PR target/13585
128 * sh-protos.h (check_use_sfunc_addr): Declare.
129 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
130 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
131
132 2004-01-12 Jan Hubicka <jh@suse.cz>
133
134 * alias.c: Invlude varray.h
135 (alias_sets): Turn into varray.
136 (get_alias_set_entry): Use VARRAY; mark inline.
137 (mems_in_disjoint_alias_sets_p): Mark inline.
138 (record_alias_subset): Use varray.
139 (init_alias_once): Initialize varray.
140 (new_alias_set): Grow array.
141 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
142
143 2004-01-12 Jan Hubicka <jh@suse.cz>
144
145 Partial fix for PR opt/10776 II
146 * cselib.c: Include params.h
147 (cselib_invalidate_mem): Limit amount of nonconflicting memory
148 locations.
149 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
150 * Makefile.in (cselib.o): Depend on params.h
151
152 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
153
154 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
155 simplify_unary_operation if the operand has a known mode.
156
157 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
158
159 PR target/13534
160 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
161 predicate to handle 'ld' conform addresses.
162 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
163 contraint.
164 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
165 are memory contraints.
166 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
167 New prototype.
168 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
169 Change 'o' to 'Y' constraint.
170 (*movdf_softfloat64): Ditto.
171
172 2004-01-12 Bernardo Innocenti <bernie@develer.com>
173
174 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
175 brace-enclosed syntax in all C output statements.
176
177 2004-01-12 David Edelsohn <edelsohn@gnu.org>
178
179 PR target/13401
180 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
181 Objective-C language type value is 14.
182
183 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
184
185 PR c/12148
186 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
187 `int' in a number of places to make sure we always have a SImode
188 and not a HImode. Add a 'L' suffix to a number of constants.
189
190 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
191
192 * pa.c: Don't include obstack.h.
193
194 * pa.md: Correct constraint in pattern for loading PIC label address.
195
196 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
197
198 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
199 before defining.
200
201 2004-01-11 Steven Bosscher <stevenb@suse.de>
202
203 * toplev.c (rest_of_handle_inline): Also consider functions
204 for deferral if the language is GNU F77.
205
206 2004-01-11 Zack Weinberg <zack@codesourcery.com>
207
208 * c-decl.c (diagnose_arglist_conflict): Add missing space to
209 diagnostic messages.
210
211 2004-01-11 Jakub Jelinek <jakub@redhat.com>
212
213 PR middle-end/13392
214 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
215 to drop through label. Don't fall back to SCC even when conditional
216 jump has not been found.
217
218 2004-01-11 Jan Hubicka <jh@suse.cz>
219
220 * invoke.texi: Fix syntax error in previous patch.
221
222 Partial fix for PR opt/10776
223 * Makefile.in (reload.o): Include param.h
224 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
225 * reload.c: Include params.h.
226 (find_equiv_reg): Work limiting check.
227 * invoke.texi: Document.
228
229 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
230
231 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
232 out-of-bounds accesses to string constants. Simplify mips16
233 case accordingly.
234
235 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
236
237 PR optimization/13469
238 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
239 reload_cse_regs (-fnon-call-exceptions only).
240
241 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
242
243 * config/mcore/lib1.asm: Fix comment formatting.
244 * config/mcore/mcore-elf.h: Likewise.
245 * config/mcore/mcore.c: Likewise.
246 * config/mcore/mcore.h: Likewise.
247 * config/mcore/mcore.md: Likewise.
248
249 2004-01-10 Zack Weinberg <zack@codesourcery.com>
250
251 * c-decl.c (duplicate_decls): Break apart into...
252 (diagnose_arglist_conflict, validate_proto_after_old_defn)
253 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
254 ... these new functions. Restructure for comprehensibility.
255 Remove various archaic special cases. Always report the
256 location of the previous declaration when a diagnostic is issued.
257 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
258 (match_builtin_function_types): Delete unnecessary forward declaration.
259
260 2004-01-10 Zack Weinberg <zack@codesourcery.com>
261
262 * genautomata.c (make_automaton, NDFA_to_DFA):
263 Print progress bars with '.' characters instead of '*'.
264 (build_automaton): Change notes to match.
265
266 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
267
268 * config/m32r/m32r.md: Use define_constants for unspec and
269 unspec_volatile.
270
271 2004-01-10 Jan Hubicka <jh@suse.cz>
272
273 PR opt/11635
274 * expr.c (expand_expr_real): More curefully expand union casts.
275
276 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
277
278 * config/m32r/m32r.md (flush_icache): Use 1 for
279 unspec_volatile.
280
281 2004-01-10 David Edelsohn <edelsohn@gnu.org>
282 James E Wilson <wilson@specifixinc.com>
283
284 PR debug/12860
285 * dbxout.c (dbxout_symbol): Remove initialization of
286 current_sym_code, current_sym_value, and current_sym_addr.
287 (dbxout_symbol_location): Same.
288 (dbxout_prepare_symbol): Zero current_sym_code,
289 current_sym_value, and current_sym_addr.
290
291 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
292
293 * tree.c (get_unwidened): Reorder conditions so that the null pointer
294 check is done first.
295
296 2004-01-09 Eric Christopher <echristo@redhat.com>
297
298 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
299 if we're running mark_constant_function.
300
301 2004-01-09 Jeff Bailey <jbailey@nisa.net>
302
303 PR target/12561
304 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
305
306 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
307
308 PR debug/11231
309 * dbxout.c (dbxout_type_fields): Return if any item is
310 error_mark_node or the type is error_mark_node.
311
312 2004-01-09 Geoffrey Keating <geoffk@apple.com>
313
314 * config/rs6000/darwin-ldouble.c: Add big comment explaining
315 exactly what is expected as a 'long double'.
316 (_xlqadd): When a value to be returned is representable as a
317 'double', just return it directly, do not construct it using a union.
318 Also, correct final fixup.
319 (_xlqmul): Likewise.
320 (_xlqdiv): Likewise.
321 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
322
323 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
324
325 2004-01-09 Richard Henderson <rth@redhat.com>
326
327 * recog.c (constrain_operands): Validate mem operands.
328
329 2004-01-09 James E Wilson <wilson@specifixinc.com>
330
331 * gcc.c (init_spec): Remove -lunwind from shared case.
332 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
333
334 2004-01-09 Steve Ellcey <sje@cup.hp.com>
335
336 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
337 * configure: Regenerate
338
339 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
340
341 PR c/11234
342 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
343 between function and object pointers.
344 (digest_init): When comparing a pointer to function type to the
345 target type, only apply TREE_TYPE once to the pointer to function
346 type.
347 * except.c (for_each_eh_label_1): Treat data as a pointer to a
348 function pointer rather than casting it to a function pointer.
349 (for_each_eh_label): Update caller.
350 * recog.h (struct insn_data): Use a struct or union for output.
351 * genoutput.c (output_insn_data): Update.
352 * final.c (get_insn_template): Update.
353
354 2004-01-09 Mark Mitchell <mark@codesourcery.com>
355
356 * expr.h (expand_expr): Make it a macro, not a function.
357 (expand_expr_real): New function.
358 * expr.c (store_expr): Adjust logic for deciding whether or not to
359 copy the value returned by expand_expr.
360 (expand_expr): Rename to ...
361 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
362 calls to language hooks.
363 * c-common.h (c_expand_expr): Adjust prototype.
364 * c-common.c (c_expand_expr): Add alt_rtl parameter.
365 * langhooks-def.h (lhd_expand_expr): Change prototype.
366 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
367 * langhooks.h (lang_hooks): Change type of expand_expr.
368 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
369 (last_expr_alt_rtl): Likewise.
370 (expand_expr_stmt_value): Set last_expr_alt_rtl.
371 (clear_last_expr): Clear it.
372 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
373 (expand_end_bindings): Save and restor last_expr_alt_rtl.
374 * tree.def (RTL_EXPR): Give it an additional operand.
375 * tree.h (RTL_EXPR_ALT_RTL): New macro.
376
377 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
378
379 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
380 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
381
382 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
383
384 PR target/13380.
385 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
386 or (ne:SI (reg:CC 17) (const_int 0)).
387 Be specific about modes wherever possible.
388
389 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
390
391 * config/m32r/m32r.c (m32r_expand_block_move): Call
392 gen_movestrsi_internal with two more arguments.
393 (m32r_output_block_move): Adjust operand numbers.
394 Properly update the source and destination pointers.
395 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
396 'r+'. Change the set detinations to match_operand.
397
398 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
399
400 * final.c (FIRST_INSN_ADDRESS): Remove.
401 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
402 * system.h (FIRST_INSN_ADDRESS): Poison.
403 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
404 * config/m32r/m32r-protos.h: Remove the prototype for
405 m32r_first_insn_address.
406 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
407 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
408 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
409
410 2004-01-09 J. Brobecker <brobecker@gnat.com>
411
412 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
413 we just created.
414 (is_ada_subrange_type): DIEs for enumeration subtypes should be
415 emitted as subrange types too.
416 (subrange_type_die): Add handling of enumeration subtypes.
417
418 2004-01-08 Richard Henderson <rth@redhat.com>
419
420 PR opt/12441
421 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
422 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
423 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
424 (ix86_address_cost): Be prepared for SUBREGed registers.
425 (legitimate_address_p): Accept SUBREGed registers.
426
427 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
428
429 * Makefile.in: Rename configure.in to configure.ac
430 * doc/sourcebuild.texi: Likewise.
431 * configure: Regenerate.
432 * config.in: Regenerate.
433
434 2004-01-08 Stuart Hastings <stuart@apple.com>
435
436 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
437
438 2004-01-08 Jan Hubicka <jh@suse.cz>
439
440 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
441
442 2004-01-08 Geoffrey Keating <geoffk@apple.com>
443
444 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
445 (UNSPEC_FIX_TRUNC_TF): New constant.
446 (movtf_internal): Make splitter active only when insn is active.
447 (extenddftf2): Rewrite to properly load zero into low part.
448 (extenddftf2_internal): New.
449 (extendsftf2): Rewrite.
450 (truncdftf2): Correct length.
451 (floatditf2): Delete.
452 (fix_trunc_helper): New.
453 (fix_trunctfdi2): Use fix_trunc_helper.
454 (fix_trunctfsi2): Likewise.fix_trunc
455 (fix_trunctfsi2_internal): New.
456
457 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
458 addresses are legitimate on Darwin even when flag_pic.
459 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
460 non-offsettable addresses for loads of TFmode constants.
461
462 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
463
464 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
465 variables in the appropriate bss section.
466
467 2004-01-09 Alan Modra <amodra@bigpond.net.au>
468
469 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
470 target_flags has MASK_POWERPC64 when -m64.
471 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
472 to 620, 630, power3, power4 and rs64a entries.
473 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
474
475 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
476
477 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
478 floating-point constants.
479
480 2004-01-08 J. Brobecker <brobecker@gnat.com>
481
482 * dwarf2out.c (subrange_type_die): Add context_die parameter.
483 Create the subrange_type DIE using the given context DIE.
484 (modified_type_die): Update call to subrange_type_die.
485
486 2004-01-08 Zack Weinberg <zack@codesourcery.com>
487
488 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
489 Add multiple-include guard.
490
491 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
492
493 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
494 all vector constant loadable by vsplt*.
495 (output_vec_const_move): Likewise.
496
497 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
498
499 PR c/6024
500 * c-typeck.c (comptypes): Only treat enumerated types in the same
501 translation unit as compatible with each other when they are the
502 same type.
503 * doc/extend.texi: Update.
504
505 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
506
507 PR c/12165
508 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
509 array type from the array element type.
510
511 2004-01-07 Alan Modra <amodra@bigpond.net.au>
512
513 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
514 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
515 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
516 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
517 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
518
519 2004-01-06 Eric Christopher <echristo@redhat.com>
520
521 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
522 (DWARF2_DEBUGGING_INFO): Define.
523 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
524 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
525 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
526 for irix as.
527 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
528 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
529 * config/mips/iris5gas.h: Ditto.
530 (DBX_DEBUGGING_INFO): Remove.
531 (DWARF2_DEBUGGING_INFO): Ditto.
532 (MIPS_DEBUGGING_INFO): Ditto.
533 (PREFERRED_DEBUGGING_TYPE): Ditto.
534 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
535 (PREFERRED_DEBUGGING_TYPE): Ditto.
536 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
537 * config/mips/elf64.h: Ditto.
538
539 2004-01-06 Jan Hubicka <jh@suse.cz>
540
541 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
542 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
543
544 2004-01-06 Geoffrey Keating <geoffk@apple.com>
545
546 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
547 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
548 * config/rs6000/darwin-ldouble.c: New.
549
550 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
551 for constants.
552 (constant_subword): Delete.
553 * rtl.h (constant_subword): Delete prototype.
554 (immed_double_const): Is not in varasm.c.
555 * simplify-rtx.c (simplify_immed_subreg): New.
556 (simplify_subreg): Use simplify_immed_subreg.
557
558 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
559 than trying to generate RTL directly.
560 (fix_trunctfsi2): Use expand_fix rather than trying to generate
561 RTL directly.
562
563 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
564
565 2004-01-06 David Edelsohn <edelsohn@gnu.org>
566
567 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
568 function into a separate macro.
569 (read_only_data_section): Add void argument.
570 (private_data_section): Same.
571 (read_only_private_data_section): Same.
572 (toc_section): Same.
573
574 2004-01-06 Jan Hubicka <jh@suse.cz>
575
576 * invoke.texi: Remove typo in last change.
577
578 PR target/10301
579 * config.gcc: Accept opteron and athlon-64 as variants
580 of k8.
581 * i386.c (override_options): Likewise.
582 * invoke.texi (i386 -mtune): Expand documentation.
583
584 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
585
586 * alias.c: Fix comment typos.
587 * builtins.c: Likewise.
588 * cfg.c: Likewise.
589 * df.c: Likewise.
590 * dominance.c: Likewise.
591 * dwarf2out.c: Likewise.
592 * emit-rtl.c: Likewise.
593 * expr.c: Likewise.
594 * final.c: Likewise.
595 * fold-const.c: Likewise.
596 * gcse.c: Likewise.
597 * genattrtab.c: Likewise.
598 * genrecog.c: Likewise.
599 * gensupport.c: Likewise.
600 * ggc-zone.c: Likewise.
601 * integrate.c: Likewise.
602 * local-alloc.c: Likewise.
603 * loop.c: Likewise.
604 * recog.c: Likewise.
605 * regmove.c: Likewise.
606 * reg-stack.c: Likewise.
607 * reorg.c: Likewise.
608 * rtlanal.c: Likewise.
609 * rtl.h: Likewise.
610 * sched-ebb.c: Likewise.
611 * simplify-rtx.c: Likewise.
612 * toplev.c: Likewise.
613 * varasm.c: Likewise.
614
615 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
616
617 * doc/install.texi: Fix typos.
618 * doc/invoke.texi: Likewise.
619 * doc/md.texi: Likewise.
620
621 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
622
623 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
624
625 2004-01-06 Jan Hubicka <jh@suse.cz>
626
627 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
628 (function_arg_advance): Do not pass aggregates in SSE; deal handling
629 of MMX_REGPARM.
630 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
631 add MMX_REGPARM.
632 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
633 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
634 (MMX_REGPARM_MAX): Similarly for -mmmx.
635
636 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
637
638 * config/sh/linux.h: Fix comment formatting.
639 * config/sh/netbsd-elf.h: Likewise.
640 * config/sh/sh.c: Likewise.
641 * config/sh/sh.h: Likewise.
642 * config/sh/vxworks.h: Likewise.
643
644 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
645
646 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
647 * toplev.c (output_file_directive): Don't use
648 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
649
650 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
651
652 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
653 (USING_MMAP): We don't support non-mmap.
654 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
655 large objects.
656 (struct page_entry): Remove bytes_free.
657 (struct page_table_chain): Remove.
658 (struct globals): Remove page_table member.
659 (loookup_page_table_entry): Function deleted.
660 (set_page_table_entry): Ditto.
661 (ggc_allocated_p): No longer need page table lookups.
662 (ggc_marked_p): Ditto.
663 (alloc_small_page): Don't care about bytes_free anymore.
664 (alloc_large_page): Round up size.
665 (ggc_alloc_zone_1): Mark large objects as such, and calculate
666 their size the new way.
667 Remove page table lookups and setting.
668 (ggc_get_size): Calculate large object size the new way.
669 (sweep_pages): Redo to account for fact that we no longer have
670 bytes_free.
671 (ggc_collect): No longer need to reincrement bytes_free.
672 (ggc_pch_alloc_object): Handle new large objects properly.
673 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
674
675 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
676
677 * doc/invoke.texi: Remove a page break.
678
679 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
680
681 * config/avr/avr.c (avr_output_function_prologue): Remove an
682 extra pair of curly braces.
683
684 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
685
686 * config/mn10300/mn10300.c: Fix comment formatting.
687 * config/mn10300/mn10300.h: Likewise.
688
689 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
690
691 * tree.h: Update documentation on nothrow_flag.
692 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
693 types.
694
695 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
696
697 * doc/invoke.texi: Remove traces of dead ports.
698
699 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
700
701 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
702 option.
703
704 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
705
706 PR target/12945
707 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
708 counter labels.
709 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
710 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
711 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
712 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
713 (mips_symbol_insns): Don't trust the local/global classification.
714 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
715 (override_options): Make -mabicalls -fno-unit-at-a-time imply
716 -mno-explicit-relocs.
717 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
718 between local and global symbols.
719
720 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
721
722 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
723 (mips_preferred_reload_class): Declare.
724 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
725 (EXTRA_CONSTRAINT): Update accordingly.
726 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
727 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
728 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
729 mips_dangerous_for_la25_p.
730 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
731 if mips_dangerous_for_la25_p.
732
733 2004-01-05 Bernardo Innocenti <bernie@develer.com>
734
735 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
736 warning.
737
738 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
739
740 * configure.ac: Use AC_PROG_CPP_WERROR.
741 * configure: Regenerate.
742
743 2004-01-04 Zack Weinberg <zack@codesourcery.com>
744
745 * .cvsignore: Add autom4te.cache.
746
747 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
748
749 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
750 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
751 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
752 then architecture options, then ABI options. General rewording.
753
754 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
755
756 PR c/3414
757 * doc/extend.texi: Clarify definition of malloc attribute.
758
759 2004-01-04 Jan Hubicka <jh@suse.cz>
760
761 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
762 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
763 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
764 (cgraph_inline_p): Add extra argument reason.
765 * cgraphunit.c: Minor formating fixes.
766 cgraph_first_inlined_callee): New functions.
767 (record_call_1): Record builtins too.
768 (cgraph_analyze_function): Update inline_failed messages.
769 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
770 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
771 (cgraph_check_inline_limits): Likewise; Add argument reason.
772 (cgraph_set_inline_failed): New static function.
773 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
774 reasons.
775 (cgraph_inline_p): Add new argument reason.
776 * tree-inline.c (expand_call_inline): Update warning.
777
778 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
779
780 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
781 with modern equivalents.
782 * configure: Regenerate.
783
784 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
785 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
786 * configure: Regenerate.
787
788 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
789
790 * configure.in: Rename to configure.ac.
791 * configure.ac: Renamed from configure.in; make minimum necessary
792 changes for autoconf 2.5x.
793 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
794 * configure: Regenerate with autoconf 2.57.
795
796 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
797
798 * config/mips/linux.h: Fix comment formatting.
799 * config/mips/mips.c: Likewise.
800 * config/mips/mips.h: Likewise.
801 * config/mips/mips.md: Likewise.
802 * config/mips/netbsd.h: Likewise.
803 * config/mips/windiss.h: Likewise.
804
805 2004-01-02 Richard Henderson <rth@redhat.com>
806
807 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
808 for sse and 387; add suppression for mmx.
809
810 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
811
812 * loop.c (loop_optimize): Free all loops_info's mems.
813
814 * c-typeck.c (finish_init): Free spelling_base before
815 setting it again.
816
817 * cfgloop.c (flow_loops_find): Always free the sbitmap
818 headers.
819
820 * predict.c (estimate_probability): Free bbs after being
821 done with it.
822
823 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
824
825 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
826 const_8bit_operand and call_address_operand.
827
828 2004-01-02 Jan Hubicka <jh@suse.cz>
829
830 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
831 when there is nothing to inline but warnings are requested.
832 (cgraph_decide_inlining): Fix memory leak.
833
834 2004-01-02 Jan Hubicka <jh@suse.cz>
835
836 * expr.c (store_constructor): Fix pasto in previous patch.
837
838 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
839
840 * config/i386/cygming.h: Fix comment formatting.
841 * config/i386/djgpp.h: Likewise.
842 * config/i386/gthr-win32.c: Likewise.
843 * config/i386/i386-interix.h: Likewise.
844 * config/i386/i386.c: Likewise.
845 * config/i386/i386.h: Likewise.
846 * config/i386/openbsd.h: Likewise.
847 * config/i386/winnt.c: Likewise.
848 * config/i386/xm-mingw32.h: Likewise.
849
850 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
851
852 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
853 copyright and last modification dates.
854
855 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
856
857 * doc/install.texi (Specific): Mention x86_64.
858
859 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
860
861 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
862 Call force_operand on plus_constant result.
863
864 2004-01-01 Jan Hubicka <jh@suse.cz>
865
866 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
867 * expr.c (store_constructor): Use vec_init pattern.
868 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
869 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
870 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
871 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
872 New patterns.
873 (sse2_unpc?pd): Fix pattern.
874 (sse2_movlpd): Kill.
875 (sse2_movsd): Deal with movlpd too.
876 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
877 (ix86_expand_vector_init): New.
878 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
879 * md.texi (vec_set, vec_extract): Document
880
881 2003-12-31 Jan Hubicka <jh@suse.cz>
882
883 PR opt/13473
884 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
885 ASM input operands
886
887 PR opt/12617
888 * toplev.c (dump_file_index): Reorder ce3 and bbro.
889 (dump_file): Likewise.
890 (rest_of_compilation): Likewise.
891
892 PR debug/13367
893 * cgraph.c (cgraph_function_possibly_inlined): Even with
894 flag_really_no_inline we inline always_inline functions.
895 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
896 for non-always_inline functions when there is flag_really_no_inline.
897 (cgraph_decide_inlining): Limit work done when not inlining.
898 (cgraph_decide_inlining_incrementally): Likewise.
899 (cgraph_optimize_function): Check whether something got inlined.
900 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
901 extern inline functions when not inlining.
902
903 * opts.c (decode_options): Disable crossjumping at -O1
904 * invoke.texi (-O1): Document change.
905
906 See ChangeLog.10 for earlier changes.