OSDN Git Service

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