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