OSDN Git Service

2004-02-01 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
4         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
5         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
6         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
7         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
8         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
9         config/iq2000/iq2000.h, config/m32r/m32r.c,
10         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
11         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
12         config/mcore/mcore.c, config/mcore/mcore.h,
13         config/mcore/mcore.md, config/mips/mips.c,
14         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
15         config/rs6000/rs6000.c, config/s390/s390.c,
16         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
17         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
18         "gen_rtx (FOO, " with "gen_rtx_FOO (".
19
20 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
21
22         * config/h8300/h8300.md (two peephole2's): New.
23
24 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
25
26         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
27         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
28         (ASM_CPU_SPEC): Likewise
29         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
30         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
31
32 2004-02-01  Roger Sayle  <roger@eyesopen.com>
33
34         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
35         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
36         (expand_builtin): Always call expand_builtin_pow.
37
38 2004-02-01  Roger Sayle  <roger@eyesopen.com>
39
40         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
41         BUILT_IN_SIGNBITL): New GCC builtins.
42         * builtins.c (expand_builtin_signbit): New function to RTL expand
43         calls to signbit, signbitf and signbitl as inline intrinsics.
44         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
45         (fold_builtin_signbit): New function to perform constant folding
46         of signbit, signbitf and signbitl.
47         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
48
49         * doc/extend.texi: Document new signbit{,f,l} builtins.
50
51 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
52
53         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
54
55 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
56
57         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
58         "mips_const_double_ok" and "simple_memory_operand", which were
59         removed from the MIPS port with the mips-3_4-rewrite branch merge.
60         * config/mips/mips.c (mips16_lay_out_constants): Update comment
61         for removal of simple_memory_operand.
62
63 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
64
65         * config/c4x/c4x.md: Use GEN_INT instead of
66         gen_rtx (CONST_INT, ...).
67
68 2004-01-31  Richard Henderson  <rth@redhat.com>
69
70         * varasm.c (output_constant_pool): Don't zap the pool.
71
72 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
73
74         * genrecog.c (decision_type): Add DT_const_int.
75         (write_cond) [DT_const_int]: Print a comparison against small
76         constant.
77         (write_node): Simplify comparisons against small constants
78         before printing tests.
79         
80 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
81
82         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
83         instead of gen_rtx_CONST_INT.
84
85 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
86
87         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
88         instead of gen_rtx_CONST_INT.
89
90 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
91
92         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
93         hook_bool_CUMULATIVE_ARGS_false.
94         * targhooks.c (default_strict_argument_naming): Rename to
95         hook_bool_CUMULATIVE_ARGS_false.
96         * targhooks.h: Update the prototype for
97         default_strict_argument_naming.
98
99 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
100
101         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
102         * config/sh/sh.h: Likewise.
103         * config/sh/sh.md: Likewise.
104
105 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
106
107         * doc/invoke.texi (SPARC options): Restructure and update.
108
109 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
110
111         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
112         STRICT_ARGUMENT_NAMING): Poison.
113         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
114         hook_bool_tree_false.
115         * targhooks.c (default_promote_function_args): Remove.
116         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
117         Don't check incoming.
118         (default_strict_argument_naming): Don't use
119         STRICT_ARGUMENT_NAMING.
120         * targhooks.h: Remove the prototype for
121         default_promote_function_args.
122
123 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
124
125         * config/i386/i386-protos.h: Remove the prototype for
126         ix86_setup_incoming_varargs.
127         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
128         (ix86_setup_incoming_varargs): Make it static.
129         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
130
131 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
132
133         * alloc-pool.c: Fix comment typos.
134         * builtin-types.def: Likewise.
135         * builtins.def: Likewise.
136         * c-pretty-print.c: Likewise.
137         * df.h: Likewise.
138         * reload1.c: Likewise.
139
140 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
141
142         * doc/invoke.texi: Follow spelling conventions.
143         * doc/tm.texi: Likewise.
144
145 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
146
147         * doc/install.texi: Fix typos.
148         * doc/invoke.texi: Likewise.
149
150 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
151
152         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
153         registers as pointers.
154         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
155
156 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
157
158         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
159         and restore it to gen_lowpart_general on exit.
160         (gen_lowpart_for_combine): Adjust all callers to go through
161         gen_lowpart.
162         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
163         and restore it to gen_lowpart_general on exit.
164         (gen_lowpart_if_possible): Adjust all callers to go through
165         gen_lowpart.
166         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
167         (gen_lowpart): Declare as pointer to function, initialized to
168         gen_lowpart_general.
169         * rtl.h (gen_lowpart): Declare as pointer to function.
170
171 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
172
173         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
174         * calls.c: Likewise.
175         * emit-rtl.c: Likewise.
176         * function.c: Likewise.
177         * reload1.c: Likewise.
178         * config/i386/cygming.h: Likewise.
179         * config/i386/i386.c: Likewise.
180         * config/i386/winnt.c: Likewise.
181
182 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
183
184         PR bootstrap/9249
185         * doc/install.texi: document --enable-__cxa_atexit option.
186         * configure.ac: Disable __cxa_atexit if not supported.
187         * configure: Regenerate.
188
189 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
190
191         * ggc-zone.c (ggc_free): New function.
192
193 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
194
195         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
196         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
197         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
198         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
199         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
200         config/alpha/alpha.c, config/alpha/alpha.h,
201         config/alpha/alpha.md, config/alpha/unicosmk.h,
202         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
203         config/c4x/c4x-protos.h, config/c4x/c4x.md,
204         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
205         config/frv/frvend.c, config/i386/cygming.h,
206         config/i386/djgpp.h, config/i386/emmintrin.h,
207         config/i386/gthr-win32.c, config/i386/i386-interix.h,
208         config/i386/i386-protos.h, config/i386/openbsd.h,
209         config/i386/winnt.c, config/i386/xm-mingw32.h,
210         config/i386/xmmintrin.h, config/ia64/ia64.md,
211         config/iq2000/iq2000.md, config/m32r/m32r.md,
212         config/m68k/m68k.md, config/mcore/mcore-elf.h,
213         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
214         config/mips/iris5gas.h, config/mips/iris6.h,
215         config/mips/iris6gas.h, config/mips/linux.h,
216         config/mips/mips.md, config/mips/netbsd.h,
217         config/mips/openbsd.h, config/mips/windiss.h,
218         config/pa/fptr.c, config/rs6000/aix.h,
219         config/rs6000/altivec.h, config/rs6000/darwin.h,
220         config/rs6000/xcoff.h, config/s390/s390-protos.h,
221         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
222         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
223         config/sparc/sol2.h: Update copyright.
224
225 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
226
227         * Makefile.in (abs_docdir, abs_srcdir): Define.
228         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
229
230 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
231
232         * genconfig.c (main): Have CC0_P check its operand even on a
233         target without cc0.
234
235 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
236
237         * config/alpha/alpha.c: Remove mentions of deprecates macros
238         in comments, remove some target-independent comments about target
239         macros, and/or add minimal function comments for target hook
240         implementations.
241         * config/avr/avr.c: Likewise.
242         * config/ia64/ia64.h: Likewise.
243         * config/ip2k/ip2k.c: Likewise.
244         * config/iq2000/iq2000.c: Likewise.
245         * config/m32r/m32r.h: Likewise.
246         * config/m68hc11/m68hc11.c: Likewise.
247         * config/mcore/mcore.c: Likewise.
248         * config/mmix/mmix.c: Likewise.
249         * config/mn10300/mn10300.c: Likewise.
250         * config/pa/pa.c: Likewise.
251         * config/pdp11/pdp11.c: Likewise.
252         * config/rs6000/rs6000.h: Likewise.
253         * config/sh/sh.c: Likewise.
254         * config/sh/sh.h: Likewise.
255         * config/sparc/sparc.c: Likewise.
256         * config/sparc/sparc.h: Likewise.
257         * config/stormy16/stormy16.c: Likewise.
258         * config/xtensa/xtensa.c: Likewise.
259
260 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
261
262         PR optimization/12147
263         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
264         RELOAD_FOR_OPADDR_ADDR.
265         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
266         might be reused as RELOAD_FOR_OPADDR_ADDR register.
267
268 2004-01-30  Jan Hubicka  <jh@suse.cz>
269
270         * reload.c (get_secondary_mem): Fix updating of
271         secondary_memlocs_elim_used.
272
273 2004-01-30  Richard Henderson  <rth@redhat.com>
274
275         * varasm.c (struct rtx_const, struct pool_constant): Remove.
276         (MAX_RTX_HASH_TABLE): Remove.
277         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
278         (first_pool, last_pool, pool_offset): Remove.
279         (struct rtx_constant_pool): Split out from ...
280         (struct varasm_status): ... here.  Reference one via pointer.
281         (struct constant_descriptor_rtx): Merge struct pool_constant.
282         (SYMHASH): Remove.
283         (decode_rtx_const): Remove.
284         (const_hash_rtx, compare_constant_rtx): Remove.
285         (record_constant_rtx): Remove.
286         (const_desc_rtx_hash, const_desc_rtx_eq): New.
287         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
288         (const_rtx_hash_1, const_rtx_hash): New.
289         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
290         (simplify_subtraction): Use simplify_rtx.
291         (force_const_mem): Rewrite to use new data structures.
292         (find_pool_constant): Likewise.
293         (get_pool_constant, get_pool_constant_mark,
294         get_pool_constant_for_function, get_pool_mode,
295         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
296         (output_constant_pool_2): Split out from output_constant_pool.
297         (output_constant_pool_1): Likewise.  Use new pool datastructures.
298         (output_constant_pool): Zap entire pool datastructure.
299         (mark_constant): Use new pool datastructures.
300         (mark_constants): Use for_each_rtx.
301         (mark_constant_pool): Use new pool datastructures.
302
303 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
304         
305         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0. 
306         Copy operands[1] to pseudo for simplify_gen_subreg.
307
308 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
309
310         * gcse.c (bypass_block): Fix a typo in the previous check-in
311         to the file.
312
313 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
314
315         * toplev.c: Include alloc-pool.h.
316         * Makefile.in (toplev.c): Update dependencies. 
317
318 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
319
320         * combine.c (simplify_shift_const, case XOR): Be careful when
321         commuting XOR with ASHIFTRT.
322
323 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
324             Eric Botcazou  <ebotcazou@libertysurf.fr>
325
326         * config/sparc/sparc-protos.h: Remove the prototype for
327         sparc_builtin_saveregs.
328         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
329         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
330         (TARGET_PROMOTE_PROTOTYPES): Likewise.
331         (TARGET_STRUCT_VALUE_RTX): Likewise.
332         (TARGET_RETURN_IN_MEMORY): Likewise.
333         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
334         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
335         (sparc_builtin_saveregs): Make it static.
336         (sparc_promote_prototypes): New.
337         (sparc_struct_value_rtx): Likewise.
338         (sparc_return_in_memory): Likewise.
339         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
340         (PROMOTE_FUNCTION_RETURN): Likewise.
341         (RETURN_IN_MEMORY): Likewise.
342         (STRUCT_VALUE): Likewise.
343         (STRUCT_VALUE_INCOMING): Likewise.
344         (EXPAND_BUILTIN_SAVEREGS): Likewise.
345         (STRICT_ARGUMENT_NAMING): Likewise.
346         (PROMOTE_PROTOTYPES): Likewise.
347
348         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
349
350 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
351
352         PR c/12818
353         * varasm.c (const_hash_1) <STRING_CST>: Use the
354         address to compute the hash value if flag_writable_strings.
355         (compare_constant) <STRING_CST>: Compare the addresses
356         if flag_writable_strings.
357         (build_constant_desc): Do not copy the expression for a
358         STRING_CST if flag_writable_strings.
359
360 2004-01-30  Jan Hubicka  <jh@suse.cz>
361
362         * alloc-pool.c: Include hashtab.h
363         (alloc_pool_descriptor): New structure
364         (alloc_pool_hash): New global variable.
365         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
366         (create_alloc_pool): Update statistics.
367         (free_alloc_pool): Likewise.
368         (pool_alloc): Likewise.
369         (output_info): New structure
370         (print_statistics, dump_alloc_pool_statistics): New function.
371         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
372         (dump_alloc_pool_statistics): Declare.
373         * toplev.c (finalize):  Dump statistics.
374
375         * reload.c (secondary_memlocs_elim_used): New static variable.
376         (get_secondary_mem): Update it.
377         (find_reloads): Use it.
378
379 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
380
381         * toplev.c: Fix broken checkin of 2003-12-30, again.
382
383 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
384
385         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
386         s390*-*-* targets by specifying a 'nop' insn.
387         * configure: Regenerate.
388
389 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
390
391         PR target/11475
392         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
393
394 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
395
396         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
397         of addr when creating MEM copy.
398
399 2004-01-29  Devang Patel  <dpatel@apple.com>
400
401         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
402         
403 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
404
405         PR inline-asm/6162
406         * reload.c (find_reloads): Only support one pair of commutative
407         operands.
408
409 2004-01-29  Roger Sayle  <roger@eyesopen.com>
410
411         PR java/13824
412         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
413         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
414         recursion.
415
416 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
417
418         * config/frv/frv.c: Don't mention deprecated macros in
419         comments.  Remove some target-independent comments about
420         target macros.
421         * config/frv/frv.h: Likewise.
422
423 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
424
425         * cfghooks.c (split_block): Set probability and count of the
426         new edge.
427
428 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
429
430         * dwarf2out.c (struct die_struct): Added field decl_id.
431         (decl_die_table): Changed to hash table.
432         (decl_die_table_allocated): Deleted.
433         (decl_die_table_in_use): Deleted.
434         (DECL_DIE_TABLE_INCREMENT): Deleted.
435         (decl_die_table_hash): New function.
436         (decl_die_table_eq): New function.
437         (lookup_decl_die): Lookup in a hash table.
438         (equate_decl_number_to_die): Insert into a hash table.
439         (dwarf2out_init): Init hash table decl_die_table.
440
441 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
442
443         PR optimization/13424
444         * expr.c (store_constructor): Revert 2003-12-03 change.
445
446         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
447         expected before returning early.  Avoid sharing RTL if they
448         need to be changed.
449
450         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
451         handling so that memory attributes are preserved.  Don't call
452         ix86_set_move_mem_attrs.
453         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
454         (ix86_expand_clrstr): Rename src argument to
455         dst.  Rework rep_stos and strset handling so that memory attributes
456         are preserved.
457         (ix86_expand_strlen): Pass src argument to
458         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
459         memory attributes are preserved.
460         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
461         change_address instead of gen_rtx_MEM.
462         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
463         expanders.
464         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
465         strmovqi, strmovqi_rex64): Remove.
466         (rep_mov*, strmov*): Prefix insn names with *.
467         (strset, strset_singleop, rep_stos): New expanders.
468         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
469         strsetqi, strsetqi_rex64): Remove.
470         (rep_stos*, strset*): Prefix insn names with *.
471         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
472         to SImode.
473         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
474         are preserved.
475         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
476         Prefix insn names with *.
477         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
478         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
479         (strlenqi_1): New expander.
480         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
481
482 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
483
484         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
485         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
486         verify_flow_info): Declaration removed.
487         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
488         (debug_bb, debug_bb_n): Add argument to dump_bb call.
489         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
490         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
491         instead of delete_block.
492         * cfghooks.c: Include timevar.h and toplev.h.
493         (cfg_hooks): Define here.
494         (verify_flow_info, dump_bb): Moved from cfg.c.
495         (redirect_edge_and_branch, redirect_edge_and_branch_force,
496         split_block, split_block_after_labels, move_block_after,
497         delete_basic_block, split_edge, create_basic_block,
498         create_empty_bb, can_merge_blocks_p, merge_blocks,
499         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
500         New functions.
501         * cfghooks.h (struct cfg_hooks): Added fields name,
502         make_forwarder_block, tidy_fallthru_edge and
503         move_block_after. Changed type of verify_flow_info, dump_bb,
504         split_block fields. Renamed cfgh_split_edge and delete_block
505         fields.
506         (redirect_edge_and_branch, redirect_edge_and_branch_force,
507         split_block, delete_block, split_edge, create_basic_block,
508         can_merge_blocks_p, merge_blocks): Macros removed.
509         (cfg_hooks): Do not export.
510         (verify_flow_info, dump_bb, redirect_edge_and_branch,
511         redirect_edge_and_branch_force, split_block, split_block_after_labels,
512         move_block_after, delete_basic_block, split_edge, create_basic_block,
513         create_empty_bb, can_merge_blocks_p, merge_blocks,
514         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
515         Declare.
516         (cfg_layout_rtl_cfg_hooks): Declare.
517         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
518         New functions.
519         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
520         (redirect_edge_with_latch_update): Removed.
521         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
522         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
523         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
524         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
525         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
526         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
527         cfghooks.c.
528         (rtl_create_basic_block): Coding style fix.
529         (rtl_tidy_fallthru_edge, rtl_move_block_after,
530         rtl_make_forwarder_block): New functions.
531         (update_cfg_after_block_merging): Removed.
532         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
533         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
534         to dump_bb.
535         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
536         find_if_case_2): Don't update dominators.
537         * timevar.def (TV_CFG_VERIFY): New.
538         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
539         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
540         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
541         (remove_bbs): Don't call remove_bbs.
542         (create_preheader): Use make_forwarder_block.
543         (mfb_keep_just, mfb_update_loops): New static functions.
544
545 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
546
547         * config/avr/avr.h: Remove target-independent comments about
548         target macros.
549
550 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
551         
552         * timevar.c (timevar_print): Mention when checking is enabled.
553
554 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
555
556         * c-lex.c (c_lex): Rename to...
557         (c_lex_with_flags): Add new parameter to get CPP flags.
558         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
559         * c-pragma.h (c_lex_with_flags): Declare.
560
561 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
562
563         * config/mcore/mcore.c (mcore_external_libcall): Add a
564         comment.
565         (mcore_return_in_memory): Likewise.
566
567 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
568
569         * config/mcore/mcore-protos.h: Remove the prototype for
570         mcore_setup_incoming_varargs.
571         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
572         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
573         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
574         (TARGET_PROMOTE_PROTOTYPES): Likewise.
575         (TARGET_STRUCT_VALUE_RTX): Likewise.
576         (TARGET_RETURN_IN_MEMORY): Likewise.
577         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
578         (mcore_setup_incoming_varargs): Make it static.  Receive the
579         first argument by reference.  Add argument second_time.
580         (mcore_external_libcall): New.
581         (mcore_return_in_memory): Likewise.
582         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
583         (PROMOTE_FUNCTION_RETURN): Likewise.
584         (STRUCT_VALUE): Likewise.
585         (RETURN_IN_MEMORY): Likewise.
586         (SETUP_INCOMING_VARARGS): Likewise.
587         (PROMOTE_PROTOTYPES): Likewise.
588         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
589
590 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
591
592         * config/m32r/m32r-protos.h: Remove the prototype for
593         m32r_setup_incoming_varargs.
594         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
595         (TARGET_STRUCT_VALUE_RTX): Likewise.
596         (TARGET_RETURN_IN_MEMORY): Likewise.
597         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
598         (m32r_return_in_memory): New.
599         (m32r_setup_incoming_varargs): Make it static.
600         * config/m32r/m32r.h: Remove #undef of
601         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
602         definitions of PROMOTE_FUNCTION_ARGS and
603         PROMOTE_FUNCTION_RETURN.
604         (PROMOTE_PROTOTYPES): Remove.
605         (RETURN_IN_MEMORY): Likewise.
606         (STRUCT_VALUE): Likewise.
607
608 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
609
610         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
611         (TARGET_STRUCT_VALUE_RTX): Likewise.
612         (m68k_struct_value_rtx): Likewise.
613         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
614         STRUCT_VALUE_REGNUM.
615         (PROMOTE_PROTOTYPES): Remove.
616         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
617         STRUCT_VALUE_REGNUM.
618         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
619         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
620
621 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
622
623         * config/stormy16/stormy16.c
624         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
625         TARGET_BUILD_BUILTIN_VA_LIST.
626
627 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
628
629         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
630         (TARGET_STRUCT_VALUE_RTX): Likewise.
631         (TARGET_RETURN_IN_MEMORY): Likewise.
632         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
633         (v850_return_in_memory): Likewise.
634         (v850_setup_incoming_varargs): Likewise.
635         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
636         (SETUP_INCOMING_VARARGS): Likewise.
637         (RETURN_IN_MEMORY): Likewise.
638         (STRUCT_VALUE): Likewise.
639
640 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
641
642         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
643         (fr30_setup_incoming_varargs): Don't use
644         STRICT_ARGUMENT_NAMING.
645         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
646         (STRICT_ARGUMENT_NAMING): Likewise.
647
648 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
649
650         * config/frv/frv-protos.h: Remove the prototype for
651         frv_expand_builtin_saveregs.
652         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
653         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
654         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
655         STRUCT_VALUE_REGNUM.
656         (frv_expand_builtin_saveregs): Make it static.
657         (frv_struct_value_rtx): New.
658         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
659
660 2004-01-29  Jan Hubicka  <jh@suse.cz>
661
662         PR c++/12850
663         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
664         initial pointers.
665         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
666         for functions that will be only inlined.
667         (cgraph_mark_function_to_output): Likewise.
668         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
669         do not clear function body.
670         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
671         (tree_rest_of_compilation): Reorganize the logic releasing function
672         body to use callgraph datastructure.
673
674 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
675
676         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
677         to register_operand.
678
679 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
680
681         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
682         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
683         match_operand expressions so that all match_dups appear
684         lexically after their corresponding match_operands.
685
686 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
687
688         * config/h8300/h8300.c (WORD_REG_USED): Use
689         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
690         (compute_saved_regs): Likewise.
691         (h8300_expand_prologue): Likewise.  Allocate locals after
692         saving registers.
693         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
694         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
695         registers.
696         (h8300_initial_elimination_offset): Adjust for the new frame
697         layout, which swaps flips the order of locals and saved
698         registers.
699         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
700         (HARD_FRAME_POINTER_REGNUM): New.
701         (ELIMINABLE_REGS): Add an elimination rule from
702         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
703         (REGISTER_NAMES): Add fp.
704         * config/h8300/h8300.md (FP_REG): Change to 11.
705         (HFP_REG): New.
706
707 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
708
709         * genrecog.c (write_node): Remove a useless local variable.
710
711 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
712
713         * Makefile.in (options.c options.h): Use stamp file s-options to
714         avoid unnecessary rebuilds.
715         (options.o): New target listing dependencies.
716         (gtyp-gen.h): Use stamp file s-gtyp-gen.
717         (STAGESTUFF): Add s-gtyp-gen.
718
719 2004-01-28  Richard Henderson  <rth@redhat.com>
720
721         * ggc.h (ggc_free): Declare.
722         * ggc-common.c (ggc_realloc): Use it.
723         * ggc-page.c: Remove lots of inline markers.
724         (globals): Add free_object_list.
725         (ggc_alloc): Tidy.
726         (ggc_free, validate_free_objects): New.
727         (poison_pages): Provide default.
728         (ggc_collect): Call validate_free_objects; emit markers to
729         the debug file.
730
731 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
732             Jim Wilson  <wilson@specifixinc.com>
733
734         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
735         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
736         scratch pointer.
737         (ia64_secondary_reload_class): Delete case GR_REGS.
738         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
739         Do not allocate a scratch register.
740         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
741
742 2004-01-28  Jan Hubicka  <jh@suse.cz>
743
744         * gcse.c (bypass_block): Prevent edges to be unified when we are
745         about to emit compenstation code.
746
747 2004-01-28  Nick Clifton  <nickc@redhat.com>
748
749         * config/arm/arm.c (arm_expand_builtin): Force second argument of
750         the setcwx insn into a register.
751
752 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
753
754         * config/fp-bit.c (pack_d): When using paired doubles to implement
755         a long double, round the high part separately.
756         (unpack_d): Fix the case in which the high part is a power of two
757         and the low part is a nonzero value of the opposite sign.
758
759 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
760
761         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
762         (TARGET_STRUCT_VALUE_RTX): Likewise.
763         (c4x_external_libcall): Likewise.
764         (c4x_struct_value_rtx): Likewise.
765         * config/c4x/c4x.h: Remove.
766         (STRUCT_VALUE_REGNUM): Likewise.
767         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
768
769 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
770
771         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
772         (TARGET_STRUCT_VALUE_RTX): Likewise.
773         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
774         (STRUCT_VALUE): Likewise.
775         (PROMOTE_PROTOTYPES): Likewise.
776
777 2004-01-27  Roger Sayle  <roger@eyesopen.com>
778
779         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
780         CONST_INT before using INTVAL.
781
782 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
783
784         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
785         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
786         frame if !TARGET_BACKCHAIN.
787         * config/s390/s390.md ("allocate_stack"): Use pattern only if
788         TARGET_BACKCHAIN.
789         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
790
791 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
792
793         * ia64.c (ia64_function_arg): When placing HFAs in integer
794         registers, do not special case the mode used for complex
795         types.  Do not advance int_regs until the current register
796         is full.
797
798 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
799
800         PR target/7297
801         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
802
803 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
804
805         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
806         slow, unaligned loads and stores while debugging.  Fix formatting.
807
808 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
809
810         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
811         of computing wmode.
812         (restore_stack_nonlocal): Same.
813
814 2004-01-27  Devang Patel <dpatel@apple.com>
815
816         * Makefile.in (dwarf2out.o): Depend on input.h
817         * dbxout.c (dbx_debug_hooks): Add new empty hook for
818         imported_module_or_decl.
819         (xcoff_debug_hooks): Same.
820         * sdbout.c (sdb_debug_hooks): Same.
821         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
822         * debug.c (do_nothing_debug_hooks): Same.
823         (debug_nothing_tree_tree): New function.
824         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
825         * dwarf2out.c: Include input.h.
826         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
827         (remove_child_TAG): New function.
828         (dwarf_tag_name): Handle DW_TAG_imported_module.
829         (gen_subprogram_die): Equate decl number to declaration die. Do not
830         remove all children dies while reusing declaration die for definition.
831         Instead, selectively remove only formal parameters.
832         (gen_variable_die): Equate variable decl to declaration die.
833         (gen_field_die): Equate field decl to line number.
834         (force_namespace_die): Replace it with ...
835         (force_decl_die): ... this.
836         (force_type_die): New function.
837         (setup_namespace_context): Replace use of force_namespace_die() with
838         force_decl_die().
839         (gen_namespace_die): Same.
840         (dwarf2out_imported_module_or_decl): New function.
841
842 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
843
844         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
845         on CQImode and CHImode incoming arguments in register a7.
846         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
847         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
848         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
849         xtensa_copy_incoming_a7 before reload.
850
851 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
852
853         * coverage.c (get_coverage_counts): Give a different message
854         if flag_guess_branch_prob is set.
855         * predict.c (counts_to_freqs): Return an int.
856         (estimate_bb_frequencies): If counts_to_freqs returns zero,
857         calculate estimates.
858
859 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
860
861         * config/iq2000/iq2000-protos.h: Remove the prototype for
862         iq2000_setup_incoming_varargs.
863         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
864         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
865         (TARGET_PROMOTE_PROTOTYPES): Likewise.
866         (TARGET_STRUCT_VALUE_RTX): Likewise.
867         (TARGET_RETURN_IN_MEMORY): Likewise.
868         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
869         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
870         (iq2000_return_in_memory): Likewise.
871         (iq2000_setup_incoming_varargs): Make it static.  Receive the
872         first argument by reference.
873         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
874         (PROMOTE_FUNCTION_RETURN): Likewise.
875         (PROMOTE_PROTOTYPES): Likewise.
876         (RETURN_IN_MEMORY): Likewise.
877         (STRUCT_VALUE): Likewise.
878         (SETUP_INCOMING_VARARGS): Likewise.
879         (STRICT_ARGUMENT_NAMING): Likewise.
880
881 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
882
883         * fixinc/fixinc.c (test_test): Initialize res.
884         (start_flexer): Initialize pz_cmd_save.
885
886 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
887
888         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
889         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
890
891 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
892
893         PR 7198
894         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
895         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
896         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
897         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
898         Possibly rename pattern for consistency.
899         Remove ??? comments suggesting that this be done.
900         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
901         New patterns.
902         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
903         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
904         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
905         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
906         Update to match.
907
908 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
909
910         * config/arm/arm.c (output_return_instruction): Only restore IP
911         into SP if frame_pointer_needed.
912
913 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
914
915         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
916         for SCmode and DCmode if ARCH32.
917         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
918         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
919         if ARCH32.
920         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
921         if ARCH32.
922         (BASE_OUTGOING_VALUE_REG): Likewise.
923
924 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
925
926         PR target/10904
927         PR target/13058
928         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
929         Forbid mode changes from SImode for lower FP regs if ARCH64.
930
931 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
932
933         * Makefile.in (bt-load.o): Depend on except.h.
934         * bt-load.c (except.h): #include.
935         (compute_defs_uses_and_gen): If insn at end of BB can throw
936         within this function, consider registers used by it unavailable for
937         btr migration.
938         (move_btr_def): If insn at end of BB can throw, insert before rather
939         than after.
940
941         * flags.h (flag_btr_bb_exclusive): Declare.
942         * toplev.c (flag_btr_bb_exclusive): New variable.
943         (f_options): Add btr-bb-exclusive.
944         * bt-load.c (augment_live_range): Restore old behaviour if
945         flag_btr_bb_exclusive is set.
946         * common.opt: Add entry for -fbtr-bb-exclusive.
947         * opts.c (common_handle_options): Same.
948         * doc/invoke.texi: Document -fbtr-bb-exclusive.
949
950         * bt-load.c (btrs_live_at_end): New variable.
951         (compute_defs_uses_and_gen): Compute its pointed-to array.
952         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
953         (augment_live_range): When augmenting with a new dominator,
954         use only its btrs_live_at_end set, but also add in the full set
955         of the old dominator.
956         (btr_def_live_range): Use btrs_live_at_end.
957         (move_btr_def): Set other_btr_uses_before_def, and move new set
958         to the end of the basic block, if appropriate.
959         (migrate_btr_defs): Allocate and free btrs_live_at_end.
960
961         * bt-load.c (basic_block_freq): Remove outdated comment.
962
963 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
964
965         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
966         (PREDICATE_CODES): Remove duplicate.
967         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
968         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
969         (MASK_PROFILE_KERNEL): Adjust define.
970
971 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
972
973         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
974         of long string literals from 32 bytes to sizeof (void *) when !-Os
975         and to 1 with -Os.
976
977 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
978
979         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
980         constant addresses in the normal mode.
981
982 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
983
984         * system.h (CHAR_BITFIELD): Delete.
985         (BOOL_BITFIELD): New.
986         * c-decl.c (c_scope): Use BOOL_BITFIELD.
987         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
988
989 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
990
991         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
992         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
993         (TARGET_PROMOTE_PROTOTYPES): Likewise.
994         (TARGET_STRUCT_VALUE_RTX): Likewise.
995         (TARGET_RETURN_IN_MEMORY): Likewise.
996         (arc_return_in_memory): Likewise.
997         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
998         (PROMOTE_FUNCTION_RETURN): Likewise.
999         (RETURN_IN_MEMORY): Likewise.
1000         (STRUCT_VALUE): Likewise.
1001
1002 2004-01-26  Richard Henderson  <rth@redhat.com>
1003
1004         * c-parse.in (extension): Use itype.
1005         (SAVE_EXT_FLAGS): Don't allocate a tree.
1006         (RESTORE_EXT_FLAGS): Don't read a tree.
1007
1008 2004-01-26  Jan Hubicka  <jh@suse.cz>
1009
1010         * cselib.c (discard_useless_values):  Clear out value pointer pointing
1011         to datastructure to be recycled.
1012
1013 2004-01-25  Jan Hubicka  <jh@suse.cz>
1014
1015         * genextract.c (main): Do not output the memset when not checking.
1016
1017 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1018
1019         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
1020         switch statement instead of a chain of if statements.
1021
1022 2004-01-26  Jeff Law  <law@redhat.com>
1023
1024         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
1025         acute accents for Petur Runolfsson's entry.
1026
1027 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1028
1029         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
1030         (TARGET_RETURN_IN_MEMORY): Likewise.
1031         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
1032         (RETURN_IN_MEMORY): Likewise.
1033
1034 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
1035
1036          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
1037          unaligned load/store into smaller loads and stores.
1038
1039 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
1040
1041         * function.c (assign_parms): Do not assign
1042         long long argument to memory in prologue if
1043         is it loaded into register.
1044
1045 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
1046
1047          PR middle-end/13779
1048          * expr.c (emit_group_load): split constant
1049          correctly into register components of PARALLEL insn.
1050
1051 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
1052
1053         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
1054         Use adjust_address_nv directly with appropriate mode.
1055         (restore_stack_nonlocal): Ditto.
1056
1057 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1058
1059         * config/xtensa/xtensa-protos.h: Remove the prototype for
1060         xtensa_builtin_saveregs.
1061         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
1062         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
1063         (TARGET_PROMOTE_PROTOTYPES): Likewise.
1064         (TARGET_STRUCT_VALUE_RTX): Likewise.
1065         (TARGET_RETURN_IN_MEMORY): Likewise.
1066         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
1067         (xtensa_builtin_saveregs): Make it static.
1068         (xtensa_return_in_memory): New.
1069         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
1070         (PROMOTE_FUNCTION_RETURN): Likewise.
1071         (PROMOTE_PROTOTYPES): Likewise.
1072         (STRUCT_VALUE): Likewise.
1073         (RETURN_IN_MEMORY): Likewise.
1074         (EXPAND_BUILTIN_SAVEREGS): Likewise.
1075
1076 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1077
1078         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
1079         (arm_setup_incoming_varargs): Likewise.
1080         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
1081
1082 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1083
1084         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
1085         (cris_setup_incoming_varargs): Likewise.
1086         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
1087
1088 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1089
1090         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
1091         (ns32k_struct_value_rtx): Likewise.
1092         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
1093         NS32K_STRUCT_VALUE_REGNUM.
1094
1095 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1096
1097         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
1098         (TARGET_PROMOTE_PROTOTYPES): Likewise.
1099         (TARGET_STRUCT_VALUE_RTX): Likewise.
1100         (arm_struct_value_rtx): Likewise.
1101         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
1102         (STRUCT_VALUE): Likewise.
1103         (STRUCT_VALUE_REGNUM): Likewise.
1104         (PROMOTE_PROTOTYPES): Likewise.
1105
1106 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1107
1108         * config/ia64/ia64-protos.h: Remove the prototype for
1109         ia64_setup_incoming_varargs and ia64_return_in_memory.
1110         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
1111         (TARGET_RETURN_IN_MEMORY): Likewise.
1112         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
1113         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
1114         (ia64_setup_incoming_varargs): Adjust the arguments to meet
1115         the requirement of TARGET_SETUP_INCOMING_VARARGS.
1116         (ia64_return_in_memory): Make it static.  Change the return
1117         type to bool from int.  Add an argument.
1118         (ia64_struct_value_rtx): New.
1119         * config/ia64/ia64.h: Remove commented-out definitions of
1120         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
1121         PROMOTE_PROTOTYPES.
1122         (RETURN_IN_MEMORY): Remove.
1123         (STRUCT_VALUE_REGNUM): Likewise.
1124         (STRICT_ARGUMENT_NAMING): Likewise.
1125
1126 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1127
1128         PR target/13666
1129         * config/sparc/sparc.c (function_arg_union_value): New function.
1130         (function_arg): Use it to deal with unions.
1131         (function_value): Likewise.  Define 'regbase' only for ARCH64.
1132         Replace a conditional statement by a simpler one.
1133
1134 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
1135
1136         * config/mips/mips.c (mips16_optimize_gp): Delete.
1137         (mips_reorg): Don't call it.
1138
1139 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1140
1141         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
1142         (floatunsqihf2): Remove operand 6.
1143         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
1144         fix patterns.
1145         (ldi_conditional, ldf_conditional): Validate operands.
1146
1147 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1148
1149         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
1150         (HAVE_GAS_HIDDEN): Undefine as interim measure.
1151
1152 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1153
1154         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
1155         memory references if TARGET_EXPOSE_LDP nonzero.
1156
1157 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1158
1159         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
1160
1161 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1162
1163         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
1164         invalid operand combinations.
1165
1166 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1167
1168         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
1169         c4x_legitimate_address_p.  Fix post_modify check.
1170
1171         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
1172         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
1173
1174 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1175
1176         * config/pa/pa-protos.h: Remove the prototype for
1177         hppa_builtin_saveregs.  Add a prototype for
1178         pa_return_in_memory.
1179         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
1180         (TARGET_PROMOTE_PROTOTYPES): Likewise.
1181         (TARGET_STRUCT_VALUE_RTX): Likewise.
1182         (TARGET_RETURN_IN_MEMORY): Likewise.
1183         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
1184         (pa_struct_value_rtx): Likewise.
1185         (pa_return_in_memory): Likewise.
1186         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
1187         PA_STRUCT_VALUE_REGNUM.
1188         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
1189         (EXPAND_BUILTIN_SAVEREGS): Remove.
1190         (PROMOTE_PROTOTYPES): Likewise.
1191         (PROMOTE_FUNCTION_RETURN): Likewise.
1192
1193 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1194
1195         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
1196         (TARGET_STRUCT_VALUE_RTX): Likewise.
1197         (vax_struct_value_rtx): Likewise.
1198         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
1199         VAX_STRUCT_VALUE_REGNUM.
1200         (PROMOTE_PROTOTYPES): Remove.
1201
1202 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1203
1204         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
1205
1206 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
1207
1208         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
1209         and MIPS64 have HI/LO interlocks.  Update comment.
1210
1211 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1212
1213         * config/stormy16/stormy16-protos.h: Remove the prototype for
1214         xstormy16_setup_incoming_varargs.
1215         * config/stormy16/stormy16.c
1216         (xstormy16_setup_incoming_varargs): Remove.
1217         (xstormy16_return_in_memory): New.
1218         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
1219         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
1220         (TARGET_PROMOTE_PROTOTYPES): Likewise.
1221         (TARGET_STRUCT_VALUE_RTX): Likewise.
1222         (TARGET_RETURN_IN_MEMORY): Likewise.
1223         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
1224         (PROMOTE_FUNCTION_RETURN): Likewise
1225         (PROMOTE_PROTOTYPES): Likewise
1226         (RETURN_IN_MEMORY): Likewise
1227         (STRUCT_VALUE): Likewise
1228         (SETUP_INCOMING_VARARGS): Likewise
1229
1230 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
1231
1232         * config/mips/mips.c (mips_offset_within_object_p): New function.
1233         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
1234         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
1235         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
1236
1237 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1238
1239         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
1240         (PROMOTE_FUNCTION_RETURN): Likewise.
1241
1242 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1243
1244         * config/mn10300/mn10300-protos.h: Remove the prototype for
1245         mn10300_builtin_saveregs.
1246         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
1247         (TARGET_STRUCT_VALUE_RTX): Likewise.
1248         (TARGET_RETURN_IN_MEMORY): Likewise.
1249         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
1250         (mn10300_return_in_memory): Likewise.
1251         (mn10300_builtin_saveregs): Make it static.
1252         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
1253         (RETURN_IN_MEMORY): Likewise.
1254         (STRUCT_VALUE): Likewise.
1255         (EXPAND_BUILTIN_SAVEREGS): Likewise.
1256
1257 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
1258
1259         PR bootstrap/13853
1260         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
1261
1262 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1263
1264         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
1265         using ccr.
1266
1267 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1268
1269         * config/i860/i860-protos.h: Remove the prototype for
1270         i860_saveregs.
1271         * config/i860/i860.c (i860_saveregs): Make it static.
1272         (i860_struct_value_rtx): New.
1273         (TARGET_STRUCT_VALUE_RTX): Likewise.
1274         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
1275         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
1276         I860_STRUCT_VALUE_REGNUM.
1277         (EXPAND_BUILTIN_SAVEREGS): Remove.
1278
1279 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1280
1281         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
1282         (TARGET_RETURN_IN_MEMORY): Likewise.
1283         (m68hc11_struct_value_rtx): Likewise.
1284         (m68hc11_return_in_memory): Likewise.
1285         * config/m68hc11/m68hc11.h: Remove a commented-out definition
1286         of PROMOTE_PROTOTYPES.
1287         (RETURN_IN_MEMORY): Remove.
1288         (STRUCT_VALUE_REGNUM): Likewise.
1289
1290 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1291
1292         * config/mmix/mmix-protos.h: Remove the prototype for
1293         mmix_setup_incoming_varargs.
1294         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
1295         (TARGET_STRUCT_VALUE_RTX): Likewise.
1296         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
1297         (mmix_setup_incoming_varargs): Make it static.
1298         (mmix_struct_value_rtx): New.
1299         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
1300         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
1301         (STRUCT_VALUE_REGNUM): Remove.
1302         (SETUP_INCOMING_VARARGS): Likewise.
1303
1304 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1305
1306         * config/mips/mips-protos.h: Remove the prototypes for
1307         mips_setup_incoming_varargs and mips_return_in_memory.
1308         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
1309         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
1310         (TARGET_PROMOTE_PROTOTYPES): Likewise.
1311         (TARGET_STRUCT_VALUE_RTX): Likewise.
1312         (TARGET_RETURN_IN_MEMORY): Likewise.
1313         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
1314         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
1315         (mips_setup_incoming_varargs): Match the prototype for
1316         TARGET_SETUP_INCOMING_VARARGS.
1317         (mips_return_in_memory): Make it static.  Add argument fntype.
1318         (mips_strict_argument_naming): New.
1319         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
1320         (PROMOTE_FUNCTION_ARGS): Likewise.
1321         (PROMOTE_FUNCTION_RETURN): Likewise.
1322         (STRUCT_VALUE): Likewise.
1323         (RETURN_IN_MEMORY): Likewise.
1324         (SETUP_INCOMING_VARARGS): Likewise.
1325         (STRICT_ARGUMENT_NAMING): Likewise.
1326
1327 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1328
1329         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
1330         (TARGET_RETURN_IN_MEMORY): Likewise.
1331         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
1332         (ip2k_return_in_memory): Likewise.
1333         (ip2k_setup_incoming_varargs): Likewise.
1334         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
1335         (STRUCT_VALUE): Likewise.
1336         (STRUCT_VALUE_INCOMING): Likewise.
1337         (SETUP_INCOMING_VARARGS): Likewise.
1338
1339 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
1340
1341         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
1342         (TARGET_RETURN_IN_MEMORY): Likewise.
1343         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
1344         (avr_return_in_memory): Remove.
1345         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
1346         (STRUCT_VALUE): Likewise.
1347         (STRUCT_VALUE_INCOMING): Likewise.
1348         (STRICT_ARGUMENT_NAMING): Likewise.
1349
1350 2004-01-25  Jan Hubicka  <jh@suse.cz>
1351
1352         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
1353
1354 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
1355
1356         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
1357         (mips_regno_mode_ok_for_base_p): Declare.
1358         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
1359         (FRAME_POINTER_REGNUM): Renumber to 78.
1360         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
1361         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
1362         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
1363         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
1364         (REG_MODE_OK_FOR_BASE_P): Likewise.
1365         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
1366         entry for 77 to "$arg" and entry for 78 to "$frame".
1367         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
1368         (mips_reg_mode_ok_for_base_p): Remove.
1369         (mips_regno_mode_ok_for_base_p): New function, derived from old
1370         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
1371         restrictions unless we're being strict.
1372         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
1373
1374 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1375
1376         * c-common.h: Fix comment typos.
1377         * c-decl.c: Likewise.
1378         * cgraphunit.c: Likewise.
1379         * combine.c: Likewise.
1380         * et-forest.c: Likewise.
1381         * flow.c: Likewise.
1382         * function.c: Likewise.
1383         * ifcvt.c: Likewise.
1384         * integrate.c: Likewise.
1385         * jump.c: Likewise.
1386         * postreload.c: Likewise.
1387         * varray.c: Likewise.
1388
1389 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1390
1391         * doc/frontends.texi: Update copyright.
1392         * doc/gcov.texi: Likewise.
1393         * doc/gty.texi: Likewise.
1394         * doc/sourcebuild.texi: Likewise.
1395         * doc/standards.texi: Likewise.
1396
1397 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
1398
1399         PR target/12978
1400         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
1401         Remove movstrqi_small because it conflicts with movstrqi_large.
1402
1403 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1404
1405         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
1406         (TARGET_STRUCT_VALUE_RTX): Likewise.
1407         (cris_struct_value_rtx): Likewise.
1408         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
1409         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
1410         STRUCT_VALUE_REGNUM.
1411         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
1412
1413 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
1414
1415         PR bootstrap/13848
1416         * cse.c (cse_cc_succs): Change the mode of the source expression
1417         as soon as decide we need a new mode.  Don't permit changing modes
1418         if we found a match in a successor block.
1419         (cse_condition_code_reg): Save original mode of source expression
1420         so that we know whether we have to change the mode in other
1421         insns.
1422
1423 2004-01-24  Jan Hubicka  <jh@suse.cz>
1424
1425         * emit-rtl.c (change_address, adjust_address_1, offset_address,
1426         widen_memory_access):  Return early when there is nothing to change.
1427
1428 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1429
1430         * simplify-rtx.c (simplify_relational_operation): Don't
1431         simplify address == constant into address + -constant == 0.
1432
1433 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1434
1435         * gcc.c (process_command): Don't internationalize the
1436         Copyright message.
1437         * mips-tfile.c (main): Likewise.
1438
1439 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
1440
1441         * cse.c: (cse_cc_succs) Fix comparison warning.
1442
1443 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1444
1445         * config/h8300/h8300.md: Remove extraneous USE in expanders.
1446
1447 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1448
1449         * config/h8300/h8300-protos.h: Provide prototypes for
1450         h8300_legitimate_constant_p and h8300_legitimate_address_p.
1451         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
1452         (h8300_rtx_ok_for_base_p): Likewise.
1453         (h8300_legitimate_address_p): Likewise.
1454         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
1455         h8300_legitimate_constant_p.
1456         (RTX_OK_FOR_BASE_P): Remove.
1457         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
1458
1459 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1460
1461         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
1462         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
1463         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
1464         (REG_OK_FOR_BASE_STRICT_P): Likewise.
1465         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
1466         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
1467         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
1468         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
1469
1470 2004-01-24  Jan Hubicka  <jh@suse.cz>
1471
1472         * cselib.c (remove_useless_values):  Do not access discarded values.
1473
1474 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1475
1476         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
1477         arrays.
1478
1479 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
1480
1481         * recog.c: Fix a typo in copyright.
1482
1483 2004-01-23  Andrew Pinski  <apinski@apple.com>
1484
1485         * config/rs6000/rs6000.md (call): Fix misappiled patch.
1486         (call_value): Likewise.
1487
1488 2004-01-23  Richard Henderson  <rth@redhat.com>
1489
1490         PR opt/12941
1491         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
1492         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
1493         if SHIFT_COUNT_TRUNCATED is set.
1494
1495 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
1496
1497         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
1498         separate real and imaginary parts.
1499         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
1500
1501 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
1502
1503         PR target/13674
1504         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
1505         loading into GPR.
1506
1507 2004-01-23  Jan Hubicka  <jh@suse.cz>
1508
1509         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
1510         change.
1511
1512         * alloc-pool.c (align_four): Kill.
1513         (create_alloc_pool): Align size to eight.
1514         (free_alloc_pool, free_pool): Invalidate deallocated data.
1515
1516 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
1517
1518         PR gcc/1532
1519         * cse.c (cse_change_cc_mode): New static function.
1520         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
1521         (cse_condition_code_reg): New function.
1522         * rtl.h (cse_condition_code_reg): Declare.
1523         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
1524         * target.h (struct gcc_target): Add fixed_condition_code_regs and
1525         cc_modes_compatible.
1526         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1527         (TARGET_CC_MODES_COMPATIBLE): Define.
1528         (TARGET_INITIALIZER): Add new initializers.
1529         * targhooks.c (default_cc_modes_compatible): New function.
1530         * targhooks.c (default_cc_modes_compatible): Declare.
1531         * hooks.c (hook_bool_intp_intp_false): New function.
1532         * hooks.h (hook_bool_intp_intp_false): Declare.
1533         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1534         (TARGET_CC_MODES_COMPATIBLE): Define.
1535         (ix86_fixed_condition_code_regs): New static function.
1536         (ix86_cc_modes_compatible): Likewise.
1537         * doc/tm.texi (Condition Code): Document new hooks.
1538
1539 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1540
1541         * fixinc/inclhack.def (bad_lval): Renamed to ...
1542         (alpha_bad_lval): ... this.
1543         Removed file list.
1544         Restrict to alpha*-dec-osf*.
1545         * fixinc/fixincl.x: Regenerate.
1546         * fixinc/tests/base/dirent.h: Remove, moving test ...
1547         * fixinc/tests/base/testing.h: ... here, reflecting new name.
1548
1549 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
1550
1551         PR c/13814
1552         * c-decl.c (diagnose_mismatched_decls): Also discard a
1553         built-in if we encounter an old-style definition with the
1554         same name.
1555
1556 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
1557
1558         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
1559         set to default{32,64}.
1560
1561 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
1562
1563         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
1564         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
1565
1566 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
1567             Olivier Hainque  <hainque@act-europe.fr>
1568
1569         * fold-const.c (fold_binary_op_with_conditional_arg): Only
1570         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
1571
1572 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
1573
1574         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
1575         size for minipool references.
1576
1577 2004-01-23  Roger Sayle  <roger@eyesopen.com>
1578
1579         * real.c (real_floor, real_ceil): Tweak to allow input and output
1580         arguments to overlap.
1581         (real_round): New function to implement round(3m) semantics.
1582         * real.h (real_round): Prototype here.
1583         * builtins.c (fold_builtin_round): New function to constant fold
1584         round, roundf and roundl.
1585         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
1586
1587 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
1588
1589         PR optimization/13819
1590         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
1591         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
1592         (sh_handle_sp_switch_attribute): Remove warning.
1593
1594 2003-11-30  Jan Hubicka  <jh@suse.cz>
1595
1596         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
1597
1598 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
1599
1600         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
1601         may or may not return non-NIL.
1602         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
1603         check CANNOT_CHANGE_MODE_CLASS
1604
1605 2004-01-23  Jan Hubicka  <jh@suse.cz>
1606
1607         * basic-block.h (PROP_POSTRELOAD): New macro.
1608         (CLEANUP_LOG_LINKS): New.
1609         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
1610         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
1611
1612         * cselib.c (value_pool): New.
1613         (new_cselib_val): Use pool.
1614         (cselib_init): Initialize value_pool
1615         (cselib_finish): Free pool.
1616
1617 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
1618
1619         * config/sparc/sparc.c (scan_record_type): New function.
1620         (function_arg_slotno): Use it to determine which kinds of
1621         registers the record can be passed in.
1622
1623 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
1624
1625         * config/pa/fptr.c: Fix old-style definition.
1626
1627 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
1628
1629         PR optimization/13724
1630         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
1631         represents the zero bits produced by a ZERO_EXTEND operation.
1632
1633 2004-01-22  Roger Sayle  <roger@eyesopen.com>
1634
1635         PR optimization/13821
1636         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
1637         correctly calculate the lowpart offset of the contracted subreg.
1638
1639 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
1640
1641         * doc/invoke.texi (Optimize Options): Note that --param arguments
1642         are subject to change without notice.
1643
1644 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1645
1646         * config.gcc (mips-sgi-irix6*o32): Removed.
1647         * config/mips/iris6-o32-as.h: Likewise.
1648         * config/mips/iris6-o32-gas.h: Likewise.
1649         * config/mips/iris6-o32.h: Likewise.
1650
1651 2004-01-22  Jan Hubicka  <jh@suse.cz>
1652
1653         * cfgcleanup.c (first_pass): New static variable.
1654         (try_forward_edges):  Add work limiting check for threading.
1655         (try_crossjump_bb):  Add work limiting check for crossjumping.
1656         (try_optimize_cfg):  Maintain first pass variable.
1657
1658 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
1659
1660         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
1661         handles complex and vector modes.
1662
1663 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
1664
1665         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
1666         (REG_OK_FOR_BASE_P_STRICT): Likewise.
1667         (STRICT): Likewise.
1668
1669 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
1670
1671         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
1672         (genrtl_for_stmt): Remove emit_nop calls.
1673
1674 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1675
1676         PR target/13713
1677         PR target/13324
1678         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
1679         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
1680         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
1681
1682 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
1683
1684         * config/arm/arm.c: Include "debug.h".
1685         (thumb_pushpop): Take two new arguments.  Add some commentary.
1686         Output frame information when pushing.
1687         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
1688         thumb_pushpop.
1689         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
1690         offset, and pass it to thumb_pushpop.  Output CFI information.
1691         (thumb_expand_prologue): Add some frame-related markers and notes.
1692
1693 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
1694
1695         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
1696         for TARGET_64BIT.
1697         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
1698         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
1699
1700 2004-01-22  Roger Sayle  <roger@eyesopen.com>
1701             Paolo Bonzini  <bonzini@gnu.org>
1702
1703         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
1704         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
1705         * rtl.h (subreg_lsb_1): Prototype here.
1706         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
1707         sign extensions.
1708
1709 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
1710
1711         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
1712         macro need not be defined if jump-tables should contain
1713         relative addresses only when -fPIC or -fPIC is in effect.
1714
1715 2004-01-22  Jan Hubicka  <jh@suse.cz>
1716
1717         * alias.c (reg_base_value): Turn into varray.
1718         (reg_base_value_size): Kill.
1719         (old_reg_base_value): New deletable varray.
1720         (alias_invariant_size): New variable.
1721         (REG_BASE_VALUE): Update to use varray.
1722         (find_base_value): Likewise.
1723         (record_set): Likewise.
1724         (record_base_value): Likewise.
1725         (memrefs_conflict_p): Likewise.
1726         (record_set): Likewise
1727         (record_base_value): Likewise.
1728         (memrefs_conflict_p): Use alias_invariant_size.
1729         (init_alias_analysis): Use varray; set alias_invariant_size;
1730         rescale other arrays to be sized by maxreg.
1731         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
1732
1733 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1734
1735         * config/sparc/sparc.c (function_arg_slotno): Use
1736         FLOAT_TYPE_P to detect FP fields in structures.
1737         (function_arg_record_value_1): Likewise.
1738         (function_arg_record_value_2): Likewise.
1739
1740 2004-01-22  Jan Hubicka  <jh@suse.cz>
1741
1742         * function.c (allocate_struct_function): Do not initialize expr, emit
1743         and varasm.
1744         (prepare_function_start): Do it here.
1745         * c-parse.in (maybe_type_qual): Do not produce line number notes.
1746
1747 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1748
1749         PR target/13559
1750         * config/sparc/sparc.c (function_arg_record_value_3): Revert
1751         to 'word_mode' once the first slot has been filled.
1752
1753 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
1754
1755         * config/sparc/sparc.c (function_arg_record_value_1): Fix
1756         computation of the number of integer registers required.
1757
1758 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
1759
1760         * config/i386/i386.md: Simplify certain comparisons of
1761         const_int.
1762
1763 2004-01-21  Andrew Pinski  <apinski@apple.com>
1764
1765         PR target/13785
1766         * config/rs6000/rs6000.md (call_value): Force operand
1767         1 not operand 0 into a register.
1768
1769 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
1770
1771         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
1772         unwind-dw2-fde.h: Update copyright.
1773
1774 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1775
1776         * pa-protos.h: Update copyright.
1777         * pa.h: Likewise.
1778         * pa.md: Likewise.
1779
1780 2004-01-21  Caroline Tice  <ctice@apple.com>
1781
1782         PR target/12308
1783         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
1784         flags register.
1785         (fix_truncdfdi2): Likewise.
1786         (fix_truncsfdi2): Likewise.
1787         (*fix_truncdi_1): Likewise.
1788         (fix_truncxfsi2): Likewise.
1789         (fix_truncdfsi2): Likewise.
1790         (fix_truncsfsi2): Likewise.
1791         (*fix_truncsi_1): Likewise.
1792         (fix_truncxfhi2): Likewise.
1793         (fix_truncdfhi2): Likewise.
1794         (fix_truncsfhi2): Likewise.
1795         (*fix_trunchi_1): Likewise.
1796
1797 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
1798
1799         * alias.c, basic-block.h, c-common.c, c-common.h,
1800         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
1801         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
1802         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
1803         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
1804         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
1805         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
1806         genautomata.c, genconditions.c, genemit.c, genflags.c,
1807         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
1808         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
1809         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
1810         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
1811         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
1812         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
1813         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
1814         unwind.h, varray.c, varray.h: Update copyright.
1815
1816 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
1817
1818         * config/h8300/coff.h: Update copyright.
1819         * config/h8300/elf.h: Likewise.
1820         * config/h8300/h8300-protos.h: Likewise.
1821         * config/h8300/h8300.c: Likewise.
1822         * config/h8300/h8300.h: Likewise.
1823         * config/h8300/h8300.md: Likewise.
1824
1825 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1826
1827         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
1828         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
1829         ultrix_unistd): New hacks.
1830         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
1831         ULTRIX_CONST2_CHECK): Add checks.
1832         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
1833         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
1834         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
1835         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
1836         * fixinc/tests/base/locale.h: New file.
1837         * fixinc/fixincl.x: Rebuilt.
1838
1839 2004-01-21  Andreas Jaeger  <aj@suse.de>
1840             Michael Matz  <matz@suse.de>
1841
1842         * doc/extend.texi (Extended Asm): Clarify memory clobber.
1843
1844 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
1845
1846         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
1847         _Jv_RegisterClasses through a function pointer.
1848
1849 2004-01-21  Falk Hueffner  <falk@debian.org>
1850
1851         PR target/12898
1852         * config/alpha/alpha.c (alpha_emit_set_const_1): If
1853         no_new_pseudos, use gen_rtx_SET directly for SImode constants
1854         which need multiple instructions to emit.
1855
1856 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
1857
1858         * config/m32r/m32r.h (CPP_SPEC): Define.
1859
1860 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
1861
1862         * c-decl.c (merge_decls): Kill different_binding_level and
1863         different_tu arguments; simplify throughout.
1864         (duplicate_decls): Likewise.
1865         (pushdecl, merge_translation_unit_decls): Update calls to
1866         duplicate_decls.
1867
1868 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1869
1870         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
1871         $(SYSTEM_H).
1872         (print-rtl1.o): Depend on $(SYSTEM_H).
1873
1874 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
1875
1876         PR bootstrap/12730
1877         * configure.ac: Delete definition and subsitution of docdir.
1878         Add info, man, srcman and srcinfo to target hooks. Create doc/
1879         directory.
1880         * configure: Regenerate.
1881         * Makefile.in: Don't substitute docdir and delete all references
1882         throughout.
1883         (MAKEINFOFLAGS): Define.
1884         (stmp-docobjdir): Delete.
1885         (INFOFILES, MANFILES): Define.
1886         (info): Call lang.info, srcinfo and lang.srcinfo.
1887         (generated-manpages): Call lang.man, srcman and lang.srcman.
1888         (srcinfo, srcman): New rules to copy back files to source directory.
1889         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
1890         (install-man): Revamp rule.
1891         (clean): Update dvi directory.
1892         (distclean): Delete TAGS from front end directorys.
1893         (maintainer-clean): Delete all document files in source directory.
1894
1895         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
1896         (objc.srcman, objc.srcinfo): Likewise.
1897
1898 2004-01-20  Bruce Korb  <bkorb@gnu.org>
1899
1900         * fixinc/inclhack.def(math_exception): bypass only for glibc.
1901         (matherr_decl): rename & relocate as exception_structure.
1902         This fix must precede the math_exception fix.
1903
1904 2004-01-20  Roger Sayle  <roger@eyesopen.com>
1905
1906         * fold-const.c (fold_convert): Rename to fold_convert_const.
1907         (fold_convert_const): Change arguments to take a tree_code,
1908         a type and the operand/expression to be converted.  Return
1909         NULL_TREE if no simplification is possible.  Add support for
1910         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
1911         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
1912         Adjust call to fold_convert to match new fold_convert_const.
1913         Avoid modifying the tree passed to fold in-place.
1914
1915 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
1916
1917         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
1918         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
1919         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
1920
1921 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1922
1923         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
1924         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
1925         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
1926         (emit_move_sequence): Check scratch_reg first in various if statements.
1927         Extend source simplification to handle all 64-bit CONST_INTs.
1928         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
1929         frame size.
1930         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
1931         frame offset calculations.
1932         * pa.h (NEW_HP_ASSEMBLER): Add comment.
1933         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
1934         LEGITIMATE_64BIT_CONST_INT_P): Define.
1935         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
1936         any CONST_INT as legitimate during and after reload.
1937         (VAL_32_BITS_P, INT_32_BITS): Define.
1938         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
1939
1940 2004-01-20  Jan Hubicka  <jh@suse.cz>
1941
1942         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
1943         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
1944         containing hard regs are shared.
1945         (gen_hard_reg_clobber): New function.
1946         (hard_reg_clobbers): New array.
1947         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
1948         (copy_rtx): Do not copy clobbers containing hard regs.
1949         * rtl.h (gen_hard_reg_clobber): Declare.
1950
1951 2004-01-20  Jan Hubicka  <jh@suse.cz>
1952
1953         * varray.c:  Include hashtab.h
1954         (varray_descriptor): New structure.
1955         (hash_descriptor, eq_descriptor, varray_descriptor,
1956         print_statistics): New static functions
1957         (varray_init, varray_grow): Update statistics
1958         (dump_varray_statistics): New function.
1959         * varray.h (dump_varray_statistics): Declare.
1960         * toplev.c (finalize): Call it.
1961         * Makefile.in (varray.o): Add dependency.
1962
1963 2004-01-20  Jan Hubicka  <jh@suse.cz>
1964
1965         * cselib.c: Include alloc-pool.h
1966         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
1967         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
1968         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
1969         unchain_one_elt_loc_list_pool, unchain_one_value,
1970         new_cselib_val): Simplify using allocpool.
1971         (cselib_init): Initialize allocpools.
1972         (cselib_finish): Finish allocpools.
1973         * Makefile.in (cselib.o): Depend on alloc-pool.h
1974
1975 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
1976
1977         * config/mips/mips.c (mips_load_call_address): Make the call insn
1978         use $gp if it could be calling a lazy binding stub.
1979
1980 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
1981
1982         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1983         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
1984         (TARGET_STRUCT_VALUE_RTX): Likewise.
1985         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
1986         (PROMOTE_FUNCTION_RETURN): Remove.
1987         (STRUCT_VALUE): Remove.
1988
1989 2004-01-20  Denis Chertykov  <denisc@overta.ru>
1990
1991         PR bootstrap/13735
1992         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
1993         register as pointer after reload.
1994
1995 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1996
1997         PR optimization/12440
1998         * loop.c: Include ggc.h.
1999         (loop_optimize): Run garbage collector between optimization of loops.
2000         * Makefile.in (loop.o): Add GGC_H dependency.
2001
2002 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
2003
2004         * gcc/config/rs6000/rs6000.c (function_arg) Handle
2005         vector register special in function without prototype.
2006         (function_arg_advance): Vector parameters get always
2007         GPRs allocated for the linux64 target.
2008
2009 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2010
2011         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
2012         not TARGET_M32RX_MASK.
2013
2014 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2015
2016         PR target/13557
2017         * config/sparc/sparc.c (function_arg): Reorder the cases.
2018
2019 2004-01-19  Per Bothner  <per@bothner.com>
2020
2021         Move cpp_reader's line_maps field to a shared global.
2022         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
2023         and change the type to a pointer rather than a struct.
2024         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
2025         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
2026         Likewise.
2027         * cppfiles.c (validate_pch):  Likewise.
2028         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
2029         Likewise.
2030         * cpperror.c (print_location):  Likewise.
2031         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
2032         * cppinit.c (cpp_create_reader):  Handle new parameter.
2033         (cpp_destroy):  Don't free line_maps - that's no longer our job.
2034         * input.h (line_table):  New variable.
2035         * toplev.c (line_table):  Declare variable.
2036         (general_init):  Initialize line_table.
2037         * c-opts.c (c_common_init_options):  Pass line_table to
2038         cpp_create_reader.
2039         * fix-header.c (read_scan_file):  New local variable line_table.
2040         Initialize, and pass it to cpp_create_reader.
2041         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
2042         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
2043
2044 2004-01-19  Per Bothner  <per@bothner.com>
2045
2046         Implement a cache for linemap_lookup.
2047         * line-map.h (struct_line_maps):  Add cache field.
2048         * line-map.c (linemap_init):  Zero cache field.
2049         (linemap_add):  Set cache field to offset of newly allocated map.
2050         (linemap_lookup):  Use and set cache field.
2051
2052 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2053
2054         PR optimization/13567
2055         * cse.c (cse_basic_block): Call cse_insn with a non-null
2056         libcall_insn for the last SET insn of a no-confilict block.
2057
2058 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
2059
2060         * Makefile.in (target_noncanonical, program_transform_name): Use
2061         immediate define instead of deferred.
2062         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
2063         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2064         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
2065         deferred backquote.
2066
2067 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2068
2069         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
2070         true unconditionally.
2071         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
2072         Remove.
2073         (build_unary_op, build_modify_expr): Don't handle extended
2074         lvalues.
2075         (build_component_ref, build_conditional_expr): Call non_lvalue
2076         instead of pedantic_non_lvalue.
2077         (build_c_cast): Don't condition use of non_lvalue on pedantic.
2078         * fold-const.c (fold): Don't check pedantic directly for
2079         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
2080         passed to pedantic_non_lvalue.
2081         * doc/extend.texi: Remove documentation of extended lvalues.
2082
2083 2004-01-19  Roger Sayle  <roger@eyesopen.com>
2084
2085         PR optimization/5263
2086         * simplify-rtx.c (associative_constant_p): Delete.
2087         (simplify_associative_operation): Rewrite to linearize terms, and
2088         attempt to simplify new term against both left and right subterms.
2089         (simplify_binary_operation): Call swap_commutative_operands_p on
2090         op0 and op1, not trueop0 and trueop1.  Move the initialization of
2091         trueop0 and trueop1 down to where first needed.
2092         (simplify_relational_operation): Likewise.
2093         * rtlanal.c (commutative_operand_precedence): Also order constant
2094         operands using avoid_constant_pool_reference.
2095
2096 2004-01-19  Richard Henderson  <rth@redhat.com>
2097
2098         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
2099         don't check memory mode.
2100         (unaligned_memory_operand): Likewise.
2101         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
2102         abort for op0 not MEM.
2103
2104         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
2105         is not a reg, copy to a scratch first.
2106         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
2107         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
2108         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
2109         (reload_inqi, reload_inhi): Fix mode of op0.
2110         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
2111         reload_outhi_help): Likewise.  Use define_insn_and_split.
2112
2113         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
2114         as well as $29 dead.
2115
2116 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
2117
2118         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
2119         "tls_object" for thread-local objects.
2120         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
2121         "#tls" for thread-local sections.
2122         * configure.ac (thread-local checks): Specify --fatal-warnings in
2123         every binutils-specific checks.  For sparc*-*-*, test whether the
2124         OS is Solaris and the tools are native and act accordingly.
2125         * configure: Rebuild.
2126
2127 2004-01-19  Jeff Law  <law@redhat.com>
2128
2129         * contrib.texi: Update Paolo Carlini's entry.  New entries for
2130         Jerry Quinn and Petur Runolfsson.
2131
2132 2004-01-19  Roger Sayle  <roger@eyesopen.com>
2133
2134         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
2135         size, don't use the larger zero-extending loads.
2136
2137 2004-01-19  Richard Henderson  <rth@redhat.com>
2138
2139         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
2140         * alpha.md (UNSPEC_NT_LDA): Remove.
2141         (UNSPEC_CVTLQ, cvtlq): New.
2142         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
2143         (extendsidi2_fix): Remove.
2144         (extendsidi2 splitter): Use cvtlq.
2145         (extendsidi2 fp peepholes): Remove.
2146         (cvtql): Use SFmode instead of SImode.
2147         (fix_trunc?fsi): Update to match.
2148         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
2149         (movsi): Rename from movsi_nofix, remove f alternatives.
2150         (movsi_nt_vms): Similarly.
2151         (movsi_fix, movsi_nt_vms_fix): Remove.
2152         (nt_lda): Remove.
2153         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
2154
2155 2004-01-19  Jan Hubicka  <jh@suse.cz>
2156
2157         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
2158         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
2159         list.
2160         (cgraph_remove_unreachable_nodes): New function
2161         (cgraph_decide_inlining_of_small_function): Fix pasto.
2162         (cgraph_decide_inlining_incrementally): Fix pasto.
2163         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
2164
2165 2004-01-19  Steven Bosscher  <stevenb@suse.de>
2166
2167         * gengtype.c (header_file): Make it static.
2168         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
2169         * gengtype.h (header_file): No longer extern.
2170
2171 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
2172
2173         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
2174         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
2175         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
2176
2177 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
2178
2179         * stmt.c (HAVE_casesi): Define it not already defined.
2180         (HAVE_tablejump): Likewise.
2181         (expand_end_case_type): Resort to the binary tree method if
2182         neither casesi or tablejump is available.
2183
2184 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
2185
2186         * final.c (final_scan_insn): Make non-static again.
2187         * output.h (final_scan_insn): Re-add prototype.
2188         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
2189         to final_scan_insn call.
2190         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
2191         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
2192         * config/pa/pa.c (output_lbranch, output_call): Likewise.
2193         * config/sh/sh.c (print_slot): Likewise.
2194         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
2195         (output_sibcall, sparc_flat_function_epilogue): Likewise.
2196
2197 2004-01-18  Jan Hubicka  <jh@suse.cz>
2198
2199         * basic-block.h (try_redirect_by_replacing_jump): Declare.
2200         * cfgcleanup.c (try_optimize_cfg): Use it.
2201         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
2202         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
2203         Kill hack.
2204         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
2205
2206         Revert:
2207         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
2208
2209                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
2210                 even after reload, just don't remove the actual jump tables.
2211
2212 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
2213
2214         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
2215
2216 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
2217
2218         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
2219         the size of a pointer in bytes.
2220
2221 2004-01-18  Roger Sayle  <roger@eyesopen.com>
2222
2223         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
2224         live "next" variable, which could lead to an infinite loop.
2225
2226 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
2227
2228         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
2229         block.
2230
2231         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
2232         Check for NULL in the chain and remove repeated code.
2233
2234 2004-01-18  Jan Hubicka  <jh@suse.cz>
2235
2236         * coverage.c (checksum_string): Rename to ...
2237         (coverage_checksum_string): ... this one, Use crc32_string; recognize
2238         names containing random number and zero the number out in order to get
2239         match.
2240
2241 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
2242
2243         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
2244
2245 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2246
2247         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
2248         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
2249         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
2250         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
2251         doc/trouble.texi: Remove trailing whitespace.
2252
2253 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
2254
2255         PR target/7618
2256         * config/mips/mips.c: Include cfglayout.h.
2257         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
2258         (mips_unspec_offset_high): Add temporary register argument.
2259         (mips_load_call_address): New function, split out from...
2260         (mips_expand_call): ...here.
2261         (mips_output_cplocal): New function.
2262         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
2263         (mips_emit_loadgp): New function, split out from...
2264         (mips_expand_prologue): ...here.
2265         (mips_output_mi_thunk): New function.
2266
2267 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
2268
2269         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
2270         mcpu32): Remove redundant checks for implied target predefines.
2271
2272 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
2273
2274         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
2275         Return type is unsigned int not int.
2276         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
2277         Likewise.
2278
2279 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2280
2281         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
2282         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
2283         "GNU/Linux" and "Microsoft Windows" terminology.
2284
2285 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2286
2287         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
2288         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
2289         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
2290         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
2291         @smallexample instead of @example.
2292
2293 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
2294
2295         * objc/objc-act.c (build_objc_method_call): Use target
2296         hooks instead of macros to determine if ..._stret
2297         dispatchers should be used (NeXT runtime only).
2298
2299 2004-01-17  Roger Sayle  <roger@eyesopen.com>
2300
2301         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
2302         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
2303
2304 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2305
2306         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
2307         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
2308         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
2309         macros.
2310         * reload1.c (emit_reload_insns): Use them.
2311         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
2312         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
2313         for NULL PATTERN.
2314
2315 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2316
2317         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
2318         (final_scan_insn): Update to take an additional SEEN argument.  Emit
2319         a line note after the prologue.  Make static.
2320         (line_note_exists): Remove.
2321         (final): Don't initialize line_note_exists.  Update call to
2322         final_scan_insn.
2323         * output.h (final_scan_insn): Remove prologue.
2324         * function.c (set_insn_locators): Update comment.
2325         (thread_prologue_and_epilogue_insns): Add a comment.
2326
2327 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
2328
2329         PR target/10781
2330         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
2331         Prototype.
2332         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
2333         New function.
2334         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
2335         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
2336         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
2337
2338 2004-01-17  Jan Hubicka  <jh@suse.cz>
2339
2340         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
2341         commit.
2342
2343         * toplev.c (HAVE_conditional_execution): Provide default.
2344         (rest_of_handle_reorder_blocks): For conditional_execution target
2345         update liveness once after all transformations
2346         (rest_of_compilation): Do crossjumping before ce3.
2347
2348 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
2349
2350         * alias.c (new_alias_set): Mark last_alias_set for PCH.
2351         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
2352         for PCH.
2353         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
2354         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
2355         (get_TOC_alias_set): Mark 'set' for PCH.
2356
2357 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
2358
2359         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
2360         even after reload, just don't remove the actual jump tables.
2361
2362 2004-01-17  J. Brobecker  <brobecker@gnat.com>
2363
2364         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
2365         Remove checks for is_ada() and TREE_UNSIGNED.
2366         (subrange_type_die): Emit a byte_size attribute if the subrange
2367         type size is different from the base type size.
2368         (modified_type_die): Replace call to is_ada_subrange_type() by
2369         call to is_subrange_type().
2370
2371 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
2372
2373         * config/sh/sh.c: Include ggc.h.
2374
2375 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
2376
2377         * Makefile.in (MD5_H): New.
2378         (fold-const.o): Depend on md5.h.
2379         (dwarf2out.o): Likewise.
2380         (cppfiles.o): Likewise.
2381         * cppfiles.c: Include md5.h.
2382         (should_stack_file): Check against list read from PCH file.
2383         (struct pchf_data): New.
2384         (pchf): New variable.
2385         (struct pchf_adder_info): New.
2386         (pchf_adder): New.
2387         (pchf_save_compare): New.
2388         (_cpp_save_file_entries): New.
2389         (_cpp_read_file_entries): New.
2390         (struct pchf_compare_data): New.
2391         (pchf_compare): New.
2392         (check_file_against_entries): New.
2393         * cpphash.h (_cpp_save_file_entries): Prototype.
2394         (_cpp_read_file_entries): Prototype.
2395         * cpppch.c (cpp_write_pch_state): Write the list of headers.
2396         (cpp_read_state): Read the list of headers.
2397
2398 2004-01-17  Jan Hubicka  <jh@suse.cz>
2399
2400         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
2401         builtin_expect specially.
2402         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
2403         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
2404         * invoke.texi (max-inline-insns-single): Set to 100.
2405         (large-function-insns): Set to 3000.
2406
2407 2004-01-16  Eric Christopher  <echristo@redhat.com>
2408             Chandrakala Chavva <cchavva@redhat.com>
2409
2410         * cppcharset.c (one_iso88591_to_utf8): New function.
2411         (convert_iso88591_utf8): Ditto. Use.
2412         (conversion_tab): Use.
2413         (_cpp_input_to_utf8): New function.
2414         (_cpp_init_iconv_buffer): Ditto.
2415         (_cpp_close_iconv_buffer): Ditto.
2416         * cpphash.h: Prototype new functions.
2417         (cpp_buffer): Add input_cset_desc.
2418         * cppinit.c: Add input_charset default.
2419         * cpplib.c (cpp_push_buffer): Support init and
2420         close of iconv.
2421         * cpplib.h (cpp_options): Add input_charset.
2422
2423 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
2424
2425         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
2426         * config/alpha/unicosmk.h: Remove a commented-out definition
2427         of ASM_OUTPUT_SECTION_NAME.
2428         * config/stormy16/stormy16.h: Likewise.
2429
2430 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2431
2432         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
2433         (alpha___extern_prefix_sys_stat): ... this.
2434         Apply to <sys/mount.h>, too.
2435         Tweak to match more variations.
2436         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
2437
2438         * fixinc/inclhack.def (alpha___extern_prefix,
2439         alpha___extern_prefix_standards): New hacks to obey
2440         __PRAGMA_EXTERN_PREFIX.
2441         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
2442         test.
2443         * fixinc/tests/base/standards.h: Likewise.
2444
2445         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
2446         variations.
2447         New testcase.
2448         * fixinc/tests/base/pthread.h: Handle it.
2449
2450         * fixincl/inclhack.def (bad_lval): Sort file list.
2451         Add many missing files up to Tru64 UNIX V5.1B.
2452         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
2453         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
2454         order.
2455
2456         * fixinc/fixincl.x: Regenerate.
2457
2458 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
2459
2460         * version.c (version_string): Change to 3.5.0.
2461         * doc/include/gcc-common.texi (version-GCC): Likewise.
2462
2463 2004-01-16  Jan Hubicka  <jh@suse.cz>
2464
2465         * i386.md (load_tp_di): Fix pasto.
2466
2467         PR opt/13608
2468         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
2469
2470         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
2471         pp_c_character_constant, pp_c_floating_constant,
2472         pp_c_additive_expression, pp_c_shift_expression,
2473         pp_c_equality_expression, pp_c_and_expression,
2474         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
2475         pp_c_logical_and_expression): Remove inline modifier.
2476         * dwarf2out.c (get_AT): Likewise.
2477         * et-forest.c (et_splay): Likewise.
2478         * ra.h (ra_alloc, ra_calloc): Likewise
2479
2480 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
2481
2482         * config/frv/frv-protos.h: Fix comment formatting.
2483         * config/frv/frv.c: Likewise.
2484         * config/frv/frv.h: Likewise.
2485         * config/frv/frv.md: Likewise.
2486         * config/frv/frvbegin.c: Likewise.
2487         * config/frv/frvend.c: Likewise.
2488
2489 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
2490
2491         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
2492         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
2493         LINKER_DOES_NOT_WORK_WITH_DWARF2.
2494         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
2495
2496 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
2497
2498         PR 11864
2499         * postreload.c (reload_cse_simplify_operands): Don't remove
2500         implicit extension from LOAD_EXTEND_OP.
2501
2502 2004-01-16  Jan Hubicka  <jh@suse.cz>
2503
2504         PR opt/11350
2505         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
2506         after reload.
2507         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
2508         rtl_try_redirect_by_replacing_branch): Likewise.
2509
2510 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
2511
2512         PR pch/13689
2513         * alias.c (struct alias_set_entry): Mark for GC.
2514         (alias_sets): Make static, mark for GC.
2515         (record_alias_subset): Use GC to allocate alias structures.
2516         * varray.c (element): Make generic varrays GCed.
2517
2518         PR pch/13361
2519         * c-typeck.c (constructor_asmspec): Delete.
2520         (struct initializer_stack): Delete field 'asmspec'.
2521         (start_init): Delete saving of asmspec.
2522         (finish_init): Don't update constructor_asmspec.
2523         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
2524         * stmt.c (expand_asm): Duplicate strings from tree.
2525         (expand_asm_operands): Likewise.
2526         * tree.c (tree_size): Update computation of size of STRING_CST.
2527         (make_node): Don't make STRING_CST nodes.
2528         (build_string): Allocate string with tree node.
2529         * tree.def (STRING_CST): Update comment.
2530         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
2531         (tree_string): Place contents of string in tree node.
2532         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
2533         from tree.
2534
2535         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
2536         altivec operands.
2537
2538 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2539
2540         * c-common.h: Fix comment formatting.
2541         * c-cppbuiltin.c: Likewise.
2542         * c-pragma.c: Likewise.
2543         * calls.c: Likewise.
2544         * collect2.c: Likewise.
2545         * cppcharset.c: Likewise.
2546         * cpptrad.c: Likewise.
2547         * dbxout.c: Likewise.
2548         * defaults.h: Likewise.
2549         * dwarf2out.c: Likewise.
2550         * fold-const.c: Likewise.
2551         * genautomata.c: Likewise.
2552         * genconditions.c: Likewise.
2553         * genflags.c: Likewise.
2554         * gengtype.c: Likewise.
2555         * integrate.c: Likewise.
2556         * loop.c: Likewise.
2557         * predict.c: Likewise.
2558         * sdbout.c: Likewise.
2559
2560 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
2561
2562         * config/ia64/ia64.md (*movti_internal): C output template
2563         extracted to ia64.c.
2564         (*movti_internal_reg): Delete.
2565         (reload_inti, reload_outti): Use the correct mode on operand 2
2566         in the first place, don't fix it up in the output template.
2567         (movtf, reload_ointf, reload_outtf): New expanders.
2568         (*movtf_internal): New define_insn_and_split.
2569         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
2570         make static; do not hand TFmode CONST_DOUBLEs to split_double.
2571         (ia64_split_tmode_move): New function, body mostly pulled
2572         from ia64.md:*movti_internal.
2573         (ia64_function_arg_words): New function, extracted common
2574         logic from ia64_function_arg et seq.
2575         (ia64_function_arg_offset): Likewise.  Handle correctly the
2576         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
2577         (ia64_function_arg, ia64_function_arg_partial_nregs)
2578         (ia64_function_arg_advance): Use ia64_function_arg_words and
2579         ia64_function_arg_offset.
2580         (ia64_function_value): TCmode does not go in float regs.
2581         (ia64_secondary_reload_class): Also handle TFmode.
2582         * config/ia64/ia64-protos.h: Remove prototype for
2583         ia64_split_timode; add prototype for ia64_split_tmode_move.
2584
2585 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
2586
2587         * Makefile.in (MAINT): Make it an immediate assignment.
2588
2589 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2590
2591         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
2592
2593 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2594
2595         * config/h8300/coff.h: Replace Hitachi with Renesas.
2596         * config/h8300/elf.h: Likewise.
2597         * config/h8300/h8300-protos.h: Likewise.
2598         * config/h8300/h8300.c: Likewise.
2599         * config/h8300/h8300.h: Likewise.
2600         * config/h8300/h8300.md: Likewise.
2601         * config/h8300/lib1funcs.asm: Likewise.
2602
2603 2004-01-15  Andrew Pinski  <apinski@apple.com>
2604
2605         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
2606         around it.
2607
2608 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2609
2610         * config/h8300/h8300.c (h8300_return_in_memory): New.
2611         (TARGET_STRUCT_VALUE_RTX): Likewise.
2612         (TARGET_RETURN_IN_MEMORY): Likewise.
2613         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
2614         (RETURN_IN_MEMORY): Likewise.
2615
2616 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
2617
2618         PR optimization/13375
2619         * gcse.c (handle_avail_expr): Just return if the source is not a
2620         single set.
2621
2622 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
2623             Daniel Jacobowitz  <drow@mvista.com>
2624
2625         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
2626         (EQUIV): Define.
2627         (ARM_FUNC_ALIAS): New macro.
2628         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
2629         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
2630
2631 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2632
2633         PR optimization/12372
2634         * calls.c (expand_call): Add call_fusage data for stack arguments in
2635         constant calls.
2636
2637 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
2638
2639         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
2640         (rs6000_elf_declare_function_name): Formatting.
2641         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
2642
2643 2004-01-15  Jan Hubicka  <jh@suse.cz>
2644
2645         PR bootstrap/13692
2646         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
2647         previous patch.
2648
2649 2004-01-15  Richard Henderson  <rth@redhat.com>
2650
2651         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
2652         integer regs of the same call-savedness.
2653
2654 2004-01-15  Andreas Schwab  <schwab@suse.de>
2655
2656         PR bootstrap/13562
2657         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
2658         status for NOTB/NOTW/NEGW methods.
2659
2660 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2661
2662         * doc/invoke.texi: Update dump file names.  Fix a typo.
2663
2664 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2665
2666         * builtins.c (expand_builtin_va_end): Don't use
2667         EXPAND_BUILTIN_VA_END.
2668         * system.h (EXPAND_BUILTIN_VA_END): Poison.
2669         * config/d30v/d30v.h: Remove a commented-out definition of
2670         EXPAND_BUILTIN_VA_END.
2671         * config/stormy16/stormy16.h: Likewise.
2672
2673 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2674
2675         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
2676         * targhooks.c (default_struct_value_rtx): Don't use
2677         STRUCT_VALUE_INCOMING_REGNUM.
2678
2679 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
2680
2681         PR bootstrap/12744
2682         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
2683         GENINSRC and not parsedir.  Define srcextra as a langhook.
2684         * configure: Regenerate.
2685         * Makefile.in: Suppress default .l.c rule.  Don't substitute
2686         parsedir and delete all references throughout.  Conditionally define
2687         rule for srcextra dependent on GENINSRC.
2688         (stmp-docobjdir): Delete.
2689         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
2690         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
2691         and gengtype-yacc.h back to source directory.
2692         (maintainer-clean): Delete all parse files in source directory.
2693         (distclean): Delete generated files.
2694
2695         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
2696         (objc-parse.c, objc-parse.y): Don't use parsedir.
2697         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
2698         directory if requested.
2699         (po-generated): Don't use parsedir.
2700         (objc.maintainer-clean): Delete above files from source directory.
2701
2702 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2703
2704         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
2705
2706 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2707
2708         * doc/tm.texi: Replace RETURN_IN_MEMORY with
2709         TARGET_RETURN_IN_MEMORY.
2710
2711 2004-01-15  Jan Hubicka  <jh@suse.cz>
2712
2713         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
2714         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
2715         functions accepting SSE arguments
2716         (function_arg): Warn only when asked to warn.
2717         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
2718
2719 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
2720
2721         * c-parse.in (stmts_and_decls): Make label at end of compound
2722         statement a hard error.
2723
2724 2004-01-14  Jan Hubicka  <jh@suse.cz>
2725
2726         * cgraph.c (create_edge): Use local.redefined_extern_inline.
2727         * cgraph.h (cgraph_local_info): Sort fields by size; add
2728         redefined_extern_inline
2729         (cgraph_global_info): Sort fields by size.
2730         (cgraph_node): Likewise.
2731         * cgraphunit.c (cgraph_finalize_function): Se
2732         local.redefined_extern_inline on redefinition.
2733         (cgraph_analyze_function): Use it; fix formating.
2734
2735 2004-01-14  Jan Hubicka  <jh@suse.cz>
2736
2737         PR c++/10776
2738         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
2739         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
2740         bitmaps
2741         (cache_size): New variable
2742         (add_dependence): Update use; canonize early memory locations
2743         (sched_analyze_1): Likewise.
2744         (sched_analyze_2): Likewise.
2745         (init_dependency_caches): Initialize bitmaps.
2746         (free_dependency_caches): Free bitmaps
2747
2748 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2749
2750         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
2751         targetm.calls.strict_argument_naming().
2752         * target.h: Likewise.
2753
2754 2004-01-14  Richard Henderson  <rth@redhat.com>
2755
2756         PR debug/13231
2757         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
2758         instructions.
2759
2760 2004-01-14  Richard Henderson  <rth@redhat.com>
2761
2762         PR c++/12491
2763         * except.c (struct eh_region): Add u.fixup.resolved.
2764         (resolve_one_fixup_region): Split out from ...
2765         (resolve_fixup_regions): ... here.
2766
2767 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2768
2769         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
2770
2771 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2772
2773         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
2774         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
2775         (STRUCT_VALUE): Remove.
2776
2777 2004-01-14  Steven Bosscher  <stevenb@suse.de>
2778
2779         * system.h: Poison PROMOTED_MODE
2780         * integrate.c (expand_inline_function): Don't mention the
2781         PROMOTED_MODE.
2782         * loop.c (update_giv_derive): Same.
2783         * tree.h (DECL_RTL): Same.
2784
2785 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
2786
2787         PR target/9365
2788         * sh.c (gen_block_redirect): Add special handling of RETURN.
2789         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
2790         far branch target (i.e. it's a return).
2791
2792 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2793
2794         * regrename.c (find_oldest_value_reg): Fix a warning.
2795
2796 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
2797
2798         PR bootstrap/12527
2799         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
2800         Move linux-gas.h and linux-elf.h before aout.h.
2801         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
2802         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
2803
2804 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2805
2806         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
2807         (CONST_INT, VOIDmode, ...).
2808
2809 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
2810
2811         * regrename.c (find_oldest_value_reg): If the replacement uses
2812         multiple hard registers, check that all of them are in CLASS.
2813
2814 2004-01-14  Jan Hubicka  <jh@suse.cz>
2815
2816         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
2817         impossible.
2818
2819 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
2820
2821         * Makefile.in: Define MAINT from --enable-maintainer-mode.
2822
2823 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
2824
2825         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
2826         Calculate always vrsave_mask if TARGET_ALTIVEC.
2827         (rs6000_emit_prologue): Emit code for vrsave
2828         only if TARGET_ALTIVEC_VRSAVE.
2829         (rs6000_emit_epilogue): Likewise.
2830
2831 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
2832
2833         * config/sparc/sparc.md (tie_add32): Fix pasto.
2834         (tie_add64): Likewise.
2835
2836 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2837
2838         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
2839
2840 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
2841
2842         * config/iq2000/iq2000-protos.h: Fix comment formatting.
2843         * config/iq2000/iq2000.c: Likewise.
2844         * config/iq2000/iq2000.md: Likewise.
2845
2846 2004-01-14  J. Brobecker  <brobecker@gnat.com>
2847
2848         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
2849         (subrange_type_die): Add handle for nameless subrange types.
2850
2851 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
2852
2853         * config/h8300/h8300-protos.h: Replace do_movsi with
2854         h8300_expand_movsi.
2855         * config/h8300/h8300.c (do_movsi): Change to
2856         h8300_expand_movsi.
2857         * config/h8300/h8300.md (movsi): Replace do_movsi with
2858         h8300_expand_movsi.
2859         (movsf): Likewise.
2860
2861 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
2862
2863         * config/h8300/h8300.c (dosize): Change to
2864         h8300_emit_stack_adjustment.  Update callers.
2865
2866 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
2867
2868         * config/h8300/h8300.md (movstrictqi): Add an alternative with
2869         the source being post_inc.  Tighten the predicate for the
2870         destination to register_operand.
2871         (movstricthi): Likewise.
2872
2873 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
2874
2875         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
2876         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
2877         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
2878
2879 2004-01-14  Jan Hubicka  <jh@suse.cz>
2880
2881         Partial fix PR c++/12850
2882         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
2883         at zero nest level.
2884
2885 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
2886
2887         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
2888         pseudo-register.
2889
2890 2004-01-13  Devang Patel <dpatel@apple.com
2891
2892         PR debug/7078
2893         * dbxout.c (dbxout_symbol_name): Emit mangled names for
2894         NAMESPACE_DECL memebers.
2895
2896 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
2897
2898         PR c++/12709
2899         * c-common.c (finish_fname_decls): Use the chain only if the
2900         tree is an expr_stmt.
2901
2902 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
2903
2904         * rtl.def: Add comment about new option in automata_option.
2905
2906         * genautomata.c (PROGRESS_OPTION): New macro.
2907         (progress_flag): New global variable.
2908         (gen_automata_option): Process `progress'.
2909         (transform_insn_regexps, check_unit_distributions_to_automata,
2910         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
2911         expand_automata, write_automata): Print about the progress only if
2912         progress_flag.  Remove fflush.
2913         (initiate_automaton_gen): Process command line flag `-progress'.
2914
2915         * doc/md.texi: Describe the new option.
2916
2917 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2918
2919         * cfg.c (dump_bb): Dump entry edges.
2920
2921 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
2922
2923         * arm.c (thumb_legitimate_address_p): Only allow constant pool
2924         references from SImode.
2925         * arm.md (thumb_movhi_insn): Don't allow minipool references.
2926
2927 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
2928
2929         * system.h (TEXT_SECTION): Poison.
2930         * varasm.c (text_section): Don't use TEXT_SECTION.
2931         * config/sh/sh.c (sh_file_start): Fix a comment typo.
2932         * doc/tm.texi (TEXT_SECTION): Remove.
2933
2934 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
2935
2936         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
2937
2938 2004-01-12  James E Wilson  <wilson@specifixinc.com>
2939
2940         * unwind-libunwind.c: Delete.
2941
2942 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
2943
2944         PR 13656
2945         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
2946         oldtype is set, set *newtypep or *oldtypep too.  Do not set
2947         them at the very end.
2948         (validate_proto_after_old_defn): Restructure for comprehensibility;
2949         make error messages clearer.
2950
2951 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
2952
2953         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
2954         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
2955         * varray.c: No need to prototype error.
2956         (varray_check_failed): Wrap long string onto two lines.
2957         (varray_underflow): New function.
2958
2959 2004-01-13  Steven Bosscher  <stevenb@suse.de>
2960
2961         PR c++/13376
2962         * function.h (struct function): Kill `name' field.
2963         (current_function_name): Make it an extern function.
2964         * function.c (current_function_name): New function.
2965         * graph.c: Update all uses of current_function_name.
2966         * gcse.c: Likewise.
2967         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
2968         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
2969         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
2970         instead of a strcmp with "main".
2971
2972 2004-01-13  Jan Hubicka  <jh@suse.cz>
2973
2974         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
2975
2976         * cgraphunit.c (cgraph_optimize_function):  Always do
2977         optimize_inline_calls when there is always_inline callee.
2978         (cgraph_decide_inlining): Fix formating.
2979         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
2980         functions.
2981         (expand_call_inline): Likewise.
2982         * toplev.h (sorry): Fix prototype.
2983
2984 2004-01-12  Roger Sayle  <roger@eyesopen.com>
2985
2986         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
2987         conditional jumps that drop through to unconditional jumps or the
2988         end of the sequence.
2989
2990 2004-01-13  Jan Hubicka  <jh@suse.cz>
2991
2992         * alias.c (new_alias_set): Construct the alias_set varray.
2993         (init_alias_once): Don't do it here.
2994
2995 2004-01-12  Marc Espie <espie@openbsd.org>
2996
2997         * system.h: handle YYBYACC like YYBISON.
2998
2999 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
3000
3001         PR target/10847
3002         * config.gcc: No longer includes conflicting header sparc/sol2.h when
3003         building on sparc64-*-openbsd*.
3004
3005 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
3006
3007         PR debug/13539
3008         * dbxout.c (dbxout_type): Protected inheritance is not
3009         private but protected.
3010
3011 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
3012
3013         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
3014
3015 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
3016
3017         PR optimization/12508.
3018         * combine.c (try_combine): Remove a dead set in a parallel
3019         even if its destination is a subreg.
3020
3021         Revert:
3022         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
3023         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
3024         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
3025
3026 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
3027
3028         * real.c: Update copyright date.
3029         * emit-rtl.c: Likewise.
3030         * rtl.h: Likewise.
3031         * dwarf2out.c: Likewise.
3032         * config/rs6000/darwin-ldouble.c: Likewise.
3033         * config/rs6000/rs6000.md: Likewise.
3034
3035 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
3036
3037         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
3038         TFmode to SImode libfuncs.
3039
3040 2004-01-12  Roger Sayle  <roger@eyesopen.com>
3041
3042         PR middle-end/11397
3043         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
3044
3045 2004-01-12  Jan Hubicka  <jh@suse.cz>
3046
3047         PR opt/12826
3048         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
3049         stored.
3050
3051         PR opt/12863
3052         * cfgcleanup.c (label_is_jump_target_p): Move to...
3053         * rtlanal.c (label_is_jump_target_p): ... here.
3054         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
3055         edges unified with branch edges.
3056
3057 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
3058
3059         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
3060         high word of an integral CONST_DOUBLE.
3061
3062 2004-01-12  Paul Brook  <paul@codesourcery.com>
3063
3064         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
3065
3066 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
3067
3068         PR target/13585
3069         * sh-protos.h (check_use_sfunc_addr): Declare.
3070         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
3071         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
3072
3073 2004-01-12  Jan Hubicka  <jh@suse.cz>
3074
3075         * alias.c:  Invlude varray.h
3076         (alias_sets): Turn into varray.
3077         (get_alias_set_entry): Use VARRAY; mark inline.
3078         (mems_in_disjoint_alias_sets_p): Mark inline.
3079         (record_alias_subset): Use varray.
3080         (init_alias_once): Initialize varray.
3081         (new_alias_set): Grow array.
3082         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
3083
3084 2004-01-12  Jan Hubicka  <jh@suse.cz>
3085
3086         Partial fix for PR opt/10776 II
3087         * cselib.c: Include params.h
3088         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
3089         locations.
3090         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
3091         * Makefile.in (cselib.o): Depend on params.h
3092
3093 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
3094
3095         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
3096         simplify_unary_operation if the operand has a known mode.
3097
3098 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
3099
3100         PR target/13534
3101         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
3102         predicate to handle 'ld' conform addresses.
3103         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
3104         contraint.
3105         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
3106         are memory contraints.
3107         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
3108         New prototype.
3109         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
3110         Change 'o' to 'Y' constraint.
3111         (*movdf_softfloat64): Ditto.
3112
3113 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
3114
3115         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
3116         brace-enclosed syntax in all C output statements.
3117
3118 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
3119
3120         PR target/13401
3121         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3122         Objective-C language type value is 14.
3123
3124 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
3125
3126         PR c/12148
3127         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
3128         `int' in a number of places to make sure we always have a SImode
3129         and not a HImode.  Add a 'L' suffix to a number of constants.
3130
3131 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3132
3133         * pa.c: Don't include obstack.h.
3134
3135         * pa.md: Correct constraint in pattern for loading PIC label address.
3136
3137 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3138
3139         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
3140          before defining.
3141
3142 2004-01-11  Steven Bosscher  <stevenb@suse.de>
3143
3144         PR fortran/9972
3145         * toplev.c (rest_of_handle_inline): Also consider functions
3146         for deferral if the language is GNU F77.
3147
3148 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
3149
3150         * c-decl.c (diagnose_arglist_conflict): Add missing space to
3151         diagnostic messages.
3152
3153 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
3154
3155         PR middle-end/13392
3156         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
3157         to drop through label.  Don't fall back to SCC even when conditional
3158         jump has not been found.
3159
3160 2004-01-11  Jan Hubicka  <jh@suse.cz>
3161
3162         * invoke.texi: Fix syntax error in previous patch.
3163
3164         Partial fix for PR opt/10776
3165         * Makefile.in (reload.o): Include param.h
3166         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
3167         * reload.c: Include params.h.
3168         (find_equiv_reg): Work limiting check.
3169         * invoke.texi: Document.
3170
3171 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
3172
3173         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
3174         out-of-bounds accesses to string constants.  Simplify mips16
3175         case accordingly.
3176
3177 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
3178
3179         PR optimization/13469
3180         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
3181         reload_cse_regs (-fnon-call-exceptions only).
3182
3183 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
3184
3185         * config/mcore/lib1.asm: Fix comment formatting.
3186         * config/mcore/mcore-elf.h: Likewise.
3187         * config/mcore/mcore.c: Likewise.
3188         * config/mcore/mcore.h: Likewise.
3189         * config/mcore/mcore.md: Likewise.
3190
3191 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
3192
3193         * c-decl.c (duplicate_decls): Break apart into...
3194         (diagnose_arglist_conflict, validate_proto_after_old_defn)
3195         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
3196         ... these new functions.  Restructure for comprehensibility.
3197         Remove various archaic special cases.  Always report the
3198         location of the previous declaration when a diagnostic is issued.
3199         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
3200         (match_builtin_function_types): Delete unnecessary forward declaration.
3201
3202 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
3203
3204         * genautomata.c (make_automaton, NDFA_to_DFA):
3205         Print progress bars with '.' characters instead of '*'.
3206         (build_automaton): Change notes to match.
3207
3208 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
3209
3210         * config/m32r/m32r.md: Use define_constants for unspec and
3211         unspec_volatile.
3212
3213 2004-01-10  Jan Hubicka  <jh@suse.cz>
3214
3215         PR opt/11635
3216         * expr.c (expand_expr_real):  More curefully expand union casts.
3217
3218 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
3219
3220         * config/m32r/m32r.md (flush_icache): Use 1 for
3221         unspec_volatile.
3222
3223 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
3224             James E Wilson  <wilson@specifixinc.com>
3225
3226         PR debug/12860
3227         * dbxout.c (dbxout_symbol): Remove initialization of
3228         current_sym_code, current_sym_value, and current_sym_addr.
3229         (dbxout_symbol_location): Same.
3230         (dbxout_prepare_symbol): Zero current_sym_code,
3231         current_sym_value, and current_sym_addr.
3232
3233 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
3234
3235         * tree.c (get_unwidened): Reorder conditions so that the null pointer
3236         check is done first.
3237
3238 2004-01-09  Eric Christopher  <echristo@redhat.com>
3239
3240         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
3241         if we're running mark_constant_function.
3242
3243 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
3244
3245         PR target/12561
3246         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
3247
3248 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
3249
3250         PR debug/11231
3251         * dbxout.c (dbxout_type_fields): Return if any item is
3252         error_mark_node or the type is error_mark_node.
3253
3254 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
3255
3256         * config/rs6000/darwin-ldouble.c: Add big comment explaining
3257         exactly what is expected as a 'long double'.
3258         (_xlqadd): When a value to be returned is representable as a
3259         'double', just return it directly, do not construct it using a union.
3260         Also, correct final fixup.
3261         (_xlqmul): Likewise.
3262         (_xlqdiv): Likewise.
3263         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
3264
3265         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
3266
3267 2004-01-09  Richard Henderson  <rth@redhat.com>
3268
3269         * recog.c (constrain_operands): Validate mem operands.
3270
3271 2004-01-09   James E Wilson  <wilson@specifixinc.com>
3272
3273         * gcc.c (init_spec): Remove -lunwind from shared case.
3274         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
3275
3276 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
3277
3278         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
3279         * configure: Regenerate
3280
3281 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
3282
3283         PR c/11234
3284         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
3285         between function and object pointers.
3286         (digest_init): When comparing a pointer to function type to the
3287         target type, only apply TREE_TYPE once to the pointer to function
3288         type.
3289         * except.c (for_each_eh_label_1): Treat data as a pointer to a
3290         function pointer rather than casting it to a function pointer.
3291         (for_each_eh_label): Update caller.
3292         * recog.h (struct insn_data): Use a struct or union for output.
3293         * genoutput.c (output_insn_data): Update.
3294         * final.c (get_insn_template): Update.
3295
3296 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
3297
3298         * expr.h (expand_expr): Make it a macro, not a function.
3299         (expand_expr_real): New function.
3300         * expr.c (store_expr): Adjust logic for deciding whether or not to
3301         copy the value returned by expand_expr.
3302         (expand_expr): Rename to ...
3303         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
3304         calls to language hooks.
3305         * c-common.h (c_expand_expr): Adjust prototype.
3306         * c-common.c (c_expand_expr): Add alt_rtl parameter.
3307         * langhooks-def.h (lhd_expand_expr): Change prototype.
3308         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
3309         * langhooks.h (lang_hooks): Change type of expand_expr.
3310         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
3311         (last_expr_alt_rtl): Likewise.
3312         (expand_expr_stmt_value): Set last_expr_alt_rtl.
3313         (clear_last_expr): Clear it.
3314         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
3315         (expand_end_bindings): Save and restor last_expr_alt_rtl.
3316         * tree.def (RTL_EXPR): Give it an additional operand.
3317         * tree.h (RTL_EXPR_ALT_RTL): New macro.
3318
3319 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3320
3321         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
3322         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
3323
3324 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
3325
3326         PR target/13380.
3327         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
3328         or (ne:SI (reg:CC 17) (const_int 0)).
3329         Be specific about modes wherever possible.
3330
3331 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
3332
3333         * config/m32r/m32r.c (m32r_expand_block_move): Call
3334         gen_movestrsi_internal with two more arguments.
3335         (m32r_output_block_move): Adjust operand numbers.
3336         Properly update the source and destination pointers.
3337         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
3338         'r+'.  Change the set detinations to match_operand.
3339
3340 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
3341
3342         * final.c (FIRST_INSN_ADDRESS): Remove.
3343         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
3344         * system.h (FIRST_INSN_ADDRESS): Poison.
3345         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
3346         * config/m32r/m32r-protos.h: Remove the prototype for
3347         m32r_first_insn_address.
3348         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
3349         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
3350         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
3351
3352 2004-01-09  J. Brobecker  <brobecker@gnat.com>
3353
3354         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
3355         we just created.
3356         (is_ada_subrange_type): DIEs for enumeration subtypes should be
3357         emitted as subrange types too.
3358         (subrange_type_die): Add handling of enumeration subtypes.
3359
3360 2004-01-08  Richard Henderson  <rth@redhat.com>
3361
3362         PR opt/12441
3363         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3364         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3365         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3366         (ix86_address_cost): Be prepared for SUBREGed registers.
3367         (legitimate_address_p): Accept SUBREGed registers.
3368
3369 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
3370
3371         * Makefile.in: Rename configure.in to configure.ac
3372         * doc/sourcebuild.texi: Likewise.
3373         * configure: Regenerate.
3374         * config.in: Regenerate.
3375
3376 2004-01-08  Stuart Hastings  <stuart@apple.com>
3377
3378         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
3379
3380 2004-01-08  Jan Hubicka  <jh@suse.cz>
3381
3382         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
3383
3384 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
3385
3386         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
3387         (UNSPEC_FIX_TRUNC_TF): New constant.
3388         (movtf_internal): Make splitter active only when insn is active.
3389         (extenddftf2): Rewrite to properly load zero into low part.
3390         (extenddftf2_internal): New.
3391         (extendsftf2): Rewrite.
3392         (truncdftf2): Correct length.
3393         (floatditf2): Delete.
3394         (fix_trunc_helper): New.
3395         (fix_trunctfdi2): Use fix_trunc_helper.
3396         (fix_trunctfsi2): Likewise.fix_trunc
3397         (fix_trunctfsi2_internal): New.
3398
3399         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
3400         addresses are legitimate on Darwin even when flag_pic.
3401         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
3402         non-offsettable addresses for loads of TFmode constants.
3403
3404 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3405
3406         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
3407         variables in the appropriate bss section.
3408
3409 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
3410
3411         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
3412         target_flags has MASK_POWERPC64 when -m64.
3413         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
3414         to 620, 630, power3, power4 and rs64a entries.
3415         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
3416
3417 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
3418
3419         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
3420         floating-point constants.
3421
3422 2004-01-08  J. Brobecker  <brobecker@gnat.com>
3423
3424         * dwarf2out.c (subrange_type_die): Add context_die parameter.
3425         Create the subrange_type DIE using the given context DIE.
3426         (modified_type_die): Update call to subrange_type_die.
3427
3428 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
3429
3430         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
3431         Add multiple-include guard.
3432
3433 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
3434
3435         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
3436         all vector constant loadable by vsplt*.
3437         (output_vec_const_move): Likewise.
3438
3439 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
3440
3441         PR c/6024
3442         * c-typeck.c (comptypes): Only treat enumerated types in the same
3443         translation unit as compatible with each other when they are the
3444         same type.
3445         * doc/extend.texi: Update.
3446
3447 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
3448
3449         PR c/12165
3450         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
3451         array type from the array element type.
3452
3453 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
3454
3455         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
3456         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
3457         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
3458         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
3459         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
3460
3461 2004-01-06  Eric Christopher  <echristo@redhat.com>
3462
3463         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
3464         (DWARF2_DEBUGGING_INFO): Define.
3465         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
3466         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
3467         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
3468         for irix as.
3469         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
3470         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
3471         * config/mips/iris5gas.h: Ditto.
3472         (DBX_DEBUGGING_INFO): Remove.
3473         (DWARF2_DEBUGGING_INFO): Ditto.
3474         (MIPS_DEBUGGING_INFO): Ditto.
3475         (PREFERRED_DEBUGGING_TYPE): Ditto.
3476         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
3477         (PREFERRED_DEBUGGING_TYPE): Ditto.
3478         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
3479         * config/mips/elf64.h: Ditto.
3480
3481 2004-01-06  Jan Hubicka  <jh@suse.cz>
3482
3483         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
3484         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
3485
3486 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
3487
3488         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
3489         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
3490         * config/rs6000/darwin-ldouble.c: New.
3491
3492         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
3493         for constants.
3494         (constant_subword): Delete.
3495         * rtl.h (constant_subword): Delete prototype.
3496         (immed_double_const): Is not in varasm.c.
3497         * simplify-rtx.c (simplify_immed_subreg): New.
3498         (simplify_subreg): Use simplify_immed_subreg.
3499
3500         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
3501         than trying to generate RTL directly.
3502         (fix_trunctfsi2): Use expand_fix rather than trying to generate
3503         RTL directly.
3504
3505         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
3506
3507 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
3508
3509         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
3510         function into a separate macro.
3511         (read_only_data_section): Add void argument.
3512         (private_data_section): Same.
3513         (read_only_private_data_section): Same.
3514         (toc_section): Same.
3515
3516 2004-01-06  Jan Hubicka  <jh@suse.cz>
3517
3518         * invoke.texi:  Remove typo in last change.
3519
3520         PR target/10301
3521         * config.gcc: Accept opteron and athlon-64 as variants
3522         of k8.
3523         * i386.c (override_options): Likewise.
3524         * invoke.texi (i386 -mtune): Expand documentation.
3525
3526 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
3527
3528         * alias.c: Fix comment typos.
3529         * builtins.c: Likewise.
3530         * cfg.c: Likewise.
3531         * df.c: Likewise.
3532         * dominance.c: Likewise.
3533         * dwarf2out.c: Likewise.
3534         * emit-rtl.c: Likewise.
3535         * expr.c: Likewise.
3536         * final.c: Likewise.
3537         * fold-const.c: Likewise.
3538         * gcse.c: Likewise.
3539         * genattrtab.c: Likewise.
3540         * genrecog.c: Likewise.
3541         * gensupport.c: Likewise.
3542         * ggc-zone.c: Likewise.
3543         * integrate.c: Likewise.
3544         * local-alloc.c: Likewise.
3545         * loop.c: Likewise.
3546         * recog.c: Likewise.
3547         * regmove.c: Likewise.
3548         * reg-stack.c: Likewise.
3549         * reorg.c: Likewise.
3550         * rtlanal.c: Likewise.
3551         * rtl.h: Likewise.
3552         * sched-ebb.c: Likewise.
3553         * simplify-rtx.c: Likewise.
3554         * toplev.c: Likewise.
3555         * varasm.c: Likewise.
3556
3557 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
3558
3559         * doc/install.texi: Fix typos.
3560         * doc/invoke.texi: Likewise.
3561         * doc/md.texi: Likewise.
3562
3563 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3564
3565         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
3566
3567 2004-01-06  Jan Hubicka  <jh@suse.cz>
3568
3569         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
3570         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
3571         of MMX_REGPARM.
3572         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
3573         add MMX_REGPARM.
3574         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
3575         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
3576         (MMX_REGPARM_MAX): Similarly for -mmmx.
3577
3578 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
3579
3580         * config/sh/linux.h: Fix comment formatting.
3581         * config/sh/netbsd-elf.h: Likewise.
3582         * config/sh/sh.c: Likewise.
3583         * config/sh/sh.h: Likewise.
3584         * config/sh/vxworks.h: Likewise.
3585
3586 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
3587
3588         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
3589         * toplev.c (output_file_directive): Don't use
3590         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
3591
3592 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
3593
3594         * toplev.c: Fix broken checkin of 2003-12-30.
3595
3596 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
3597
3598         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
3599         (USING_MMAP): We don't support non-mmap.
3600         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
3601         large objects.
3602         (struct page_entry): Remove bytes_free.
3603         (struct page_table_chain): Remove.
3604         (struct globals): Remove page_table member.
3605         (loookup_page_table_entry): Function deleted.
3606         (set_page_table_entry): Ditto.
3607         (ggc_allocated_p): No longer need page table lookups.
3608         (ggc_marked_p): Ditto.
3609         (alloc_small_page): Don't care about bytes_free anymore.
3610         (alloc_large_page): Round up size.
3611         (ggc_alloc_zone_1): Mark large objects as such, and calculate
3612         their size the new way.
3613         Remove page table lookups and setting.
3614         (ggc_get_size): Calculate large object size the new way.
3615         (sweep_pages): Redo to account for fact that we no longer have
3616         bytes_free.
3617         (ggc_collect): No longer need to reincrement bytes_free.
3618         (ggc_pch_alloc_object): Handle new large objects properly.
3619         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
3620
3621 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
3622
3623         * doc/invoke.texi: Remove a page break.
3624
3625 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
3626
3627         * config/avr/avr.c (avr_output_function_prologue): Remove an
3628         extra pair of curly braces.
3629
3630 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
3631
3632         * config/mn10300/mn10300.c: Fix comment formatting.
3633         * config/mn10300/mn10300.h: Likewise.
3634
3635 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3636
3637         * tree.h: Update documentation on nothrow_flag.
3638         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
3639         types.
3640
3641 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
3642
3643         * doc/invoke.texi: Remove traces of dead ports.
3644
3645 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
3646
3647         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
3648         option.
3649
3650 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
3651
3652         PR target/12945
3653         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
3654         counter labels.
3655         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
3656         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
3657         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
3658         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
3659         (mips_symbol_insns): Don't trust the local/global classification.
3660         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
3661         (override_options): Make -mabicalls -fno-unit-at-a-time imply
3662         -mno-explicit-relocs.
3663         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
3664         between local and global symbols.
3665
3666 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
3667
3668         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
3669         (mips_preferred_reload_class): Declare.
3670         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
3671         (EXTRA_CONSTRAINT): Update accordingly.
3672         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
3673         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
3674         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
3675         mips_dangerous_for_la25_p.
3676         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
3677         if mips_dangerous_for_la25_p.
3678
3679 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
3680
3681         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
3682         warning.
3683
3684 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
3685
3686         * configure.ac: Use AC_PROG_CPP_WERROR.
3687         * configure: Regenerate.
3688
3689 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
3690
3691         * .cvsignore: Add autom4te.cache.
3692
3693 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
3694
3695         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
3696         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
3697         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
3698         then architecture options, then ABI options.  General rewording.
3699
3700 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3701
3702         PR c/3414
3703         * doc/extend.texi: Clarify definition of malloc attribute.
3704
3705 2004-01-04  Jan Hubicka  <jh@suse.cz>
3706
3707         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
3708         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
3709         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
3710         (cgraph_inline_p): Add extra argument reason.
3711         * cgraphunit.c: Minor formating fixes.
3712         cgraph_first_inlined_callee): New functions.
3713         (record_call_1): Record builtins too.
3714         (cgraph_analyze_function): Update inline_failed messages.
3715         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
3716         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
3717         (cgraph_check_inline_limits): Likewise; Add argument reason.
3718         (cgraph_set_inline_failed): New static function.
3719         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
3720         reasons.
3721         (cgraph_inline_p): Add new argument reason.
3722         * tree-inline.c (expand_call_inline):  Update warning.
3723
3724 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
3725
3726         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
3727         with modern equivalents.
3728         * configure: Regenerate.
3729
3730         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
3731         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
3732         * configure: Regenerate.
3733
3734         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
3735
3736         * configure.in: Rename to configure.ac.
3737         * configure.ac: Renamed from configure.in; make minimum necessary
3738         changes for autoconf 2.5x.
3739         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
3740         * configure: Regenerate with autoconf 2.57.
3741
3742 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
3743
3744         * config/mips/linux.h: Fix comment formatting.
3745         * config/mips/mips.c: Likewise.
3746         * config/mips/mips.h: Likewise.
3747         * config/mips/mips.md: Likewise.
3748         * config/mips/netbsd.h: Likewise.
3749         * config/mips/windiss.h: Likewise.
3750
3751 2004-01-02  Richard Henderson  <rth@redhat.com>
3752
3753         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
3754         for sse and 387; add suppression for mmx.
3755
3756 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
3757
3758         * loop.c (loop_optimize): Free all loops_info's mems.
3759
3760         * c-typeck.c (finish_init): Free spelling_base before
3761         setting it again.
3762
3763         * cfgloop.c (flow_loops_find): Always free the sbitmap
3764         headers.
3765
3766         * predict.c (estimate_probability): Free bbs after being
3767         done with it.
3768
3769 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
3770
3771         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
3772         const_8bit_operand and call_address_operand.
3773
3774 2004-01-02  Jan Hubicka  <jh@suse.cz>
3775
3776         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
3777         when there is nothing to inline but warnings are requested.
3778         (cgraph_decide_inlining):  Fix memory leak.
3779
3780 2004-01-02  Jan Hubicka  <jh@suse.cz>
3781
3782         * expr.c (store_constructor):  Fix pasto in previous patch.
3783
3784 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
3785
3786         * config/i386/cygming.h: Fix comment formatting.
3787         * config/i386/djgpp.h: Likewise.
3788         * config/i386/gthr-win32.c: Likewise.
3789         * config/i386/i386-interix.h: Likewise.
3790         * config/i386/i386.c: Likewise.
3791         * config/i386/i386.h: Likewise.
3792         * config/i386/openbsd.h: Likewise.
3793         * config/i386/winnt.c: Likewise.
3794         * config/i386/xm-mingw32.h: Likewise.
3795
3796 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
3797
3798         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
3799         copyright and last modification dates.
3800
3801 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
3802
3803         * doc/install.texi (Specific): Mention x86_64.
3804
3805 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
3806
3807         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
3808         Call force_operand on plus_constant result.
3809
3810 2004-01-01  Jan Hubicka  <jh@suse.cz>
3811
3812         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
3813         * expr.c (store_constructor): Use vec_init pattern.
3814         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
3815         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
3816         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
3817         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
3818         New patterns.
3819         (sse2_unpc?pd): Fix pattern.
3820         (sse2_movlpd): Kill.
3821         (sse2_movsd): Deal with movlpd too.
3822         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
3823         (ix86_expand_vector_init): New.
3824         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
3825         * md.texi (vec_set, vec_extract): Document
3826
3827 2003-12-31  Jan Hubicka  <jh@suse.cz>
3828
3829         PR opt/13473
3830         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
3831         ASM input operands
3832
3833         PR opt/12617
3834         * toplev.c (dump_file_index): Reorder ce3 and bbro.
3835         (dump_file): Likewise.
3836         (rest_of_compilation): Likewise.
3837
3838         PR debug/13367
3839         * cgraph.c (cgraph_function_possibly_inlined):  Even with
3840         flag_really_no_inline we inline always_inline functions.
3841         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
3842         for non-always_inline functions when there is flag_really_no_inline.
3843         (cgraph_decide_inlining): Limit work done when not inlining.
3844         (cgraph_decide_inlining_incrementally): Likewise.
3845         (cgraph_optimize_function): Check whether something got inlined.
3846         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
3847         extern inline functions when not inlining.
3848
3849         * opts.c (decode_options):  Disable crossjumping at -O1
3850         * invoke.texi (-O1): Document change.
3851
3852 See ChangeLog.10 for earlier changes.
3853