OSDN Git Service

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