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