OSDN Git Service

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