OSDN Git Service

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