OSDN Git Service

d57fcb051df0f3dfc5b822c6ffa9f3c5449dc5ba
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-01-16  Jan Hubicka  <jh@suse.cz>
2
3         PR opt/11350
4         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
5         after reload.
6         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
7         rtl_try_redirect_by_replacing_branch): Likewise.
8
9 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
10
11         PR pch/13689
12         * alias.c (struct alias_set_entry): Mark for GC.
13         (alias_sets): Make static, mark for GC.
14         (record_alias_subset): Use GC to allocate alias structures.
15         * varray.c (element): Make generic varrays GCed.
16
17         PR pch/13361
18         * c-typeck.c (constructor_asmspec): Delete.
19         (struct initializer_stack): Delete field 'asmspec'.
20         (start_init): Delete saving of asmspec.
21         (finish_init): Don't update constructor_asmspec.
22         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
23         * stmt.c (expand_asm): Duplicate strings from tree.
24         (expand_asm_operands): Likewise.
25         * tree.c (tree_size): Update computation of size of STRING_CST.
26         (make_node): Don't make STRING_CST nodes.
27         (build_string): Allocate string with tree node.
28         * tree.def (STRING_CST): Update comment.
29         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
30         (tree_string): Place contents of string in tree node.
31         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
32         from tree.
33
34         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
35         altivec operands.
36
37 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
38
39         * c-common.h: Fix comment formatting.
40         * c-cppbuiltin.c: Likewise.
41         * c-pragma.c: Likewise.
42         * calls.c: Likewise.
43         * collect2.c: Likewise.
44         * cppcharset.c: Likewise.
45         * cpptrad.c: Likewise.
46         * dbxout.c: Likewise.
47         * defaults.h: Likewise.
48         * dwarf2out.c: Likewise.
49         * fold-const.c: Likewise.
50         * genautomata.c: Likewise.
51         * genconditions.c: Likewise.
52         * genflags.c: Likewise.
53         * gengtype.c: Likewise.
54         * integrate.c: Likewise.
55         * loop.c: Likewise.
56         * predict.c: Likewise.
57         * sdbout.c: Likewise.
58
59 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
60
61         * config/ia64/ia64.md (*movti_internal): C output template
62         extracted to ia64.c.
63         (*movti_internal_reg): Delete.
64         (reload_inti, reload_outti): Use the correct mode on operand 2
65         in the first place, don't fix it up in the output template.
66         (movtf, reload_ointf, reload_outtf): New expanders.
67         (*movtf_internal): New define_insn_and_split.
68         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
69         make static; do not hand TFmode CONST_DOUBLEs to split_double.
70         (ia64_split_tmode_move): New function, body mostly pulled
71         from ia64.md:*movti_internal.
72         (ia64_function_arg_words): New function, extracted common
73         logic from ia64_function_arg et seq.
74         (ia64_function_arg_offset): Likewise.  Handle correctly the
75         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
76         (ia64_function_arg, ia64_function_arg_partial_nregs)
77         (ia64_function_arg_advance): Use ia64_function_arg_words and
78         ia64_function_arg_offset.
79         (ia64_function_value): TCmode does not go in float regs.
80         (ia64_secondary_reload_class): Also handle TFmode.
81         * config/ia64/ia64-protos.h: Remove prototype for
82         ia64_split_timode; add prototype for ia64_split_tmode_move.
83
84 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
85
86         * Makefile.in (MAINT): Make it an immediate assignment.
87
88 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
89
90         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
91
92 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
93
94         * config/h8300/coff.h: Replace Hitachi with Renesas.
95         * config/h8300/elf.h: Likewise.
96         * config/h8300/h8300-protos.h: Likewise.
97         * config/h8300/h8300.c: Likewise.
98         * config/h8300/h8300.h: Likewise.
99         * config/h8300/h8300.md: Likewise.
100         * config/h8300/lib1funcs.asm: Likewise.
101
102 2004-01-15  Andrew Pinski  <apinski@apple.com>
103
104         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
105         around it.
106
107 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
108
109         * config/h8300/h8300.c (h8300_return_in_memory): New.
110         (TARGET_STRUCT_VALUE_RTX): Likewise.
111         (TARGET_RETURN_IN_MEMORY): Likewise.
112         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
113         (RETURN_IN_MEMORY): Likewise.
114
115 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
116
117         PR optimization/13375
118         * gcse.c (handle_avail_expr): Just return if the source is not a
119         single set.
120
121 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
122             Daniel Jacobowitz  <drow@mvista.com>
123
124         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
125         (EQUIV): Define.
126         (ARM_FUNC_ALIAS): New macro.
127         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
128         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
129
130 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
131
132         PR optimization/12372
133         * calls.c (expand_call): Add call_fusage data for stack arguments in
134         constant calls.
135
136 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
137
138         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
139         (rs6000_elf_declare_function_name): Formatting.
140         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
141
142 2004-01-15  Jan Hubicka  <jh@suse.cz>
143
144         PR bootstrap/13692
145         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
146         previous patch.
147
148 2004-01-15  Richard Henderson  <rth@redhat.com>
149
150         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
151         integer regs of the same call-savedness.
152
153 2004-01-15  Andreas Schwab  <schwab@suse.de>
154
155         PR bootstrap/13562
156         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
157         status for NOTB/NOTW/NEGW methods.
158
159 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
160
161         * doc/invoke.texi: Update dump file names.  Fix a typo.
162
163 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
164
165         * builtins.c (expand_builtin_va_end): Don't use
166         EXPAND_BUILTIN_VA_END.
167         * system.h (EXPAND_BUILTIN_VA_END): Poison.
168         * config/d30v/d30v.h: Remove a commented-out definition of
169         EXPAND_BUILTIN_VA_END.
170         * config/stormy16/stormy16.h: Likewise.
171
172 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
173
174         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
175         * targhooks.c (default_struct_value_rtx): Don't use
176         STRUCT_VALUE_INCOMING_REGNUM.
177
178 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
179
180         PR bootstrap/12744
181         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
182         GENINSRC and not parsedir.  Define srcextra as a langhook.
183         * configure: Regenerate.
184         * Makefile.in: Suppress default .l.c rule.  Don't substitute
185         parsedir and delete all references throughout.  Conditionally define
186         rule for srcextra dependent on GENINSRC.
187         (stmp-docobjdir): Delete.
188         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
189         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
190         and gengtype-yacc.h back to source directory.
191         (maintainer-clean): Delete all parse files in source directory.
192         (distclean): Delete generated files.
193
194         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
195         (objc-parse.c, objc-parse.y): Don't use parsedir.
196         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
197         directory if requested.
198         (po-generated): Don't use parsedir.
199         (objc.maintainer-clean): Delete above files from source directory.
200
201 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
202
203         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
204
205 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
206
207         * doc/tm.texi: Replace RETURN_IN_MEMORY with
208         TARGET_RETURN_IN_MEMORY.
209
210 2004-01-15  Jan Hubicka  <jh@suse.cz>
211
212         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
213         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
214         functions accepting SSE arguments
215         (function_arg): Warn only when asked to warn.
216         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
217
218 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
219
220         * c-parse.in (stmts_and_decls): Make label at end of compound
221         statement a hard error.
222
223 2004-01-14  Jan Hubicka  <jh@suse.cz>
224
225         * cgraph.c (create_edge): Use local.redefined_extern_inline.
226         * cgraph.h (cgraph_local_info): Sort fields by size; add
227         redefined_extern_inline
228         (cgraph_global_info): Sort fields by size.
229         (cgraph_node): Likewise.
230         * cgraphunit.c (cgraph_finalize_function): Se
231         local.redefined_extern_inline on redefinition.
232         (cgraph_analyze_function): Use it; fix formating.
233
234 2004-01-14  Jan Hubicka  <jh@suse.cz>
235
236         PR c++/10776
237         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
238         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
239         bitmaps
240         (cache_size): New variable
241         (add_dependence): Update use; canonize early memory locations
242         (sched_analyze_1): Likewise.
243         (sched_analyze_2): Likewise.
244         (init_dependency_caches): Initialize bitmaps.
245         (free_dependency_caches): Free bitmaps
246
247 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
248
249         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
250         targetm.calls.strict_argument_naming().
251         * target.h: Likewise.
252
253 2004-01-14  Richard Henderson  <rth@redhat.com>
254
255         PR debug/13231
256         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
257         instructions.
258
259 2004-01-14  Richard Henderson  <rth@redhat.com>
260
261         PR c++/12491
262         * except.c (struct eh_region): Add u.fixup.resolved.
263         (resolve_one_fixup_region): Split out from ...
264         (resolve_fixup_regions): ... here.
265
266 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
267
268         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
269
270 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
271
272         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
273         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
274         (STRUCT_VALUE): Remove.
275
276 2003-01-14  Steven Bosscher  <stevenb@suse.de>
277
278         * system.h: Poison PROMOTED_MODE
279         * integrate.c (expand_inline_function): Don't mention the
280         PROMOTED_MODE.
281         * loop.c (update_giv_derive): Same.
282         * tree.h (DECL_RTL): Same.
283
284 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
285
286         PR target/9365
287         * sh.c (gen_block_redirect): Add special handling of RETURN.
288         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
289         far branch target (i.e. it's a return).
290
291 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
292
293         * regrename.c (find_oldest_value_reg): Fix a warning.
294
295 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
296
297         PR bootstrap/12527
298         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
299         Move linux-gas.h and linux-elf.h before aout.h.
300         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
301         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
302
303 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
304
305         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
306         (CONST_INT, VOIDmode, ...).
307
308 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
309
310         * regrename.c (find_oldest_value_reg): If the replacement uses
311         multiple hard registers, check that all of them are in CLASS.
312
313 2004-01-14  Jan Hubicka  <jh@suse.cz>
314
315         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
316         impossible.
317
318 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
319
320         * Makefile.in: Define MAINT from --enable-maintainer-mode.
321
322 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
323
324         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
325         Calculate always vrsave_mask if TARGET_ALTIVEC.
326         (rs6000_emit_prologue): Emit code for vrsave
327         only if TARGET_ALTIVEC_VRSAVE.
328         (rs6000_emit_epilogue): Likewise.
329
330 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
331
332         * config/sparc/sparc.md (tie_add32): Fix pasto.
333         (tie_add64): Likewise.
334
335 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
336
337         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
338
339 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
340
341         * config/iq2000/iq2000-protos.h: Fix comment formatting.
342         * config/iq2000/iq2000.c: Likewise.
343         * config/iq2000/iq2000.md: Likewise.
344
345 2004-01-14  J. Brobecker  <brobecker@gnat.com>
346
347         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
348         (subrange_type_die): Add handle for nameless subrange types.
349
350 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
351
352         * config/h8300/h8300-protos.h: Replace do_movsi with
353         h8300_expand_movsi.
354         * config/h8300/h8300.c (do_movsi): Change to
355         h8300_expand_movsi.
356         * config/h8300/h8300.md (movsi): Replace do_movsi with
357         h8300_expand_movsi.
358         (movsf): Likewise.
359
360 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
361
362         * config/h8300/h8300.c (dosize): Change to
363         h8300_emit_stack_adjustment.  Update callers.
364
365 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
366
367         * config/h8300/h8300.md (movstrictqi): Add an alternative with
368         the source being post_inc.  Tighten the predicate for the
369         destination to register_operand.
370         (movstricthi): Likewise.
371
372 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
373
374         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
375         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
376         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
377
378 2004-01-14  Jan Hubicka  <jh@suse.cz>
379
380         Partial fix PR c++/12850
381         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
382         at zero nest level.
383
384 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
385
386         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
387         pseudo-register.
388
389 2004-01-13  Devang Patel <dpatel@apple.com
390
391         PR debug/7078
392         * dbxout.c (dbxout_symbol_name): Emit mangled names for
393         NAMESPACE_DECL memebers.
394
395 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
396
397         PR c++/12709
398         * c-common.c (finish_fname_decls): Use the chain only if the
399         tree is an expr_stmt.
400
401 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
402
403         * rtl.def: Add comment about new option in automata_option.
404
405         * genautomata.c (PROGRESS_OPTION): New macro.
406         (progress_flag): New global variable.
407         (gen_automata_option): Process `progress'.
408         (transform_insn_regexps, check_unit_distributions_to_automata,
409         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
410         expand_automata, write_automata): Print about the progress only if
411         progress_flag.  Remove fflush.
412         (initiate_automaton_gen): Process command line flag `-progress'.
413
414         * doc/md.texi: Describe the new option.
415
416 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
417
418         * cfg.c (dump_bb): Dump entry edges.
419
420 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
421
422         * arm.c (thumb_legitimate_address_p): Only allow constant pool
423         references from SImode.
424         * arm.md (thumb_movhi_insn): Don't allow minipool references.
425
426 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
427
428         * system.h (TEXT_SECTION): Poison.
429         * varasm.c (text_section): Don't use TEXT_SECTION.
430         * config/sh/sh.c (sh_file_start): Fix a comment typo.
431         * doc/tm.texi (TEXT_SECTION): Remove.
432
433 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
434
435         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
436
437 2004-01-12  James E Wilson  <wilson@specifixinc.com>
438
439         * unwind-libunwind.c: Delete.
440
441 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
442
443         PR 13656
444         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
445         oldtype is set, set *newtypep or *oldtypep too.  Do not set
446         them at the very end.
447         (validate_proto_after_old_defn): Restructure for comprehensibility;
448         make error messages clearer.
449
450 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
451
452         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
453         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
454         * varray.c: No need to prototype error.
455         (varray_check_failed): Wrap long string onto two lines.
456         (varray_underflow): New function.
457
458 2004-01-13  Steven Bosscher  <stevenb@suse.de>
459
460         PR c++/13376
461         * function.h (struct function): Kill `name' field.
462         (current_function_name): Make it an extern function.
463         * function.c (current_function_name): New function.
464         * graph.c: Update all uses of current_function_name.
465         * gcse.c: Likewise.
466         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
467         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
468         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
469         instead of a strcmp with "main".
470
471 2004-01-13  Jan Hubicka  <jh@suse.cz>
472
473         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
474
475         * cgraphunit.c (cgraph_optimize_function):  Always do
476         optimize_inline_calls when there is always_inline callee.
477         (cgraph_decide_inlining): Fix formating.
478         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
479         functions.
480         (expand_call_inline): Likewise.
481         * toplev.h (sorry): Fix prototype.
482
483 2004-01-12  Roger Sayle  <roger@eyesopen.com>
484
485         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
486         conditional jumps that drop through to unconditional jumps or the
487         end of the sequence.
488
489 2004-01-13  Jan Hubicka  <jh@suse.cz>
490
491         * alias.c (new_alias_set): Construct the alias_set varray.
492         (init_alias_once): Don't do it here.
493
494 2004-01-12  Marc Espie <espie@openbsd.org>
495
496         * system.h: handle YYBYACC like YYBISON.
497
498 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
499
500         PR target/10847
501         * config.gcc: No longer includes conflicting header sparc/sol2.h when
502         building on sparc64-*-openbsd*.
503
504 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
505
506         PR debug/13539
507         * dbxout.c (dbxout_type): Protected inheritance is not
508         private but protected.
509
510 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
511
512         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
513
514 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
515
516         PR optimization/12508.
517         * combine.c (try_combine): Remove a dead set in a parallel
518         even if its destination is a subreg.
519
520         Revert:
521         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
522         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
523         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
524
525 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
526
527         * real.c: Update copyright date.
528         * emit-rtl.c: Likewise.
529         * rtl.h: Likewise.
530         * dwarf2out.c: Likewise.
531         * config/rs6000/darwin-ldouble.c: Likewise.
532         * config/rs6000/rs6000.md: Likewise.
533
534 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
535
536         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
537         TFmode to SImode libfuncs.
538
539 2004-01-12  Roger Sayle  <roger@eyesopen.com>
540
541         PR middle-end/11397
542         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
543
544 2004-01-12  Jan Hubicka  <jh@suse.cz>
545
546         PR opt/12826
547         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
548         stored.
549
550         PR opt/12863
551         * cfgcleanup.c (label_is_jump_target_p): Move to...
552         * rtlanal.c (label_is_jump_target_p): ... here.
553         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
554         edges unified with branch edges.
555
556 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
557
558         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
559         high word of an integral CONST_DOUBLE.
560
561 2004-01-12  Paul Brook  <paul@codesourcery.com>
562
563         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
564
565 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
566
567         PR target/13585
568         * sh-protos.h (check_use_sfunc_addr): Declare.
569         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
570         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
571
572 2004-01-12  Jan Hubicka  <jh@suse.cz>
573
574         * alias.c:  Invlude varray.h
575         (alias_sets): Turn into varray.
576         (get_alias_set_entry): Use VARRAY; mark inline.
577         (mems_in_disjoint_alias_sets_p): Mark inline.
578         (record_alias_subset): Use varray.
579         (init_alias_once): Initialize varray.
580         (new_alias_set): Grow array.
581         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
582
583 2004-01-12  Jan Hubicka  <jh@suse.cz>
584
585         Partial fix for PR opt/10776 II
586         * cselib.c: Include params.h
587         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
588         locations.
589         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
590         * Makefile.in (cselib.o): Depend on params.h
591
592 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
593
594         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
595         simplify_unary_operation if the operand has a known mode.
596
597 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
598
599         PR target/13534
600         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
601         predicate to handle 'ld' conform addresses.
602         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
603         contraint.
604         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
605         are memory contraints.
606         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
607         New prototype.
608         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
609         Change 'o' to 'Y' constraint.
610         (*movdf_softfloat64): Ditto.
611
612 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
613
614         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
615         brace-enclosed syntax in all C output statements.
616
617 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
618
619         PR target/13401
620         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
621         Objective-C language type value is 14.
622
623 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
624
625         PR c/12148
626         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
627         `int' in a number of places to make sure we always have a SImode
628         and not a HImode.  Add a 'L' suffix to a number of constants.
629
630 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
631
632         * pa.c: Don't include obstack.h.
633
634         * pa.md: Correct constraint in pattern for loading PIC label address.
635
636 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
637
638         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
639          before defining.
640
641 2004-01-11  Steven Bosscher  <stevenb@suse.de>
642
643         PR fortran/9972
644         * toplev.c (rest_of_handle_inline): Also consider functions
645         for deferral if the language is GNU F77.
646
647 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
648
649         * c-decl.c (diagnose_arglist_conflict): Add missing space to
650         diagnostic messages.
651
652 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
653
654         PR middle-end/13392
655         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
656         to drop through label.  Don't fall back to SCC even when conditional
657         jump has not been found.
658
659 2004-01-11  Jan Hubicka  <jh@suse.cz>
660
661         * invoke.texi: Fix syntax error in previous patch.
662
663         Partial fix for PR opt/10776
664         * Makefile.in (reload.o): Include param.h
665         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
666         * reload.c: Include params.h.
667         (find_equiv_reg): Work limiting check.
668         * invoke.texi: Document.
669
670 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
671
672         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
673         out-of-bounds accesses to string constants.  Simplify mips16
674         case accordingly.
675
676 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
677
678         PR optimization/13469
679         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
680         reload_cse_regs (-fnon-call-exceptions only).
681
682 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
683
684         * config/mcore/lib1.asm: Fix comment formatting.
685         * config/mcore/mcore-elf.h: Likewise.
686         * config/mcore/mcore.c: Likewise.
687         * config/mcore/mcore.h: Likewise.
688         * config/mcore/mcore.md: Likewise.
689
690 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
691
692         * c-decl.c (duplicate_decls): Break apart into...
693         (diagnose_arglist_conflict, validate_proto_after_old_defn)
694         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
695         ... these new functions.  Restructure for comprehensibility.
696         Remove various archaic special cases.  Always report the
697         location of the previous declaration when a diagnostic is issued.
698         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
699         (match_builtin_function_types): Delete unnecessary forward declaration.
700
701 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
702
703         * genautomata.c (make_automaton, NDFA_to_DFA):
704         Print progress bars with '.' characters instead of '*'.
705         (build_automaton): Change notes to match.
706
707 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
708
709         * config/m32r/m32r.md: Use define_constants for unspec and
710         unspec_volatile.
711
712 2004-01-10  Jan Hubicka  <jh@suse.cz>
713
714         PR opt/11635
715         * expr.c (expand_expr_real):  More curefully expand union casts.
716
717 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
718
719         * config/m32r/m32r.md (flush_icache): Use 1 for
720         unspec_volatile.
721
722 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
723             James E Wilson  <wilson@specifixinc.com>
724
725         PR debug/12860
726         * dbxout.c (dbxout_symbol): Remove initialization of
727         current_sym_code, current_sym_value, and current_sym_addr.
728         (dbxout_symbol_location): Same.
729         (dbxout_prepare_symbol): Zero current_sym_code,
730         current_sym_value, and current_sym_addr.
731
732 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
733
734         * tree.c (get_unwidened): Reorder conditions so that the null pointer
735         check is done first.
736
737 2004-01-09  Eric Christopher  <echristo@redhat.com>
738
739         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
740         if we're running mark_constant_function.
741
742 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
743
744         PR target/12561
745         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
746
747 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
748
749         PR debug/11231
750         * dbxout.c (dbxout_type_fields): Return if any item is
751         error_mark_node or the type is error_mark_node.
752
753 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
754
755         * config/rs6000/darwin-ldouble.c: Add big comment explaining
756         exactly what is expected as a 'long double'.
757         (_xlqadd): When a value to be returned is representable as a
758         'double', just return it directly, do not construct it using a union.
759         Also, correct final fixup.
760         (_xlqmul): Likewise.
761         (_xlqdiv): Likewise.
762         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
763
764         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
765
766 2004-01-09  Richard Henderson  <rth@redhat.com>
767
768         * recog.c (constrain_operands): Validate mem operands.
769
770 2004-01-09   James E Wilson  <wilson@specifixinc.com>
771
772         * gcc.c (init_spec): Remove -lunwind from shared case.
773         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
774
775 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
776
777         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
778         * configure: Regenerate
779
780 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
781
782         PR c/11234
783         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
784         between function and object pointers.
785         (digest_init): When comparing a pointer to function type to the
786         target type, only apply TREE_TYPE once to the pointer to function
787         type.
788         * except.c (for_each_eh_label_1): Treat data as a pointer to a
789         function pointer rather than casting it to a function pointer.
790         (for_each_eh_label): Update caller.
791         * recog.h (struct insn_data): Use a struct or union for output.
792         * genoutput.c (output_insn_data): Update.
793         * final.c (get_insn_template): Update.
794
795 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
796
797         * expr.h (expand_expr): Make it a macro, not a function.
798         (expand_expr_real): New function.
799         * expr.c (store_expr): Adjust logic for deciding whether or not to
800         copy the value returned by expand_expr.
801         (expand_expr): Rename to ...
802         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
803         calls to language hooks.
804         * c-common.h (c_expand_expr): Adjust prototype.
805         * c-common.c (c_expand_expr): Add alt_rtl parameter.
806         * langhooks-def.h (lhd_expand_expr): Change prototype.
807         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
808         * langhooks.h (lang_hooks): Change type of expand_expr.
809         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
810         (last_expr_alt_rtl): Likewise.
811         (expand_expr_stmt_value): Set last_expr_alt_rtl.
812         (clear_last_expr): Clear it.
813         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
814         (expand_end_bindings): Save and restor last_expr_alt_rtl.
815         * tree.def (RTL_EXPR): Give it an additional operand.
816         * tree.h (RTL_EXPR_ALT_RTL): New macro.
817
818 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
819
820         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
821         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
822
823 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
824
825         PR target/13380.
826         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
827         or (ne:SI (reg:CC 17) (const_int 0)).
828         Be specific about modes wherever possible.
829
830 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
831
832         * config/m32r/m32r.c (m32r_expand_block_move): Call
833         gen_movestrsi_internal with two more arguments.
834         (m32r_output_block_move): Adjust operand numbers.
835         Properly update the source and destination pointers.
836         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
837         'r+'.  Change the set detinations to match_operand.
838
839 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
840
841         * final.c (FIRST_INSN_ADDRESS): Remove.
842         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
843         * system.h (FIRST_INSN_ADDRESS): Poison.
844         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
845         * config/m32r/m32r-protos.h: Remove the prototype for
846         m32r_first_insn_address.
847         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
848         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
849         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
850
851 2004-01-09  J. Brobecker  <brobecker@gnat.com>
852
853         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
854         we just created.
855         (is_ada_subrange_type): DIEs for enumeration subtypes should be
856         emitted as subrange types too.
857         (subrange_type_die): Add handling of enumeration subtypes.
858
859 2004-01-08  Richard Henderson  <rth@redhat.com>
860
861         PR opt/12441
862         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
863         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
864         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
865         (ix86_address_cost): Be prepared for SUBREGed registers.
866         (legitimate_address_p): Accept SUBREGed registers.
867
868 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
869
870         * Makefile.in: Rename configure.in to configure.ac
871         * doc/sourcebuild.texi: Likewise.
872         * configure: Regenerate.
873         * config.in: Regenerate.
874
875 2004-01-08  Stuart Hastings  <stuart@apple.com>
876
877         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
878
879 2004-01-08  Jan Hubicka  <jh@suse.cz>
880
881         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
882
883 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
884
885         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
886         (UNSPEC_FIX_TRUNC_TF): New constant.
887         (movtf_internal): Make splitter active only when insn is active.
888         (extenddftf2): Rewrite to properly load zero into low part.
889         (extenddftf2_internal): New.
890         (extendsftf2): Rewrite.
891         (truncdftf2): Correct length.
892         (floatditf2): Delete.
893         (fix_trunc_helper): New.
894         (fix_trunctfdi2): Use fix_trunc_helper.
895         (fix_trunctfsi2): Likewise.fix_trunc
896         (fix_trunctfsi2_internal): New.
897
898         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
899         addresses are legitimate on Darwin even when flag_pic.
900         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
901         non-offsettable addresses for loads of TFmode constants.
902
903 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
904
905         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
906         variables in the appropriate bss section.
907
908 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
909
910         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
911         target_flags has MASK_POWERPC64 when -m64.
912         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
913         to 620, 630, power3, power4 and rs64a entries.
914         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
915
916 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
917
918         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
919         floating-point constants.
920
921 2004-01-08  J. Brobecker  <brobecker@gnat.com>
922
923         * dwarf2out.c (subrange_type_die): Add context_die parameter.
924         Create the subrange_type DIE using the given context DIE.
925         (modified_type_die): Update call to subrange_type_die.
926
927 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
928
929         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
930         Add multiple-include guard.
931
932 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
933
934         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
935         all vector constant loadable by vsplt*.
936         (output_vec_const_move): Likewise.
937
938 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
939
940         PR c/6024
941         * c-typeck.c (comptypes): Only treat enumerated types in the same
942         translation unit as compatible with each other when they are the
943         same type.
944         * doc/extend.texi: Update.
945
946 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
947
948         PR c/12165
949         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
950         array type from the array element type.
951
952 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
953
954         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
955         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
956         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
957         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
958         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
959
960 2004-01-06  Eric Christopher  <echristo@redhat.com>
961
962         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
963         (DWARF2_DEBUGGING_INFO): Define.
964         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
965         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
966         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
967         for irix as.
968         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
969         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
970         * config/mips/iris5gas.h: Ditto.
971         (DBX_DEBUGGING_INFO): Remove.
972         (DWARF2_DEBUGGING_INFO): Ditto.
973         (MIPS_DEBUGGING_INFO): Ditto.
974         (PREFERRED_DEBUGGING_TYPE): Ditto.
975         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
976         (PREFERRED_DEBUGGING_TYPE): Ditto.
977         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
978         * config/mips/elf64.h: Ditto.
979
980 2004-01-06  Jan Hubicka  <jh@suse.cz>
981
982         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
983         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
984
985 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
986
987         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
988         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
989         * config/rs6000/darwin-ldouble.c: New.
990
991         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
992         for constants.
993         (constant_subword): Delete.
994         * rtl.h (constant_subword): Delete prototype.
995         (immed_double_const): Is not in varasm.c.
996         * simplify-rtx.c (simplify_immed_subreg): New.
997         (simplify_subreg): Use simplify_immed_subreg.
998
999         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
1000         than trying to generate RTL directly.
1001         (fix_trunctfsi2): Use expand_fix rather than trying to generate
1002         RTL directly.
1003
1004         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
1005
1006 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
1007
1008         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
1009         function into a separate macro.
1010         (read_only_data_section): Add void argument.
1011         (private_data_section): Same.
1012         (read_only_private_data_section): Same.
1013         (toc_section): Same.
1014
1015 2004-01-06  Jan Hubicka  <jh@suse.cz>
1016
1017         * invoke.texi:  Remove typo in last change.
1018
1019         PR target/10301
1020         * config.gcc: Accept opteron and athlon-64 as variants
1021         of k8.
1022         * i386.c (override_options): Likewise.
1023         * invoke.texi (i386 -mtune): Expand documentation.
1024
1025 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
1026
1027         * alias.c: Fix comment typos.
1028         * builtins.c: Likewise.
1029         * cfg.c: Likewise.
1030         * df.c: Likewise.
1031         * dominance.c: Likewise.
1032         * dwarf2out.c: Likewise.
1033         * emit-rtl.c: Likewise.
1034         * expr.c: Likewise.
1035         * final.c: Likewise.
1036         * fold-const.c: Likewise.
1037         * gcse.c: Likewise.
1038         * genattrtab.c: Likewise.
1039         * genrecog.c: Likewise.
1040         * gensupport.c: Likewise.
1041         * ggc-zone.c: Likewise.
1042         * integrate.c: Likewise.
1043         * local-alloc.c: Likewise.
1044         * loop.c: Likewise.
1045         * recog.c: Likewise.
1046         * regmove.c: Likewise.
1047         * reg-stack.c: Likewise.
1048         * reorg.c: Likewise.
1049         * rtlanal.c: Likewise.
1050         * rtl.h: Likewise.
1051         * sched-ebb.c: Likewise.
1052         * simplify-rtx.c: Likewise.
1053         * toplev.c: Likewise.
1054         * varasm.c: Likewise.
1055
1056 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
1057
1058         * doc/install.texi: Fix typos.
1059         * doc/invoke.texi: Likewise.
1060         * doc/md.texi: Likewise.
1061
1062 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1063
1064         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
1065
1066 2004-01-06  Jan Hubicka  <jh@suse.cz>
1067
1068         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
1069         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
1070         of MMX_REGPARM.
1071         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
1072         add MMX_REGPARM.
1073         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
1074         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
1075         (MMX_REGPARM_MAX): Similarly for -mmmx.
1076
1077 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
1078
1079         * config/sh/linux.h: Fix comment formatting.
1080         * config/sh/netbsd-elf.h: Likewise.
1081         * config/sh/sh.c: Likewise.
1082         * config/sh/sh.h: Likewise.
1083         * config/sh/vxworks.h: Likewise.
1084
1085 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
1086
1087         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
1088         * toplev.c (output_file_directive): Don't use
1089         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
1090
1091 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
1092
1093         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
1094         (USING_MMAP): We don't support non-mmap.
1095         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
1096         large objects.
1097         (struct page_entry): Remove bytes_free.
1098         (struct page_table_chain): Remove.
1099         (struct globals): Remove page_table member.
1100         (loookup_page_table_entry): Function deleted.
1101         (set_page_table_entry): Ditto.
1102         (ggc_allocated_p): No longer need page table lookups.
1103         (ggc_marked_p): Ditto.
1104         (alloc_small_page): Don't care about bytes_free anymore.
1105         (alloc_large_page): Round up size.
1106         (ggc_alloc_zone_1): Mark large objects as such, and calculate
1107         their size the new way.
1108         Remove page table lookups and setting.
1109         (ggc_get_size): Calculate large object size the new way.
1110         (sweep_pages): Redo to account for fact that we no longer have
1111         bytes_free.
1112         (ggc_collect): No longer need to reincrement bytes_free.
1113         (ggc_pch_alloc_object): Handle new large objects properly.
1114         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
1115
1116 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
1117
1118         * doc/invoke.texi: Remove a page break.
1119
1120 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
1121
1122         * config/avr/avr.c (avr_output_function_prologue): Remove an
1123         extra pair of curly braces.
1124
1125 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
1126
1127         * config/mn10300/mn10300.c: Fix comment formatting.
1128         * config/mn10300/mn10300.h: Likewise.
1129
1130 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1131
1132         * tree.h: Update documentation on nothrow_flag.
1133         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
1134         types.
1135
1136 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
1137
1138         * doc/invoke.texi: Remove traces of dead ports.
1139
1140 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
1141
1142         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
1143         option.
1144
1145 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
1146
1147         PR target/12945
1148         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
1149         counter labels.
1150         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
1151         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
1152         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
1153         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
1154         (mips_symbol_insns): Don't trust the local/global classification.
1155         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
1156         (override_options): Make -mabicalls -fno-unit-at-a-time imply
1157         -mno-explicit-relocs.
1158         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
1159         between local and global symbols.
1160
1161 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
1162
1163         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
1164         (mips_preferred_reload_class): Declare.
1165         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
1166         (EXTRA_CONSTRAINT): Update accordingly.
1167         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
1168         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
1169         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
1170         mips_dangerous_for_la25_p.
1171         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
1172         if mips_dangerous_for_la25_p.
1173
1174 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
1175
1176         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
1177         warning.
1178
1179 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
1180
1181         * configure.ac: Use AC_PROG_CPP_WERROR.
1182         * configure: Regenerate.
1183
1184 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
1185
1186         * .cvsignore: Add autom4te.cache.
1187
1188 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
1189
1190         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
1191         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
1192         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
1193         then architecture options, then ABI options.  General rewording.
1194
1195 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
1196
1197         PR c/3414
1198         * doc/extend.texi: Clarify definition of malloc attribute.
1199
1200 2004-01-04  Jan Hubicka  <jh@suse.cz>
1201
1202         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
1203         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
1204         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
1205         (cgraph_inline_p): Add extra argument reason.
1206         * cgraphunit.c: Minor formating fixes.
1207         cgraph_first_inlined_callee): New functions.
1208         (record_call_1): Record builtins too.
1209         (cgraph_analyze_function): Update inline_failed messages.
1210         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
1211         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
1212         (cgraph_check_inline_limits): Likewise; Add argument reason.
1213         (cgraph_set_inline_failed): New static function.
1214         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
1215         reasons.
1216         (cgraph_inline_p): Add new argument reason.
1217         * tree-inline.c (expand_call_inline):  Update warning.
1218
1219 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
1220
1221         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1222         with modern equivalents.
1223         * configure: Regenerate.
1224
1225         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1226         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1227         * configure: Regenerate.
1228
1229         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1230
1231         * configure.in: Rename to configure.ac.
1232         * configure.ac: Renamed from configure.in; make minimum necessary
1233         changes for autoconf 2.5x.
1234         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1235         * configure: Regenerate with autoconf 2.57.
1236
1237 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
1238
1239         * config/mips/linux.h: Fix comment formatting.
1240         * config/mips/mips.c: Likewise.
1241         * config/mips/mips.h: Likewise.
1242         * config/mips/mips.md: Likewise.
1243         * config/mips/netbsd.h: Likewise.
1244         * config/mips/windiss.h: Likewise.
1245
1246 2004-01-02  Richard Henderson  <rth@redhat.com>
1247
1248         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
1249         for sse and 387; add suppression for mmx.
1250
1251 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
1252
1253         * loop.c (loop_optimize): Free all loops_info's mems.
1254
1255         * c-typeck.c (finish_init): Free spelling_base before
1256         setting it again.
1257
1258         * cfgloop.c (flow_loops_find): Always free the sbitmap
1259         headers.
1260
1261         * predict.c (estimate_probability): Free bbs after being
1262         done with it.
1263
1264 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
1265
1266         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
1267         const_8bit_operand and call_address_operand.
1268
1269 2004-01-02  Jan Hubicka  <jh@suse.cz>
1270
1271         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
1272         when there is nothing to inline but warnings are requested.
1273         (cgraph_decide_inlining):  Fix memory leak.
1274
1275 2004-01-02  Jan Hubicka  <jh@suse.cz>
1276
1277         * expr.c (store_constructor):  Fix pasto in previous patch.
1278
1279 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
1280
1281         * config/i386/cygming.h: Fix comment formatting.
1282         * config/i386/djgpp.h: Likewise.
1283         * config/i386/gthr-win32.c: Likewise.
1284         * config/i386/i386-interix.h: Likewise.
1285         * config/i386/i386.c: Likewise.
1286         * config/i386/i386.h: Likewise.
1287         * config/i386/openbsd.h: Likewise.
1288         * config/i386/winnt.c: Likewise.
1289         * config/i386/xm-mingw32.h: Likewise.
1290
1291 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
1292
1293         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
1294         copyright and last modification dates.
1295
1296 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
1297
1298         * doc/install.texi (Specific): Mention x86_64.
1299
1300 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
1301
1302         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
1303         Call force_operand on plus_constant result.
1304
1305 2004-01-01  Jan Hubicka  <jh@suse.cz>
1306
1307         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
1308         * expr.c (store_constructor): Use vec_init pattern.
1309         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
1310         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
1311         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
1312         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
1313         New patterns.
1314         (sse2_unpc?pd): Fix pattern.
1315         (sse2_movlpd): Kill.
1316         (sse2_movsd): Deal with movlpd too.
1317         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
1318         (ix86_expand_vector_init): New.
1319         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
1320         * md.texi (vec_set, vec_extract): Document
1321
1322 2003-12-31  Jan Hubicka  <jh@suse.cz>
1323
1324         PR opt/13473
1325         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
1326         ASM input operands
1327
1328         PR opt/12617
1329         * toplev.c (dump_file_index): Reorder ce3 and bbro.
1330         (dump_file): Likewise.
1331         (rest_of_compilation): Likewise.
1332
1333         PR debug/13367
1334         * cgraph.c (cgraph_function_possibly_inlined):  Even with
1335         flag_really_no_inline we inline always_inline functions.
1336         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
1337         for non-always_inline functions when there is flag_really_no_inline.
1338         (cgraph_decide_inlining): Limit work done when not inlining.
1339         (cgraph_decide_inlining_incrementally): Likewise.
1340         (cgraph_optimize_function): Check whether something got inlined.
1341         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
1342         extern inline functions when not inlining.
1343
1344         * opts.c (decode_options):  Disable crossjumping at -O1
1345         * invoke.texi (-O1): Document change.
1346
1347 See ChangeLog.10 for earlier changes.