OSDN Git Service

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