]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
alias.c (rtx_equal_for_memref_p): Use predicates to test rtx classes and new rtx...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
2
3 * alias.c (rtx_equal_for_memref_p): Use predicates
4 to test rtx classes and new rtx class codes, possibly
5 splitting conditionals that tested against '<' and 'o'.
6 * caller-save.c (save_call_clobbered_regs): Likewise.
7 * combine.c (contains_muldiv, find_split_point, subst,
8 combine_simplify_rtx, simplify_if_then_else,
9 simplify_set, simplify_logical, expand_compound_operation,
10 make_compound_operation, if_then_else_cond, known_cond,
11 apply_distributive_law, cached_nonzero_bits,
12 cached_num_sign_bit_copies, simplify_shift_const,
13 gen_binary, simplify_comparison, update_table_tick,
14 record_value_for_reg, get_lsat_value_validate): Likewise.
15 * cse.c (mention_regs, find_best_addr, find_comparison_args,
16 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
17 Likewise.
18 * emit-rtl.c (copy_insn_1): Likewise.
19 * expr.c (force_operand): Likewise.
20 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
21 * flow.c (notice_stack_pointer_modification_1,
22 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
23 and_reg_cond, elim_reg_cond): Likewise.
24 * function.c (update_epilogue_consts): Likewise.
25 * genattrtab.c (attr_rtx_1): Likewise.
26 * genopinit.c (gen_insn): Likewise.
27 * integrate.c (subst_constants): Likewise.
28 * jump.c (reversed_comparison_code_parts,
29 reversed_comparison_code, delete_related_insns,
30 rtx_renumbered_equal_p): Likewise.
31 * local-alloc.c (block_alloc): Likewise.
32 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
33 canonicalize_condition): Likewise.
34 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
35 Likewise.
36 * optabs.c (add_equal_node, expand_binop): Likewise.
37 * predict.c (estimate_probability): Likewise.
38 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
39 * recog.c (validate_replace_rtx_1, comparison_operator,
40 offsettable_address_p, constrain_operands): Likewise.
41 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
42 Likewise.
43 * regclass.c (scan_one_insn): Likewise.
44 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
45 * regrename.c (kill_autoinc_value): Likewise.
46 * reload.c (find_reusable_reload, find_reloads,
47 reg_overlap_mentioned_for_reload_p): Likewise.
48 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
49 * rtl.c (copy_rtx): Likewise.
50 * rtl.h (CONSTANT_P, INSN_P): Likewise.
51 * rtlanal.c (commutative_operand_precedence): Likewise.
52 * sched-deps.c (conditions_mutex_p): Likewise.
53 * sched-rgn.c (is_cfg_nonregular): Likewise.
54 * simplify-rtx.c (simplify_gen_binary,
55 simplify_gen_relational, simplify_replace_rtx,
56 simplify_unary_operation, simplify_binary_operation,
57 simplify_ternary_operation, simplify_rtx): Likewise.
58 * unroll.c (reg_dead_after_loop): Likewise.
59 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
60 print_operand): Likewise.
61 * config/arc/arc.c (proper_comparison_operator): Likewise.
62 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
63 Likewise.
64 * config/avr/avr.c (_reg_unused_after): Likewise.
65 * config/frv/frv.c (frv_ifcvt_modify_tests,
66 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
67 * config/i386/i386.c (ix86_comparison_operator,
68 ix86_carry_flag_operator, fcmov_comparison_operator,
69 arith_or_logical_operator, print_operand,
70 ix86_expand_binary_operator, ix86_binary_operator_ok):
71 Likewise.
72 * config/i386/i386.md: Likewise.
73 * config/ia64/ia64.c (not_postinc_memory_operand,
74 ia64_print_operand, update_set_flags, errata_emit_nops):
75 Likewise.
76 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
77 CONSTRAINT_OK_FOR_S): Likewise.
78 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
79 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
80 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
81 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
82 Likewise.
83 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
84 eqne_comparison_operator, signed_comparison_operator):
85 Likewise.
86 * config/mips/mips.c (cmp_op, symbolic_expression_p):
87 Likewise.
88 * config/mmix/mmix (mmix_foldable_comparison_operator,
89 mmix_comparison_operator): Likewise.
90 * config/pa/pa.c (hppa_legitimize_address): Likewise.
91 * config/rs6000/rs6000.c (stmw_operation,
92 branch_comparison_operator, trap_comparison_operator,
93 ccr_bit): Likewise.
94 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
95 * config/s390/s390.c (s390_alc_comparison,
96 s390_slb_comparison):L Likewise.
97 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
98 Likewise.
99 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
100 noov_compare_op, noov_compare64_op, v9_regcmp_op,
101 emit_hard_tfmode_operation, reg_unused_after)
102 * doc/md.texi, doc/rtl.texi: Likewise.
103
104 * ra-debug.c: Add 2004 to list of copyright years.
105 * unroll.c: Likewise.
106
107 * combine.c (simplify_logical): Remove dummy test,
108 (apply_distributive_law): Fix typo in comment.
109 GET_CODE (x) == AND so x is a commutative binary op.
110 * jump.c (delete_related_insns): simplify loop
111 condition, move testing of RTX codes inside the loop.
112 (rtx_renumbered_equal_p): do not use RTX_CODE.
113 * rtl.c (rtx_class): Declare as enum rtx_class.
114 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
115 Move to RTX_COMM_COMPARE class.
116 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
117 Move to RTX_CONST_OBJ class.
118 * rtl.h (enum rtx_class): New declaration,
119 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
120 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
121 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
122 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
123 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
124 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
125 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
126 OBJECT_P): New macros.
127 * config/sparc/sparc.c (noov_compare_op): Remove register
128 from parameter.
129
130 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
131
132 * target.h: Remove texi jargons in comments.
133
134 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
135
136 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
137 threshold to 0x4f.
138
139 Revert:
140 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
141 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
142 as well.
143 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
144 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
145
146 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
147
148 * doc/md.texi (cbranchmode4): New.
149
150 2004-03-02 Eric Christopher <echristo@redhat.com>
151
152 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
153 fix_trunc.
154 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
155 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
156 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
157 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
158
159 2004-03-02 Richard Henderson <rth@redhat.com>
160
161 PR middle-end/11767
162 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
163 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
164 before the compare, if flag_non_call_exceptions.
165
166 2004-03-02 Richard Henderson <rth@redhat.com>
167
168 PR middle-end/14327
169 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
170 emitting the label, not after.
171
172 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
173
174 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
175 (m68hc11_mov_addr_mode): Likewise.
176 (m68hc11_override_options): Initialize them based on target.
177 (register_indirect_p): Allow a MEM for indirect addressing modes and
178 use flags to control what is allowed.
179 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
180 supported addressing modes.
181 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
182 (go_if_legitimate_address_internal): Likewise.
183 (m68hc11_indirect_p): Likewise and check the mode.
184 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
185
186 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
187
188 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
189 (expand_builtin_setjmp_setup): Use
190 targetm.builtin_setjmp_frame_value instead of
191 BUILTIN_SETJMP_FRAME_VALUE.
192 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
193 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
194 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
195 * target.h (gcc_target): Add builtin_setjmp_frame_value.
196 * targhooks.c (default_builtin_setjmp_frame_value): New.
197 * targhooks.h: Add a prototype for
198 default_builtin_setjmp_frame_value.
199 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
200 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
201
202 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
203
204 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
205 sequences of moves.
206 (add peepholes): New peepholes to optimize sequences adding small
207 constants.
208 (bset peepholes): New peepholes to transform an OR in a bset form
209 (bclr peepholes): Likewise for bclr form.
210 (cmp peepholes): New peepholes to avoid register copies when comparing.
211
212 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
213
214 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
215 to separate push from moves.
216 ("*pushdf_internal"): Likewise.
217 ("*pushsf_internal"): Likewise.
218 ("*pushsi_internal"): Likewise.
219 ("movdi_internal"): Use define_insn_and_split; non push operand.
220 ("movdf_internal"): Likewise.
221 ("movsf_internal"): Likewise.
222 ("movsi_internal"): Likewise.
223 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
224 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
225 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
226
227 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
228
229 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
230 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
231 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
232 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
233 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
234 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
235 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
236 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
237 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
238 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
239 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
240
241 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
242
243 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
244 (SOFT_XY_REGNUM): Define.
245 (cmp split): Use the above instead of hard coded numbers.
246 (8-bit op split): No need to check the mode; allow Q_REG.
247 (ashift split): Adjust the first operand if it uses the SP and we
248 are pushing the shifted value.
249 (plus shift split): Fix when a source is in register D+X.
250 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
251
252 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
253
254 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
255 comparing with Z register.
256
257 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
258
259 * cfgloop.h (struct loop_desc): Removed.
260 (struct loop): Fields simple, desc and has_desc removed.
261 (simple_loop_p, count_loop_iterations): Declaration removed.
262 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
263 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
264 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
265 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
266 simple_loop_exit_p, variable_initial_value, variable_initial_values,
267 simple_condition_p, simple_increment, count_strange_loop_iterations,
268 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
269 Removed.
270 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
271
272 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
273
274 * genattrtab.c: Don't handle MATCH_INSN.
275 * genrecog.c: Likewise.
276 * gensupport.c: Likewise.
277 * rtl.def (match_insn): Remove.
278 * doc/md.texi (match_insn, match_insn2): Remove.
279
280 2004-03-02 Mark Mitchell <mark@codesourcery.com>
281
282 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
283 macro results in memory allocation.
284
285 2004-03-02 David O'Brien <obrien@FreeBSD.org>
286
287 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
288 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
289 %(fbsd_dynamic_linker),
290 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
291 config/i386/freebsd.h
292 * config/arm/freebsd.h: Ditto.
293 * config/i386/freebsd.h: Ditto.
294 * config/i386/freebsd64.h: Ditto.
295 * config/ia64/freebsd.h: Ditto.
296 * config/rs6000/sysv4.h: Ditto.
297 * config/sparc/freebsd.h: Ditto.
298
299 2004-03-02 Loren James Rittle <ljrittle@acm.org>
300
301 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
302
303 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
304
305 * rtl.def (define_combine): Remove.
306
307 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
308
309 * config/h8300/h8300.md: Tweak formatting.
310
311 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
312
313 * config/h8300/h8300.md (*cmphi_h8300): Rename to
314 *cmphi_h8300_znvc.
315 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
316
317 2004-03-01 Mark Mitchell <mark@codesourcery.com>
318
319 PR bootstrap/14356
320 * gcc.c (process_command): Remove const-qualification from argv.
321 (main): Likewise.
322
323 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
324
325 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
326 pushqi1_h8300hs_advanced. Adjust its caller.
327 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
328 Adjust its caller.
329
330 2004-03-02 Nicolas Roche <roche@act-europe.fr>
331
332 * Makefile.in (install-libgcc, install-multilib): Pass
333 mkinstalldirs var to libgcc.mk.
334
335 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
336
337 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
338 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
339
340 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
341
342 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
343 * config/h8300/h8300.md: Split several peephole2's, each into
344 two.
345
346 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
347
348 * dominance.c (recount_dominator): Handle postdominators.
349
350 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
351
352 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
353 (NUM_SYMBOL_TYPES): Likewise.
354 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
355 (mips_unspec_address): Declare.
356 (mips_gotoff_page, mips_gotoff_global): Delete.
357 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
358 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
359 (mips_symbolic_constant_p, mips_symbolic_address_p)
360 (mips_symbol_insns): Handle new symbol types.
361 (general_symbolic_operand): New predicate.
362 (mips_unspec_address): Make extern.
363 (mips_gotoff_page, mips_gotoff_global): Delete.
364 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
365 Handle new symbol types.
366 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
367 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
368 mips_unspec_address directly.
369 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
370 the documentation of -mexplicit-relocs.
371
372 2004-03-01 Jeff Law <law@redhat.com>
373
374 * fold-const.c (fold): An equality comparison of a non-weak object
375 against zero has a known result. Similarly an equality comparison
376 of the address of two non-weak, unaliased symbols has a known result.
377
378 * ggc-page.c (struct page_entry): New field PREV.
379 (ggc_alloc): Update PREV field appropriately.
380 (sweep_pages): Likewise.
381 (ggc_free): Likewise. Use PREV field rather than loop to
382 improve ggc_free performance.
383
384 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
385
386 * config/mips/mips.c (mips_output_division): Use the division
387 instruction to fill the delay slot of a zero check.
388 (mips_idiv_insns): Adjust accordingly.
389
390 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
391
392 * config.gcc: Create a default tmake_file for linux, and use
393 it in all but two linux clauses. Comment those two.
394
395 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
396
397 * combine.c (try_combine): Do not refer to is_replaced.
398 (gen_lowpart_for_combine): Perverse subregs now have a
399 more politically correct name.
400 * cse.c (cse_insn): Likewise.
401 * jump.c: Fix bogus reference to delete_insn.
402
403 2004-02-29 Mark Mitchell <mark@codesourcery.com>
404
405 PR debug/14328
406 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
407 constants as signed values.
408
409 PR middle-end/13448
410 * c-tree.h (readonly_warning): Rename to ...
411 (readonly_error): ... this.
412 * c-typeck.c (build_unary_op): Adjust accordingly.
413 (readonly_warning): Rename to ...
414 (readonly_error): ... this and issue errors, not warnings.
415 (build_modify_expr): Call readonly_error, not readonly_warning.
416 (c_expand_asm_operands): Likewise.
417 * tree-inline.c (optimize_inline_calls): Do not inline functions
418 after errors have occurred.
419
420 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
421
422 * configure.ac: Rearrange some threading code for clarity;
423 add section comment.
424 * configure: Regenerate.
425
426 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
427
428 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
429 typos.
430 * doc/cppopts.texi: Fix a typo.
431
432 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
433
434 * config/i386/i386.md: Fix formatting.
435
436 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
437
438 * configure.ac: Add some comments delineating sections of code.
439
440 * doc/install.texi: Note that libada uses autoconf 2.57 also.
441
442 * doc/install.texi: Fix idiot typo in previous commit.
443
444 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
445
446 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
447
448 * config/h8300/h8300.md: Add comments about peephole2's.
449
450 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
451
452 * config/h8300/h8300.md: Tweak operand numbers of some
453 peephole2's.
454
455 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
456
457 * config/h8300/h8300.md: Tweak comments about peephole2's.
458
459 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
460
461 PR middle-end/14203
462 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
463 instead of testing whether DECL_RTL is not NULL.
464
465 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
466
467 * config/sh/sh.c: Fix formatting.
468
469 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
470
471 * config/sh/sh.c: Convert to ISO-C.
472
473 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
474
475 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
476 my previous patch.
477
478 * config/darwin.h (machopic_finish): Output stub even if the
479 symbol is already defined.
480
481 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
482
483 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
484
485 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
486
487 * genattr.c (main): Don't define
488 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
489 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
490 (DFA_PIPELINE_INTERFACE): Likewise.
491 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
492 (DFA_PIPELINE_INTERFACE): Likewise.
493
494 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
495
496 * config/mips/mips.md (tstsi, tstdi): Delete.
497
498 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
499
500 * config/mips/mips.c (override_options): Remove an obsolete
501 duplicate definition of the "e" constraint.
502 * config/mips/mips.h: Update a comment accordingly.
503
504 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
505
506 * config/mips/mips.md: Complete the unfinished R4000
507 multiply/shift errata workaround. Improve documentation.
508 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
509 has a hilo hazard.
510 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
511 (muldi3, muldi3_internal): Likewise.
512 (muldi3_internal2): Remove, replacing with...
513 (muldi3_mult3, muldi3_r4000): ...these new patterns.
514 (mulsidi3): Take the errata into account.
515 (mulsidi3_32bit): Remove, replacing with...
516 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
517 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
518 (umulsidi3): Take the errata into account.
519 (umulsidi3_32bit): Remove, replacing with..
520 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
521 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
522 TARGET_FIX_R4000.
523 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
524 (smuldi3_highpart, umuldi3_highpart): Likewise.
525 * doc/invoke.texi: Document the errata workaround.
526
527 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
528
529 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
530 * config/mips/mips.h (MASK_FIX_SB1): Bump.
531 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
532 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
533 * config/mips/mips.c (mips_idiv_insns): New function.
534 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
535 (mips_output_division): Add a workaround for the R4000 divide/shift
536 errata.
537 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
538 the length of an "idiv" instruction.
539 * doc/invoke.texi: Document the new switches.
540
541 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
542
543 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
544 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
545
546 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
547
548 PR optimization/14229
549 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
550
551 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
552
553 * fold-const.c (fold): Strip NOPs that change the signedness
554 for RSHIFT too. Expand comment.
555
556 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
557
558 PR optimization/7871
559 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
560 from or to call insns.
561
562 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
563
564 PR optimization/7871
565 * flow.c (propagate_one_insn): Interpret calls as setting global
566 registers, not merely clobbering them.
567
568 2004-02-27 Dale Johannesen <dalej@apple.com>
569
570 * config/darwin.c (machopic_output_possible_stub_label): Remove.
571 config/darwin-protos.h: Ditto.
572 config/darwin.h: Remove call to it.
573 * combine.c (distribute_notes): Do not place a REG_DEAD note
574 when value is both set and used.
575
576 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
577
578 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
579 as well.
580 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
581 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
582
583 2004-02-27 Andrew Pinski <apinski@apple.com>
584
585 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
586 Speedup common case of the type values being in the same order.
587
588 2004-02-27 Steve Ellcey <sje@cup.hp.com>
589
590 * config/ia64/ia64.h (no-inline-float-divide): New option.
591 * config/ia64/ia64.h (no-inline-int-divide): New option.
592 * config/ia64/ia64.h (no-inline-sqrt): New option.
593 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
594 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
595 * config/ia64/ia64.c (ia64_override_options): Modify error
596 checking for inlined division/sqrt.
597
598 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
599
600 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
601 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
602 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
603 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
604 copyright.
605
606 2004-02-27 Paul Brook <paul@codesourcery.com>
607
608 * function.c (assign_parms): Don't count pretend args for alignment.
609
610 2004-02-27 Richard Henderson <rth@redhat.com>
611
612 * passes.c: New file.
613 * Makefile.in (OBJS-common): Add it.
614 * diagnostic.c (rtl_dump_and_exit): Move decl ...
615 * flags.h (rtl_dump_and_exit): ... here.
616 * output.h (size_directive_output, last_assemble_variable_decl):
617 Move from toplev.c.
618 * rtl.h (reg_alloc): Move from toplev.c.
619 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
620 struct dump_file_info, enum dump_file_index, dump_file_tbl,
621 open_dump_file, close_dump_file, rest_of_decl_compilation,
622 rest_of_type_compilation, rest_of_handle_final,
623 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
624 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
625 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
626 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
627 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
628 rest_of_handle_tracer, rest_of_handle_if_conversion,
629 rest_of_handle_if_after_combine, rest_of_handle_web,
630 rest_of_handle_branch_prob,
631 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
632 rest_of_handle_addressof, rest_of_handle_sibling_calls,
633 rest_of_handle_jump_bypass, rest_of_handle_inlining,
634 rest_of_handle_null_pointer, rest_of_handle_combine,
635 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
636 rest_of_handle_gcse, rest_of_handle_loop_optimize,
637 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
638 (decode_d_option): Use enable_rtl_dump_file.
639 (compile_file, finalize, do_compile): Move profile+combine+graph
640 cleanup to finish_optimization_passes.
641 * toplev.h (init_optimization_passes, finish_optimization_passes,
642 enable_rtl_dump_file): Declare.
643
644 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
645 Roger Sayle <roger@eyesopen.com>
646
647 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
648 operands to build a tree with swapped operands.
649 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
650 'unsignedp' predicate to specify the signedness.
651
652 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
653
654 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
655 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
656 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
657 comment typos and formatting. Follow spelling conventions.
658
659 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
660
661 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
662 fix_truncsfsi2.
663
664 * config/rs6000/spe.md: Delete spe_efsctuiz.
665 Add spe_fixuns_truncsfsi2.
666 Add spe_fix_truncsfsi2.
667
668 2004-02-26 Eric Christopher <echristo@redhat.com>
669
670 * c-lex.c (c_lex_string_translate): New variable.
671 (lex_string): Use to determine string translation.
672 * c-pragma.h: Prototype.
673 * c-parse.in (start_string_translation): New. Set above.
674 (stop_string_translation): Ditto.
675 (attribute, attribute_list, asm_def, asm_stmt,
676 asm_operand): Use above functions.
677 * cp/parser.c (cp_parser_declaration): Translate strings
678 unless token is RID_EXTERN. Set c_lex_string_translate
679 for recursive use.
680 (cp_parser_asm_definition): Only translate argument strings
681 to asms.
682 (cp_parser_asm_operand_list): Ditto.
683 (cp_parser_attribute_list): Do not translate attribute strings.
684
685 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
686
687 * stmt.c (expand_start_case_dummy): Remove.
688 * tree.h: Remove the corresponding prototype.
689
690 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
691
692 * builtins.c (apply_args_register_offset): Remove.
693 * tree.h: Remove the corresponding prototype.
694
695 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
696
697 * stor-layout.c (is_pending_size): Remove.
698 * tree.h: Remove the corresponding prototype.
699
700 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
701
702 * recog.c (validate_replace_src): Remove.
703 * recog.h: Remove the corresponding prototype.
704
705 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
706
707 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
708 MAYBE_REG_PARM_STACK_SPACE.
709 * function.c: Likewise.
710 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
711 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
712 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
713 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
714
715 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
716
717 * c-decl.c (c_expand_deferred_function): Remove.
718 * c-tree.h: Remove the corresponding prototype.
719
720 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
721
722 * postreload.c (reload_cse_move2add): Generate just a PLUS
723 instead of an entire SET.
724
725 2004-02-26 Jan Hubicka <jh@suse.cz>
726
727 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
728 /pentium4m.
729 * i386.c (override_options): Add support for new CPUs.
730 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
731 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
732 constants.
733 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
734
735 2004-02-26 Bob Wilson <bob.wilson@acm.org>
736
737 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
738
739 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
740
741 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
742 (sparc_emit_fixunsdi): New prototype.
743 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
744 (sparc_emit_fixunsdi): New function.
745 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
746 operand 1. Pass SFmode to sparc_emit_floatunsdi.
747 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
748 to sparc_emit_floatunsdi.
749 (fixuns_truncsfdi2): New expander.
750 (fixuns_truncdfdi2): Likewise.
751
752 2004-02-26 Alan Modra <amodra@bigpond.net.au>
753
754 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
755 unless HAVE_cc0.
756
757 2004-02-25 Richard Henderson <rth@redhat.com>
758
759 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
760 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
761 use (op0-op1) == 0 if op0 is a pointer.
762 * config/alpha/alpha.md (cmpdi): Use some_operand.
763 (three comparison combine splits): Remove.
764
765 2004-02-25 Richard Henderson <rth@redhat.com>
766
767 PR c/12794
768 * c-common.c (handle_alias_attribute): Reject the attribute if
769 current_function_decl is set.
770
771 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
772
773 * config.gcc: Add comment describing extra_gcc_objs.
774 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
775 * configure.ac (extra_gcc_objs): New substitution variable.
776 (host_extra_gcc_objs): Don't substitute.
777 * configure: Regenerate.
778 * Makefile.in: Use extra_gcc_objs.
779
780 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
781
782 * doc/contrib.texi: Add an entry for myself.
783
784 2004-02-25 Jan Hubicka <jh@suse.cz>
785
786 * basic-block.h (make_eh_edge, break_superblocks): Declare.
787 * cfgbuild.c (make_eh_edge): Make global.
788 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
789 * except.c (build_post_landing_pads, connect_post_landing_pads,
790 dw2_build_landing_pads, sjlj_emit_function_enter,
791 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
792 sjlj_build_landing_pads): Update CFG.
793 (emit_to_new_bb_before): New function.
794 (finish_eh_generation): Do not rebuild the CFG.
795
796 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
797
798 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
799 target_cpu_default defines.
800 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
801 * pa.h (TARGET_DEFAULT): Likewise.
802
803 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
804
805 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
806 comparisons with regard to signedness.
807
808 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
809
810 * arm.c (thumb_legitimize_address): New function.
811 * arm-protos.h: Prototype it.
812 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
813 (LEGITIMIZE_ADDRESS): Use it.
814
815 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
816
817 * reload1.c (reload): Only spill eliminable register with multiple
818 adjacent elimination alternatives if all alternatives fail.
819
820 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
821
822 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
823 is -4095...+4095 inclusive.
824
825 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
826
827 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
828 the bootstrap failure with Sun CC 5.4 and 5.5.
829
830 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
831
832 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
833 which modifies NEWREG.
834 (cse_condition_code_reg): Update the mode of CC_REG in
835 CC_SRC_INSN on our own.
836
837 2004-02-24 Michael Matz <matz@suse.de>
838
839 * config/i386/i386.c (ix86_comp_type_attributes): Check for
840 regparm attributes.
841
842 2004-02-24 Richard Henderson <rth@redhat.com>
843
844 * toplev.c (dump_file_tbl): Rename from dump_file.
845 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
846 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
847 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
848 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
849 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
850 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
851 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
852 s/rtl_dump_file/dump_file/g.
853
854 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
855
856 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
857 (spe_fixuns_truncsfsi2): Delete.
858
859 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
860 (fixuns_truncsfsi2): Delete.
861
862 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
863
864 PR/14240
865 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
866
867 2004-02-24 Geoffrey Keating <geoffk@apple.com>
868
869 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
870
871 2004-02-24 Jason Merrill <jason@redhat.com>
872
873 * tree.c (check_qualified_type): New fn.
874 (get_qualified_type): Use it. If type already has the desired
875 quals, just return it.
876 * tree.h: Declare it.
877
878 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
879
880 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
881 TARGET_SCHED_FINISH_GLOBAL): New macros.
882
883 * target.h (md_init_global, md_finish_global): Function
884 declarations corresponding to new target macros.
885
886 * haifa-sched.c (sched_init, sched_finish): Allow target to
887 call the new schedular hooks.
888
889 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
890 call to update_life_info.
891
892 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
893 flag_schedule_insns for SH4.
894
895 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
896 find_set_regmode_weight, find_insn_regmode_weight,
897 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
898 sh_variable_issue, high_pressure, ready_reorder,
899 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
900 functions used to throttle the insn movement in first
901 scheduling pass for SH.
902
903 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
904 TARGET_SCHED_FINISH_GLOBAL.
905
906 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
907
908 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
909 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
910 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
911 symbols in sections named by the user.
912 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
913 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
914 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
915 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
916 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
917 the above.
918 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
919 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
920 one more pseudo to further improve code generation.
921 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
922 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
923 inside UNSPEC.
924 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
925 * config/frv/frv.c (frv_legitimate_address_p): Added
926 allow_double_reg_p argument. Adjust all callers. Use it to
927 decide whether to enable double-register indirect addressing.
928 (frv_funcdesc_alias_set): Remove.
929 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
930 register. Emit movdi_ldd.
931 (ldd_address_operand): New.
932 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
933 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
934 (PREDICATE_CODES): Add ldd_address_operand.
935 * config/frv/frv.md (movdi_ldd): New.
936 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
937 intermediate computations if possible.
938 (symGOTOFF2reg_i): Fix harmless typo.
939 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
940 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
941 relocated p_vaddr to vaddr type.
942 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
943 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
944 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
945 MEM, or use a funcdesc alias set. Use regular move instead of
946 ldd.
947 (dbl_memory_one_insn_operand): Recognize function descriptors by
948 type or by alias set, and don't split them.
949 * config/frv/frv.md (call, call_value): Never use call_internal
950 for fdpic.
951 (call_internal, call_value_internal): Never match for FDPIC.
952 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
953 call_value_fdpicsi): Require FDPIC.
954 (ldd): Removed.
955 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
956 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
957 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
958 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
959 FDPIC. Compute data base address.
960 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
961 before the other self-specs are processed.
962 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
963 Build with -fPIC.
964 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
965 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
966 inhibit_libc is defined.
967 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
968 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
969 __FRV_FDPIC__.
970 (__RELOC_POINTER): Define.
971 (_Unwind_IteratePhdrCallback): Use it.
972 * config/frv/frv.h (Twrite): Define.
973 (TRANSFER_FROM_TRAMPOLINE): Use it.
974 * config/frv/linux.h (INVOKE__main): Undefine.
975 (Twrite): Override.
976 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
977 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
978 (-mlibrary-pic): Emphasize that this option generates EABI code.
979 (-mcpu): Add fr550.
980 (-mpack): Remove.
981 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
982 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
983 and CONSTs in FDPIC mode.
984 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
985 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
986 * config/frv/frv.c (move_source_operand): Don't accept symbolic
987 constants.
988 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
989 rather than 'i' constraint for the 2-instruction alternative.
990 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
991 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
992 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
993 EXTRA_CONSTRAINT_FOR_Y.
994 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
995 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
996 (addsi3): Change 'Y' constraint to 'Q'.
997 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
998 * reload.c (CONST_POOL_OK_P): New macro.
999 (find_reloads): Use it to decide whether a constant can be forced
1000 into memory.
1001 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
1002 constant satisfies got12_operand.
1003 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
1004 (frv_legitimate_address_p): Check for valid unspec offsets using
1005 got12_operand rather than frv_legitimate_fdpic_operand_p.
1006 (frv_legitimate_fdpic_operand_p): Delete.
1007 (frv_emit_movsi): Abort if we try to use the FDPIC register during
1008 or after reload.
1009 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
1010 TARGET_FDPIC.
1011 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
1012 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
1013 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
1014 (frv_fdpic_fptr_operand): Don't declare here.
1015 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
1016 rather than fdpic_got12_operand.
1017 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
1018 got12_operand and const_unspec_operand.
1019 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
1020 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
1021 (symbolic_operand): Remove.
1022 (const_unspec_operand): New predicate.
1023 * config/frv/frv.md (*movsi_got): Use got12_operand.
1024 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
1025 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
1026 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
1027 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
1028 * config/frv/frv.c (frv_unspec): New structure.
1029 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
1030 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
1031 validate CONST indices. Use frv_output_const_unspec to print them.
1032 (frv_print_operand): Update call to unspec_got_name. Use
1033 frv_output_const_unspec to print constant unspecs.
1034 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
1035 Reject UNSPECs otherwise.
1036 (unspec_got_name): Take the relocation number as argument, not an
1037 rtx containing it.
1038 (frv_output_addr_const_extra): Remove, replacing with...
1039 (frv_output_const_unspec): ...this new function.
1040 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
1041 (gpr_or_int12_operand): Use fdpic_got12_operand.
1042 (dbl_memory_one_insn_operand): Likewise.
1043 (fdpic_got12_operand): Use frv_const_unspec_p.
1044 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
1045 are already legitimate. Use frv_small_data_reloc_p when deciding
1046 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
1047 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
1048 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
1049 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
1050 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1051 label, for real this time.
1052 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
1053 representation of visibility.
1054 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
1055 such.
1056 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
1057 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
1058 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
1059 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
1060 it was explicitly disabled.
1061 (frv_stack_info): There is no need to save the link register in every
1062 frame unless TARGET_LINKED_FP is true.
1063 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
1064 frame pointer if the stack pointer might change value.
1065 (frv_return_addr_rtx): Check and process "count" argument.
1066 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
1067 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
1068 (frv_find_base_term): Declare.
1069 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
1070 (FIND_BASE_TERM): Define.
1071 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
1072 small_data_register_operand, small_data_symbolic_operand. Add
1073 symbolic_operand.
1074 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
1075 (frv_print_operand_memory_reference, output_move_single): Remove
1076 special handling for unlegitimized sdata addresses.
1077 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
1078 and symbolic addresses.
1079 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
1080 (frv_find_base_term): New function.
1081 (int_2word_operand): Check specifically for symbolic address constants.
1082 (pic_register_operand, pic_symbolic_operand): Delete.
1083 (small_data_register_operand, small_data_symbolic_operand): Delete.
1084 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
1085 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
1086 (move_source_operand): Only accept CONSTs if they're a two-insn
1087 symbolic constant.
1088 (fdpic_got12_operand): Don't require TARGET_FDPIC.
1089 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
1090 using gen_symGOTOFF2reg*.
1091 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
1092 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
1093 themselves a cost of 3 insns.
1094 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
1095 Change predicate to symbolic_operand.
1096 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
1097 (*movsi_lda_sdata): Delete.
1098 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
1099 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1100 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
1101 frv-*-*linux*.
1102 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1103 label.
1104 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
1105 -multilib-library-pic.
1106 (LINK_SPEC): Add -z text for -mfdpic.
1107 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
1108 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
1109 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
1110 Override.
1111 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
1112 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
1113 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
1114 crtstuff-generated files.
1115 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1116 * config.gcc: Add frv-*-*linux*.
1117 * config/frv/linux.h, config/frv/t-linux: New.
1118 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
1119 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
1120 when -mfdpic even if a linker script is explicitly listed.
1121 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
1122 * config/frv/frv.c (frv_override_options): Clear asm_out
1123 unaligned_op for SImode on FDPIC.
1124 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
1125 argument passed to decl_readonly_section.
1126 (frv_assemble_integer): Revert 2003-09-30's change, but make the
1127 whole block run with FDPIC even with -fno-PIC.
1128 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
1129 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
1130 symbol or label plus offset to memory.
1131 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
1132 GOTOFF and GPREL for LABEL_REF.
1133 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
1134 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
1135 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
1136 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
1137 * doc/invoke.texi: Document them.
1138 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1139 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
1140 (frv_splittable_got_operand): Removed.
1141 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
1142 LO_SUM. Add comments.
1143 (frv_override_options): Moved enabling of FDPIC to
1144 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
1145 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
1146 (frv_legitimize_fdpic_address): Don't duplicate logic in
1147 frv_emit_movsi.
1148 (frv_gen_GPsym2reg): New.
1149 (unspec_got_name): Added gprel.
1150 (frv_expand_fdpic_call): Add support for inlining PLTs.
1151 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
1152 (gpr_or_int12_operand): Added GPREL12.
1153 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
1154 (small_data_symbolic_operand): Fail if FDPIC.
1155 (fdpic_splittable_got_operand): Removed.
1156 (fdpic_got12_operand): Added GPREL12.
1157 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
1158 when appropriate. Fix sdata GOTOFF.
1159 (frv_legitimate_constant_p): Require legitimate PIC operand for
1160 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
1161 (frv_assemble_integer): Move FDPIC funcdesc handling out of
1162 flag_pic case.
1163 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
1164 frv_assemble_integer fails.
1165 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
1166 (SUBTARGET_DRIVER_SELF_SPECS): New.
1167 (ASM_SPEC): Don't pass -mno-fdpic.
1168 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
1169 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
1170 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
1171 -multilib-library-pic.
1172 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
1173 condexec_si_media_operator, condexec_sf_add_operator and
1174 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
1175 and condexec_sf_unary_operator.
1176 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
1177 New.
1178 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
1179 movsi_internal. Give them internal names. movsi_got has type
1180 int.
1181 (fdpic got splitters): Remove.
1182 (symGPREL2reg, symGPREL2reg_hilo): New.
1183 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
1184 to -mlibrary-pic. Map -multilib-library-pic to it.
1185 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
1186 Document.
1187 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
1188 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
1189 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
1190 (frv_cannot_force_const_mem): New function.
1191 (const_small_data_p, plus_small_data_p): Update comments on sdata
1192 on FDPIC.
1193 (frv_override_options): Set flag_pie for FDPIC too.
1194 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
1195 call-saved registers on FDPIC.
1196 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
1197 don't force LR to be preserved.
1198 (frv_expand_prologue): Likewise.
1199 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
1200 (frv_frame_pointer_required): Don't force it just because the
1201 FDPIC register is used.
1202 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
1203 operand only if !condexec_p.
1204 (frv_legitimize_address): Return the FDPIC-legitimized address.
1205 Don't match small data here on FDPIC.
1206 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
1207 symbols. Use TRUE/FALSE instead of 1/0.
1208 (frv_local_funcdesc_p): New.
1209 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
1210 immediates when possible.
1211 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
1212 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
1213 an UNSPEC_GOT.
1214 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
1215 12-bit immediates when possible.
1216 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
1217 are not legitimate pic operands.
1218 (frv_in_small_data_p): Re-enable for FDPIC.
1219 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
1220 (FRV_GLOBAL_P): Removed.
1221 * config/frv/frv.md: Add modes to CONSTs.
1222 (movsi_got): New.
1223 (movsi_lo_sum_got): Use separate matches instead of match_dup.
1224 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
1225 (fdpic splittable operations): Match on flag_pic != 1.
1226 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
1227 * config/frv/frv.c (frv_asm_out_constructor,
1228 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
1229 bytes, not bits.
1230 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
1231 * config/frv/frv.c (frv_assemble_integer): Reject complex
1232 expressions referencing function SYMBOL_REFs.
1233 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
1234 (move_source_operand): Reject CONSTs that reference function
1235 SYMBOL_REFs on FDPIC.
1236 (frv_emit_movsi): If we get such a CONST, break it up.
1237 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
1238 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
1239 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
1240 MEM.
1241 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
1242 (frv_trampoline_size): Increase for FDPIC.
1243 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
1244 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
1245 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
1246 Disable use of GOTOFF for now.
1247 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
1248 Disable use of small data in FDPIC for now.
1249 (frv_asm_output_mi_thunk): Implement for FDPIC.
1250 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
1251 * config/frv/frv.c (frv_asm_out_constructor): Use
1252 frv_assemble_integer for FDPIC pointers.
1253 (frv_asm_out_destructor): Likewise.
1254 * config/frv/frv.md (ldd): Fix order of operands. Use
1255 address_operand for input.
1256 2003-09-18 DJ Delorie <dj@redhat.com>
1257 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
1258 (unspec_got_name): Correct typo.
1259 (frv_emit_movsi): Pre-expand splittable GOTs.
1260 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
1261 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
1262 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
1263 * config/frv/t-frv: Add -mfdpic multilibs.
1264 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
1265 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
1266 * config/frv/frv.c (frv_override_options): -mfdpic assumes
1267 flag_pic, default to 32-bit pics, require DWORD ops.
1268 (frv_override_options): Add W and Z constraints.
1269 (frv_expand_prologue): No pic prologue for -mfdpic.
1270 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
1271 (frv_print_operand_memory_reference): Handle GOT constants.
1272 (frv_legitimate_address_p): Allow GOT constants.
1273 (frv_legitimize_address): Handle GOT addresses too.
1274 (frv_legitimate_fdpic_operand_p): New.
1275 (frv_legitimize_fdpic_address): New.
1276 (unspec_got_name): New.
1277 (frv_output_addr_const_extra): New.
1278 (frv_expand_fdpic_call): New.
1279 (frv_fdpic_fptr_operand): New.
1280 (gpr_or_int12_operand): Handle GOT operands.
1281 (int_2word_operand): Handle GOT operands.
1282 (fdpic_operand): New.
1283 (fdpic_splittable_got_operand): New.
1284 (fdpic_got12_operand): New.
1285 (frv_emit_movsi): Handle GOT operands.
1286 (frv_assemble_integer): -mfdpic doesn't use rofixups.
1287 (frv_print_operand): Support 'g' code for GOT operands.
1288 * config/frv/frv-protos.h: Add prototypes as needed.
1289 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
1290 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
1291 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
1292 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
1293 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
1294 R_FRV_GOTOFFLO): New.
1295 (movsi_high_got, movsi_lo_sum_got): New.
1296 (*movsi_pic): Don't use this splitter for -mfdpic.
1297 (addsi3): Allow GOT references also.
1298 (call, call_value): Handle -mfdpic separately.
1299 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
1300 call_value_fdpicsi): New.
1301 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
1302 symGOTOFF2reg_i): New.
1303 * config/frv/frv.h (MASK_FDPIC): New.
1304 (TARGET_FDPIC): New.
1305 (TARGET_SWITCHES): Add -mfdpic.
1306 (FDPIC_FPTR_REGNO): New.
1307 (FDPIC_REGNO): New.
1308 (OUR_FDPIC_REG): New.
1309 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
1310 FDPIC_CALL_REGS.
1311 (REG_CLASS_NAMES): Likewise.
1312 (REG_CLASS_CONTENTS): Likewise.
1313 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
1314 (EXTRA_CONSTRAINT): Add it here.
1315 (FRV_GLOBAL_P): New.
1316 (OUTPUT_ADDR_CONST_EXTRA): New.
1317
1318 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
1319
1320 * config/sparc/sparc.h: Remove commented-out definitions of
1321 TARGET_EDOM and GEN_ERRNO_RTX.
1322
1323 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
1324
1325 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
1326 df_analyse with df_analyze.
1327
1328 2004-02-24 Alan Modra <amodra@bigpond.net.au>
1329
1330 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
1331 beginning of block.
1332
1333 2004-02-23 James E Wilson <wilson@specifixinc.com>
1334
1335 * calls.c (precompute_arguments): Update comment.
1336
1337 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1338
1339 * et-forest.c: Replace et_occurences with et_occurrences.
1340
1341 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1342
1343 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
1344 with iv_analyze.
1345
1346 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
1347
1348 * config/i386/i386.c: Rename pni to sse3.
1349 * config/i386/i386.h: Likewise.
1350 * config/i386/i386.md: Likewise.
1351 * config/i386/pmmintrin.h: Likewise.
1352 * doc/extend.texi: Likewise.
1353 * doc/invoke.texi: Likewise.
1354
1355 2004-02-23 Zack Weinberg <zack@codesourcery.com>
1356 Kazu Hirata <kazu@cs.umass.edu>
1357
1358 Remove -fwritable-strings.
1359 * c-common.c (fix_string_type): Don't check
1360 flag_writable_strings.
1361 (fix_string_type): Likewise.
1362 * c-opts.c (set_std_c89): Don't initialize
1363 flag_writable_strings.
1364 (set_std_c99): Likewise.
1365 * common.opt (fwritable-strings): Remove.
1366 * flags.h: Remove the external declaration of
1367 flag_writable_strings.
1368 * opts.c (common_handle_option) <OPT_fwritable_strings>:
1369 Remove.
1370 * toplev.c (flag_writable_strings): Remove.
1371 (f_options): Remove an entry for writable-strings.
1372 * varasm.c (const_hash_1) <STRING_CST>: Don't check
1373 flag_writable_strings.
1374 (compare_constant) <STRING_CST>: Likewise.
1375 (build_constant_desc): Likewise.
1376 * config/darwin.c (machopic_select_section): Likewise.
1377 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
1378 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
1379 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
1380 * config/mips/mips.c (mips_select_section): Likewise.
1381 (mips_encode_section_info): Likewise.
1382 * config/pa/pa.c (pa_select_section): Likewise.
1383 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
1384 * config/v850/v850.c (v850_select_section): Likewise.
1385 * doc/invoke.texi (-fwritable-strings): Remove.
1386 (-fno-const-strings): Don't mention -fwritable-strings.
1387 * doc/trouble.texi: Don't mention -fwritable-strings.
1388
1389 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
1390
1391 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
1392
1393 2004-02-23 Dale Johannesen <dalej@apple.com>
1394
1395 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
1396 (movdf_hardfloat64): Ditto.
1397 (movdf_softfloat64): Ditto.
1398
1399 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
1400 * config/rs6000/rs6000.c (function_arg): call to
1401 rs6000_mixed_function_arg for DFmode moved to allow
1402 normal DFmode incoming register assignment.
1403
1404 2004-02-23 Dale Johannesen <dalej@apple.com>
1405
1406 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
1407 (movdf_hardfloat64): Ditto.
1408
1409 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1410
1411 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
1412 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
1413 copyright.
1414
1415 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
1416
1417 PR c/14156
1418 * c-typeck.c (c_expand_return): Change check for VAR_DECL
1419 to use DECL_P instead.
1420
1421 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
1422 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
1423
1424 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1425
1426 * Makefile.in (opts.o): Depend on target.h.
1427 * opts.c (decode_options): Use targetm.default_short_enums
1428 instead of DEFAULT_SHORT_ENUMS.
1429 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1430 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
1431 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
1432 * target.h (gcc_target): Add default_short_enums.
1433 * config/cris/cris.h: Remove a comment about
1434 DEFAULT_SHORT_ENUMS.
1435 * config/ip2k/ip2k.h: Likewise.
1436 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
1437 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
1438
1439 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1440 Falk Hueffner <falk@debian.org>
1441
1442 PR c/14188
1443 * builtins.c (expand_builtin_va_arg): Emit an informative message
1444 if a trap is generated.
1445 * c-typeck.c (build_function_call): Likewise.
1446
1447 2004-02-22 Jakub Jelinek <jakub@redhat.com>
1448
1449 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
1450 fopen.
1451 * libgcov.c: Include sys/stat.h.
1452 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
1453 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
1454 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
1455 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
1456
1457 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
1458
1459 * reorg.c: Remove comments about dead ports.
1460
1461 2004-02-22 Christopher Faylor <cgf@redhat.com>
1462
1463 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
1464 extra host object file when targetting cygwin rather than generic
1465 object files.
1466
1467 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
1468
1469 Merge from tree-ssa:
1470 2003-11-20 Richard Henderson <rth@redhat.com>
1471
1472 * tree-inline.c (insert_decl_map): New.
1473 (remap_decl, remap_type, remap_block, copy_body_r,
1474 initialize_inlined_parameters, declare_return_variable,
1475 remap_save_expr): Use it.
1476
1477 * function.c (copy_body_r): Add mapping from id->ret_label to
1478 id->ret_label. Revert test for ret_label.
1479
1480 2004-02-22 Jakub Jelinek <jakub@redhat.com>
1481
1482 * genoutput.c (process_template): Strip trailing whitespace in @
1483 templates and issue a warning if there was any.
1484
1485 2004-02-21 Christopher Faylor <cgf@redhat.com>
1486
1487 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
1488 object file when targetting cygwin.
1489 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
1490 overridden by top-level Makefile.
1491
1492 2004-02-21 Roger Sayle <roger@eyesopen.com>
1493
1494 * config/i386/i386.c (standard_80387_constant_p): Also prefer
1495 the x87's load constant instructions when optimizing for size.
1496
1497 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
1498
1499 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
1500 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
1501 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
1502 * fold-const.c: Likewise.
1503 * simplify-rtx.c: Likewise.
1504
1505 2004-02-21 Alan Modra <amodra@bigpond.net.au>
1506
1507 * combine.c (can_combine_p): Don't ignore SETs marked with
1508 REG_EH_REGION notes.
1509 (try_combine): When attemting to fix unrecognized insns, don't
1510 split a PARALLEL that contains the original i2.
1511
1512 2004-02-21 Ziemowit Laski <zlaski@apple.com>
1513
1514 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
1515 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
1516 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
1517 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
1518 (vector, pixel, bool): #define to __vector, __pixel and __bool.
1519 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
1520 portion of header.
1521 (__altivec_link_error_invalid_argument): Remove prototype; will use
1522 __builtin_altivec_compiletime_error("vec_*") instead.
1523 (vec_*): Fix/complete set of available operation overloads given the
1524 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
1525 cv-correctness of pointer arguments; in C, always check for correct
1526 argument types before macro expansion.
1527 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
1528 defining Darwin/PowerPC-specific '-f[no-]altivec' and
1529 '-W[no-]altivec-long-deprecated' switches.
1530 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
1531 '__vector', '__pixel' and '__bool' macros using
1532 '__attribute__((altivec(...)))' types.
1533 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
1534 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
1535 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
1536 New type nodes.
1537 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
1538 handling '-W[no-]altivec-long-deprecated'.
1539 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
1540 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
1541 altivec_expand_dst_builtin): Remove casts from integer literals.
1542 (altivec_expand_builtin): Likewise; handle expansion of new
1543 '__builtin_altivec_compiletime_error' function.
1544 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
1545 types, and make them distinct from other vector types; register
1546 '__builtin_altivec_compiletime_error' function.
1547 (print_operand): For 'P', print a full target register name instead of
1548 merely its number.
1549 (rs6000_attribute_table): Add "altivec" attribute.
1550 (rs6000_handle_altivec_attribute): New function.
1551 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
1552 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
1553 maps to).
1554 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
1555 declare.
1556 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
1557
1558 2004-02-20 James E Wilson <wilson@specifixinc.com>
1559
1560 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
1561 check.
1562 (shift_mix4left+2): Delete redundant pattern.
1563
1564 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1565
1566 * alias.c (OUTGOING_REGNO): Don't define the default.
1567 * builtins.c (OUTGOING_REGNO): Likewise.
1568 (INCOMING_REGNO): Likewise.
1569 (apply_args_register_offset): Always use OUTGOING_REGNO.
1570 * combine.c (OUTGOING_REGNO): Likewise.
1571 * sibcall.c (OUTGOING_REGNO): Likewise.
1572 * defaults.h (INCOMING_REGNO): Provide the default.
1573 (OUTGOING_REGNO): Likewise.
1574
1575 2004-02-21 Jan Hubicka <jh@suse.cz>
1576
1577 * params.def (max-peeled-insns, max-completely-peeled-insns,
1578 max-once-peeled-insns): Set to 400.
1579
1580 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1581
1582 PR c++/12007
1583 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
1584 are set for parameters before outputing debugging information.
1585
1586 2004-02-20 Falk Hueffner <falk@debian.org>
1587
1588 PR target/14201
1589 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
1590 numbers.
1591
1592 2004-02-20 Per Bothner <per@bothner.com>
1593
1594 * input.h: Don't #include line-map.h. It may cause link problems
1595 with undefined linemap_line_start when line-map.h is included but
1596 line-map.o is not linked, as currently happens with gengtype on
1597 compilers that don't support inline.
1598 * toplev.c: So we do have to explicitly #include line-map.h here.
1599
1600 2004-02-20 Richard Henderson <rth@redhat.com>
1601
1602 * doc/invoke.texi: Add -Wvariadic-macros.
1603
1604 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1605
1606 * haifa-sched.c (sched_emit_insn): Remove.
1607 * sched-int.h: Remove the corresponding prototype.
1608
1609 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1610
1611 Revert:
1612 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1613 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1614 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1615 * config/cris/cris.h: Remove a comment about
1616 DEFAULT_SHORT_ENUMS.
1617 * config/ip2k/ip2k.h: Likewise.
1618 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1619
1620 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
1621 Tom Tromey <tromey@redhat.com>
1622
1623 * doc/install.texi: Moved --disable-libgcj and
1624 --with-system-zlib documentation to new section for
1625 Java-specific options.
1626 Added explicit Cross-Compiler-Specific Options subheading.
1627 Added section for Java-specific options.
1628
1629 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
1630
1631 * doc/install.texi (Building the Ada compiler): Remove
1632 example.
1633
1634 2004-02-20 James E Wilson <wilson@specifixinc.com>
1635
1636 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
1637
1638 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1639
1640 * gcc.c (process_command): Allow translation of the copyright
1641 symbol but not the rest of the copyright message.
1642 * gcov.c (print_version): Likewise. Allow translation of the
1643 message about warranty.
1644
1645 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
1646
1647 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
1648 predicate.
1649 ("*andsi_clear"): Tweak constraints to not match postincrement.
1650 Adjust the predicate to exclude a volatile memory reference.
1651 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
1652 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
1653
1654 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
1655
1656 * move-if-change: Remove.
1657 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
1658 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
1659 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
1660 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
1661 (s-gtyp-gen, s-iov): Use the top level move-if-change.
1662 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
1663
1664 2004-02-19 James E Wilson <wilson@specifixinc.com>
1665
1666 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
1667 for operand2. Add condition that requires register_operand operand2
1668 before reload.
1669
1670 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
1671 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1672
1673 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
1674 * config/mips/mips.md: Expand comment above unaligned loads and stores.
1675
1676 2004-02-19 Richard Henderson <rth@redhat.com>
1677
1678 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
1679 * tree.c (build0, build1, build2, build3, build4): Split out from...
1680 (build): ... here. Call them.
1681 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
1682
1683 * convert.c (convert_to_integer): Remove extra build argument.
1684 * tree-inline.c (expand_call_inline): Likewise.
1685
1686 2004-02-19 Richard Henderson <rth@redhat.com>
1687
1688 * c-opts.c (warn_variadic_macros): New.
1689 (c_common_handle_option): Set it.
1690 (sanitize_cpp_opts): Copy it to cpp_opts.
1691 * c.opt (Wvariadic-macros): New.
1692 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
1693 * cppinit.c (cpp_create_reader): Initialize it.
1694 * cppmacro.c (parse_params): Check it.
1695
1696 2004-02-19 David Daney <ddaney@avtrex.com>
1697
1698 PR preprocessor/14198
1699 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
1700 builtin_assert ("machine=mips")
1701
1702 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1703
1704 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1705 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1706 * config/cris/cris.h: Remove a comment about
1707 DEFAULT_SHORT_ENUMS.
1708 * config/ip2k/ip2k.h: Likewise.
1709 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1710
1711 2004-02-19 Zack Weinberg <zack@codesourcery.com>
1712
1713 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
1714 when passing single SFmode quantities in general registers,
1715 put them in the high half.
1716
1717 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
1718
1719 * doc/md.texi (Standard Names): Document additional dependency on
1720 fix pattern.
1721
1722 * optabs.c (ftruncify): Remove.
1723 (expand_fix): Manually inline ftruncify above.
1724 (can_fix_p): Add FIXME note.
1725
1726 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
1727
1728 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
1729 spe_fixuns_truncsfsi2.
1730
1731 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
1732 fixuns_truncsfsi2.
1733
1734 2004-02-19 Steve Ellcey <sje@cup.hp.com>
1735
1736 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
1737 * testsuite/gcc.dg/20040219-1.c: New test.
1738
1739 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
1740
1741 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
1742 "*subsf3_cconly"): Subtraction is not commutative.
1743
1744 2004-02-19 Zack Weinberg <zack@codesourcery.com>
1745
1746 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
1747 (sdbout_symbol): If called before sdbout_init, queue DECL for
1748 later and return.
1749 (sdbout_init): Set sdbout_initialized true, process decls
1750 queued earlier by sdbout_symbol.
1751 (sdbout_finish): Use size_t for index variable.
1752
1753 2004-02-19 Jeff Law <law@redhat.com>
1754
1755 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
1756 for unordered comparison codes.
1757
1758 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
1759
1760 * reload1.c (reload): Correct comment.
1761 (scan_paradoxical_subregs): Remove #if 0 and old comment.
1762 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
1763 register variables are not used by reload.
1764
1765 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
1766
1767 PR target/14209
1768 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
1769 constraints to not match postincrement. Adjust the predicate to
1770 exclude a volatile memory reference.
1771
1772 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1773
1774 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
1775
1776 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1777
1778 * hooks.c (hook_void_tree_int): Remove.
1779 (hook_void_constcharptr): Likewise.
1780 (hook_int_void_0): Likewise.
1781 * hooks.h: Remove the prototypes for the above three
1782 functions.
1783 * targhooks.c (hook_bool_machine_mode_true): Remove.
1784 * targhooks.h: Remove the prototype for
1785 hook_bool_machine_mode_true.
1786
1787 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1788
1789 * emit-rtl.c (subreg_realpart_p): Remove.
1790 (reorder_insns_with_line_notes): Likewise.
1791 (end_full_sequence): Likewise.
1792 * rtl.h: Remove the prototype for the above functions.
1793
1794 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1795
1796 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
1797 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
1798 config/iq2000/iq2000.h, config/m32r/m32r.h,
1799 config/pdp11/pdp11.h, config/sparc/sparc.h,
1800 config/xtensa/xtensa.h: Remove commented-out or useless
1801 definitions of CASE_VECTOR_PC_RELATIVE.
1802
1803 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1804
1805 * loop.c (all_sets_invariant_p): Remove.
1806
1807 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
1808
1809 PR target/12916
1810 * config/sparc/sparc.h (NPARM_REGS): Delete.
1811 (BASE_RETURN_VALUE_REG): Likewise.
1812 (BASE_OUTGOING_VALUE_REG): Likewise.
1813 (BASE_PASSING_ARG_REG): Likewise.
1814 (BASE_INCOMING_ARG_REG): Likewise.
1815 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
1816 TARGET_ARCH64, not TARGET_V9.
1817 (function_arg_slotno): Dispatch based on the mode class.
1818 Handle vector modes like floating-point modes.
1819 (function_arg_record_value_1): Handle vector types like
1820 floating-point types.
1821 (function_arg_record_value_2): Likewise.
1822 Calculate regno after mode transformation.
1823 (function_arg): Handle vector modes like floating-point modes.
1824 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
1825 If ARCH64, do not recheck alignment.
1826 (function_arg_pass_by_reference): Reorder the conditions.
1827 (sparc_return_in_memory): Move after function_arg_padding.
1828 Implement calling conventions for vector modes.
1829 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
1830 (function_value): Move scope of 'regbase'.
1831 Implement calling conventions for vector modes.
1832 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
1833 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
1834 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
1835 the argument is passed by reference.
1836 (sparc_type_code): Handle vector types.
1837
1838 2004-02-19 Alan Modra <amodra@bigpond.net.au>
1839
1840 * function.c (assign_parms): When building decl_rtl for
1841 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
1842
1843 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
1844
1845 * expr.c (is_aligning_offset): Check if we are aligning the
1846 expressions's address over BIGGEST_ALIGNMENT in bytes, not
1847 in bits.
1848
1849 2003-02-18 Matt Austern <austern@apple.com>
1850
1851 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
1852 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
1853 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
1854 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
1855 spec string.
1856 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
1857
1858 2004-02-18 Zack Weinberg <zack@codesourcery.com>
1859
1860 * dwarf2out.c (loclabel_num): Move outside #ifdef
1861 DWARF2_DEBUGGING_INFO and mark with GTY(()).
1862 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
1863 Mark with GTY(()).
1864 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
1865 Allocate memory with ggc_alloc. No need to copy anything.
1866 (ia64_hpux_file_end): Update to match.
1867
1868 2004-02-18 Jakub Jelinek <jakub@redhat.com>
1869
1870 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
1871 by default.
1872
1873 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
1874
1875 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
1876 ("divmodtisi3"): Likewise.
1877 ("udivmoddi4", "udivmodtidi3"): Likewise.
1878 ("divmodsi4", "divmoddisi3"): Likewise.
1879 ("udivmodsi4", "udivmoddisi3"): Likewise.
1880 ("udivsi3", "umodsi3"): Likewise.
1881
1882 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
1883
1884 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
1885 placeholder insn when chunkifying the pool.
1886
1887 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1888
1889 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
1890 generating PIC code.
1891
1892 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1893
1894 * config/h8300/h8300-protos.h: Add a prototype for
1895 h8300_expand_branch.
1896 * config/h8300/h8300.c (h8300_expand_branch): New.
1897 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
1898 bgtu, beq, bne): Call h8300_expand_branch().
1899
1900 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1901
1902 * config/h8300/h8300-protos.h: Add prototypes for
1903 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
1904 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
1905 (h8300_hard_regno_mode_ok): Likewise.
1906 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
1907 h8300_hard_regno_nregs().
1908 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
1909
1910 2004-02-18 Per Bothner <per@bothner.com>
1911
1912 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
1913 partly reverts my 2003-10-01 change, because we're back to logically
1914 including <command line> inside the main line.
1915 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
1916 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
1917 Fixes PR preprocessor/14103.
1918
1919 * cppfiles.c (_cpp_stack_include): When appropriate decrement
1920 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
1921 (cpp_push_include): Don't need to increment pfile's line field.
1922 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
1923
1924 * c-ppoutput.c (print struct): New first_time field.
1925 (init_pp_output): Set print.first_time.
1926 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
1927 which is set also for (say) <command line>. Clear print.first_time.
1928
1929 * cppfiles.c (struct _cpp_file): Comment and type for pch field
1930 does not match the code, so fix both.
1931 (should_stack_file): Inline include_pch_p function.
1932 (include_pch_p): Remove pointless function.
1933
1934 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
1935
1936 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1937
1938 * config/h8300/h8300.md (four define_peephole2's): Use
1939 h8300_regs_ok_for_stm().
1940
1941 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1942
1943 * config/h8300/h8300-protos.h: Update the prototype for
1944 expand_a_rotate().
1945 * config/h8300/h8300.c (expand_a_rotate): Remove the first
1946 argument.
1947 * config/h8300/h8300.md: Update all callers.
1948
1949 2004-02-18 Jan Hubicka <jh@suse.cz>
1950
1951 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
1952 floats.
1953 (simplify_binary_operation): Deal with logicals on floats.
1954
1955 * i386.md (SSE fabs splitters): Emit new patterns.
1956 (SSE cmov splitters): Likewise.
1957 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
1958 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
1959 subregs.
1960 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
1961 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
1962
1963 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1964
1965 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
1966 by hand.
1967 (output_a_rotate): Tweak a comment.
1968 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
1969 (*rotlhi3_1): Change to rotlhi3_1.
1970 (*rotlsi3_1): Change to rotlsi3_1.
1971
1972 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
1973
1974 PR target/13866
1975 * arm.c (load_multiple_operation): Don't insist that the source reg
1976 of a post-increment component is the same as the destination.
1977 (store_multiple_operation): Likewise.
1978
1979 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1980
1981 * config/h8300/h8300.md: Move movsf patterns into one section
1982 of the file.
1983
1984 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1985
1986 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
1987 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
1988 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
1989 config/mips/linux64.h, config/pa/pa-64.h,
1990 config/rs6000/aix51.h, config/rs6000/aix52.h,
1991 config/rs6000/spe.md, config/sparc/linux.h,
1992 config/sparc/linux64.h: Update copyright.
1993
1994 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1995
1996 * config/h8300/h8300.md: Move push patterns into one
1997 section of the file.
1998
1999 2004-02-18 Mark Mitchell <mark@codesourcery.com>
2000
2001 PR c++/11326
2002 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
2003 fntype.
2004
2005 2004-02-18 Paul Brook <paul@codesourcery.com>
2006
2007 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
2008
2009 2004-02-18 Paul Brook <paul@codesourcery.com>
2010
2011 PR debug/12934
2012 * dwarf2out.c (loc_descriptor_from_tree): Handle
2013 EXPR_WITH_FILE_LOCATION.
2014
2015 2004-02-18 Jakub Jelinek <jakub@redhat.com>
2016
2017 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
2018 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
2019 trailing whitespace from instructions.
2020
2021 2004-02-17 Geoffrey Keating <geoffk@apple.com>
2022
2023 * configure.ac: When generating auto-build.h, pass
2024 --enable-languages to the sub-configure.
2025 Put quotes around ${program_transform_name} when generating
2026 name of as, ld, nm, objdump.
2027 * configure: Regenerate.
2028
2029 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
2030
2031 * Makefile.in (s-check, s-config, s-conditions, s-flags)
2032 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
2033 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
2034 (s-preds, s-iov): Do not depend on move-if-change.
2035
2036 2004-02-17 James E Wilson <wilson@specifixinc.com>
2037
2038 * caller-save.c (insert_restore): Pass mem through copy_rtx.
2039 (insert_save): Likewise.
2040
2041 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2042
2043 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
2044 warning.
2045
2046 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2047
2048 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
2049 *one_cmplsi2_h8300.
2050 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
2051
2052 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2053
2054 * config/h8300/h8300-protos.h: Update the prototype of
2055 fix_bit_operand().
2056 * config/h8300/h8300.c (fix_bit_operand): Remove the second
2057 argument "what".
2058 * config/h8300/h8300.md: Update all callers.
2059
2060 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2061
2062 * config/h8300/h8300.c (fix_bit_operand): Change the name of
2063 the last argument to "code" from "type".
2064
2065 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2066
2067 * config/h8300/h8300.c: Remove an extern declaration of
2068 rtx_equal_function_value_matters.
2069
2070 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2071
2072 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
2073 by hand.
2074 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
2075 (*iorqi3_1): Change to iorqi3_1.
2076 (*xorqi3_1): Change to xorqi3_1.
2077
2078 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2079
2080 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
2081 typos.
2082
2083 2004-02-17 Jan Hubicka <jh@suse.cz>
2084
2085 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
2086
2087 2004-02-18 Alan Modra <amodra@bigpond.net.au>
2088
2089 PR optimization/14119
2090 * combine.c (try_combine): When attemting to fix unrecognized insns,
2091 don't delete SETs marked with REG_EH_REGION notes.
2092
2093 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
2094
2095 * combine.c (simplify_if_then_else): Do not replace
2096 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
2097 modes differ.
2098
2099 2004-02017 Steven Bosscher <stevenb@suse.de>
2100
2101 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
2102 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
2103 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
2104 * ada/utils.c: Likewise.
2105 * cp/decl.c: Likewise.
2106 * f/com.c: Likewise.
2107 * java/class.c: Likewise.
2108
2109 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2110
2111 * config/h8300/h8300.md: Fix comment typos.
2112
2113 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2114
2115 * config/mips/t-iris6gld: Renamed to ...
2116 * config/mips/t-irix-gld: ... this.
2117 * config.gcc (mips-sgi-irix6*): Reflect this
2118 (mips-sgi-irix5*): Use it with GNU ld.
2119
2120 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
2121 to ...
2122 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
2123 * config/mips/t-irix-gld: Reflect this.
2124 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2125
2126 * config/mips/iris5gld.h: New file.
2127 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
2128 Only use collect2 without gas.
2129
2130 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
2131 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
2132 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
2133 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2134
2135 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
2136 * config/mips/iris5.h: ... here.
2137
2138 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
2139 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
2140 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
2141
2142 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
2143 using irix_startfile_spec, irix_endfile_spec.
2144
2145 2004-02-16 Gunther Nikl <gni@gecko.de>
2146
2147 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
2148
2149 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2150
2151 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
2152 insns by hand.
2153
2154 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2155
2156 * cfghooks.c (split_edge): Speed up updating of dominators.
2157
2158 2004-02-17 Mark Mitchell <mark@codesourcery.com>
2159
2160 PR c++/11326
2161 * c-common.c (flag_abi_version): Remove.
2162 * c-common.h (flag_abi_version): Likewise.
2163 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
2164 * c.opt (fabi-version): Remove.
2165 * calls.c (expand_call): Always pass a function type to
2166 struct_value_rtx. Use convert_memory_address.
2167 * common.opt (fabi-version): Add it.
2168 * flags.h (flag_abi_version): Likewise.
2169 (abi_version_at_least): New macro.
2170 * opts.c (common_handle_option): Add OPT_fabi_version.
2171 * toplev.c (flag_abi_version): Define it.
2172 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
2173 New function.
2174 (ia64_output_mi_thunk): Use it.
2175 (ia64_struct_value_rtx): Likewise.
2176
2177 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2178
2179 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
2180 Don't generate insns by hand.
2181
2182 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
2183
2184 PR c++/14178
2185 * doc/invoke.texi (fabi-version): The default is 2 now.
2186
2187 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2188
2189 * loop-iv.c: New file.
2190 * Makefile.in (loop-iv.o): New.
2191 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
2192 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
2193 num_loop_branches): New functions.
2194 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
2195 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
2196 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
2197 get_simple_loop_desc, free_simple_loop_desc): Declare.
2198 (simple_loop_desc): New inline function.
2199 (struct rtx_iv, struct niter_desc): New.
2200 * cfgloopmanip.c (loopify): Specify semantics more precisely.
2201 * expr.c (force_operand): Handle subregs of expressions created by
2202 loop unroller.
2203 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
2204 parts of the initialization to toplev.c
2205 * loop-unroll.c (loop_exit_at_end_p): New.
2206 (unroll_and_peel_loops): Call iv_analysis_done.
2207 (decide_peel_once_rolling, decide_peel_completely,
2208 decide_unroll_stupid, decide_unroll_constant_iterations,
2209 decide_unroll_runtime_iterations, decide_peel_simple,
2210 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
2211 unroll_loop_runtime_iterations): Use new simple loop analysis.
2212 * loop-unswitch.c (compare_and_jump_seq): New.
2213 (may_unswitch_on_p): Renamed to ...
2214 (may_unswitch_on): Use new iv analysis.
2215 (reversed_condition): Export.
2216 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
2217 * predict.c (estimate_probability): Use new simple loop analysis.
2218 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
2219 canon_condition, simplify_using_condition): Declare.
2220 * stor-layout.c (get_mode_bounds): New.
2221 * toplev.c (rest_of_handle_loop2): Some parts of
2222 initialization/finalization moved here from loop-init.c.
2223
2224 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2225
2226 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
2227 pointer.
2228 (CALL_USED_REGISTERS): Likewise.
2229 (REG_ALLOC_ORDER): Likewise.
2230 (REG_CLASS) <GENERAL_REGS>: Likewise.
2231
2232 2004-02-16 Geoffrey Keating <geoffk@apple.com>
2233
2234 * doc/md.texi (Insn Canonicalizations): Document left-chaining
2235 in associative operators.
2236 * rtlanal.c (commutative_operand_precedence): Create some new
2237 variables. Prefer a commutative operand on the left, then
2238 binary expressions, then NEG and NOT.
2239
2240 2004-02-16 Matthias Klose <doko@debian.org>
2241
2242 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
2243 in terms of SHLIB_SOVERSION.
2244 * config/m68k/t-slibgcc-elf-ver: New file.
2245 * config/pa/t-slibgcc-elf-ver: New file.
2246 * config.gcc (m68k-linux, parisc-linux): Use them when not
2247 sjlj exceptions are not configured.
2248
2249 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2250
2251 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
2252
2253 2004-02-16 Zack Weinberg <zack@codesourcery.com>
2254
2255 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
2256
2257 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
2258
2259 * doc/sourcebuild.texi: Mention backends.html.
2260
2261 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
2262
2263 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
2264 line-map.c, line-map.h, var-tracking.c: Fix comment
2265 formatting.
2266
2267 2004-02-16 Richard Henderson <rth@redhat.com>
2268
2269 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
2270
2271 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
2272
2273 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
2274
2275 * config/h8300/h8300.md: Remove unnecessary parallels from
2276 all define_insn and define_split patterns.
2277
2278 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
2279
2280 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
2281 "clobber").
2282
2283 2004-02-15 Bernardo Innocenti <bernie@develer.com>
2284
2285 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
2286 '%#'.
2287
2288 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
2289
2290 * config/ia64/ia64.c, config/mips/mips.c,
2291 config/mmix/mmix-modes.def: Fix comment typos.
2292
2293 2004-02-15 Roger Sayle <roger@eyesopen.com>
2294
2295 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
2296 (get_directive_line): Remove unused function prototype.
2297
2298 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
2299
2300 * tree-inline.c (copy_body_r): Do not replace ret_label.
2301
2302 2004-02-14 Jan Hubicka <jh@suse.cz>
2303
2304 * i386.c (x86_four_jump_limit): New variable.
2305 (k8_avoid_jump_misspredicts): Rename to ...
2306 (ix86_avoid_jump_misspredicts): .. this one.
2307 (ix86_pad_returns): Break out from ...
2308 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
2309 to.
2310 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
2311
2312 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
2313
2314 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
2315 PARALLEL is NULL.
2316
2317 2004-02-14 Per Bothner <per@bothner.com>
2318
2319 * fix-header.c (line_table): Move local variable in main to global.
2320 * scan.h (line_table): Use it.
2321 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
2322 line (recently renamed to src_loc) before calling recognized_function.
2323
2324 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
2325
2326 * Makefile.in: Fix comment typos.
2327
2328 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
2329
2330 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
2331 for start_value when it is directly moved into reg, and factorize
2332 the retrieval of GET_MODE (reg).
2333
2334 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2335
2336 * config/mips/mips-protos.h (mips_load_got_page): Delete.
2337 (mips_load_got_global): Delete.
2338 (mips_gotoff_page): Declare.
2339 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
2340 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
2341 UNSPEC_LOAD_GOT pattern rather than a MEM.
2342 (*load_got[sd]i): New patterns.
2343 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
2344 (mips_load_got_page, mips_load_got_global): Delete.
2345 (mips_gotoff_page): New function.
2346 (override_options): Don't initialize mips_got_alias_set.
2347
2348 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2349
2350 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
2351 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
2352 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
2353 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
2354 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
2355 * config/mips/mips.c: Fix some overly-long lines.
2356 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
2357 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
2358
2359 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2360
2361 * configure.ac: Search for as, ld below libexec/gcc.
2362 * configure: Regenerate.
2363
2364 2004-02-14 Ben Elliston <bje@wasabisystems.com>
2365
2366 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
2367 __builtin_arm_setwcx ().
2368 * config/arm/arm.c (arm_expand_builtin): Generate operands
2369 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
2370
2371 2004-02-14 Ben Elliston <bje@wasabisystems.com>
2372
2373 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
2374 and "wmuluh" to "wmulsm" and "wmulum", respectively.
2375 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
2376 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
2377 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
2378 (_mm_mulhi_pu16): Likewise.
2379
2380 2004-02-13 Zack Weinberg <zack@codesourcery.com>
2381
2382 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
2383 DECL_NAME != 0 before dereferencing.
2384
2385 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
2386
2387 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
2388 (s390_output_addr_const_extra): Declare.
2389 (s390_output_pool_entry): Remove FILE * argument.
2390 * config/s390/s390.c (s390_output_symbolic_const): Remove.
2391 (s390_output_addr_const_extra): New function.
2392 (print_operand_address): Call output_addr_const instead of
2393 s390_output_symbolic_const.
2394 (print_operand): Likewise.
2395 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
2396 Remove FILE * argument.
2397 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
2398 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
2399 call.
2400
2401 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2402
2403 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
2404 (struct edge, struct vertex, struct graph): New.
2405 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
2406 free_graph): New functions.
2407
2408 2004-02-12 Chris Demetriou <cgd@broadcom.com>
2409
2410 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2411 Use ".set macro" to avoid warnings about multi-instruction
2412 macros, since they're intentional.
2413
2414 2004-02-12 Geoffrey Keating <geoffk@apple.com>
2415
2416 * config/darwin.h: Add include guards. Remove old, now incorrect,
2417 comment about STANDARD_EXEC_PREFIX.
2418
2419 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
2420 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
2421 for installing .1 manpages. Add rules for installing cpp
2422 and gcov manpages under their installed names.
2423
2424 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
2425
2426 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
2427 host, but try LD_FOR_TARGET first.
2428 * configure: Rebuilt.
2429
2430 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2431
2432 * dbxout.c: Move declaration of dbxout_type_decl outside
2433 #ifdef DBX_DEBUGGING_INFO.
2434 * c-parse.in: Don't give the asmdef production a type.
2435
2436 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2437
2438 * debug.h (struct gcc_debug_hooks): Add type_decl field.
2439 (debug_nothing_tree_int): Prototype.
2440 (dwarf_debug_hooks): Delete, unused.
2441 * debug.c (do_nothing_debug_hooks): Update.
2442 (debug_nothing_tree_int): New function.
2443 * langhooks.h (struct lang_hooks_for_decls):
2444 Remove builtin_type_decls field.
2445 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
2446 (LANG_HOOKS_DECLS): Update.
2447 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
2448 Use debug_hooks->type_decl.
2449 * dbxout.c (preinit_symbols): New static.
2450 (dbx_debug_hooks, xcoff_debug_hooks): Update.
2451 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
2452 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
2453 for symbols to output.
2454 (dbxout_type_decl): New function.
2455 (dbxout_symbol): If called before dbxout_init has run, queue
2456 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
2457 to TYPE_DECLs before emitting them.
2458 * xcoffout.c (assign_type_number): Delete.
2459 (xcoff_type_numbers): New static table.
2460 (xcoff_assign_fundamental_type_number): New function.
2461 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
2462 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
2463 * sdbout.c: Include varray.h.
2464 (deferred_global_decls): New static.
2465 (sdb_debug_hooks): Update.
2466 (sdbout_global_decl): If we can't emit something right now,
2467 remember it in deferred_global_decls.
2468 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
2469 (sdbout_init): Initialize deferred_global_decls.
2470 * Makefile.in: Update dependencies of sdbout.o.
2471 * dwarf2out.c (dwarf2out_type_decl): New function.
2472 (dwarf2_debug_hooks): Update.
2473 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
2474 * c-decl.c (getdecls): Just return 0.
2475 (check_for_loop_decls): Don't use getdecls.
2476 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
2477 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
2478
2479 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
2480
2481 * config/s390/s390.c (s390_sched_reorder2): Remove.
2482 (TARGET_SCHED_REORDER2): Do not redefine.
2483
2484 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2485
2486 * c-parse.in (maybe_type_qual): Delete.
2487 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
2488 (asm_argument): New grammar rules.
2489 (extdef_1): Use asmdef.
2490 (maybeasm): Move down with other asm rules; use simple_asm_expr.
2491 (xexpr): Move up with other expression rules.
2492 (stmt): Use asm_stmt.
2493
2494 * c-typeck.c (build_asm_expr): New function - body mostly
2495 pulled from build_asm_stmt.
2496 (build_asm_stmt): Just handle tacking on the volatile qualifier.
2497 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
2498
2499 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
2500
2501 PR bootstrap/13617
2502 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
2503 (mips_declare_object): Make variadic.
2504 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
2505 mips_output_aligned_decl_common.
2506 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
2507 (mips_declare_object): Make variadic.
2508
2509 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2510
2511 * function.c (update_epilogue_consts): Teach about binary operations.
2512
2513 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
2514 previous MEM_VOLATILE in REF.
2515 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
2516 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
2517
2518 2004-02-12 Gunther Nikl <gni@gecko.de>
2519
2520 * config.gcc: Restore support for m68k-openbsd.
2521
2522 2004-02-12 Jan Hubicka <jh@suse.cz>
2523
2524 * tree-optimize.c (tree_rest_of_compilation): Do not release
2525 DECL_ARGUMENTS.
2526
2527 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
2528
2529 * doc/install.texi: Fix the spelling of "explicitly".
2530
2531 2004-02-11 Eric Christopher <echristo@redhat.com>
2532
2533 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
2534 duplicate argument structure of cpp_interpret_string.
2535 * cpphash.h: Move prototype...
2536 * cpplib.h: Here.
2537 * cpplib.c: Fix calls to match new function signature.
2538
2539 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
2540
2541 PR c/456
2542 * cppexp.c (num_binary_op): Don't allow comma operators in #if
2543 constant expressions at all outside C99 mode if pedantic.
2544
2545 2004-02-11 Uros Bizjak <uros@kss-loka.si>
2546
2547 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
2548 (log10_optab, log2_optab): Define corresponding macros.
2549 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
2550 * genopinit.c (optabs): Implement log10_optab and log2_optab
2551 using log10?f2 and log2?f2 patterns.
2552 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
2553 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
2554 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
2555 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2556
2557 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
2558 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
2559 log2, log2f and log2l built-ins as inline x87 intrinsics.
2560
2561 2004-02-11 Richard Henderson <rth@redhat.com>
2562
2563 PR target/1532
2564 * flow.c (insn_dead_p): A clobber of a dead hard register is a
2565 dead insn after reload.
2566
2567 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
2568
2569 * tree.h (frame_base_decl): Add GTY marker.
2570 * var-tracking.c (frame_base_decl): Likewise.
2571
2572 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
2573
2574 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
2575 incorrect, hunk.
2576 (add_location_or_const_value_attribute): Use text_section_label,
2577 not TEXT_SECTION_NAME.
2578
2579 2004-02-11 Per Bothner <per@bothner.com>
2580
2581 Represent column numbers using line-map's source_location.
2582 The "next available source_location" is now managed internally by
2583 line-maps.c rather than by clients.
2584 * line-map.h (struct line_map): New field column_bits.
2585 <from_line>: Rename field to start_location.
2586 (struct line_maps): New fields highest_location and max_column_hint.
2587 (linemap_check_files_exited): New declaration.
2588 (linemap_line_start): New declaration.
2589 (linemap_add): Remove from_line parameter; use highest_location field.
2590 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
2591 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
2592 (CURRENT_LINE_MAP): Remove macro.
2593 (linemap_position_for_column): New inline function.
2594 * line-map.c (linemap_init): Clear new fields.
2595 (linemap_check_files_exited): New function, extracted from ...
2596 (linemap_free): Use linemap_check_files_exited.
2597 (linemap_add): Remove from_line parameter. Various updates.
2598 (linemap_line_start): New function.
2599 (linemap_lookeup): Update for new field names.
2600 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
2601 linemap_position_for_column may unpredictably change the current map,
2602 it is cleaner and simpler for us to not cache it in cpp_reader.
2603 (struct cpp_buffer): New sysp field.
2604 Changed warned_cplusplus_comments and from_stage3 to bitfields.
2605 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
2606 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
2607 current map using linemap_lookup.
2608 (do_linemarker): Also set buffer's sysp field.
2609 (destringize_and_run): No longer need to decrement current line.
2610 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
2611 (search_path_head, open_file_failed): Use buffer's sysp.
2612 (cpp_make_system_header): Get current map using linemap_lookup.
2613 Also set buffer's sysp flag.
2614 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
2615 * cpphash.h (CPP_INCREMENT_LINE): New macro.
2616 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
2617 (struct cpp_reader): ... and adding saved_line_base field.
2618 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
2619 Update accordingly. Don't adjust line.
2620 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
2621 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
2622 (cpp_in_system_header): ... new inline function, using buffer's sysp.
2623 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
2624 * cpplex.c (_cpp_lex_direct): Likewise.
2625 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
2626 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
2627 * cpplib.h (struct cpp_token): Rename line field to src_loc.
2628 Remove col field as it is now subsumed by src_loc.
2629 * cpperror.c: Update various field, parameter, and macro names.
2630 (print_location): If col==0, try SOURCE_COLUMN of line.
2631 (cpp_error): Use cur_token's src_loc field, rather than line+col.
2632 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
2633 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
2634 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
2635 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
2636 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
2637 (_cpp_lex_direct): Use linemap_position_for_column.
2638 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
2639 parameter. Instead get it from the line_table global. Adjust callers.
2640 (print): Remove map field. Replace line field to src_line.
2641 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
2642 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
2643 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
2644 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
2645 * cpptrad.c (copy_comment): Rename variable.
2646 * c-lex.c (map): Remove static variable, for same reason we removed
2647 cpp_reader's map field.
2648 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
2649 to call linemap_lookup.
2650 (cb_line_change): Token's line field replaced by src_loc.
2651 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
2652 Don't save new_map.
2653
2654 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
2655 source_location.
2656
2657 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
2658
2659 * config/rs6000/altivec.md (*movv4si_internal): At least one
2660 operand must be register_operand.
2661 (*movv8hi_internal1): Likewise.
2662 (*movv16qi_internal1): Likewise.
2663 (*movv4sf_internal1): Likewise.
2664
2665 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
2666
2667 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
2668 operand.
2669 (movv4hi_internal): Same.
2670 (movv2sf_internal): Same.
2671 (movv1di_internal): Same.
2672
2673 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2674
2675 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
2676 TARGET_OLDABI consistently.
2677 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
2678 mips_va_arg,override_options,compute_frame_size,
2679 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
2680 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
2681 and TARGET_OLDABI consistently.
2682 * config/mips/mips.md (exception_receiver): Likewise.
2683 * config/mips/linux64.h: Likewise.
2684
2685 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
2686
2687 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
2688 Set AltiVec ABI and vrsave as default for ppc64 linux.
2689 (init_cumulative_args): Post error, if try to return
2690 value in AltiVec register without enable AltiVec.
2691 (function_arg_advance): Ditto for passing arguments.
2692
2693 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
2694
2695 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
2696 a label before updating its usage count.
2697
2698 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
2699
2700 * doc/install.texi: Remove extra cd.
2701
2702 2004-02-10 Ziemowit Laski <zlaski@apple.com>
2703
2704 * c-common.c (vector_size_helper): Remove; call
2705 reconstruct_complex_type() instead.
2706 * tree.c (reconstruct_complex_type): New function
2707 (formerly vector_size_helper() in c-common.c).
2708 (make_vector): Make externally visible.
2709 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
2710
2711 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
2712
2713 * config/h8300/h8300-protos.h: Add a prototype for
2714 h8300_regs_ok_for_stm.
2715 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
2716 * config/h8300/h8300.md (stm_h8300s_2_advanced,
2717 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
2718 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
2719 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
2720 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
2721 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
2722 ldm_h8300s_4_normal, ldm_h8300s_4): Use
2723 h8300_regs_ok_for_stm().
2724
2725 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
2726
2727 PR c/14088
2728 * real.c (real_from_string): Look for 'X' as well as 'x' in
2729 hexfloat strings.
2730
2731 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
2732
2733 * config/h8300/h8300.md: Remove an incorrect comment about
2734 peephole2. Add comments.
2735
2736 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
2737
2738 PR/14058
2739 * emit-rtl.c (set_decl_incoming_rtl): New.
2740 * tree.h (set_decl_incoming_rtl): New.
2741 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
2742 DECL_INCOMING_RTL.
2743 * ada/misc.c (adjust_decl_rtl): Likewise.
2744
2745 2004-02-10 Per Bothner <per@bothner.com>
2746
2747 * c-opts.c (c_common_post_options): Don't emit working directory
2748 in cpp output if -P was specified.
2749
2750 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
2751
2752 PR c/14092
2753 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
2754 negate_expr back to the original type.
2755
2756 2004-02-10 Alan Modra <amodra@bigpond.net.au>
2757
2758 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
2759 bump retaddr here.
2760
2761 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
2762
2763 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
2764 gen_lowpart_SUBREG): Move under the file in which they
2765 are actually declared.
2766
2767 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
2768
2769 * doc/sourcebuild.texi: Add libada documentation.
2770
2771 * doc/install.texi: Update documentation on Ada build, now
2772 that the GNAT lib and tools are built automatically.
2773
2774 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
2775
2776 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
2777 && TARGET_IRIX.
2778
2779 2004-02-09 Ziemowit Laski <zlaski@apple.com>
2780
2781 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
2782 boundaries outside build_component_ref() call (a macro in ObjC++).
2783
2784 2004-02-09 Bob Wilson <bob.wilson@acm.org>
2785
2786 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
2787 (init_cumulative_args): Likewise.
2788 (a7_overlap_mentioned_p): Delete prototype.
2789 * config/xtensa/xtensa.c (struct machine_function): Replace
2790 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
2791 Add set_frame_ptr_insn field.
2792 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
2793 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
2794 if the operand is an argument in a7. If so, copy a7 to a new pseudo
2795 at the function entry and replace the operand with the pseudo.
2796 (init_cumulative_args): Remove unused arguments. Add new "incoming"
2797 argument and record this flag in CUMULATIVE_ARGS.
2798 (function_arg): Remove result_mode and special-case code to handle
2799 arguments in a7. Instead, set need_a7_copy flag when there is an
2800 incoming argument in a7.
2801 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
2802 and use the value recorded in cfun->machine->set_frame_ptr_insn.
2803 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
2804 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
2805 special-case code.
2806 (a7_overlap_mentioned_p): Delete.
2807 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
2808 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
2809 arguments to init_cumulative_args and pass "incoming" flag instead.
2810 (BLOCK_REG_PADDING): Delete.
2811 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
2812 checks for reload_in_progress and reload_completed. Update calls to
2813 xtensa_copy_incoming_a7.
2814 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
2815 to call xtensa_copy_incoming_a7.
2816
2817 2004-02-09 DJ Delorie <dj@redhat.com>
2818
2819 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
2820 longer modify standard_exec_prefix, standard_bindir_prefix, or
2821 standard_startfile_prefix.
2822
2823 2004-02-09 James E Wilson <wilson@specifixinc.com>
2824
2825 PR c++/11295
2826 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
2827 to expand_expr_real call, and pass in alt_rtl as last argument.
2828
2829 PR libstdc++/5625
2830 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
2831 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
2832 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
2833 * except.c (expand_builtin_extend_pointer): New.
2834 * except.h (expand_builtin_extend_pointer): Declare.
2835
2836 2004-02-09 David Edelsohn <edelsohn@gnu.org>
2837
2838 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
2839 unaligned loads and stores.
2840
2841 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2842
2843 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
2844 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
2845
2846 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
2847 * config/mips/iris5.h: ... here.
2848 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
2849
2850 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
2851 * config/mips/iris5.h: ... here.
2852
2853 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2854
2855 * configure.ac: Remove default executable files before AC_PROG_CC.
2856 * configure: Regenerate.
2857
2858 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
2859
2860 PR target/13721
2861 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
2862 print a operand other than a register.
2863
2864 2004-02-09 Roger Sayle <roger@eyesopen.com>
2865
2866 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
2867 tree code rather than call fold_convert, which doesn't specify a
2868 default floating point to integer conversion.
2869
2870 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2871
2872 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
2873 code to support SGS assembler. Reformat adjacent code where possible.
2874 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
2875 definition.
2876 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
2877 for '%#'.
2878 * config/m68k/linux.h, config/m68k/m68k.c,
2879 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
2880 macros and asm_printf() format strings.
2881 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
2882 * config/m68k/linux.h: Update copyright.
2883 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
2884
2885 2004-02-08 Andreas Schwab <schwab@suse.de>
2886 Bernardo Innocenti <bernie@develer.com>
2887
2888 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
2889 REGISTER_PREFIX.
2890 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
2891 frame pointer register, overridable by OS targets.
2892 * (M68K_REGNAME): Macro to obtain register name for asm output,
2893 eventually replacing %a6 with M68K_FP_REG_NAME.
2894 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
2895 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
2896 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
2897 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
2898 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
2899
2900 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
2901
2902 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
2903 hook_rtx_tree_int_null.
2904 * targhooks.c (default_struct_value_rtx): Remove.
2905 * targhooks.h: Remove the prototype for
2906 default_struct_value_rtx.
2907 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
2908 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
2909 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
2910 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
2911 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
2912 config/rs6000/rs6000.c, config/s390/s390.c,
2913 config/stormy16/stormy16.c, config/v850/v850.c,
2914 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
2915 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
2916
2917 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
2918
2919 * README.Portability: Change "ISO C89" to "ISO C90".
2920 * c-parse.in (primary, initelt): Likewise.
2921
2922 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
2923
2924 * real.c (encode_ibm_extended): Normalize the input value before
2925 converting it to a double. Handle the case where a normal value
2926 rounds to infinity.
2927
2928 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
2929
2930 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
2931 warning.
2932 * cse.c (preferrable): Change to preferable. Update all of its
2933 callers.
2934 * genautomata.c (ainsn): Change
2935 first_ainsn_with_given_equialence_num to
2936 first_ainsn_with_given_equivalence_num. Update all of its
2937 references.
2938
2939 2004-02-08 Jan Hubicka <jh@suse.cz>
2940
2941 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
2942
2943 2004-02-07 David Edelsohn <edelsohn@gnu.org>
2944
2945 * function.c (assign_parms): Fix formatting.
2946
2947 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2948
2949 * default.h (PROMOTE_PROTOTYPES): Remove.
2950 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
2951 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
2952 EXPAND_BUILTIN_SAVEREGS): Poison.
2953 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
2954 hook_bool_tree_false.
2955 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2956 * target.h: Replace SETUP_INCOMING_VARARGS with
2957 targetm.calls.setup_incoming_varargs().
2958 * targhooks.c (default_promote_function_return): Remove.
2959 (default_promote_prototypes): Likewise.
2960 (default_struct_value_rtx): Always abort().
2961 (default_expand_builtin_saveregs): Always print an error
2962 message.
2963 (default_setup_incoming_varargs): Do nothing.
2964 (default_pretend_outgoing_varargs_named): Don't depend on
2965 SETUP_INCOMING_VARARGS.
2966 * targhooks.h: Remove the prototype for
2967 default_promote_function_return and
2968 default_promote_prototypes.
2969
2970 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2971
2972 * system.h (SHARED_SECTION_ASM_OP): Poison.
2973 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
2974 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
2975
2976 2004-02-07 Zack Weinberg <zack@codesourcery.com>
2977
2978 Bug 13856
2979 * c-decl.c (diagnose_mismatched_decls): Only give special
2980 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
2981 is also true.
2982 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
2983 DECL_FUNCTION_CODE when defining a built-in function.
2984 Don't update DECL_ESTIMATED_INSNS.
2985 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
2986 FUNCTION_DECLs.
2987 * tree.h: Delete DECL_ESTIMATED_INSNS.
2988 * tree-inline.c (struct inline_data): Delete inlined_insns field.
2989 (expand_call_inline, optimize_inline_calls): Don't update
2990 DECL_ESTIMATED_INSNS nor inlined_insns.
2991 * cgraphunit.c (cgraph_analyze_function): Don't update
2992 DECL_ESTIMATED_INSNS.
2993
2994 2004-02-07 Zack Weinberg <zack@codesourcery.com>
2995
2996 * c-common.c (shadow_warning): Delete.
2997 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
2998 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
2999 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
3000 * c-parse.in (free_parser_stacks): Delete.
3001
3002 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
3003
3004 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
3005 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
3006 Use the top level mkinstalldirs, not the one in the gcc subdir.
3007 * mkinstalldirs: Remove (from the gcc subdir).
3008
3009 2004-02-07 Roger Sayle <roger@eyesopen.com>
3010
3011 PR middle-end/13696
3012 * fold-const.c (fold_convert): New function to provide type
3013 conversion to the middle-end without using convert.
3014 (negate_expr, associate_trees, size_diffop, omit_one_operand,
3015 operand_equal_for_comparison_p, pedantic_omit_one_operand,
3016 invert_truthvalue, optimize_bit_field_compare, range_binop,
3017 decode_field_reference, make_range, build_range_check, unextend,
3018 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
3019 fold_binary_op_with_conditional_arg, fold_inf_compare,
3020 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
3021 convert with calls to fold_convert.
3022
3023 2004-02-07 Jan Hubicka <jh@suse.cz>
3024
3025 * genrecog.c (find_operand): add extra argument stop.
3026 (validate_pattern): Verify that mach_dup is duplicating operand
3027 defined lexically earlier.
3028
3029 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3030
3031 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
3032 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
3033 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
3034 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3035 config/ia64/ia64.h, config/ip2k/ip2k.h,
3036 config/iq2000/iq2000.h, config/mips/iris5.h,
3037 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
3038 config/rs6000/aix51.h, config/rs6000/aix52.h,
3039 config/rs6000/darwin.h, config/rs6000/rs6000.h,
3040 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
3041 config/sparc/linux.h, config/sparc/linux64.h,
3042 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
3043 config/xtensa/xtensa.h: Remove the definitions of
3044 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
3045 MAX_WCHAR_TYPE_SIZE.
3046 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
3047 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
3048
3049 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
3050
3051 PR bootstrap/13990
3052 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
3053 gen_rtx_NE.
3054
3055 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
3056
3057 * var-tracking.c (vt_add_function_parameters): Surround checkings by
3058 #ifdef ENABLE_CHECKING and #endif.
3059
3060 2004-02-07 Roger Sayle <roger@eyesopen.com>
3061
3062 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
3063 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
3064 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
3065 integer types and floating point with unsafe_math_optimizations.
3066 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
3067 Optimize A - B as A + (-B), if B is easily negated.
3068
3069 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3070
3071 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
3072 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
3073 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
3074 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
3075 Update copyright.
3076
3077 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3078
3079 * c-ppoutput.c, var-tracking.c: Fix comment typos.
3080
3081 2004-02-06 James E Wilson <wilson@specifixinc.com>
3082
3083 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
3084 glibc 2.3 or better.
3085
3086 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3087
3088 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
3089 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
3090
3091 2004-02-07 Alan Modra <amodra@bigpond.net.au>
3092
3093 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
3094 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
3095 (SHLIB_MKMAP_OPTS): Delete.
3096 (TARGET_LIBGCC2_CFLAGS): Add -specs.
3097 (bispecs): Add rule.
3098 * config/rs6000/libgcc-ppc64.ver: New file.
3099 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
3100 (__floatdidf, __floatdisf): Optimize multiply.
3101 (__fixunstfdi): New function.
3102 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
3103 real and imag parts larger than one register.
3104 (function_arg): Correct type of reg used when fp arg split partially
3105 to stack.
3106 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
3107 and __MACH__ or __powerpc64__.
3108
3109 2004-02-06 Roger Sayle <roger@eyesopen.com>
3110 Ulrich Weigand <uweigand@de.ibm.com>
3111
3112 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
3113 of gen_highpart or gen_lowpart when the floating point format is
3114 wider than the result mode.
3115
3116 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
3117
3118 * dwarf2out.c (loclabel_num): Move into #ifdef
3119 DWARF2_DEBUGGING_INFO.
3120
3121 2004-02-06 Ziemowit Laski <zlaski@apple.com>
3122
3123 * objc/objc-act.c (build_super_template) the 'class' field of
3124 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
3125 (get_super_receiver): Likewise.
3126
3127 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3128
3129 * reload1.c (check_eliminable_occurrences): Optimize the reset
3130 of can_eliminate.
3131 (eliminate_regs_in_insn): Likewise.
3132
3133 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
3134 Josef Zlomek <zlomekj@suse.cz>
3135
3136 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
3137 at the beginning of function, call dwarf2out_var_location for
3138 NOTE_INSN_VAR_LOCATION note.
3139 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
3140 decl_loc_table): New.
3141 (lookup_decl_loc): New function.
3142 (add_var_loc_to_decl): New function.
3143 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
3144 only if can_use_fbreg.
3145 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
3146 functions.
3147 (loc_descriptor): Likewise. Process VAR_LOCATION.
3148 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
3149 (loc_descriptor_from_tree): Call mem_loc_descriptor with
3150 can_use_fbreg == true.
3151 (add_location_or_const_value_attribute): Added parameter enum
3152 dwarf_attribute attr, generate attribute ATTR. Create the location list.
3153 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
3154 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
3155 with attr == DW_AT_location.
3156 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
3157 if frame_base_decl is defined and has a location list.
3158 (gen_variable_die): Call add_location_or_const_value_attribute with
3159 attr == DW_AT_location.
3160 (dwarf2out_var_location): New function.
3161 (dwarf2out_begin_function): New function.
3162 (dwarf2out_init): Create decl_loc_table.
3163
3164 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3165
3166 * loop.c (force_movables): Transitively increase the priorities of
3167 all insns forces by an insn, not just the first one.
3168
3169 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
3170 Daniel Berlin <dberlin@dberlin.org>
3171
3172 Josef Zlomek <zlomekj@suse.cz>
3173 * Makefile.in (var-tracking.o): New.
3174 * common.opt (fvar-tracking): New.
3175 * flags.h (flag_var_tracking): New.
3176 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
3177 * opts.c (common_handle_option): Add OPT_fvar_tracking.
3178 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
3179 * rtl.c (note_insn_name): Likewise.
3180 * rtl.def (VAR_LOCATION): New.
3181 * rtl.h (NOTE_VAR_LOCATION): New.
3182 (NOTE_VAR_LOCATION_DECL): New.
3183 (NOTE_VAR_LOCATION_LOC): New.
3184 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
3185 (variable_tracking_main): New exported function.
3186 * timevar.def (TV_VAR_TRACKING): New.
3187 * toplev.c (enum dump_file_index): Added DFI_vartrack.
3188 (dump_file): "vartrack" was added (-dV).
3189 (flag_var_tracking): New.
3190 (f_options): "var-tracking" was added.
3191 (rest_of_handle_variable_tracking): New function.
3192 (rest_of_compilation): Run variable tracking.
3193 (process_options): If user has not specified flag_var_tracking set it
3194 according to optimize, debug_info_level and debug_hooks.
3195 * tree.h (frame_base_decl): New.
3196 * var-tracking.c: New file.
3197 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
3198 (ia64_override_options): Set flags to run variable tracking in machine
3199 dependent reorg instead of toplev.c.
3200 (ia64_reorg): Run variable tracking if wanted.
3201 * doc/invoke.texi: Mention variable tracking in -dV,
3202 add and -fvar-tracking.
3203 * doc/passes.texi: Added variable tracking pass.
3204
3205 Daniel Berlin <dberlin@dberlin.org>
3206 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
3207 * dbxout.c (dbx_debug_hooks): Likewise.
3208 (xcoff_debug): Likewise.
3209 * debug.c (do_nothing_debug_hooks): Likewise.
3210 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3211 * dwarfout.c (dwarf_debug_hooks): Likewise.
3212 * sdbout.c (sdb_debug_hooks): Likewise.
3213 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3214 * final.c (final_scan_insn): Call var_location debug hook for each
3215 NOTE_INSN_VAR_LOCATION.
3216
3217 2004-02-06 Jan Hubicka <jh@suse.cz>
3218
3219 * flow.c (update_life_info): Allocate reg_deaths when called from
3220 scheudler.
3221 (attempt_auto_inc): Update life ranges accordingly.
3222
3223 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3224
3225 PR debug/11816
3226 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
3227
3228 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3229
3230 * cfganal.c (flow_call_edges_add): Never split a libcall block.
3231
3232 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
3233
3234 * dwarf2out.c (output_loc_list): Don't use deltas if we have
3235 a separate line info table in use.
3236 Use the correct size for terminators.
3237 (output_die): Use offset, not delta.
3238
3239 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
3240
3241 * doc/invoke.texi: Remove the pni option from -mfpmath=.
3242
3243 2004-02-06 Jan Hubicka <jh@suse.cz>
3244
3245 * recog.c (split_all_insns): Do not update reg info.
3246 * regrename.c (regrename_optimize): Likewise.
3247 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
3248 * flow.c (struct propagate_block_info): Add insn_num field.
3249 (reg_deaths): New array.
3250 (life_analysis): Free reg_deaths info.
3251 (allocate_reg_life_data): Allocate reg_deaths array.
3252 (propagate_one_insn): Use new array.
3253 (init_propagate_block): Initialize it.
3254 (free_propagate_block_info): Finish compuation of
3255 REG_LIVE_LENGTH
3256 (attempt_auto_inc): Sanity check that REG_INFO is not
3257 computed at same time.
3258 (mark_used_regs): Update new array.
3259
3260 * reg-stack.c (subst_stack_regs): Unshare clobbers before
3261 substitution.
3262
3263 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3264
3265 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
3266 *extendqisi2_short_displ.
3267
3268 2004-02-06 Alan Modra <amodra@bigpond.net.au>
3269
3270 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
3271 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
3272 (emit_library_call_value_1): Likewise pass nargs.
3273 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
3274 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
3275 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
3276 parameter instead of scanning TYPE_ARGS_TYPES to count args.
3277 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
3278 prototype.
3279 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
3280 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
3281 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
3282 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
3283 INIT_CUMULATIVE_ARGS.
3284 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
3285 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
3286 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
3287 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
3288 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
3289 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
3290 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
3291 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
3292 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
3293 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
3294 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
3295 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
3296
3297 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3298
3299 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
3300 possible.
3301
3302 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3303
3304 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
3305 note containing (plus (reg) (const_int)), where reg is an
3306 eliminable reg, then perform the register elimination without
3307 depending on eliminate_regs().
3308
3309 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3310
3311 * config/arc/arc.c (arc_return_in_memory): Check the return
3312 value of int_size_in_bytes against -1. Don't check
3313 TREE_ADDRESSABLE.
3314 * config/avr/avr.c (avr_return_in_memory): Check the return
3315 value of int_size_in_bytes against -1.
3316 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
3317 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
3318 Likewise.
3319 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
3320 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
3321 Likewise.
3322
3323 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3324
3325 * config/frv/frv-protos.h: Remove the prototype for
3326 frv_setup_incoming_varargs.
3327 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
3328 (frv_setup_incoming_varargs): Make it static.
3329 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
3330
3331 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3332
3333 * config/fr30/fr30-protos.h: Remove the prototype for
3334 fr30_setup_incoming_varargs.
3335 Update the prototypes for fr30_num_arg_regs and
3336 fr30_function_arg_partial_nregs.
3337 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
3338 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3339 (fr30_setup_incoming_varargs): Make it static.
3340 Add argument second_time. Don't do anything when second_time
3341 is nonzero.
3342 (fr30_num_arg_regs): Change the type of the first argument to
3343 enum machine_mode.
3344 (fr30_function_arg_partial_nregs): Change the type of the
3345 second argument to enum machine_mode.
3346 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
3347 (SETUP_INCOMING_VARARGS): Remove.
3348
3349 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3350
3351 * config/arc/arc-protos.h: Remove the prototype for
3352 arc_setup_incoming_varargs.
3353 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
3354 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3355 (arc_setup_incoming_varargs): Make it static.
3356 (arc_external_libcall): Likewise.
3357 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
3358 Remove the commented-out definition of
3359 ASM_OUTPUT_EXTERNAL_LIBCALL.
3360
3361 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3362
3363 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
3364 to $$(slibdir) in the installation commands.
3365
3366 2004-02-05 David Edelsohn <edelsohn@gnu.org>
3367
3368 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
3369 with inner_regno, not regno.
3370 * rtlanal.c (refers_to_regno_p): Same.
3371
3372 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3373
3374 * config.gcc: Remove i370 support.
3375
3376 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
3377
3378 * doc/install.texi: Update automake and autoconf version
3379 requirements. Note where to find gcj automake version.
3380
3381 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
3382
3383 * Makefile.in (generate-manpages): Move dependencies to ...
3384 (man): here.
3385 * doc/makefile.texi: Document new targets.
3386 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
3387
3388 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
3389
3390 PR/13485
3391 Makefile.in (srcextra): Add a level of indirection to ...
3392 (gcc.srcextra): ... here.
3393 (po-generated): Delete.
3394 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
3395 options.c.
3396 (start.encap): Remove superfluous lang.srcextra dependency.
3397 objc/Make-lang.in (po-generated): Delete.
3398
3399 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3400
3401 * config/ia64/ia64.c (REG_GP): Remove.
3402
3403 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3404
3405 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
3406
3407 2004-02-05 Devang Patel <dpatel@apple.com>
3408
3409 * dwarf2out.c (force_type_die): Look up input type itself
3410 instead of root_type() of type.
3411
3412 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
3413
3414 * config/s390/s390.md ("*tmqidi_ext"): New insn.
3415 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
3416 pre-reload splitters are transformed to post-reload
3417 define_insn_and_split patterns.
3418 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
3419
3420 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3421
3422 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
3423 TARGET_PROMOTE_PROTOTYPES.
3424
3425 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3426
3427 PR middle-end/13750
3428 Revert:
3429 2004-01-15 Geoffrey Keating <geoffk@apple.com>
3430 PR pch/13361
3431 * c-typeck.c (constructor_asmspec): Delete.
3432 (struct initializer_stack): Delete field 'asmspec'.
3433 (start_init): Delete saving of asmspec.
3434 (finish_init): Don't update constructor_asmspec.
3435 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
3436 * stmt.c (expand_asm): Duplicate strings from tree.
3437 (expand_asm_operands): Likewise.
3438 * tree.c (tree_size): Update computation of size of STRING_CST.
3439 (make_node): Don't make STRING_CST nodes.
3440 (build_string): Allocate string with tree node.
3441 * tree.def (STRING_CST): Update comment.
3442 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
3443 (tree_string): Place contents of string in tree node.
3444 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
3445 from tree.
3446
3447 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
3448
3449 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
3450 msgid.
3451
3452 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
3453
3454 * config/rs6000/altivec.md (*movv4si_internal): At least one
3455 operand must be altivec_register_operand.
3456 (*movv8hi_internal1): Likewise.
3457 (*movv16qi_internal1): Likewise.
3458 (*movv4sf_internal1): Likewise.
3459
3460 2004-02-05 David Edelsohn <edelsohn@gnu.org>
3461
3462 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
3463 * configure: Regenerate.
3464
3465 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
3466
3467 * doc/install.texi: Update description of --gxx-include-dir to
3468 give correct default value.
3469
3470 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3471
3472 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
3473 8 with MAC_REG.
3474
3475 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3476
3477 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
3478 gen_rtx_PARALLEL.
3479
3480 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3481
3482 * emit-rtl.c: Update the comment about the file.
3483
3484 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
3485
3486 * sourcebuild.texi (Test Idioms): Update testcase naming
3487 conventions.
3488
3489 2004-02-04 Per Bothner <per@bothner.com>
3490
3491 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
3492 * c-ppoutput.c (pp_dir_change): New function.
3493 * c-common.h (pp_dir_change): New declaration.
3494 * cpplib.h (struct cpp_options): Remove working_directory field.
3495 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
3496 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
3497 Don't handle -fworking_directory here, but in c_common_post_options.
3498 (read_original_directory): Don't back up when done.
3499 Don't clear no-longer used working_directory flag.
3500 * cpplib.h: Update declarations to match.
3501 * c-lex.c (cb_dir_change): Move to c-opts.c.
3502 (init_c_lex): Don't set dir_change callback here, since we want
3503 to set it even if flag_preprocess_only.
3504 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
3505 (c_common_post_options): Set dir_change callback.
3506 Call pp_dir_change if approporiate.
3507 (finish_options): Don't call cpp_find_main_file here. Hence remove
3508 unneeded parameter and result. Do LC_RENAME for <built-in>.
3509 (c_common_post_options): Call cpp_read_main_file here instead.
3510 (c_common_init): Update accordingly.
3511 (push_command_line_include): Don't cpp_push_main_file.
3512 Do LC_RENAME rather than LC_LEASE to get back to main file.
3513 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
3514 (c_common_parse_file): Call cpp_read_main_file for subsequent main
3515 files, but call finish_options for all files.
3516 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
3517 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
3518 cpp_find_main_file + cpp_push_main_file.
3519 * c-lex.c (fe_file_change): Don't set main_input_filename here.
3520 * opts.c (handle_options): Only set main_input_filename first time.
3521
3522 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
3523
3524 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
3525
3526 2004-02-04 Geoffrey Keating <geoffk@apple.com>
3527
3528 * reload.c (find_equiv_reg): When checking for register overlap,
3529 don't index hard_regno_nregs with a pseudo-reg.
3530
3531 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3532
3533 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
3534
3535 2004-02-04 David Edelsohn <edelsohn@gnu.org>
3536
3537 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
3538 against FIRST_PSEUDO_REGISTER.
3539
3540 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3541
3542 * Makefile.in: Move target, host overrides after per-language
3543 fragments.
3544
3545 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
3546 (GNATLIBCFLAGS): Remove -g.
3547
3548 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3549
3550 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
3551 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3552 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
3553 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
3554 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
3555 config/sparc/sparc.c, config/vax/vax.c: Revert the
3556 replacements of "FALLTHRU" with "Fall through" done in the
3557 previous patch.
3558
3559 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3560
3561 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
3562 config/arm/arm.c, config/arm/arm.md,
3563 config/cris/cris-protos.h, config/fr30/fr30.c,
3564 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
3565 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
3566 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
3567 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
3568 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
3569 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
3570 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
3571 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
3572 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
3573 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
3574 config/s390/s390.md, config/sparc/netbsd-elf.h,
3575 config/sparc/openbsd.h, config/sparc/sparc.c,
3576 config/xtensa/lib2funcs.S: Fix comment formatting.
3577
3578 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3579
3580 * config/alpha/alpha.c, config/arc/arc.c,
3581 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
3582 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
3583 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
3584 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
3585 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3586 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
3587 config/iq2000/iq2000.c, config/m32r/m32r.c,
3588 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
3589 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
3590 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
3591 config/rs6000/rs6000.h, config/sparc/sparc.c,
3592 config/vax/vax.c: Fix comment typos. Follow spelling
3593 conventions.
3594
3595 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3596
3597 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
3598 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
3599 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
3600 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
3601 config/arm/fpa.md, config/arm/iwmmxt.md,
3602 config/arm/netbsd-elf.h, config/arm/netbsd.h,
3603 config/m68hc11/m68hc11.md, config/mips/iris5.h,
3604 config/mn10300/mn10300.md, config/rs6000/altivec.md,
3605 config/sparc/netbsd-elf.h: Update copyright.
3606
3607 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3608
3609 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
3610 for all modes whose size is greater than 8 bytes if ARCH32.
3611 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
3612 by reference if ARCH32.
3613
3614 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
3615
3616 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
3617
3618 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3619
3620 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
3621 to before adddi3 insn patterns.
3622 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
3623 "reload_insi"): Move to before addsi3 insn patterns.
3624
3625 2004-02-04 Mark Mitchell <mark@codesourcery.com>
3626
3627 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
3628 parameter. Use it instead of current_function_is_thunk.
3629 * function.h (struct function): Update documentation for is_thunk.
3630 * tree.h (CALL_FROM_THUNK_P): New macro.
3631 * config/alpha/alpha.c (alpha_sa_mask): Do not check
3632 no_new_pseudos when testing current_function_is_thunk.
3633 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
3634
3635 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3636
3637 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
3638 TARGET_SETUP_INCOMING_VARARGS.
3639
3640 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3641
3642 * emit-rtl.c (gen_rtx): Remove.
3643 * genattrtab.c: Don't mention gen_rtx in a comment.
3644 * rtl.h: Remove the prototype for gen_rtx.
3645 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
3646
3647 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3648
3649 * config/arc/arc.h, config/fr30/fr30.h
3650 (SETUP_INCOMING_VARARGS): Remove the target-independent
3651 comments.
3652 * doc/tm.texi: Don't mention deprecated target macros.
3653
3654 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3655
3656 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
3657 target-independent comment.
3658
3659 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3660
3661 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
3662 mention deprecated target macros.
3663
3664 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3665
3666 * config.gcc: Remove obsolete ports and configurations.
3667 * config/linux-aout.h, config/netware.h,
3668 config/t-linux-gnulibc1, config/d30v/abi,
3669 config/d30v/d30v-protos.h, config/d30v/d30v.c,
3670 config/d30v/d30v.h, config/d30v/d30v.md,
3671 config/d30v/libgcc1.asm, config/d30v/t-d30v,
3672 config/dsp16xx/dsp16xx-modes.def,
3673 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
3674 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
3675 config/i370/README, config/i370/i370-c.c,
3676 config/i370/i370-protos.h, config/i370/i370.c,
3677 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
3678 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
3679 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
3680 config/i386/moss.h, config/i386/netware.h,
3681 config/i386/svr3.ifile, config/i386/svr3dbx.h,
3682 config/i386/svr3gas.h, config/i386/svr3z.ifile,
3683 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
3684 config/i960/i960-c.c, config/i960/i960-coff.h,
3685 config/i960/i960-modes.def, config/i960/i960-protos.h,
3686 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
3687 config/i960/rtems.h, config/i960/t-960bare,
3688 config/m68k/hp310.h, config/m68k/hp320.h,
3689 config/m68k/hp320base.h, config/m68k/m68kv4.h,
3690 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
3691 Remove.
3692 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
3693 doc/md.texi: Remove mentions of obsolete ports.
3694
3695 2004-02-04 Jan Hubicka <jh@suse.cz>
3696
3697 * alias.c (find_base_term, get_addr): Do not dereference NULL
3698 pointer when all VALUE's locations has been invalidated.
3699 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
3700
3701 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
3702
3703 * doc/invoke.texi (x86 options): Fix spelling/wording.
3704
3705 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
3706
3707 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
3708 put the original string in a comment.
3709 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
3710 * config/mips/mips.c (mips_output_ascii): Likewise.
3711 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
3712
3713 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
3714
3715 * system.h (GIV_SORT_CRITERION): Poison.
3716 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
3717 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
3718
3719 2004-02-03 Roger Sayle <roger@eyesopen.com>
3720
3721 PR target/9348
3722 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
3723 multiplies with a multiplication of the wrong signedness, its the
3724 signedness of the multiplication that we've performed that needs to
3725 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
3726 if expand_mult_highpart_adjust places the result in target.
3727
3728 2004-02-03 Richard Henderson <rth@redhat.com>
3729
3730 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
3731
3732 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
3733
3734 * config.gcc (sh[234]l): Use little endian fragments.
3735
3736 2004-02-03 Paul Koning <pkoning@equallogic.com>
3737
3738 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
3739 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
3740 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
3741 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
3742 floating point format.
3743 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
3744 the above functions.
3745 (output_move_quad): Output float values in correct target format.
3746 (legitimate_const_double_p): New function.
3747 * config/pdp11/pdp11.h: Fix typos.
3748 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
3749 (TARGET_FLOAT_FORMAT): Ditto.
3750 (pdp11_f_format, pdp11_d_format): Add external declarations.
3751 (MAX_REGS_PER_ADDRESS): Corrected.
3752 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
3753 (PRINT_OPERAND): Output float literals in target format.
3754
3755 2004-02-03 Mark Mitchell <mark@codesourcery.com>
3756
3757 PR c++/13975
3758 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
3759 TI_PRIVATE.
3760 (access_public_node): Redefine.
3761 (access_protected_node): Likewise.
3762 (access_private_node): Likewise.
3763 * tree.c (build_common_tree_nodes): Create access_public_node,
3764 access_protected_node, and access_private_node.
3765
3766 2004-02-03 Steve Ellcey <sje@cup.hp.com>
3767
3768 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
3769 (MASK_INLINE_INT_DIV_THR): Ditto.
3770 (MASK_INLINE_SQRT_LAT): Ditto.
3771 (MASK_INLINE_SQRT_THR): Ditto.
3772 (MASK_DWARF2_ASM): Ditto.
3773 (MASK_EARLY_STOP_BITS): Ditto.
3774
3775 2004-02-02 Paul Brook <paul@codesourcery.com>
3776
3777 Merge from csl-arm-branch.
3778
3779 2004-01-30 Paul Brook <paul@codesourcery.com>
3780
3781 * aof.h (REGISTER_NAMES): Add vfp reg names
3782 (ADDITIONAL_REGISTER_NAMES): Ditto.
3783 * aout.h (REGISTER_NAMES): Ditto.
3784 (ADDITIONAL_REGISTER_NAMES): Ditto.
3785 * arm-protos.h: Update/Add Prototypes.
3786 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
3787 Only allow 0.0 for VFP.
3788 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
3789 (values_fp): Rename from values_fpa. Update Users.
3790 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
3791 Update users. Only check valid constants for this hardware.
3792 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
3793 Only allow consts for FPA.
3794 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
3795 Only allow consts for FPA.
3796 (use_return_insn): Check for saved VFP regs.
3797 (arm_legitimate_address_p): Handle VFP DFmode addressing.
3798 (arm_legitimize_address): Ditto.
3799 (arm_general_register_operand): New function.
3800 (vfp_mem_operand): New function.
3801 (vfp_compare_operand): New function.
3802 (vfp_secondary_reload_class): New function.
3803 (arm_float_compare_operand): New function.
3804 (vfp_print_multi): New function.
3805 (vfp_output_fstmx): New function.
3806 (vfp_emit_fstm): New function.
3807 (arm_output_epilogue): Output VPF reg restore code.
3808 (arm_expand_prologue): Output VFP reg save code.
3809 (arm_print_operand): Add 'P'.
3810 (arm_hard_regno_mode_ok): Return modes for VFP regs.
3811 (arm_regno_class): Return classes for VFP regs.
3812 (arm_compute_initial_elimination_offset): Include space for VFP regs.
3813 (arm_get_frame_size): Ditto.
3814 * arm.h (FIXED_REGISTERS): Add VFP regs.
3815 (CALL_USED_REGISTERS): Ditto.
3816 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
3817 (FIRST_VFP_REGNUM): Define.
3818 (LAST_VFP_REGNUM): Define.
3819 (IS_VFP_REGNUM): Define.
3820 (FIRST_PSEUDO_REGISTER): Include VFP regs.
3821 (HARD_REGNO_NREGS): Handle VFP regs.
3822 (REG_ALLOC_ORDER): Add VFP regs.
3823 (enum reg_class): Add VFP_REGS.
3824 (REG_CLASS_NAMES): Ditto.
3825 (REG_CLASS_CONTENTS): Ditto.
3826 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
3827 (REG_CLASS_FROM_LETTER): Add 'w'.
3828 (EXTRA_CONSTRAINT_ARM): Add 'U'.
3829 (EXTRA_MEMORY_CONSTRAINT): Define.
3830 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
3831 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
3832 (REGISTER_MOVE_COST): Ditto.
3833 (PREDICATE_CODES): Add arm_general_register_operand,
3834 arm_float_compare_operand and vfp_compare_operand.
3835 * arm.md (various): Rename as above.
3836 (divsf3): Enable when TARGET_VFP.
3837 (divdf3): Ditto.
3838 (movdfcc): Ditto.
3839 (sqrtsf2): Ditto.
3840 (sqrtdf2): Ditto.
3841 (arm_movdi): Disable when TARGET_VFP.
3842 (arm_movsi_insn): Ditto.
3843 (movsi): Only split with general regs.
3844 (cmpsf): Use arm_float_compare_operand.
3845 (push_fp_multi): Restrict to TARGET_FPA.
3846 (vfp.md): Include.
3847 * vfp.md: New file.
3848 * fpa.md (various): Rename as above.
3849 * doc/md.texi: Document ARM w and U constraints.
3850
3851 2004-01-15 Paul Brook <paul@codesourcery.com>
3852
3853 * config.gcc: Add with_fpu. Allow with-float=softfp.
3854 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
3855 Break out of loop when we find a float-abi. Fix typo.
3856 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
3857 Set -mfloat-abi=.
3858 * doc/install.texi: Document --with-fpu.
3859
3860 2003-01-14 Paul Brook <paul@codesourcery.com>
3861
3862 * config.gcc (with_arch): Add armv6.
3863 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
3864 * config/arm/arm.c (arm_overrride_options): Ditto.
3865
3866 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
3867
3868 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
3869 (FL_ARCH6): Renamed from FL_ARCH6J.
3870 (arm_arch3m): Renamed from arm_fast_multiply.
3871 (arm_arch6): Renamed from arm_arch6j.
3872 * arm.h: Update all uses of above.
3873 * arm-cores.def: Likewise.
3874 * arm.md: Likewise.
3875
3876 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
3877 not arm6j. Add entry for arch armv6.
3878
3879 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
3880
3881 * arm.c (arm_emit_extendsi): Delete.
3882 * arm-protos.h (arm_emit_extendsi): Delete.
3883 * arm.md (zero_extendhisi2): Also handle zero-extension of
3884 non-subregs.
3885 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
3886 (thumb_zero_extendhisi2): Only match if not v6.
3887 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
3888 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
3889 (thumb_extendqisi2): Likewise.
3890 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
3891 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
3892 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
3893 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
3894 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
3895 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
3896 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
3897 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
3898 (arm_extendqisi2addsi): Likewise.
3899
3900 2003-12-31 Mark Mitchell <mark@codesourcery.com>
3901
3902 Revert this change:
3903 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
3904 + REG addressing modes.
3905
3906 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
3907 + REG addressing modes.
3908
3909 2003-12-30 Mark Mitchell <mark@codesourcery.com>
3910
3911 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
3912 CONSTANT_P_RTX.
3913
3914 2003-30-12 Paul Brook <paul@codesourcery.com>
3915
3916 * longlong.h: protect arm inlines with !defined (__thumb__)
3917
3918 2003-30-12 Paul Brook <paul@codesourcery.com>
3919
3920 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
3921
3922 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
3923
3924 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
3925 change.
3926
3927 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
3928
3929 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
3930 to the virtual incoming args pointer for downward stacks.
3931
3932 2003-12-29 Paul Brook <paul@codesourcery.com>
3933
3934 * config/arm/arm-cores.def: Add cost function.
3935 * config/arm/arm.c (arm_*_rtx_costs): New functions.
3936 (arm_rtx_costs): Remove
3937 (struct processors): Add rtx_costs field.
3938 (all_cores, all_architectures): Ditto.
3939 (arm_override_options): Set targetm.rtx_costs.
3940 (thumb_rtx_costs): New function.
3941 (arm_rtx_costs_1): Remove cases handled elsewhere.
3942 * config/arm/arm.h (processor_type): Add COSTS parameter.
3943
3944 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
3945
3946 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
3947 (arm926ejs.md): Include it.
3948 * config/arm/arm926ejs.md: New pipeline description.
3949
3950 2003-12-24 Paul Brook <paul@codesourcery.com>
3951
3952 * config/arm/arm.c (arm_arch6j): New variable.
3953 (arm_override_options): Set it.
3954 (arm_emit_extendsi): New function.
3955 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
3956 * config/arm/arm.h (arm_arch6j): Declare.
3957 * config/arm/arm.md: Add sign/zero extend insns.
3958
3959 2003-12-23 Paul Brook <paul@codesourcery.com>
3960
3961 * config/arm/arm.c (all_architectures): Add armv6.
3962 * doc/invoke.texi: Document it.
3963
3964 2003-12-19 Paul Brook <paul@codesourcery.com>
3965
3966 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
3967 insn patterns to match.
3968 * config/arm/arm-generic.md: Ditto.
3969 * config/arm/cirrus.md: Ditto.
3970 * config/arm/fpa.md: Ditto.
3971 * config/amm/iwmmxt.md: Ditto.
3972 * config/arm/arm1026ejs.md: Ditto.
3973 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
3974 for 11_loadb.
3975
3976 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
3977
3978 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
3979 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
3980 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
3981 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
3982 arm_no_early_mul_dep): Correctly deal with conditional execution,
3983 parallels and single shift operations.
3984 (arm_no_early_alu_shift_value_dep): Define.
3985 * arm.md (attr type): Replace 'normal' with 'alu',
3986 'alu_shift' and 'alu_shift_reg'.
3987 (attr core_cycles): Adjust.
3988 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
3989 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
3990 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
3991 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
3992 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
3993 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
3994 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
3995 attribute appropriately.
3996 * config/arm/arm1026ejs.md (alu_op): Adjust.
3997 (alu_shift_op, alu_shift_reg_op): New.
3998 * config/arm/arm1136.md: Add better bypasses for early
3999 registers. Remove load[234] and store[234] bypasses.
4000 (11_alu_op): Adjust.
4001 (11_alu_shift_op, 11_alu_shift_reg_op): New.
4002
4003 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
4004
4005 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
4006 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
4007 * config/arm/arm.c (arm_no_early_store_addr_dep,
4008 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
4009 * config/arm/arm1026ejs.md: Add load-store bypass.
4010 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
4011 Add bypasses between instructions.
4012
4013 2003-12-10 Paul Brook <paul@codesourcery.com>
4014
4015 * config/arm/arm.c (arm_fpu_model): New variable.
4016 (arm_fload_abi): New variable.
4017 (target_fpe_name): Rename from target_fp_name.
4018 (target_fpu_name): New variable.
4019 (arm_is_cirrus): Remove.
4020 (fpu_desc): New struct.
4021 (all_fpus): Define.
4022 (pf_model_for_fpu): Define.
4023 (all_loat_abis): Define.
4024 (arm_override_options): Set fp arch flags based on -mfpu=
4025 and -float-abi=.
4026 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
4027 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
4028 (*): Use new TARGET_* flags.
4029 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
4030 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
4031 (TARGET_SOFT_FLOAT): Ditto.
4032 (TARGET_SOFT_FLOAT_ABI): New.
4033 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
4034 TARGET_HARD_FLOAT.
4035 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
4036 (TARGET_OPTIONS): Add -mfpu=.
4037 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
4038 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
4039 (arm_pf_model): Define.
4040 (arm_float_abi_type): Define.
4041 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
4042 * config/arm/arm.md: Use new TARGET_* flags.
4043 * config/arm/cirrus.md: Ditto.
4044 * config/arm/fpa.md: Ditto.
4045 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
4046 * config/arm/semi.h (ASM_SPEC): Ditto.
4047 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
4048 (FPUTYPE_DEFAULT): Set to VFP.
4049 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
4050
4051 2003-11-22 Phil Edwards <phil@codesourcery.com>
4052
4053 PR target/12476
4054 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
4055 'bx' instead of 'b' to avoid branch range restrictions. Output
4056 the thunk immediately before the thunked-to function.
4057 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
4058 .thumb_func if a thunk is being generated. Emit .code 16 along
4059 with .thumb_func if a thunk is not being generated.
4060
4061 2003-11-15 Nicolas Pitre <nico@cam.org>
4062
4063 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
4064 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
4065 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
4066 (lshrdi3_iwmmxt): Renamed from lshrdi3.
4067 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
4068
4069 2003-11-12 Steve Woodford <scw@wasabisystems.com>
4070 Ian Lance Taylor <ian@wasabisystems.com>
4071
4072 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
4073 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
4074
4075 2003-11-05 Phil Edwards <phil@codesourcery.com>
4076
4077 * config/arm/arm.md (insn): Add new V6 instruction names.
4078 (generic_sched): New attr.
4079 * config/arm/arm-generic.md: Use generic_sched here.
4080 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
4081 stages of pipeline. Adjust latency counts accordingly.
4082 * config/arm/arm1136jfs.md: New file.
4083
4084 2003-10-28 Mark Mitchell <mark@codesourcery.com>
4085
4086 * config/arm/arm.h (processor_type): New enumeration type.
4087 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
4088 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
4089 (CPP_CPU_ARCH_SPEC): Likewise.
4090 * config/arm/arm.c (arm_tune): New variable.
4091 (all_cores): Use cores.def.
4092 (all_architectures): Add representative processor.
4093 (arm_override_options): Restructure way in which tuning
4094 information is deduced.
4095 * arm.md: Update "insn" and "type" attributes throughout.
4096 (insn): New attribute.
4097 (type): Compute "mult" from "insn" attribute. Add load2,
4098 load3, load4 alternatives.
4099 (arm automaton): Move to arm-generic.md.
4100 * config/arm/arm-cores.def: New file.
4101 * config/arm/arm-generic.md: Likewise.
4102 * config/arm/arm1026ejs.md: Likewise.
4103
4104 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4105
4106 * doc/invoke.texi (SPARC options): Remove -mflat and
4107 all -mxxx (xxx:chip) options.
4108 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
4109 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
4110 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
4111 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
4112 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
4113 * config/sparc/sparc.c: Likewise.
4114 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
4115 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
4116 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
4117 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
4118 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
4119 (sparc_flat_must_save_register_p): Likewise.
4120 (sparc_flat_compute_frame_size): Likewise.
4121 (sparc_flat_save_restore): Likewise.
4122 (sparc_flat_function_prologue): Likewise.
4123 (sparc_flat_function_epilogue): Likewise.
4124 (sparc_flat_epilogue_delay_slots): Likewise.
4125 (sparc_flat_eligible_for_epilogue_delay): Likewise.
4126 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
4127 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
4128 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
4129 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
4130 (CONDITIONAL_REGISTER_USAGE): Likewise.
4131 (FRAME_POINTER_REQUIRED): Likewise.
4132 (INITIAL_ELIMINATION_OFFSET): Likewise.
4133 (BASE_RETURN_VALUE_REG): Likewise.
4134 (BASE_OUTGOING_VALUE_REG): Likewise.
4135 (BASE_PASSING_ARG_REG): Likewise.
4136 (BASE_INCOMING_ARG_REG): Likewise.
4137 (INCOMING_REGNO): Likewise.
4138 (OUTGOING_REGNO): Likewise.
4139 (LOCAL_REGNO): Likewise.
4140 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
4141 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
4142 (EPILOGUE_USES): Likewise.
4143 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
4144 ("flat" attribute): Delete.
4145 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
4146 handling.
4147 (call followed by jump define_peephole's): Delete.
4148 (exception_receiver): Likewise.
4149 (builtin_setjmp_receiver): Likewise.
4150 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
4151
4152 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
4153
4154 PR c/11658
4155 PR c/13994
4156 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
4157 on langhooks.h.
4158 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
4159 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
4160 Include langhooks.h. Replace c_common_truthvalue_conversion
4161 with the truthvalue_conversion language hook throughout.
4162 (expr_no_commas): Call default_conversion before save_expr
4163 for the first term of the production 'x ? : y'.
4164 * c-common.c (c_common_truthvalue_conversion): Remove
4165 obsolete block. Invoke recursively the hook instead
4166 of this function.
4167 * c-convert.c (convert): handle ERROR_MARK_NODE.
4168 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
4169 returned by the truthvalue_conversion language hook.
4170 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
4171 c_objc_common_truthvalue_conversion.
4172 * c-objc-common.c (c_objc_common_truthvalue_conversion):
4173 New function.
4174 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
4175 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
4176 c_objc_common_truthvalue_conversion.
4177
4178 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
4179
4180 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
4181 of gen_rtx.
4182 (LIBCALL_VALUE): Likewise.
4183 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
4184 gen_rtx_CC0 instead of gen_rtx.
4185 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
4186 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
4187 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
4188 gen_rtx.
4189 (m68hc11_emit_logical): Likewise.
4190
4191 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
4192
4193 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
4194 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
4195 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
4196 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
4197 config/mips/mips.md, config/mmix/mmix.c,
4198 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
4199 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
4200 config/rs6000/altivec.md, config/s390/s390.c,
4201 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
4202 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
4203 Use const0_rtx instead of GEN_INT (0). Do the same for other
4204 constants that are readily available.
4205
4206 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
4207
4208 * doloop.c, optabs.c, regmove.c, sched-deps.c,
4209 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
4210 instead of GEN_INT (0). Do the same for other constants that
4211 are readily available.
4212
4213 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
4214
4215 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
4216 gen_rtx.
4217 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
4218 instead of gen_rtx.
4219 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
4220 gen_rtx.
4221 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
4222 gen_rtx_ASHIFT instead of gen_rtx.
4223 (udivmodqi4): Likewise.
4224
4225 2004-02-02 Richard Henderson <rth@redhat.com>
4226
4227 PR target/13789
4228 * expr.c (store_expr): Use force_operand before emit_move_insn.
4229
4230 2004-02-02 Jeff Law <law@redhat.com>
4231 Roger Sayle <roger@eyesopen.com>
4232
4233 * tree.c (commutative_tree_code, associative_tree_code): New
4234 functions.
4235 (iterative_hash_expr): Use commutative_tree_code.
4236 * tree.h (commutative_tree_code, associative_tree_code): Declare.
4237 * fold-const.c (operand_equal_p): Use commutative_tree_code
4238 rather than inlining the commutativity check.
4239 (fold): Likewise.
4240
4241 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
4242
4243 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
4244 * config/frv/frv-protos.h: Remove the prototype for
4245 frv_function_arg_keep_as_reference.
4246 * config/frv/frv.c (frv_function_arg_keep_as_reference):
4247 Remove.
4248 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
4249 * config/stormy16/stormy16.h: Remove the commented-out
4250 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
4251
4252 2004-02-03 Alan Modra <amodra@bigpond.net.au>
4253
4254 PR target/13914
4255 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
4256 for retaddr_column.
4257
4258 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
4259
4260 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
4261 gen_rtx.
4262
4263 2004-02-02 Eric Christopher <echristo@redhat.com>
4264 Zack Weinberg <zack@codesourcery.com>
4265
4266 * c-opts.c (c_common_handle_option): Add -finput-charset.
4267 * c.opt: Ditto.
4268 * cppcharset.c (one_iso88591_to_utf8): Remove.
4269 (convert_iso88591_utf8): Ditto.
4270 (conversion_tab): Remove 8859-1 converter.
4271 (_cpp_input_to_utf8): Remove.
4272 (_cpp_init_iconv_buffer): Ditto.
4273 (_cpp_close_iconv_buffer): Ditto.
4274 (_cpp_convert_input): New function.
4275 (_cpp_default_encoding): Ditto.
4276 * cpphash.h: Add/remove prototypes for above.
4277 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
4278 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
4279 for narrow execution and input character sets.
4280 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
4281 * doc/cppopts.texi: Document -finput-charset.
4282
4283 2004-02-02 David Edelsohn <edelsohn@gnu.org>
4284
4285 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
4286 against FIRST_PSEUDO_REGISTER.
4287
4288 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4289
4290 * doc/invoke.texi (SPARC options): Further improve.
4291
4292 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
4293
4294 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
4295 config/h8300/h8300.c, config/ip2k/ip2k.md,
4296 config/iq2000/iq2000.c, config/mips/mips.c,
4297 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
4298 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
4299 config/v850/v850.md: Fix indentation.
4300
4301 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4302
4303 * config/sparc/sparc.c (function_arg_slotno): Align TImode
4304 arguments on a 16-byte boundary in the parameter array if ARCH64.
4305 Split handling of TFmode.
4306
4307 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
4308
4309 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
4310 Don't test CONSTANT_P (x).
4311 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
4312 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
4313 Fix misindentation.
4314
4315 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4316
4317 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
4318
4319 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
4320
4321 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
4322 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
4323 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
4324 config/iq2000/iq2000.c, config/m32r/m32r.c,
4325 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
4326 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
4327 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
4328 config/stormy16/stormy16.c, config/v850/v850.md,
4329 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
4330
4331 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
4332
4333 * config/mcore/mcore.c (block_move_sequence): Replace
4334 gen_rtx_CONST_INT with GEN_INT.
4335
4336 2004-02-02 Jan Hubicka <jh@suse.cz>
4337
4338 * alias.c (record_set): Use hard_regno_nregs.
4339 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
4340 * builtins.c (apply_args_size): Likewise.
4341 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
4342 mark_set_regs, add_stored_regs, mark_referenced_regs,
4343 insert_restore, insert_save, insert_one_insn): Likewise.
4344 * cfgcleanup.c: Include regs.h
4345 (mark_effect, mentions_nonequal_regs): Likewise.
4346 * cfgrtl.c (mark_killed_regs): Likewise
4347 * combine.c (update_table_tick, record_value_for_reg,
4348 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
4349 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
4350 reg_bitfield_target_p, distribute_notes): Likewise.
4351 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
4352 exp_equiv_p, cse_insn): Likewise.
4353 * cselib.c (cselib_lookup): Likewise.
4354 (cselib_invalidate_regno, cselib_record_set): Likewise.
4355 * df.c (df_ref_record): Likewise.
4356 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
4357 Likewise.
4358 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
4359 count_or_remove_death_notes_bb): Likewise.
4360 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
4361 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
4362 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
4363 * integrate.c (mark_stores): Likewise.
4364 * jump.c (delete_prior_computation): Likewise.
4365 * lcm.c (reg_dies, reg_becomes_live): Likewise.
4366 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
4367 * loop.c (LOOP_REGNO_NREGS): Likewise.
4368 * postreload.c (reload_combine, reload_combine_note_store,
4369 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
4370 * ra-colorize.c (combine, color_usable_p, get_free_reg,
4371 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
4372 try_recolor_web, insert_coalesced_conflicts, check_colors,
4373 break_precolored_alias): Likewise.
4374 * ra-debug.c: Include regs.h
4375 (ra_print_rtx_object): Likewise.
4376 * ra-rewrite (choose_spill_colors): Likewise.
4377 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
4378 * ra.c (init_ra): Likewise.
4379 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
4380 peep2_find_free_register): Likewise.
4381 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
4382 * regclass.c (hard_regno_nregs): New array.
4383 (init_reg_modes_once): Initialize it.
4384 (choose_hard_reg_mode): Use it.
4385 (record_reg_classes): Likewise.
4386 * regmove.c (mark_flags_life_zones): Likewise.
4387 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
4388 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
4389 copy_value, maybe_mode_change, find_oldest_value_reg,
4390 copyprop_hardreg_forward_1):
4391 * regs.h (hard_regno_nregs): Declare.
4392 * realod.c (reload_inner_reg_of_subreg): Use it.
4393 (push_reload, combine_reloads, find_dummy_reload,
4394 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
4395 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
4396 reload_adjust_reg_for_mode): Likewise.
4397 * reload1.c (compute_use_by_pseudos, count_pseudo,
4398 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
4399 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
4400 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
4401 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
4402 delete_output_reload): Likewise.
4403 * resource.c (update_live_status, mark_referenced_resources,
4404 mark_set_resources, mark_target_live_regs): Likewise.
4405 * rtlanal.c: Include regs.h
4406 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
4407 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
4408 subreg_regno_offset, subreg_offset_representable_p,
4409 hoist_test_store): Likewise.
4410 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
4411 * sched-rgn.c (check_live_1, update_live_1): Likewise.
4412 * stmt.c: Include regs.h
4413 (decl_conflicts_with_clobbers_p): Likewise.
4414 * varasm.c (make_decl_rtl): Likewise.
4415 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
4416
4417 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
4418
4419 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
4420 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
4421 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
4422 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
4423 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
4424 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
4425 config/iq2000/iq2000.h, config/m32r/m32r.c,
4426 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4427 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
4428 config/mcore/mcore.c, config/mcore/mcore.h,
4429 config/mcore/mcore.md, config/mips/mips.c,
4430 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
4431 config/rs6000/rs6000.c, config/s390/s390.c,
4432 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
4433 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
4434 "gen_rtx (FOO, " with "gen_rtx_FOO (".
4435
4436 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
4437
4438 * config/h8300/h8300.md (two peephole2's): New.
4439
4440 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
4441
4442 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
4443 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
4444 (ASM_CPU_SPEC): Likewise
4445 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
4446 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
4447
4448 2004-02-01 Roger Sayle <roger@eyesopen.com>
4449
4450 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
4451 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
4452 (expand_builtin): Always call expand_builtin_pow.
4453
4454 2004-02-01 Roger Sayle <roger@eyesopen.com>
4455
4456 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
4457 BUILT_IN_SIGNBITL): New GCC builtins.
4458 * builtins.c (expand_builtin_signbit): New function to RTL expand
4459 calls to signbit, signbitf and signbitl as inline intrinsics.
4460 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
4461 (fold_builtin_signbit): New function to perform constant folding
4462 of signbit, signbitf and signbitl.
4463 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
4464
4465 * doc/extend.texi: Document new signbit{,f,l} builtins.
4466
4467 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
4468
4469 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
4470
4471 2004-02-01 Chris Demetriou <cgd@broadcom.com>
4472
4473 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
4474 "mips_const_double_ok" and "simple_memory_operand", which were
4475 removed from the MIPS port with the mips-3_4-rewrite branch merge.
4476 * config/mips/mips.c (mips16_lay_out_constants): Update comment
4477 for removal of simple_memory_operand.
4478
4479 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4480
4481 * config/c4x/c4x.md: Use GEN_INT instead of
4482 gen_rtx (CONST_INT, ...).
4483
4484 2004-01-31 Richard Henderson <rth@redhat.com>
4485
4486 * varasm.c (output_constant_pool): Don't zap the pool.
4487
4488 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4489
4490 * genrecog.c (decision_type): Add DT_const_int.
4491 (write_cond) [DT_const_int]: Print a comparison against small
4492 constant.
4493 (write_node): Simplify comparisons against small constants
4494 before printing tests.
4495
4496 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4497
4498 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
4499 instead of gen_rtx_CONST_INT.
4500
4501 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4502
4503 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
4504 instead of gen_rtx_CONST_INT.
4505
4506 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4507
4508 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
4509 hook_bool_CUMULATIVE_ARGS_false.
4510 * targhooks.c (default_strict_argument_naming): Rename to
4511 hook_bool_CUMULATIVE_ARGS_false.
4512 * targhooks.h: Update the prototype for
4513 default_strict_argument_naming.
4514
4515 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4516
4517 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
4518 * config/sh/sh.h: Likewise.
4519 * config/sh/sh.md: Likewise.
4520
4521 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4522
4523 * doc/invoke.texi (SPARC options): Restructure and update.
4524
4525 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4526
4527 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
4528 STRICT_ARGUMENT_NAMING): Poison.
4529 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
4530 hook_bool_tree_false.
4531 * targhooks.c (default_promote_function_args): Remove.
4532 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
4533 Don't check incoming.
4534 (default_strict_argument_naming): Don't use
4535 STRICT_ARGUMENT_NAMING.
4536 * targhooks.h: Remove the prototype for
4537 default_promote_function_args.
4538
4539 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4540
4541 * config/i386/i386-protos.h: Remove the prototype for
4542 ix86_setup_incoming_varargs.
4543 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
4544 (ix86_setup_incoming_varargs): Make it static.
4545 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
4546
4547 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4548
4549 * alloc-pool.c: Fix comment typos.
4550 * builtin-types.def: Likewise.
4551 * builtins.def: Likewise.
4552 * c-pretty-print.c: Likewise.
4553 * df.h: Likewise.
4554 * reload1.c: Likewise.
4555
4556 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4557
4558 * doc/invoke.texi: Follow spelling conventions.
4559 * doc/tm.texi: Likewise.
4560
4561 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4562
4563 * doc/install.texi: Fix typos.
4564 * doc/invoke.texi: Likewise.
4565
4566 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
4567
4568 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
4569 registers as pointers.
4570 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
4571
4572 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
4573
4574 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
4575 and restore it to gen_lowpart_general on exit.
4576 (gen_lowpart_for_combine): Adjust all callers to go through
4577 gen_lowpart.
4578 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
4579 and restore it to gen_lowpart_general on exit.
4580 (gen_lowpart_if_possible): Adjust all callers to go through
4581 gen_lowpart.
4582 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
4583 (gen_lowpart): Declare as pointer to function, initialized to
4584 gen_lowpart_general.
4585 * rtl.h (gen_lowpart): Declare as pointer to function.
4586
4587 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4588
4589 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
4590 * calls.c: Likewise.
4591 * emit-rtl.c: Likewise.
4592 * function.c: Likewise.
4593 * reload1.c: Likewise.
4594 * config/i386/cygming.h: Likewise.
4595 * config/i386/i386.c: Likewise.
4596 * config/i386/winnt.c: Likewise.
4597
4598 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
4599
4600 PR bootstrap/9249
4601 * doc/install.texi: document --enable-__cxa_atexit option.
4602 * configure.ac: Disable __cxa_atexit if not supported.
4603 * configure: Regenerate.
4604
4605 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
4606
4607 * ggc-zone.c (ggc_free): New function.
4608
4609 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4610
4611 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
4612 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
4613 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
4614 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
4615 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
4616 config/alpha/alpha.c, config/alpha/alpha.h,
4617 config/alpha/alpha.md, config/alpha/unicosmk.h,
4618 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
4619 config/c4x/c4x-protos.h, config/c4x/c4x.md,
4620 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
4621 config/frv/frvend.c, config/i386/cygming.h,
4622 config/i386/djgpp.h, config/i386/emmintrin.h,
4623 config/i386/gthr-win32.c, config/i386/i386-interix.h,
4624 config/i386/i386-protos.h, config/i386/openbsd.h,
4625 config/i386/winnt.c, config/i386/xm-mingw32.h,
4626 config/i386/xmmintrin.h, config/ia64/ia64.md,
4627 config/iq2000/iq2000.md, config/m32r/m32r.md,
4628 config/m68k/m68k.md, config/mcore/mcore-elf.h,
4629 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
4630 config/mips/iris5gas.h, config/mips/iris6.h,
4631 config/mips/iris6gas.h, config/mips/linux.h,
4632 config/mips/mips.md, config/mips/netbsd.h,
4633 config/mips/openbsd.h, config/mips/windiss.h,
4634 config/pa/fptr.c, config/rs6000/aix.h,
4635 config/rs6000/altivec.h, config/rs6000/darwin.h,
4636 config/rs6000/xcoff.h, config/s390/s390-protos.h,
4637 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
4638 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
4639 config/sparc/sol2.h: Update copyright.
4640
4641 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
4642
4643 * Makefile.in (abs_docdir, abs_srcdir): Define.
4644 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
4645
4646 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4647
4648 * genconfig.c (main): Have CC0_P check its operand even on a
4649 target without cc0.
4650
4651 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4652
4653 * config/alpha/alpha.c: Remove mentions of deprecates macros
4654 in comments, remove some target-independent comments about target
4655 macros, and/or add minimal function comments for target hook
4656 implementations.
4657 * config/avr/avr.c: Likewise.
4658 * config/ia64/ia64.h: Likewise.
4659 * config/ip2k/ip2k.c: Likewise.
4660 * config/iq2000/iq2000.c: Likewise.
4661 * config/m32r/m32r.h: Likewise.
4662 * config/m68hc11/m68hc11.c: Likewise.
4663 * config/mcore/mcore.c: Likewise.
4664 * config/mmix/mmix.c: Likewise.
4665 * config/mn10300/mn10300.c: Likewise.
4666 * config/pa/pa.c: Likewise.
4667 * config/pdp11/pdp11.c: Likewise.
4668 * config/rs6000/rs6000.h: Likewise.
4669 * config/sh/sh.c: Likewise.
4670 * config/sh/sh.h: Likewise.
4671 * config/sparc/sparc.c: Likewise.
4672 * config/sparc/sparc.h: Likewise.
4673 * config/stormy16/stormy16.c: Likewise.
4674 * config/xtensa/xtensa.c: Likewise.
4675
4676 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
4677
4678 PR optimization/12147
4679 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
4680 RELOAD_FOR_OPADDR_ADDR.
4681 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
4682 might be reused as RELOAD_FOR_OPADDR_ADDR register.
4683
4684 2004-01-30 Jan Hubicka <jh@suse.cz>
4685
4686 * reload.c (get_secondary_mem): Fix updating of
4687 secondary_memlocs_elim_used.
4688
4689 2004-01-30 Richard Henderson <rth@redhat.com>
4690
4691 * varasm.c (struct rtx_const, struct pool_constant): Remove.
4692 (MAX_RTX_HASH_TABLE): Remove.
4693 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
4694 (first_pool, last_pool, pool_offset): Remove.
4695 (struct rtx_constant_pool): Split out from ...
4696 (struct varasm_status): ... here. Reference one via pointer.
4697 (struct constant_descriptor_rtx): Merge struct pool_constant.
4698 (SYMHASH): Remove.
4699 (decode_rtx_const): Remove.
4700 (const_hash_rtx, compare_constant_rtx): Remove.
4701 (record_constant_rtx): Remove.
4702 (const_desc_rtx_hash, const_desc_rtx_eq): New.
4703 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
4704 (const_rtx_hash_1, const_rtx_hash): New.
4705 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
4706 (simplify_subtraction): Use simplify_rtx.
4707 (force_const_mem): Rewrite to use new data structures.
4708 (find_pool_constant): Likewise.
4709 (get_pool_constant, get_pool_constant_mark,
4710 get_pool_constant_for_function, get_pool_mode,
4711 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
4712 (output_constant_pool_2): Split out from output_constant_pool.
4713 (output_constant_pool_1): Likewise. Use new pool datastructures.
4714 (output_constant_pool): Zap entire pool datastructure.
4715 (mark_constant): Use new pool datastructures.
4716 (mark_constants): Use for_each_rtx.
4717 (mark_constant_pool): Use new pool datastructures.
4718
4719 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
4720
4721 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
4722 Copy operands[1] to pseudo for simplify_gen_subreg.
4723
4724 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4725
4726 * gcse.c (bypass_block): Fix a typo in the previous check-in
4727 to the file.
4728
4729 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
4730
4731 * toplev.c: Include alloc-pool.h.
4732 * Makefile.in (toplev.c): Update dependencies.
4733
4734 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4735
4736 * combine.c (simplify_shift_const, case XOR): Be careful when
4737 commuting XOR with ASHIFTRT.
4738
4739 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4740 Eric Botcazou <ebotcazou@libertysurf.fr>
4741
4742 * config/sparc/sparc-protos.h: Remove the prototype for
4743 sparc_builtin_saveregs.
4744 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4745 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4746 (TARGET_PROMOTE_PROTOTYPES): Likewise.
4747 (TARGET_STRUCT_VALUE_RTX): Likewise.
4748 (TARGET_RETURN_IN_MEMORY): Likewise.
4749 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
4750 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
4751 (sparc_builtin_saveregs): Make it static.
4752 (sparc_promote_prototypes): New.
4753 (sparc_struct_value_rtx): Likewise.
4754 (sparc_return_in_memory): Likewise.
4755 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
4756 (PROMOTE_FUNCTION_RETURN): Likewise.
4757 (RETURN_IN_MEMORY): Likewise.
4758 (STRUCT_VALUE): Likewise.
4759 (STRUCT_VALUE_INCOMING): Likewise.
4760 (EXPAND_BUILTIN_SAVEREGS): Likewise.
4761 (STRICT_ARGUMENT_NAMING): Likewise.
4762 (PROMOTE_PROTOTYPES): Likewise.
4763
4764 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
4765
4766 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
4767
4768 PR c/12818
4769 * varasm.c (const_hash_1) <STRING_CST>: Use the
4770 address to compute the hash value if flag_writable_strings.
4771 (compare_constant) <STRING_CST>: Compare the addresses
4772 if flag_writable_strings.
4773 (build_constant_desc): Do not copy the expression for a
4774 STRING_CST if flag_writable_strings.
4775
4776 2004-01-30 Jan Hubicka <jh@suse.cz>
4777
4778 * alloc-pool.c: Include hashtab.h
4779 (alloc_pool_descriptor): New structure
4780 (alloc_pool_hash): New global variable.
4781 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
4782 (create_alloc_pool): Update statistics.
4783 (free_alloc_pool): Likewise.
4784 (pool_alloc): Likewise.
4785 (output_info): New structure
4786 (print_statistics, dump_alloc_pool_statistics): New function.
4787 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
4788 (dump_alloc_pool_statistics): Declare.
4789 * toplev.c (finalize): Dump statistics.
4790
4791 * reload.c (secondary_memlocs_elim_used): New static variable.
4792 (get_secondary_mem): Update it.
4793 (find_reloads): Use it.
4794
4795 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
4796
4797 * toplev.c: Fix broken checkin of 2003-12-30, again.
4798
4799 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
4800
4801 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
4802 s390*-*-* targets by specifying a 'nop' insn.
4803 * configure: Regenerate.
4804
4805 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
4806
4807 PR target/11475
4808 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
4809
4810 2004-01-29 Jakub Jelinek <jakub@redhat.com>
4811
4812 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
4813 of addr when creating MEM copy.
4814
4815 2004-01-29 Devang Patel <dpatel@apple.com>
4816
4817 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
4818
4819 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
4820
4821 PR inline-asm/6162
4822 * reload.c (find_reloads): Only support one pair of commutative
4823 operands.
4824
4825 2004-01-29 Roger Sayle <roger@eyesopen.com>
4826
4827 PR java/13824
4828 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
4829 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
4830 recursion.
4831
4832 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
4833
4834 * config/frv/frv.c: Don't mention deprecated macros in
4835 comments. Remove some target-independent comments about
4836 target macros.
4837 * config/frv/frv.h: Likewise.
4838
4839 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4840
4841 * cfghooks.c (split_block): Set probability and count of the
4842 new edge.
4843
4844 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
4845
4846 * dwarf2out.c (struct die_struct): Added field decl_id.
4847 (decl_die_table): Changed to hash table.
4848 (decl_die_table_allocated): Deleted.
4849 (decl_die_table_in_use): Deleted.
4850 (DECL_DIE_TABLE_INCREMENT): Deleted.
4851 (decl_die_table_hash): New function.
4852 (decl_die_table_eq): New function.
4853 (lookup_decl_die): Lookup in a hash table.
4854 (equate_decl_number_to_die): Insert into a hash table.
4855 (dwarf2out_init): Init hash table decl_die_table.
4856
4857 2004-01-29 Jakub Jelinek <jakub@redhat.com>
4858
4859 PR optimization/13424
4860 * expr.c (store_constructor): Revert 2003-12-03 change.
4861
4862 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
4863 expected before returning early. Avoid sharing RTL if they
4864 need to be changed.
4865
4866 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
4867 handling so that memory attributes are preserved. Don't call
4868 ix86_set_move_mem_attrs.
4869 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
4870 (ix86_expand_clrstr): Rename src argument to
4871 dst. Rework rep_stos and strset handling so that memory attributes
4872 are preserved.
4873 (ix86_expand_strlen): Pass src argument to
4874 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
4875 memory attributes are preserved.
4876 (ix86_expand_strlensi_unroll_1): Add src argument. Use
4877 change_address instead of gen_rtx_MEM.
4878 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
4879 expanders.
4880 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
4881 strmovqi, strmovqi_rex64): Remove.
4882 (rep_mov*, strmov*): Prefix insn names with *.
4883 (strset, strset_singleop, rep_stos): New expanders.
4884 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
4885 strsetqi, strsetqi_rex64): Remove.
4886 (rep_stos*, strset*): Prefix insn names with *.
4887 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
4888 to SImode.
4889 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
4890 are preserved.
4891 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
4892 Prefix insn names with *.
4893 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
4894 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
4895 (strlenqi_1): New expander.
4896 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
4897
4898 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4899
4900 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
4901 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
4902 verify_flow_info): Declaration removed.
4903 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
4904 (debug_bb, debug_bb_n): Add argument to dump_bb call.
4905 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
4906 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
4907 instead of delete_block.
4908 * cfghooks.c: Include timevar.h and toplev.h.
4909 (cfg_hooks): Define here.
4910 (verify_flow_info, dump_bb): Moved from cfg.c.
4911 (redirect_edge_and_branch, redirect_edge_and_branch_force,
4912 split_block, split_block_after_labels, move_block_after,
4913 delete_basic_block, split_edge, create_basic_block,
4914 create_empty_bb, can_merge_blocks_p, merge_blocks,
4915 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
4916 New functions.
4917 * cfghooks.h (struct cfg_hooks): Added fields name,
4918 make_forwarder_block, tidy_fallthru_edge and
4919 move_block_after. Changed type of verify_flow_info, dump_bb,
4920 split_block fields. Renamed cfgh_split_edge and delete_block
4921 fields.
4922 (redirect_edge_and_branch, redirect_edge_and_branch_force,
4923 split_block, delete_block, split_edge, create_basic_block,
4924 can_merge_blocks_p, merge_blocks): Macros removed.
4925 (cfg_hooks): Do not export.
4926 (verify_flow_info, dump_bb, redirect_edge_and_branch,
4927 redirect_edge_and_branch_force, split_block, split_block_after_labels,
4928 move_block_after, delete_basic_block, split_edge, create_basic_block,
4929 create_empty_bb, can_merge_blocks_p, merge_blocks,
4930 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
4931 Declare.
4932 (cfg_layout_rtl_cfg_hooks): Declare.
4933 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
4934 New functions.
4935 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
4936 (redirect_edge_with_latch_update): Removed.
4937 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
4938 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
4939 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
4940 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
4941 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
4942 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
4943 cfghooks.c.
4944 (rtl_create_basic_block): Coding style fix.
4945 (rtl_tidy_fallthru_edge, rtl_move_block_after,
4946 rtl_make_forwarder_block): New functions.
4947 (update_cfg_after_block_merging): Removed.
4948 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
4949 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
4950 to dump_bb.
4951 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
4952 find_if_case_2): Don't update dominators.
4953 * timevar.def (TV_CFG_VERIFY): New.
4954 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
4955 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
4956 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
4957 (remove_bbs): Don't call remove_bbs.
4958 (create_preheader): Use make_forwarder_block.
4959 (mfb_keep_just, mfb_update_loops): New static functions.
4960
4961 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
4962
4963 * config/avr/avr.h: Remove target-independent comments about
4964 target macros.
4965
4966 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
4967
4968 * timevar.c (timevar_print): Mention when checking is enabled.
4969
4970 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4971
4972 * c-lex.c (c_lex): Rename to...
4973 (c_lex_with_flags): Add new parameter to get CPP flags.
4974 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
4975 * c-pragma.h (c_lex_with_flags): Declare.
4976
4977 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4978
4979 * config/mcore/mcore.c (mcore_external_libcall): Add a
4980 comment.
4981 (mcore_return_in_memory): Likewise.
4982
4983 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4984
4985 * config/mcore/mcore-protos.h: Remove the prototype for
4986 mcore_setup_incoming_varargs.
4987 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
4988 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
4989 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4990 (TARGET_PROMOTE_PROTOTYPES): Likewise.
4991 (TARGET_STRUCT_VALUE_RTX): Likewise.
4992 (TARGET_RETURN_IN_MEMORY): Likewise.
4993 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4994 (mcore_setup_incoming_varargs): Make it static. Receive the
4995 first argument by reference. Add argument second_time.
4996 (mcore_external_libcall): New.
4997 (mcore_return_in_memory): Likewise.
4998 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
4999 (PROMOTE_FUNCTION_RETURN): Likewise.
5000 (STRUCT_VALUE): Likewise.
5001 (RETURN_IN_MEMORY): Likewise.
5002 (SETUP_INCOMING_VARARGS): Likewise.
5003 (PROMOTE_PROTOTYPES): Likewise.
5004 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
5005
5006 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5007
5008 * config/m32r/m32r-protos.h: Remove the prototype for
5009 m32r_setup_incoming_varargs.
5010 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
5011 (TARGET_STRUCT_VALUE_RTX): Likewise.
5012 (TARGET_RETURN_IN_MEMORY): Likewise.
5013 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5014 (m32r_return_in_memory): New.
5015 (m32r_setup_incoming_varargs): Make it static.
5016 * config/m32r/m32r.h: Remove #undef of
5017 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
5018 definitions of PROMOTE_FUNCTION_ARGS and
5019 PROMOTE_FUNCTION_RETURN.
5020 (PROMOTE_PROTOTYPES): Remove.
5021 (RETURN_IN_MEMORY): Likewise.
5022 (STRUCT_VALUE): Likewise.
5023
5024 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5025
5026 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
5027 (TARGET_STRUCT_VALUE_RTX): Likewise.
5028 (m68k_struct_value_rtx): Likewise.
5029 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
5030 STRUCT_VALUE_REGNUM.
5031 (PROMOTE_PROTOTYPES): Remove.
5032 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
5033 STRUCT_VALUE_REGNUM.
5034 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
5035 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
5036
5037 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5038
5039 * config/stormy16/stormy16.c
5040 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
5041 TARGET_BUILD_BUILTIN_VA_LIST.
5042
5043 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5044
5045 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
5046 (TARGET_STRUCT_VALUE_RTX): Likewise.
5047 (TARGET_RETURN_IN_MEMORY): Likewise.
5048 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5049 (v850_return_in_memory): Likewise.
5050 (v850_setup_incoming_varargs): Likewise.
5051 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
5052 (SETUP_INCOMING_VARARGS): Likewise.
5053 (RETURN_IN_MEMORY): Likewise.
5054 (STRUCT_VALUE): Likewise.
5055
5056 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5057
5058 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
5059 (fr30_setup_incoming_varargs): Don't use
5060 STRICT_ARGUMENT_NAMING.
5061 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
5062 (STRICT_ARGUMENT_NAMING): Likewise.
5063
5064 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5065
5066 * config/frv/frv-protos.h: Remove the prototype for
5067 frv_expand_builtin_saveregs.
5068 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
5069 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5070 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
5071 STRUCT_VALUE_REGNUM.
5072 (frv_expand_builtin_saveregs): Make it static.
5073 (frv_struct_value_rtx): New.
5074 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
5075
5076 2004-01-29 Jan Hubicka <jh@suse.cz>
5077
5078 PR c++/12850
5079 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
5080 initial pointers.
5081 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
5082 for functions that will be only inlined.
5083 (cgraph_mark_function_to_output): Likewise.
5084 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
5085 do not clear function body.
5086 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
5087 (tree_rest_of_compilation): Reorganize the logic releasing function
5088 body to use callgraph datastructure.
5089
5090 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5091
5092 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
5093 to register_operand.
5094
5095 2004-01-28 Zack Weinberg <zack@codesourcery.com>
5096
5097 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
5098 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
5099 match_operand expressions so that all match_dups appear
5100 lexically after their corresponding match_operands.
5101
5102 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5103
5104 * config/h8300/h8300.c (WORD_REG_USED): Use
5105 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
5106 (compute_saved_regs): Likewise.
5107 (h8300_expand_prologue): Likewise. Allocate locals after
5108 saving registers.
5109 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
5110 of FRAME_POINTER_REGNUM. Deallocate locals before saving
5111 registers.
5112 (h8300_initial_elimination_offset): Adjust for the new frame
5113 layout, which swaps flips the order of locals and saved
5114 registers.
5115 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
5116 (HARD_FRAME_POINTER_REGNUM): New.
5117 (ELIMINABLE_REGS): Add an elimination rule from
5118 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
5119 (REGISTER_NAMES): Add fp.
5120 * config/h8300/h8300.md (FP_REG): Change to 11.
5121 (HFP_REG): New.
5122
5123 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5124
5125 * genrecog.c (write_node): Remove a useless local variable.
5126
5127 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
5128
5129 * Makefile.in (options.c options.h): Use stamp file s-options to
5130 avoid unnecessary rebuilds.
5131 (options.o): New target listing dependencies.
5132 (gtyp-gen.h): Use stamp file s-gtyp-gen.
5133 (STAGESTUFF): Add s-gtyp-gen.
5134
5135 2004-01-28 Richard Henderson <rth@redhat.com>
5136
5137 * ggc.h (ggc_free): Declare.
5138 * ggc-common.c (ggc_realloc): Use it.
5139 * ggc-page.c: Remove lots of inline markers.
5140 (globals): Add free_object_list.
5141 (ggc_alloc): Tidy.
5142 (ggc_free, validate_free_objects): New.
5143 (poison_pages): Provide default.
5144 (ggc_collect): Call validate_free_objects; emit markers to
5145 the debug file.
5146
5147 2004-01-28 Zack Weinberg <zack@codesourcery.com>
5148 Jim Wilson <wilson@specifixinc.com>
5149
5150 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
5151 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
5152 scratch pointer.
5153 (ia64_secondary_reload_class): Delete case GR_REGS.
5154 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
5155 Do not allocate a scratch register.
5156 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
5157
5158 2004-01-28 Jan Hubicka <jh@suse.cz>
5159
5160 * gcse.c (bypass_block): Prevent edges to be unified when we are
5161 about to emit compenstation code.
5162
5163 2004-01-28 Nick Clifton <nickc@redhat.com>
5164
5165 * config/arm/arm.c (arm_expand_builtin): Force second argument of
5166 the setcwx insn into a register.
5167
5168 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
5169
5170 * config/fp-bit.c (pack_d): When using paired doubles to implement
5171 a long double, round the high part separately.
5172 (unpack_d): Fix the case in which the high part is a power of two
5173 and the low part is a nonzero value of the opposite sign.
5174
5175 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5176
5177 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
5178 (TARGET_STRUCT_VALUE_RTX): Likewise.
5179 (c4x_external_libcall): Likewise.
5180 (c4x_struct_value_rtx): Likewise.
5181 * config/c4x/c4x.h: Remove.
5182 (STRUCT_VALUE_REGNUM): Likewise.
5183 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
5184
5185 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
5186
5187 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
5188 (TARGET_STRUCT_VALUE_RTX): Likewise.
5189 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
5190 (STRUCT_VALUE): Likewise.
5191 (PROMOTE_PROTOTYPES): Likewise.
5192
5193 2004-01-27 Roger Sayle <roger@eyesopen.com>
5194
5195 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
5196 CONST_INT before using INTVAL.
5197
5198 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5199
5200 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
5201 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
5202 frame if !TARGET_BACKCHAIN.
5203 * config/s390/s390.md ("allocate_stack"): Use pattern only if
5204 TARGET_BACKCHAIN.
5205 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
5206
5207 2004-01-27 Zack Weinberg <zack@codesourcery.com>
5208
5209 * ia64.c (ia64_function_arg): When placing HFAs in integer
5210 registers, do not special case the mode used for complex
5211 types. Do not advance int_regs until the current register
5212 is full.
5213
5214 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
5215
5216 PR target/7297
5217 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
5218
5219 2004-01-27 David Edelsohn <edelsohn@gnu.org>
5220
5221 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
5222 slow, unaligned loads and stores while debugging. Fix formatting.
5223
5224 2004-01-27 David Edelsohn <edelsohn@gnu.org>
5225
5226 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
5227 of computing wmode.
5228 (restore_stack_nonlocal): Same.
5229
5230 2004-01-27 Devang Patel <dpatel@apple.com>
5231
5232 * Makefile.in (dwarf2out.o): Depend on input.h
5233 * dbxout.c (dbx_debug_hooks): Add new empty hook for
5234 imported_module_or_decl.
5235 (xcoff_debug_hooks): Same.
5236 * sdbout.c (sdb_debug_hooks): Same.
5237 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
5238 * debug.c (do_nothing_debug_hooks): Same.
5239 (debug_nothing_tree_tree): New function.
5240 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
5241 * dwarf2out.c: Include input.h.
5242 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
5243 (remove_child_TAG): New function.
5244 (dwarf_tag_name): Handle DW_TAG_imported_module.
5245 (gen_subprogram_die): Equate decl number to declaration die. Do not
5246 remove all children dies while reusing declaration die for definition.
5247 Instead, selectively remove only formal parameters.
5248 (gen_variable_die): Equate variable decl to declaration die.
5249 (gen_field_die): Equate field decl to line number.
5250 (force_namespace_die): Replace it with ...
5251 (force_decl_die): ... this.
5252 (force_type_die): New function.
5253 (setup_namespace_context): Replace use of force_namespace_die() with
5254 force_decl_die().
5255 (gen_namespace_die): Same.
5256 (dwarf2out_imported_module_or_decl): New function.
5257
5258 2004-01-27 Bob Wilson <bob.wilson@acm.org>
5259
5260 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
5261 on CQImode and CHImode incoming arguments in register a7.
5262 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
5263 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
5264 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
5265 xtensa_copy_incoming_a7 before reload.
5266
5267 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
5268
5269 * coverage.c (get_coverage_counts): Give a different message
5270 if flag_guess_branch_prob is set.
5271 * predict.c (counts_to_freqs): Return an int.
5272 (estimate_bb_frequencies): If counts_to_freqs returns zero,
5273 calculate estimates.
5274
5275 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
5276
5277 * config/iq2000/iq2000-protos.h: Remove the prototype for
5278 iq2000_setup_incoming_varargs.
5279 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5280 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5281 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5282 (TARGET_STRUCT_VALUE_RTX): Likewise.
5283 (TARGET_RETURN_IN_MEMORY): Likewise.
5284 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5285 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5286 (iq2000_return_in_memory): Likewise.
5287 (iq2000_setup_incoming_varargs): Make it static. Receive the
5288 first argument by reference.
5289 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
5290 (PROMOTE_FUNCTION_RETURN): Likewise.
5291 (PROMOTE_PROTOTYPES): Likewise.
5292 (RETURN_IN_MEMORY): Likewise.
5293 (STRUCT_VALUE): Likewise.
5294 (SETUP_INCOMING_VARARGS): Likewise.
5295 (STRICT_ARGUMENT_NAMING): Likewise.
5296
5297 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
5298
5299 * fixinc/fixinc.c (test_test): Initialize res.
5300 (start_flexer): Initialize pz_cmd_save.
5301
5302 2004-01-27 Zack Weinberg <zack@codesourcery.com>
5303
5304 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
5305 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
5306
5307 2004-01-27 Zack Weinberg <zack@codesourcery.com>
5308
5309 PR 7198
5310 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
5311 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
5312 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
5313 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
5314 Possibly rename pattern for consistency.
5315 Remove ??? comments suggesting that this be done.
5316 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
5317 New patterns.
5318 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
5319 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
5320 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
5321 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
5322 Update to match.
5323
5324 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
5325
5326 * config/arm/arm.c (output_return_instruction): Only restore IP
5327 into SP if frame_pointer_needed.
5328
5329 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
5330
5331 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
5332 for SCmode and DCmode if ARCH32.
5333 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
5334 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
5335 if ARCH32.
5336 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
5337 if ARCH32.
5338 (BASE_OUTGOING_VALUE_REG): Likewise.
5339
5340 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
5341
5342 PR target/10904
5343 PR target/13058
5344 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
5345 Forbid mode changes from SImode for lower FP regs if ARCH64.
5346
5347 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
5348
5349 * Makefile.in (bt-load.o): Depend on except.h.
5350 * bt-load.c (except.h): #include.
5351 (compute_defs_uses_and_gen): If insn at end of BB can throw
5352 within this function, consider registers used by it unavailable for
5353 btr migration.
5354 (move_btr_def): If insn at end of BB can throw, insert before rather
5355 than after.
5356
5357 * flags.h (flag_btr_bb_exclusive): Declare.
5358 * toplev.c (flag_btr_bb_exclusive): New variable.
5359 (f_options): Add btr-bb-exclusive.
5360 * bt-load.c (augment_live_range): Restore old behaviour if
5361 flag_btr_bb_exclusive is set.
5362 * common.opt: Add entry for -fbtr-bb-exclusive.
5363 * opts.c (common_handle_options): Same.
5364 * doc/invoke.texi: Document -fbtr-bb-exclusive.
5365
5366 * bt-load.c (btrs_live_at_end): New variable.
5367 (compute_defs_uses_and_gen): Compute its pointed-to array.
5368 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
5369 (augment_live_range): When augmenting with a new dominator,
5370 use only its btrs_live_at_end set, but also add in the full set
5371 of the old dominator.
5372 (btr_def_live_range): Use btrs_live_at_end.
5373 (move_btr_def): Set other_btr_uses_before_def, and move new set
5374 to the end of the basic block, if appropriate.
5375 (migrate_btr_defs): Allocate and free btrs_live_at_end.
5376
5377 * bt-load.c (basic_block_freq): Remove outdated comment.
5378
5379 2004-01-27 Alan Modra <amodra@bigpond.net.au>
5380
5381 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
5382 (PREDICATE_CODES): Remove duplicate.
5383 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
5384 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
5385 (MASK_PROFILE_KERNEL): Adjust define.
5386
5387 2004-01-27 Jakub Jelinek <jakub@redhat.com>
5388
5389 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
5390 of long string literals from 32 bytes to sizeof (void *) when !-Os
5391 and to 1 with -Os.
5392
5393 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5394
5395 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
5396 constant addresses in the normal mode.
5397
5398 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5399
5400 * system.h (CHAR_BITFIELD): Delete.
5401 (BOOL_BITFIELD): New.
5402 * c-decl.c (c_scope): Use BOOL_BITFIELD.
5403 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
5404
5405 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5406
5407 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5408 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5409 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5410 (TARGET_STRUCT_VALUE_RTX): Likewise.
5411 (TARGET_RETURN_IN_MEMORY): Likewise.
5412 (arc_return_in_memory): Likewise.
5413 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
5414 (PROMOTE_FUNCTION_RETURN): Likewise.
5415 (RETURN_IN_MEMORY): Likewise.
5416 (STRUCT_VALUE): Likewise.
5417
5418 2004-01-26 Richard Henderson <rth@redhat.com>
5419
5420 * c-parse.in (extension): Use itype.
5421 (SAVE_EXT_FLAGS): Don't allocate a tree.
5422 (RESTORE_EXT_FLAGS): Don't read a tree.
5423
5424 2004-01-26 Jan Hubicka <jh@suse.cz>
5425
5426 * cselib.c (discard_useless_values): Clear out value pointer pointing
5427 to datastructure to be recycled.
5428
5429 2004-01-25 Jan Hubicka <jh@suse.cz>
5430
5431 * genextract.c (main): Do not output the memset when not checking.
5432
5433 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5434
5435 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
5436 switch statement instead of a chain of if statements.
5437
5438 2004-01-26 Jeff Law <law@redhat.com>
5439
5440 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
5441 acute accents for Petur Runolfsson's entry.
5442
5443 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5444
5445 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
5446 (TARGET_RETURN_IN_MEMORY): Likewise.
5447 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
5448 (RETURN_IN_MEMORY): Likewise.
5449
5450 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5451
5452 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
5453 unaligned load/store into smaller loads and stores.
5454
5455 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5456
5457 * function.c (assign_parms): Do not assign
5458 long long argument to memory in prologue if
5459 is it loaded into register.
5460
5461 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5462
5463 PR middle-end/13779
5464 * expr.c (emit_group_load): split constant
5465 correctly into register components of PARALLEL insn.
5466
5467 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5468
5469 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
5470 Use adjust_address_nv directly with appropriate mode.
5471 (restore_stack_nonlocal): Ditto.
5472
5473 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5474
5475 * config/xtensa/xtensa-protos.h: Remove the prototype for
5476 xtensa_builtin_saveregs.
5477 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5478 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5479 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5480 (TARGET_STRUCT_VALUE_RTX): Likewise.
5481 (TARGET_RETURN_IN_MEMORY): Likewise.
5482 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5483 (xtensa_builtin_saveregs): Make it static.
5484 (xtensa_return_in_memory): New.
5485 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
5486 (PROMOTE_FUNCTION_RETURN): Likewise.
5487 (PROMOTE_PROTOTYPES): Likewise.
5488 (STRUCT_VALUE): Likewise.
5489 (RETURN_IN_MEMORY): Likewise.
5490 (EXPAND_BUILTIN_SAVEREGS): Likewise.
5491
5492 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5493
5494 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
5495 (arm_setup_incoming_varargs): Likewise.
5496 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
5497
5498 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5499
5500 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
5501 (cris_setup_incoming_varargs): Likewise.
5502 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
5503
5504 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5505
5506 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
5507 (ns32k_struct_value_rtx): Likewise.
5508 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
5509 NS32K_STRUCT_VALUE_REGNUM.
5510
5511 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5512
5513 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5514 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5515 (TARGET_STRUCT_VALUE_RTX): Likewise.
5516 (arm_struct_value_rtx): Likewise.
5517 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
5518 (STRUCT_VALUE): Likewise.
5519 (STRUCT_VALUE_REGNUM): Likewise.
5520 (PROMOTE_PROTOTYPES): Likewise.
5521
5522 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5523
5524 * config/ia64/ia64-protos.h: Remove the prototype for
5525 ia64_setup_incoming_varargs and ia64_return_in_memory.
5526 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
5527 (TARGET_RETURN_IN_MEMORY): Likewise.
5528 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5529 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5530 (ia64_setup_incoming_varargs): Adjust the arguments to meet
5531 the requirement of TARGET_SETUP_INCOMING_VARARGS.
5532 (ia64_return_in_memory): Make it static. Change the return
5533 type to bool from int. Add an argument.
5534 (ia64_struct_value_rtx): New.
5535 * config/ia64/ia64.h: Remove commented-out definitions of
5536 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
5537 PROMOTE_PROTOTYPES.
5538 (RETURN_IN_MEMORY): Remove.
5539 (STRUCT_VALUE_REGNUM): Likewise.
5540 (STRICT_ARGUMENT_NAMING): Likewise.
5541
5542 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
5543
5544 PR target/13666
5545 * config/sparc/sparc.c (function_arg_union_value): New function.
5546 (function_arg): Use it to deal with unions.
5547 (function_value): Likewise. Define 'regbase' only for ARCH64.
5548 Replace a conditional statement by a simpler one.
5549
5550 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
5551
5552 * config/mips/mips.c (mips16_optimize_gp): Delete.
5553 (mips_reorg): Don't call it.
5554
5555 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5556
5557 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
5558 (floatunsqihf2): Remove operand 6.
5559 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
5560 fix patterns.
5561 (ldi_conditional, ldf_conditional): Validate operands.
5562
5563 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5564
5565 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
5566 (HAVE_GAS_HIDDEN): Undefine as interim measure.
5567
5568 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5569
5570 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
5571 memory references if TARGET_EXPOSE_LDP nonzero.
5572
5573 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5574
5575 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
5576
5577 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5578
5579 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
5580 invalid operand combinations.
5581
5582 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5583
5584 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
5585 c4x_legitimate_address_p. Fix post_modify check.
5586
5587 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
5588 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
5589
5590 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5591
5592 * config/pa/pa-protos.h: Remove the prototype for
5593 hppa_builtin_saveregs. Add a prototype for
5594 pa_return_in_memory.
5595 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
5596 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5597 (TARGET_STRUCT_VALUE_RTX): Likewise.
5598 (TARGET_RETURN_IN_MEMORY): Likewise.
5599 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5600 (pa_struct_value_rtx): Likewise.
5601 (pa_return_in_memory): Likewise.
5602 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
5603 PA_STRUCT_VALUE_REGNUM.
5604 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
5605 (EXPAND_BUILTIN_SAVEREGS): Remove.
5606 (PROMOTE_PROTOTYPES): Likewise.
5607 (PROMOTE_FUNCTION_RETURN): Likewise.
5608
5609 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5610
5611 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
5612 (TARGET_STRUCT_VALUE_RTX): Likewise.
5613 (vax_struct_value_rtx): Likewise.
5614 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
5615 VAX_STRUCT_VALUE_REGNUM.
5616 (PROMOTE_PROTOTYPES): Remove.
5617
5618 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5619
5620 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
5621
5622 2003-04-25 Chris Demetriou <cgd@broadcom.com>
5623
5624 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
5625 and MIPS64 have HI/LO interlocks. Update comment.
5626
5627 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5628
5629 * config/stormy16/stormy16-protos.h: Remove the prototype for
5630 xstormy16_setup_incoming_varargs.
5631 * config/stormy16/stormy16.c
5632 (xstormy16_setup_incoming_varargs): Remove.
5633 (xstormy16_return_in_memory): New.
5634 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
5635 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5636 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5637 (TARGET_STRUCT_VALUE_RTX): Likewise.
5638 (TARGET_RETURN_IN_MEMORY): Likewise.
5639 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
5640 (PROMOTE_FUNCTION_RETURN): Likewise
5641 (PROMOTE_PROTOTYPES): Likewise
5642 (RETURN_IN_MEMORY): Likewise
5643 (STRUCT_VALUE): Likewise
5644 (SETUP_INCOMING_VARARGS): Likewise
5645
5646 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
5647
5648 * config/mips/mips.c (mips_offset_within_object_p): New function.
5649 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
5650 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
5651 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
5652
5653 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5654
5655 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
5656 (PROMOTE_FUNCTION_RETURN): Likewise.
5657
5658 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5659
5660 * config/mn10300/mn10300-protos.h: Remove the prototype for
5661 mn10300_builtin_saveregs.
5662 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
5663 (TARGET_STRUCT_VALUE_RTX): Likewise.
5664 (TARGET_RETURN_IN_MEMORY): Likewise.
5665 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5666 (mn10300_return_in_memory): Likewise.
5667 (mn10300_builtin_saveregs): Make it static.
5668 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
5669 (RETURN_IN_MEMORY): Likewise.
5670 (STRUCT_VALUE): Likewise.
5671 (EXPAND_BUILTIN_SAVEREGS): Likewise.
5672
5673 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
5674
5675 PR bootstrap/13853
5676 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
5677
5678 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5679
5680 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
5681 using ccr.
5682
5683 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5684
5685 * config/i860/i860-protos.h: Remove the prototype for
5686 i860_saveregs.
5687 * config/i860/i860.c (i860_saveregs): Make it static.
5688 (i860_struct_value_rtx): New.
5689 (TARGET_STRUCT_VALUE_RTX): Likewise.
5690 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5691 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
5692 I860_STRUCT_VALUE_REGNUM.
5693 (EXPAND_BUILTIN_SAVEREGS): Remove.
5694
5695 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5696
5697 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
5698 (TARGET_RETURN_IN_MEMORY): Likewise.
5699 (m68hc11_struct_value_rtx): Likewise.
5700 (m68hc11_return_in_memory): Likewise.
5701 * config/m68hc11/m68hc11.h: Remove a commented-out definition
5702 of PROMOTE_PROTOTYPES.
5703 (RETURN_IN_MEMORY): Remove.
5704 (STRUCT_VALUE_REGNUM): Likewise.
5705
5706 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5707
5708 * config/mmix/mmix-protos.h: Remove the prototype for
5709 mmix_setup_incoming_varargs.
5710 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5711 (TARGET_STRUCT_VALUE_RTX): Likewise.
5712 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5713 (mmix_setup_incoming_varargs): Make it static.
5714 (mmix_struct_value_rtx): New.
5715 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
5716 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
5717 (STRUCT_VALUE_REGNUM): Remove.
5718 (SETUP_INCOMING_VARARGS): Likewise.
5719
5720 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5721
5722 * config/mips/mips-protos.h: Remove the prototypes for
5723 mips_setup_incoming_varargs and mips_return_in_memory.
5724 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5725 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5726 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5727 (TARGET_STRUCT_VALUE_RTX): Likewise.
5728 (TARGET_RETURN_IN_MEMORY): Likewise.
5729 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5730 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5731 (mips_setup_incoming_varargs): Match the prototype for
5732 TARGET_SETUP_INCOMING_VARARGS.
5733 (mips_return_in_memory): Make it static. Add argument fntype.
5734 (mips_strict_argument_naming): New.
5735 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
5736 (PROMOTE_FUNCTION_ARGS): Likewise.
5737 (PROMOTE_FUNCTION_RETURN): Likewise.
5738 (STRUCT_VALUE): Likewise.
5739 (RETURN_IN_MEMORY): Likewise.
5740 (SETUP_INCOMING_VARARGS): Likewise.
5741 (STRICT_ARGUMENT_NAMING): Likewise.
5742
5743 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5744
5745 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
5746 (TARGET_RETURN_IN_MEMORY): Likewise.
5747 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5748 (ip2k_return_in_memory): Likewise.
5749 (ip2k_setup_incoming_varargs): Likewise.
5750 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
5751 (STRUCT_VALUE): Likewise.
5752 (STRUCT_VALUE_INCOMING): Likewise.
5753 (SETUP_INCOMING_VARARGS): Likewise.
5754
5755 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5756
5757 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
5758 (TARGET_RETURN_IN_MEMORY): Likewise.
5759 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5760 (avr_return_in_memory): Remove.
5761 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
5762 (STRUCT_VALUE): Likewise.
5763 (STRUCT_VALUE_INCOMING): Likewise.
5764 (STRICT_ARGUMENT_NAMING): Likewise.
5765
5766 2004-01-25 Jan Hubicka <jh@suse.cz>
5767
5768 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
5769
5770 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
5771
5772 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
5773 (mips_regno_mode_ok_for_base_p): Declare.
5774 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
5775 (FRAME_POINTER_REGNUM): Renumber to 78.
5776 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
5777 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
5778 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
5779 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
5780 (REG_MODE_OK_FOR_BASE_P): Likewise.
5781 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
5782 entry for 77 to "$arg" and entry for 78 to "$frame".
5783 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
5784 (mips_reg_mode_ok_for_base_p): Remove.
5785 (mips_regno_mode_ok_for_base_p): New function, derived from old
5786 BASE_REG_P macro. Don't enforce the mips16 stack pointer
5787 restrictions unless we're being strict.
5788 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
5789
5790 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5791
5792 * c-common.h: Fix comment typos.
5793 * c-decl.c: Likewise.
5794 * cgraphunit.c: Likewise.
5795 * combine.c: Likewise.
5796 * et-forest.c: Likewise.
5797 * flow.c: Likewise.
5798 * function.c: Likewise.
5799 * ifcvt.c: Likewise.
5800 * integrate.c: Likewise.
5801 * jump.c: Likewise.
5802 * postreload.c: Likewise.
5803 * varray.c: Likewise.
5804
5805 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5806
5807 * doc/frontends.texi: Update copyright.
5808 * doc/gcov.texi: Likewise.
5809 * doc/gty.texi: Likewise.
5810 * doc/sourcebuild.texi: Likewise.
5811 * doc/standards.texi: Likewise.
5812
5813 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5814
5815 PR target/12978
5816 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
5817 Remove movstrqi_small because it conflicts with movstrqi_large.
5818
5819 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5820
5821 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5822 (TARGET_STRUCT_VALUE_RTX): Likewise.
5823 (cris_struct_value_rtx): Likewise.
5824 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
5825 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
5826 STRUCT_VALUE_REGNUM.
5827 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
5828
5829 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
5830
5831 PR bootstrap/13848
5832 * cse.c (cse_cc_succs): Change the mode of the source expression
5833 as soon as decide we need a new mode. Don't permit changing modes
5834 if we found a match in a successor block.
5835 (cse_condition_code_reg): Save original mode of source expression
5836 so that we know whether we have to change the mode in other
5837 insns.
5838
5839 2004-01-24 Jan Hubicka <jh@suse.cz>
5840
5841 * emit-rtl.c (change_address, adjust_address_1, offset_address,
5842 widen_memory_access): Return early when there is nothing to change.
5843
5844 2004-01-24 Jakub Jelinek <jakub@redhat.com>
5845
5846 * simplify-rtx.c (simplify_relational_operation): Don't
5847 simplify address == constant into address + -constant == 0.
5848
5849 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5850
5851 * gcc.c (process_command): Don't internationalize the
5852 Copyright message.
5853 * mips-tfile.c (main): Likewise.
5854
5855 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
5856
5857 * cse.c: (cse_cc_succs) Fix comparison warning.
5858
5859 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5860
5861 * config/h8300/h8300.md: Remove extraneous USE in expanders.
5862
5863 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5864
5865 * config/h8300/h8300-protos.h: Provide prototypes for
5866 h8300_legitimate_constant_p and h8300_legitimate_address_p.
5867 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
5868 (h8300_rtx_ok_for_base_p): Likewise.
5869 (h8300_legitimate_address_p): Likewise.
5870 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
5871 h8300_legitimate_constant_p.
5872 (RTX_OK_FOR_BASE_P): Remove.
5873 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
5874
5875 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5876
5877 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
5878 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
5879 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
5880 (REG_OK_FOR_BASE_STRICT_P): Likewise.
5881 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
5882 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
5883 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
5884 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
5885
5886 2004-01-24 Jan Hubicka <jh@suse.cz>
5887
5888 * cselib.c (remove_useless_values): Do not access discarded values.
5889
5890 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
5891
5892 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
5893 arrays.
5894
5895 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
5896
5897 * recog.c: Fix a typo in copyright.
5898
5899 2004-01-23 Andrew Pinski <apinski@apple.com>
5900
5901 * config/rs6000/rs6000.md (call): Fix misappiled patch.
5902 (call_value): Likewise.
5903
5904 2004-01-23 Richard Henderson <rth@redhat.com>
5905
5906 PR opt/12941
5907 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
5908 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
5909 if SHIFT_COUNT_TRUNCATED is set.
5910
5911 2004-01-23 Bob Wilson <bob.wilson@acm.org>
5912
5913 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
5914 separate real and imaginary parts.
5915 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
5916
5917 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
5918
5919 PR target/13674
5920 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
5921 loading into GPR.
5922
5923 2004-01-23 Jan Hubicka <jh@suse.cz>
5924
5925 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
5926 change.
5927
5928 * alloc-pool.c (align_four): Kill.
5929 (create_alloc_pool): Align size to eight.
5930 (free_alloc_pool, free_pool): Invalidate deallocated data.
5931
5932 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
5933
5934 PR gcc/1532
5935 * cse.c (cse_change_cc_mode): New static function.
5936 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
5937 (cse_condition_code_reg): New function.
5938 * rtl.h (cse_condition_code_reg): Declare.
5939 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
5940 * target.h (struct gcc_target): Add fixed_condition_code_regs and
5941 cc_modes_compatible.
5942 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5943 (TARGET_CC_MODES_COMPATIBLE): Define.
5944 (TARGET_INITIALIZER): Add new initializers.
5945 * targhooks.c (default_cc_modes_compatible): New function.
5946 * targhooks.c (default_cc_modes_compatible): Declare.
5947 * hooks.c (hook_bool_intp_intp_false): New function.
5948 * hooks.h (hook_bool_intp_intp_false): Declare.
5949 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5950 (TARGET_CC_MODES_COMPATIBLE): Define.
5951 (ix86_fixed_condition_code_regs): New static function.
5952 (ix86_cc_modes_compatible): Likewise.
5953 * doc/tm.texi (Condition Code): Document new hooks.
5954
5955 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5956
5957 * fixinc/inclhack.def (bad_lval): Renamed to ...
5958 (alpha_bad_lval): ... this.
5959 Removed file list.
5960 Restrict to alpha*-dec-osf*.
5961 * fixinc/fixincl.x: Regenerate.
5962 * fixinc/tests/base/dirent.h: Remove, moving test ...
5963 * fixinc/tests/base/testing.h: ... here, reflecting new name.
5964
5965 2004-01-23 Zack Weinberg <zack@codesourcery.com>
5966
5967 PR c/13814
5968 * c-decl.c (diagnose_mismatched_decls): Also discard a
5969 built-in if we encounter an old-style definition with the
5970 same name.
5971
5972 2004-01-23 Jakub Jelinek <jakub@redhat.com>
5973
5974 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
5975 set to default{32,64}.
5976
5977 2004-01-21 Jakub Jelinek <jakub@redhat.com>
5978
5979 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
5980 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
5981
5982 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
5983 Olivier Hainque <hainque@act-europe.fr>
5984
5985 * fold-const.c (fold_binary_op_with_conditional_arg): Only
5986 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
5987
5988 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
5989
5990 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
5991 size for minipool references.
5992
5993 2004-01-23 Roger Sayle <roger@eyesopen.com>
5994
5995 * real.c (real_floor, real_ceil): Tweak to allow input and output
5996 arguments to overlap.
5997 (real_round): New function to implement round(3m) semantics.
5998 * real.h (real_round): Prototype here.
5999 * builtins.c (fold_builtin_round): New function to constant fold
6000 round, roundf and roundl.
6001 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
6002
6003 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
6004
6005 PR optimization/13819
6006 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
6007 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
6008 (sh_handle_sp_switch_attribute): Remove warning.
6009
6010 2003-11-30 Jan Hubicka <jh@suse.cz>
6011
6012 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
6013
6014 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
6015
6016 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
6017 may or may not return non-NIL.
6018 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
6019 check CANNOT_CHANGE_MODE_CLASS
6020
6021 2004-01-23 Jan Hubicka <jh@suse.cz>
6022
6023 * basic-block.h (PROP_POSTRELOAD): New macro.
6024 (CLEANUP_LOG_LINKS): New.
6025 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
6026 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
6027
6028 * cselib.c (value_pool): New.
6029 (new_cselib_val): Use pool.
6030 (cselib_init): Initialize value_pool
6031 (cselib_finish): Free pool.
6032
6033 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6034
6035 * config/sparc/sparc.c (scan_record_type): New function.
6036 (function_arg_slotno): Use it to determine which kinds of
6037 registers the record can be passed in.
6038
6039 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
6040
6041 * config/pa/fptr.c: Fix old-style definition.
6042
6043 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
6044
6045 PR optimization/13724
6046 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
6047 represents the zero bits produced by a ZERO_EXTEND operation.
6048
6049 2004-01-22 Roger Sayle <roger@eyesopen.com>
6050
6051 PR optimization/13821
6052 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
6053 correctly calculate the lowpart offset of the contracted subreg.
6054
6055 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
6056
6057 * doc/invoke.texi (Optimize Options): Note that --param arguments
6058 are subject to change without notice.
6059
6060 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6061
6062 * config.gcc (mips-sgi-irix6*o32): Removed.
6063 * config/mips/iris6-o32-as.h: Likewise.
6064 * config/mips/iris6-o32-gas.h: Likewise.
6065 * config/mips/iris6-o32.h: Likewise.
6066
6067 2004-01-22 Jan Hubicka <jh@suse.cz>
6068
6069 * cfgcleanup.c (first_pass): New static variable.
6070 (try_forward_edges): Add work limiting check for threading.
6071 (try_crossjump_bb): Add work limiting check for crossjumping.
6072 (try_optimize_cfg): Maintain first pass variable.
6073
6074 2004-01-22 Bob Wilson <bob.wilson@acm.org>
6075
6076 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
6077 handles complex and vector modes.
6078
6079 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
6080
6081 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
6082 (REG_OK_FOR_BASE_P_STRICT): Likewise.
6083 (STRICT): Likewise.
6084
6085 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
6086
6087 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
6088 (genrtl_for_stmt): Remove emit_nop calls.
6089
6090 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6091
6092 PR target/13713
6093 PR target/13324
6094 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
6095 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
6096 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
6097
6098 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
6099
6100 * config/arm/arm.c: Include "debug.h".
6101 (thumb_pushpop): Take two new arguments. Add some commentary.
6102 Output frame information when pushing.
6103 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
6104 thumb_pushpop.
6105 (thumb_output_function_prologue): Likewise. Accumulate a CFA
6106 offset, and pass it to thumb_pushpop. Output CFI information.
6107 (thumb_expand_prologue): Add some frame-related markers and notes.
6108
6109 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
6110
6111 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
6112 for TARGET_64BIT.
6113 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
6114 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
6115
6116 2004-01-22 Roger Sayle <roger@eyesopen.com>
6117 Paolo Bonzini <bonzini@gnu.org>
6118
6119 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
6120 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
6121 * rtl.h (subreg_lsb_1): Prototype here.
6122 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
6123 sign extensions.
6124
6125 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
6126
6127 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
6128 macro need not be defined if jump-tables should contain
6129 relative addresses only when -fPIC or -fPIC is in effect.
6130
6131 2004-01-22 Jan Hubicka <jh@suse.cz>
6132
6133 * alias.c (reg_base_value): Turn into varray.
6134 (reg_base_value_size): Kill.
6135 (old_reg_base_value): New deletable varray.
6136 (alias_invariant_size): New variable.
6137 (REG_BASE_VALUE): Update to use varray.
6138 (find_base_value): Likewise.
6139 (record_set): Likewise.
6140 (record_base_value): Likewise.
6141 (memrefs_conflict_p): Likewise.
6142 (record_set): Likewise
6143 (record_base_value): Likewise.
6144 (memrefs_conflict_p): Use alias_invariant_size.
6145 (init_alias_analysis): Use varray; set alias_invariant_size;
6146 rescale other arrays to be sized by maxreg.
6147 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
6148
6149 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6150
6151 * config/sparc/sparc.c (function_arg_slotno): Use
6152 FLOAT_TYPE_P to detect FP fields in structures.
6153 (function_arg_record_value_1): Likewise.
6154 (function_arg_record_value_2): Likewise.
6155
6156 2004-01-22 Jan Hubicka <jh@suse.cz>
6157
6158 * function.c (allocate_struct_function): Do not initialize expr, emit
6159 and varasm.
6160 (prepare_function_start): Do it here.
6161 * c-parse.in (maybe_type_qual): Do not produce line number notes.
6162
6163 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6164
6165 PR target/13559
6166 * config/sparc/sparc.c (function_arg_record_value_3): Revert
6167 to 'word_mode' once the first slot has been filled.
6168
6169 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
6170
6171 * config/sparc/sparc.c (function_arg_record_value_1): Fix
6172 computation of the number of integer registers required.
6173
6174 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
6175
6176 * config/i386/i386.md: Simplify certain comparisons of
6177 const_int.
6178
6179 2004-01-21 Andrew Pinski <apinski@apple.com>
6180
6181 PR target/13785
6182 * config/rs6000/rs6000.md (call_value): Force operand
6183 1 not operand 0 into a register.
6184
6185 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
6186
6187 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
6188 unwind-dw2-fde.h: Update copyright.
6189
6190 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6191
6192 * pa-protos.h: Update copyright.
6193 * pa.h: Likewise.
6194 * pa.md: Likewise.
6195
6196 2004-01-21 Caroline Tice <ctice@apple.com>
6197
6198 PR target/12308
6199 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
6200 flags register.
6201 (fix_truncdfdi2): Likewise.
6202 (fix_truncsfdi2): Likewise.
6203 (*fix_truncdi_1): Likewise.
6204 (fix_truncxfsi2): Likewise.
6205 (fix_truncdfsi2): Likewise.
6206 (fix_truncsfsi2): Likewise.
6207 (*fix_truncsi_1): Likewise.
6208 (fix_truncxfhi2): Likewise.
6209 (fix_truncdfhi2): Likewise.
6210 (fix_truncsfhi2): Likewise.
6211 (*fix_trunchi_1): Likewise.
6212
6213 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
6214
6215 * alias.c, basic-block.h, c-common.c, c-common.h,
6216 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
6217 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
6218 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
6219 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
6220 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
6221 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
6222 genautomata.c, genconditions.c, genemit.c, genflags.c,
6223 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
6224 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
6225 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
6226 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
6227 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
6228 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
6229 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
6230 unwind.h, varray.c, varray.h: Update copyright.
6231
6232 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
6233
6234 * config/h8300/coff.h: Update copyright.
6235 * config/h8300/elf.h: Likewise.
6236 * config/h8300/h8300-protos.h: Likewise.
6237 * config/h8300/h8300.c: Likewise.
6238 * config/h8300/h8300.h: Likewise.
6239 * config/h8300/h8300.md: Likewise.
6240
6241 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6242
6243 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
6244 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
6245 ultrix_unistd): New hacks.
6246 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
6247 ULTRIX_CONST2_CHECK): Add checks.
6248 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
6249 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
6250 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
6251 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
6252 * fixinc/tests/base/locale.h: New file.
6253 * fixinc/fixincl.x: Rebuilt.
6254
6255 2004-01-21 Andreas Jaeger <aj@suse.de>
6256 Michael Matz <matz@suse.de>
6257
6258 * doc/extend.texi (Extended Asm): Clarify memory clobber.
6259
6260 2004-01-21 Jakub Jelinek <jakub@redhat.com>
6261
6262 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
6263 _Jv_RegisterClasses through a function pointer.
6264
6265 2004-01-21 Falk Hueffner <falk@debian.org>
6266
6267 PR target/12898
6268 * config/alpha/alpha.c (alpha_emit_set_const_1): If
6269 no_new_pseudos, use gen_rtx_SET directly for SImode constants
6270 which need multiple instructions to emit.
6271
6272 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
6273
6274 * config/m32r/m32r.h (CPP_SPEC): Define.
6275
6276 2004-01-21 Zack Weinberg <zack@codesourcery.com>
6277
6278 * c-decl.c (merge_decls): Kill different_binding_level and
6279 different_tu arguments; simplify throughout.
6280 (duplicate_decls): Likewise.
6281 (pushdecl, merge_translation_unit_decls): Update calls to
6282 duplicate_decls.
6283
6284 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6285
6286 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
6287 $(SYSTEM_H).
6288 (print-rtl1.o): Depend on $(SYSTEM_H).
6289
6290 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
6291
6292 PR bootstrap/12730
6293 * configure.ac: Delete definition and subsitution of docdir.
6294 Add info, man, srcman and srcinfo to target hooks. Create doc/
6295 directory.
6296 * configure: Regenerate.
6297 * Makefile.in: Don't substitute docdir and delete all references
6298 throughout.
6299 (MAKEINFOFLAGS): Define.
6300 (stmp-docobjdir): Delete.
6301 (INFOFILES, MANFILES): Define.
6302 (info): Call lang.info, srcinfo and lang.srcinfo.
6303 (generated-manpages): Call lang.man, srcman and lang.srcman.
6304 (srcinfo, srcman): New rules to copy back files to source directory.
6305 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
6306 (install-man): Revamp rule.
6307 (clean): Update dvi directory.
6308 (distclean): Delete TAGS from front end directorys.
6309 (maintainer-clean): Delete all document files in source directory.
6310
6311 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
6312 (objc.srcman, objc.srcinfo): Likewise.
6313
6314 2004-01-20 Bruce Korb <bkorb@gnu.org>
6315
6316 * fixinc/inclhack.def(math_exception): bypass only for glibc.
6317 (matherr_decl): rename & relocate as exception_structure.
6318 This fix must precede the math_exception fix.
6319
6320 2004-01-20 Roger Sayle <roger@eyesopen.com>
6321
6322 * fold-const.c (fold_convert): Rename to fold_convert_const.
6323 (fold_convert_const): Change arguments to take a tree_code,
6324 a type and the operand/expression to be converted. Return
6325 NULL_TREE if no simplification is possible. Add support for
6326 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
6327 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
6328 Adjust call to fold_convert to match new fold_convert_const.
6329 Avoid modifying the tree passed to fold in-place.
6330
6331 2004-01-21 Alan Modra <amodra@bigpond.net.au>
6332
6333 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
6334 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
6335 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
6336
6337 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6338
6339 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
6340 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
6341 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
6342 (emit_move_sequence): Check scratch_reg first in various if statements.
6343 Extend source simplification to handle all 64-bit CONST_INTs.
6344 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
6345 frame size.
6346 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
6347 frame offset calculations.
6348 * pa.h (NEW_HP_ASSEMBLER): Add comment.
6349 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
6350 LEGITIMATE_64BIT_CONST_INT_P): Define.
6351 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
6352 any CONST_INT as legitimate during and after reload.
6353 (VAL_32_BITS_P, INT_32_BITS): Define.
6354 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
6355
6356 2004-01-20 Jan Hubicka <jh@suse.cz>
6357
6358 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
6359 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
6360 containing hard regs are shared.
6361 (gen_hard_reg_clobber): New function.
6362 (hard_reg_clobbers): New array.
6363 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
6364 (copy_rtx): Do not copy clobbers containing hard regs.
6365 * rtl.h (gen_hard_reg_clobber): Declare.
6366
6367 2004-01-20 Jan Hubicka <jh@suse.cz>
6368
6369 * varray.c: Include hashtab.h
6370 (varray_descriptor): New structure.
6371 (hash_descriptor, eq_descriptor, varray_descriptor,
6372 print_statistics): New static functions
6373 (varray_init, varray_grow): Update statistics
6374 (dump_varray_statistics): New function.
6375 * varray.h (dump_varray_statistics): Declare.
6376 * toplev.c (finalize): Call it.
6377 * Makefile.in (varray.o): Add dependency.
6378
6379 2004-01-20 Jan Hubicka <jh@suse.cz>
6380
6381 * cselib.c: Include alloc-pool.h
6382 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
6383 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
6384 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
6385 unchain_one_elt_loc_list_pool, unchain_one_value,
6386 new_cselib_val): Simplify using allocpool.
6387 (cselib_init): Initialize allocpools.
6388 (cselib_finish): Finish allocpools.
6389 * Makefile.in (cselib.o): Depend on alloc-pool.h
6390
6391 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
6392
6393 * config/mips/mips.c (mips_load_call_address): Make the call insn
6394 use $gp if it could be calling a lazy binding stub.
6395
6396 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
6397
6398 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
6399 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6400 (TARGET_STRUCT_VALUE_RTX): Likewise.
6401 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
6402 (PROMOTE_FUNCTION_RETURN): Remove.
6403 (STRUCT_VALUE): Remove.
6404
6405 2004-01-20 Denis Chertykov <denisc@overta.ru>
6406
6407 PR bootstrap/13735
6408 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
6409 register as pointer after reload.
6410
6411 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6412
6413 PR optimization/12440
6414 * loop.c: Include ggc.h.
6415 (loop_optimize): Run garbage collector between optimization of loops.
6416 * Makefile.in (loop.o): Add GGC_H dependency.
6417
6418 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
6419
6420 * gcc/config/rs6000/rs6000.c (function_arg) Handle
6421 vector register special in function without prototype.
6422 (function_arg_advance): Vector parameters get always
6423 GPRs allocated for the linux64 target.
6424
6425 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6426
6427 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
6428 not TARGET_M32RX_MASK.
6429
6430 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
6431
6432 PR target/13557
6433 * config/sparc/sparc.c (function_arg): Reorder the cases.
6434
6435 2004-01-19 Per Bothner <per@bothner.com>
6436
6437 Move cpp_reader's line_maps field to a shared global.
6438 * cpphash.h (cpp_reader): Rename line_maps field to line_table
6439 and change the type to a pointer rather than a struct.
6440 * cppinit.c (cpp_push_main_field): Adjust accordingly.
6441 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
6442 Likewise.
6443 * cppfiles.c (validate_pch): Likewise.
6444 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
6445 Likewise.
6446 * cpperror.c (print_location): Likewise.
6447 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
6448 * cppinit.c (cpp_create_reader): Handle new parameter.
6449 (cpp_destroy): Don't free line_maps - that's no longer our job.
6450 * input.h (line_table): New variable.
6451 * toplev.c (line_table): Declare variable.
6452 (general_init): Initialize line_table.
6453 * c-opts.c (c_common_init_options): Pass line_table to
6454 cpp_create_reader.
6455 * fix-header.c (read_scan_file): New local variable line_table.
6456 Initialize, and pass it to cpp_create_reader.
6457 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
6458 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
6459
6460 2004-01-19 Per Bothner <per@bothner.com>
6461
6462 Implement a cache for linemap_lookup.
6463 * line-map.h (struct_line_maps): Add cache field.
6464 * line-map.c (linemap_init): Zero cache field.
6465 (linemap_add): Set cache field to offset of newly allocated map.
6466 (linemap_lookup): Use and set cache field.
6467
6468 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
6469
6470 PR optimization/13567
6471 * cse.c (cse_basic_block): Call cse_insn with a non-null
6472 libcall_insn for the last SET insn of a no-confilict block.
6473
6474 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
6475
6476 * Makefile.in (target_noncanonical, program_transform_name): Use
6477 immediate define instead of deferred.
6478 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
6479 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
6480 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
6481 deferred backquote.
6482
6483 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
6484
6485 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
6486 true unconditionally.
6487 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
6488 Remove.
6489 (build_unary_op, build_modify_expr): Don't handle extended
6490 lvalues.
6491 (build_component_ref, build_conditional_expr): Call non_lvalue
6492 instead of pedantic_non_lvalue.
6493 (build_c_cast): Don't condition use of non_lvalue on pedantic.
6494 * fold-const.c (fold): Don't check pedantic directly for
6495 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
6496 passed to pedantic_non_lvalue.
6497 * doc/extend.texi: Remove documentation of extended lvalues.
6498
6499 2004-01-19 Roger Sayle <roger@eyesopen.com>
6500
6501 PR optimization/5263
6502 * simplify-rtx.c (associative_constant_p): Delete.
6503 (simplify_associative_operation): Rewrite to linearize terms, and
6504 attempt to simplify new term against both left and right subterms.
6505 (simplify_binary_operation): Call swap_commutative_operands_p on
6506 op0 and op1, not trueop0 and trueop1. Move the initialization of
6507 trueop0 and trueop1 down to where first needed.
6508 (simplify_relational_operation): Likewise.
6509 * rtlanal.c (commutative_operand_precedence): Also order constant
6510 operands using avoid_constant_pool_reference.
6511
6512 2004-01-19 Richard Henderson <rth@redhat.com>
6513
6514 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
6515 don't check memory mode.
6516 (unaligned_memory_operand): Likewise.
6517 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
6518 abort for op0 not MEM.
6519
6520 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
6521 is not a reg, copy to a scratch first.
6522 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
6523 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
6524 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
6525 (reload_inqi, reload_inhi): Fix mode of op0.
6526 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
6527 reload_outhi_help): Likewise. Use define_insn_and_split.
6528
6529 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
6530 as well as $29 dead.
6531
6532 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
6533
6534 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
6535 "tls_object" for thread-local objects.
6536 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
6537 "#tls" for thread-local sections.
6538 * configure.ac (thread-local checks): Specify --fatal-warnings in
6539 every binutils-specific checks. For sparc*-*-*, test whether the
6540 OS is Solaris and the tools are native and act accordingly.
6541 * configure: Rebuild.
6542
6543 2004-01-19 Jeff Law <law@redhat.com>
6544
6545 * contrib.texi: Update Paolo Carlini's entry. New entries for
6546 Jerry Quinn and Petur Runolfsson.
6547
6548 2004-01-19 Roger Sayle <roger@eyesopen.com>
6549
6550 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
6551 size, don't use the larger zero-extending loads.
6552
6553 2004-01-19 Richard Henderson <rth@redhat.com>
6554
6555 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
6556 * alpha.md (UNSPEC_NT_LDA): Remove.
6557 (UNSPEC_CVTLQ, cvtlq): New.
6558 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
6559 (extendsidi2_fix): Remove.
6560 (extendsidi2 splitter): Use cvtlq.
6561 (extendsidi2 fp peepholes): Remove.
6562 (cvtql): Use SFmode instead of SImode.
6563 (fix_trunc?fsi): Update to match.
6564 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
6565 (movsi): Rename from movsi_nofix, remove f alternatives.
6566 (movsi_nt_vms): Similarly.
6567 (movsi_fix, movsi_nt_vms_fix): Remove.
6568 (nt_lda): Remove.
6569 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
6570
6571 2004-01-19 Jan Hubicka <jh@suse.cz>
6572
6573 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
6574 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
6575 list.
6576 (cgraph_remove_unreachable_nodes): New function
6577 (cgraph_decide_inlining_of_small_function): Fix pasto.
6578 (cgraph_decide_inlining_incrementally): Fix pasto.
6579 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
6580
6581 2004-01-19 Steven Bosscher <stevenb@suse.de>
6582
6583 * gengtype.c (header_file): Make it static.
6584 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
6585 * gengtype.h (header_file): No longer extern.
6586
6587 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6588
6589 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
6590 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
6591 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
6592
6593 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6594
6595 * stmt.c (HAVE_casesi): Define it not already defined.
6596 (HAVE_tablejump): Likewise.
6597 (expand_end_case_type): Resort to the binary tree method if
6598 neither casesi or tablejump is available.
6599
6600 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
6601
6602 * final.c (final_scan_insn): Make non-static again.
6603 * output.h (final_scan_insn): Re-add prototype.
6604 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
6605 to final_scan_insn call.
6606 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
6607 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
6608 * config/pa/pa.c (output_lbranch, output_call): Likewise.
6609 * config/sh/sh.c (print_slot): Likewise.
6610 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
6611 (output_sibcall, sparc_flat_function_epilogue): Likewise.
6612
6613 2004-01-18 Jan Hubicka <jh@suse.cz>
6614
6615 * basic-block.h (try_redirect_by_replacing_jump): Declare.
6616 * cfgcleanup.c (try_optimize_cfg): Use it.
6617 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
6618 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
6619 Kill hack.
6620 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
6621
6622 Revert:
6623 2004-01-16 Geoffrey Keating <geoffk@apple.com>
6624
6625 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
6626 even after reload, just don't remove the actual jump tables.
6627
6628 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6629
6630 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
6631
6632 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6633
6634 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
6635 the size of a pointer in bytes.
6636
6637 2004-01-18 Roger Sayle <roger@eyesopen.com>
6638
6639 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
6640 live "next" variable, which could lead to an infinite loop.
6641
6642 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
6643
6644 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
6645 block.
6646
6647 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
6648 Check for NULL in the chain and remove repeated code.
6649
6650 2004-01-18 Jan Hubicka <jh@suse.cz>
6651
6652 * coverage.c (checksum_string): Rename to ...
6653 (coverage_checksum_string): ... this one, Use crc32_string; recognize
6654 names containing random number and zero the number out in order to get
6655 match.
6656
6657 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
6658
6659 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
6660
6661 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
6662
6663 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
6664 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
6665 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
6666 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
6667 doc/trouble.texi: Remove trailing whitespace.
6668
6669 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
6670
6671 PR target/7618
6672 * config/mips/mips.c: Include cfglayout.h.
6673 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6674 (mips_unspec_offset_high): Add temporary register argument.
6675 (mips_load_call_address): New function, split out from...
6676 (mips_expand_call): ...here.
6677 (mips_output_cplocal): New function.
6678 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
6679 (mips_emit_loadgp): New function, split out from...
6680 (mips_expand_prologue): ...here.
6681 (mips_output_mi_thunk): New function.
6682
6683 2004-01-17 Bernardo Innocenti <bernie@develer.com>
6684
6685 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
6686 mcpu32): Remove redundant checks for implied target predefines.
6687
6688 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
6689
6690 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
6691 Return type is unsigned int not int.
6692 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
6693 Likewise.
6694
6695 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
6696
6697 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
6698 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
6699 "GNU/Linux" and "Microsoft Windows" terminology.
6700
6701 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
6702
6703 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
6704 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
6705 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
6706 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
6707 @smallexample instead of @example.
6708
6709 2004-01-17 Ziemowit Laski <zlaski@apple.com>
6710
6711 * objc/objc-act.c (build_objc_method_call): Use target
6712 hooks instead of macros to determine if ..._stret
6713 dispatchers should be used (NeXT runtime only).
6714
6715 2004-01-17 Roger Sayle <roger@eyesopen.com>
6716
6717 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
6718 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
6719
6720 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6721
6722 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
6723 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
6724 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
6725 macros.
6726 * reload1.c (emit_reload_insns): Use them.
6727 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
6728 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
6729 for NULL PATTERN.
6730
6731 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6732
6733 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
6734 (final_scan_insn): Update to take an additional SEEN argument. Emit
6735 a line note after the prologue. Make static.
6736 (line_note_exists): Remove.
6737 (final): Don't initialize line_note_exists. Update call to
6738 final_scan_insn.
6739 * output.h (final_scan_insn): Remove prologue.
6740 * function.c (set_insn_locators): Update comment.
6741 (thread_prologue_and_epilogue_insns): Add a comment.
6742
6743 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
6744
6745 PR target/10781
6746 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
6747 Prototype.
6748 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
6749 New function.
6750 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
6751 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
6752 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
6753
6754 2004-01-17 Jan Hubicka <jh@suse.cz>
6755
6756 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
6757 commit.
6758
6759 * toplev.c (HAVE_conditional_execution): Provide default.
6760 (rest_of_handle_reorder_blocks): For conditional_execution target
6761 update liveness once after all transformations
6762 (rest_of_compilation): Do crossjumping before ce3.
6763
6764 2004-01-17 Geoffrey Keating <geoffk@apple.com>
6765
6766 * alias.c (new_alias_set): Mark last_alias_set for PCH.
6767 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
6768 for PCH.
6769 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
6770 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
6771 (get_TOC_alias_set): Mark 'set' for PCH.
6772
6773 2004-01-16 Geoffrey Keating <geoffk@apple.com>
6774
6775 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
6776 even after reload, just don't remove the actual jump tables.
6777
6778 2004-01-17 J. Brobecker <brobecker@gnat.com>
6779
6780 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
6781 Remove checks for is_ada() and TREE_UNSIGNED.
6782 (subrange_type_die): Emit a byte_size attribute if the subrange
6783 type size is different from the base type size.
6784 (modified_type_die): Replace call to is_ada_subrange_type() by
6785 call to is_subrange_type().
6786
6787 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
6788
6789 * config/sh/sh.c: Include ggc.h.
6790
6791 2004-01-16 Geoffrey Keating <geoffk@apple.com>
6792
6793 * Makefile.in (MD5_H): New.
6794 (fold-const.o): Depend on md5.h.
6795 (dwarf2out.o): Likewise.
6796 (cppfiles.o): Likewise.
6797 * cppfiles.c: Include md5.h.
6798 (should_stack_file): Check against list read from PCH file.
6799 (struct pchf_data): New.
6800 (pchf): New variable.
6801 (struct pchf_adder_info): New.
6802 (pchf_adder): New.
6803 (pchf_save_compare): New.
6804 (_cpp_save_file_entries): New.
6805 (_cpp_read_file_entries): New.
6806 (struct pchf_compare_data): New.
6807 (pchf_compare): New.
6808 (check_file_against_entries): New.
6809 * cpphash.h (_cpp_save_file_entries): Prototype.
6810 (_cpp_read_file_entries): Prototype.
6811 * cpppch.c (cpp_write_pch_state): Write the list of headers.
6812 (cpp_read_state): Read the list of headers.
6813
6814 2004-01-17 Jan Hubicka <jh@suse.cz>
6815
6816 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
6817 builtin_expect specially.
6818 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
6819 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
6820 * invoke.texi (max-inline-insns-single): Set to 100.
6821 (large-function-insns): Set to 3000.
6822
6823 2004-01-16 Eric Christopher <echristo@redhat.com>
6824 Chandrakala Chavva <cchavva@redhat.com>
6825
6826 * cppcharset.c (one_iso88591_to_utf8): New function.
6827 (convert_iso88591_utf8): Ditto. Use.
6828 (conversion_tab): Use.
6829 (_cpp_input_to_utf8): New function.
6830 (_cpp_init_iconv_buffer): Ditto.
6831 (_cpp_close_iconv_buffer): Ditto.
6832 * cpphash.h: Prototype new functions.
6833 (cpp_buffer): Add input_cset_desc.
6834 * cppinit.c: Add input_charset default.
6835 * cpplib.c (cpp_push_buffer): Support init and
6836 close of iconv.
6837 * cpplib.h (cpp_options): Add input_charset.
6838
6839 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6840
6841 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
6842 * config/alpha/unicosmk.h: Remove a commented-out definition
6843 of ASM_OUTPUT_SECTION_NAME.
6844 * config/stormy16/stormy16.h: Likewise.
6845
6846 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6847
6848 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
6849 (alpha___extern_prefix_sys_stat): ... this.
6850 Apply to <sys/mount.h>, too.
6851 Tweak to match more variations.
6852 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
6853
6854 * fixinc/inclhack.def (alpha___extern_prefix,
6855 alpha___extern_prefix_standards): New hacks to obey
6856 __PRAGMA_EXTERN_PREFIX.
6857 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
6858 test.
6859 * fixinc/tests/base/standards.h: Likewise.
6860
6861 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
6862 variations.
6863 New testcase.
6864 * fixinc/tests/base/pthread.h: Handle it.
6865
6866 * fixincl/inclhack.def (bad_lval): Sort file list.
6867 Add many missing files up to Tru64 UNIX V5.1B.
6868 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
6869 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
6870 order.
6871
6872 * fixinc/fixincl.x: Regenerate.
6873
6874 2004-01-16 Mark Mitchell <mark@codesourcery.com>
6875
6876 * version.c (version_string): Change to 3.5.0.
6877 * doc/include/gcc-common.texi (version-GCC): Likewise.
6878
6879 2004-01-16 Jan Hubicka <jh@suse.cz>
6880
6881 * i386.md (load_tp_di): Fix pasto.
6882
6883 PR opt/13608
6884 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
6885
6886 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
6887 pp_c_character_constant, pp_c_floating_constant,
6888 pp_c_additive_expression, pp_c_shift_expression,
6889 pp_c_equality_expression, pp_c_and_expression,
6890 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
6891 pp_c_logical_and_expression): Remove inline modifier.
6892 * dwarf2out.c (get_AT): Likewise.
6893 * et-forest.c (et_splay): Likewise.
6894 * ra.h (ra_alloc, ra_calloc): Likewise
6895
6896 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6897
6898 * config/frv/frv-protos.h: Fix comment formatting.
6899 * config/frv/frv.c: Likewise.
6900 * config/frv/frv.h: Likewise.
6901 * config/frv/frv.md: Likewise.
6902 * config/frv/frvbegin.c: Likewise.
6903 * config/frv/frvend.c: Likewise.
6904
6905 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6906
6907 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
6908 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
6909 LINKER_DOES_NOT_WORK_WITH_DWARF2.
6910 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
6911
6912 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
6913
6914 PR 11864
6915 * postreload.c (reload_cse_simplify_operands): Don't remove
6916 implicit extension from LOAD_EXTEND_OP.
6917
6918 2004-01-16 Jan Hubicka <jh@suse.cz>
6919
6920 PR opt/11350
6921 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
6922 after reload.
6923 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
6924 rtl_try_redirect_by_replacing_branch): Likewise.
6925
6926 2004-01-15 Geoffrey Keating <geoffk@apple.com>
6927
6928 PR pch/13689
6929 * alias.c (struct alias_set_entry): Mark for GC.
6930 (alias_sets): Make static, mark for GC.
6931 (record_alias_subset): Use GC to allocate alias structures.
6932 * varray.c (element): Make generic varrays GCed.
6933
6934 PR pch/13361
6935 * c-typeck.c (constructor_asmspec): Delete.
6936 (struct initializer_stack): Delete field 'asmspec'.
6937 (start_init): Delete saving of asmspec.
6938 (finish_init): Don't update constructor_asmspec.
6939 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6940 * stmt.c (expand_asm): Duplicate strings from tree.
6941 (expand_asm_operands): Likewise.
6942 * tree.c (tree_size): Update computation of size of STRING_CST.
6943 (make_node): Don't make STRING_CST nodes.
6944 (build_string): Allocate string with tree node.
6945 * tree.def (STRING_CST): Update comment.
6946 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6947 (tree_string): Place contents of string in tree node.
6948 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6949 from tree.
6950
6951 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
6952 altivec operands.
6953
6954 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6955
6956 * c-common.h: Fix comment formatting.
6957 * c-cppbuiltin.c: Likewise.
6958 * c-pragma.c: Likewise.
6959 * calls.c: Likewise.
6960 * collect2.c: Likewise.
6961 * cppcharset.c: Likewise.
6962 * cpptrad.c: Likewise.
6963 * dbxout.c: Likewise.
6964 * defaults.h: Likewise.
6965 * dwarf2out.c: Likewise.
6966 * fold-const.c: Likewise.
6967 * genautomata.c: Likewise.
6968 * genconditions.c: Likewise.
6969 * genflags.c: Likewise.
6970 * gengtype.c: Likewise.
6971 * integrate.c: Likewise.
6972 * loop.c: Likewise.
6973 * predict.c: Likewise.
6974 * sdbout.c: Likewise.
6975
6976 2004-01-15 Zack Weinberg <zack@codesourcery.com>
6977
6978 * config/ia64/ia64.md (*movti_internal): C output template
6979 extracted to ia64.c.
6980 (*movti_internal_reg): Delete.
6981 (reload_inti, reload_outti): Use the correct mode on operand 2
6982 in the first place, don't fix it up in the output template.
6983 (movtf, reload_ointf, reload_outtf): New expanders.
6984 (*movtf_internal): New define_insn_and_split.
6985 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
6986 make static; do not hand TFmode CONST_DOUBLEs to split_double.
6987 (ia64_split_tmode_move): New function, body mostly pulled
6988 from ia64.md:*movti_internal.
6989 (ia64_function_arg_words): New function, extracted common
6990 logic from ia64_function_arg et seq.
6991 (ia64_function_arg_offset): Likewise. Handle correctly the
6992 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
6993 (ia64_function_arg, ia64_function_arg_partial_nregs)
6994 (ia64_function_arg_advance): Use ia64_function_arg_words and
6995 ia64_function_arg_offset.
6996 (ia64_function_value): TCmode does not go in float regs.
6997 (ia64_secondary_reload_class): Also handle TFmode.
6998 * config/ia64/ia64-protos.h: Remove prototype for
6999 ia64_split_timode; add prototype for ia64_split_tmode_move.
7000
7001 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7002
7003 * Makefile.in (MAINT): Make it an immediate assignment.
7004
7005 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
7006
7007 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
7008
7009 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
7010
7011 * config/h8300/coff.h: Replace Hitachi with Renesas.
7012 * config/h8300/elf.h: Likewise.
7013 * config/h8300/h8300-protos.h: Likewise.
7014 * config/h8300/h8300.c: Likewise.
7015 * config/h8300/h8300.h: Likewise.
7016 * config/h8300/h8300.md: Likewise.
7017 * config/h8300/lib1funcs.asm: Likewise.
7018
7019 2004-01-15 Andrew Pinski <apinski@apple.com>
7020
7021 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
7022 around it.
7023
7024 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
7025
7026 * config/h8300/h8300.c (h8300_return_in_memory): New.
7027 (TARGET_STRUCT_VALUE_RTX): Likewise.
7028 (TARGET_RETURN_IN_MEMORY): Likewise.
7029 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
7030 (RETURN_IN_MEMORY): Likewise.
7031
7032 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
7033
7034 PR optimization/13375
7035 * gcse.c (handle_avail_expr): Just return if the source is not a
7036 single set.
7037
7038 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
7039 Daniel Jacobowitz <drow@mvista.com>
7040
7041 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
7042 (EQUIV): Define.
7043 (ARM_FUNC_ALIAS): New macro.
7044 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
7045 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
7046
7047 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7048
7049 PR optimization/12372
7050 * calls.c (expand_call): Add call_fusage data for stack arguments in
7051 constant calls.
7052
7053 2004-01-15 Alan Modra <amodra@bigpond.net.au>
7054
7055 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
7056 (rs6000_elf_declare_function_name): Formatting.
7057 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
7058
7059 2004-01-15 Jan Hubicka <jh@suse.cz>
7060
7061 PR bootstrap/13692
7062 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
7063 previous patch.
7064
7065 2004-01-15 Richard Henderson <rth@redhat.com>
7066
7067 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
7068 integer regs of the same call-savedness.
7069
7070 2004-01-15 Andreas Schwab <schwab@suse.de>
7071
7072 PR bootstrap/13562
7073 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
7074 status for NOTB/NOTW/NEGW methods.
7075
7076 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
7077
7078 * doc/invoke.texi: Update dump file names. Fix a typo.
7079
7080 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
7081
7082 * builtins.c (expand_builtin_va_end): Don't use
7083 EXPAND_BUILTIN_VA_END.
7084 * system.h (EXPAND_BUILTIN_VA_END): Poison.
7085 * config/d30v/d30v.h: Remove a commented-out definition of
7086 EXPAND_BUILTIN_VA_END.
7087 * config/stormy16/stormy16.h: Likewise.
7088
7089 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
7090
7091 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
7092 * targhooks.c (default_struct_value_rtx): Don't use
7093 STRUCT_VALUE_INCOMING_REGNUM.
7094
7095 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7096
7097 PR bootstrap/12744
7098 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
7099 GENINSRC and not parsedir. Define srcextra as a langhook.
7100 * configure: Regenerate.
7101 * Makefile.in: Suppress default .l.c rule. Don't substitute
7102 parsedir and delete all references throughout. Conditionally define
7103 rule for srcextra dependent on GENINSRC.
7104 (stmp-docobjdir): Delete.
7105 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
7106 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
7107 and gengtype-yacc.h back to source directory.
7108 (maintainer-clean): Delete all parse files in source directory.
7109 (distclean): Delete generated files.
7110
7111 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
7112 (objc-parse.c, objc-parse.y): Don't use parsedir.
7113 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
7114 directory if requested.
7115 (po-generated): Don't use parsedir.
7116 (objc.maintainer-clean): Delete above files from source directory.
7117
7118 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
7119
7120 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
7121
7122 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
7123
7124 * doc/tm.texi: Replace RETURN_IN_MEMORY with
7125 TARGET_RETURN_IN_MEMORY.
7126
7127 2004-01-15 Jan Hubicka <jh@suse.cz>
7128
7129 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
7130 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
7131 functions accepting SSE arguments
7132 (function_arg): Warn only when asked to warn.
7133 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
7134
7135 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
7136
7137 * c-parse.in (stmts_and_decls): Make label at end of compound
7138 statement a hard error.
7139
7140 2004-01-14 Jan Hubicka <jh@suse.cz>
7141
7142 * cgraph.c (create_edge): Use local.redefined_extern_inline.
7143 * cgraph.h (cgraph_local_info): Sort fields by size; add
7144 redefined_extern_inline
7145 (cgraph_global_info): Sort fields by size.
7146 (cgraph_node): Likewise.
7147 * cgraphunit.c (cgraph_finalize_function): Se
7148 local.redefined_extern_inline on redefinition.
7149 (cgraph_analyze_function): Use it; fix formating.
7150
7151 2004-01-14 Jan Hubicka <jh@suse.cz>
7152
7153 PR c++/10776
7154 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
7155 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
7156 bitmaps
7157 (cache_size): New variable
7158 (add_dependence): Update use; canonize early memory locations
7159 (sched_analyze_1): Likewise.
7160 (sched_analyze_2): Likewise.
7161 (init_dependency_caches): Initialize bitmaps.
7162 (free_dependency_caches): Free bitmaps
7163
7164 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
7165
7166 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
7167 targetm.calls.strict_argument_naming().
7168 * target.h: Likewise.
7169
7170 2004-01-14 Richard Henderson <rth@redhat.com>
7171
7172 PR debug/13231
7173 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
7174 instructions.
7175
7176 2004-01-14 Richard Henderson <rth@redhat.com>
7177
7178 PR c++/12491
7179 * except.c (struct eh_region): Add u.fixup.resolved.
7180 (resolve_one_fixup_region): Split out from ...
7181 (resolve_fixup_regions): ... here.
7182
7183 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
7184
7185 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
7186
7187 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
7188
7189 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
7190 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
7191 (STRUCT_VALUE): Remove.
7192
7193 2004-01-14 Steven Bosscher <stevenb@suse.de>
7194
7195 * system.h: Poison PROMOTED_MODE
7196 * integrate.c (expand_inline_function): Don't mention the
7197 PROMOTED_MODE.
7198 * loop.c (update_giv_derive): Same.
7199 * tree.h (DECL_RTL): Same.
7200
7201 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
7202
7203 PR target/9365
7204 * sh.c (gen_block_redirect): Add special handling of RETURN.
7205 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
7206 far branch target (i.e. it's a return).
7207
7208 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
7209
7210 * regrename.c (find_oldest_value_reg): Fix a warning.
7211
7212 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
7213
7214 PR bootstrap/12527
7215 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
7216 Move linux-gas.h and linux-elf.h before aout.h.
7217 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
7218 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
7219
7220 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
7221
7222 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
7223 (CONST_INT, VOIDmode, ...).
7224
7225 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
7226
7227 * regrename.c (find_oldest_value_reg): If the replacement uses
7228 multiple hard registers, check that all of them are in CLASS.
7229
7230 2004-01-14 Jan Hubicka <jh@suse.cz>
7231
7232 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
7233 impossible.
7234
7235 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
7236
7237 * Makefile.in: Define MAINT from --enable-maintainer-mode.
7238
7239 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
7240
7241 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
7242 Calculate always vrsave_mask if TARGET_ALTIVEC.
7243 (rs6000_emit_prologue): Emit code for vrsave
7244 only if TARGET_ALTIVEC_VRSAVE.
7245 (rs6000_emit_epilogue): Likewise.
7246
7247 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
7248
7249 * config/sparc/sparc.md (tie_add32): Fix pasto.
7250 (tie_add64): Likewise.
7251
7252 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7253
7254 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
7255
7256 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
7257
7258 * config/iq2000/iq2000-protos.h: Fix comment formatting.
7259 * config/iq2000/iq2000.c: Likewise.
7260 * config/iq2000/iq2000.md: Likewise.
7261
7262 2004-01-14 J. Brobecker <brobecker@gnat.com>
7263
7264 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
7265 (subrange_type_die): Add handle for nameless subrange types.
7266
7267 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
7268
7269 * config/h8300/h8300-protos.h: Replace do_movsi with
7270 h8300_expand_movsi.
7271 * config/h8300/h8300.c (do_movsi): Change to
7272 h8300_expand_movsi.
7273 * config/h8300/h8300.md (movsi): Replace do_movsi with
7274 h8300_expand_movsi.
7275 (movsf): Likewise.
7276
7277 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
7278
7279 * config/h8300/h8300.c (dosize): Change to
7280 h8300_emit_stack_adjustment. Update callers.
7281
7282 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
7283
7284 * config/h8300/h8300.md (movstrictqi): Add an alternative with
7285 the source being post_inc. Tighten the predicate for the
7286 destination to register_operand.
7287 (movstricthi): Likewise.
7288
7289 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
7290
7291 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
7292 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
7293 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
7294
7295 2004-01-14 Jan Hubicka <jh@suse.cz>
7296
7297 Partial fix PR c++/12850
7298 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
7299 at zero nest level.
7300
7301 2004-01-13 Bernardo Innocenti <bernie@develer.com>
7302
7303 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
7304 pseudo-register.
7305
7306 2004-01-13 Devang Patel <dpatel@apple.com
7307
7308 PR debug/7078
7309 * dbxout.c (dbxout_symbol_name): Emit mangled names for
7310 NAMESPACE_DECL memebers.
7311
7312 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
7313
7314 PR c++/12709
7315 * c-common.c (finish_fname_decls): Use the chain only if the
7316 tree is an expr_stmt.
7317
7318 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
7319
7320 * rtl.def: Add comment about new option in automata_option.
7321
7322 * genautomata.c (PROGRESS_OPTION): New macro.
7323 (progress_flag): New global variable.
7324 (gen_automata_option): Process `progress'.
7325 (transform_insn_regexps, check_unit_distributions_to_automata,
7326 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
7327 expand_automata, write_automata): Print about the progress only if
7328 progress_flag. Remove fflush.
7329 (initiate_automaton_gen): Process command line flag `-progress'.
7330
7331 * doc/md.texi: Describe the new option.
7332
7333 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7334
7335 * cfg.c (dump_bb): Dump entry edges.
7336
7337 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
7338
7339 * arm.c (thumb_legitimate_address_p): Only allow constant pool
7340 references from SImode.
7341 * arm.md (thumb_movhi_insn): Don't allow minipool references.
7342
7343 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
7344
7345 * system.h (TEXT_SECTION): Poison.
7346 * varasm.c (text_section): Don't use TEXT_SECTION.
7347 * config/sh/sh.c (sh_file_start): Fix a comment typo.
7348 * doc/tm.texi (TEXT_SECTION): Remove.
7349
7350 2004-01-13 Ben Elliston <bje@wasabisystems.com>
7351
7352 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
7353
7354 2004-01-12 James E Wilson <wilson@specifixinc.com>
7355
7356 * unwind-libunwind.c: Delete.
7357
7358 2004-01-12 Zack Weinberg <zack@codesourcery.com>
7359
7360 PR 13656
7361 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
7362 oldtype is set, set *newtypep or *oldtypep too. Do not set
7363 them at the very end.
7364 (validate_proto_after_old_defn): Restructure for comprehensibility;
7365 make error messages clearer.
7366
7367 2004-01-12 Zack Weinberg <zack@codesourcery.com>
7368
7369 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
7370 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
7371 * varray.c: No need to prototype error.
7372 (varray_check_failed): Wrap long string onto two lines.
7373 (varray_underflow): New function.
7374
7375 2004-01-13 Steven Bosscher <stevenb@suse.de>
7376
7377 PR c++/13376
7378 * function.h (struct function): Kill `name' field.
7379 (current_function_name): Make it an extern function.
7380 * function.c (current_function_name): New function.
7381 * graph.c: Update all uses of current_function_name.
7382 * gcse.c: Likewise.
7383 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
7384 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
7385 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
7386 instead of a strcmp with "main".
7387
7388 2004-01-13 Jan Hubicka <jh@suse.cz>
7389
7390 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
7391
7392 * cgraphunit.c (cgraph_optimize_function): Always do
7393 optimize_inline_calls when there is always_inline callee.
7394 (cgraph_decide_inlining): Fix formating.
7395 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
7396 functions.
7397 (expand_call_inline): Likewise.
7398 * toplev.h (sorry): Fix prototype.
7399
7400 2004-01-12 Roger Sayle <roger@eyesopen.com>
7401
7402 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
7403 conditional jumps that drop through to unconditional jumps or the
7404 end of the sequence.
7405
7406 2004-01-13 Jan Hubicka <jh@suse.cz>
7407
7408 * alias.c (new_alias_set): Construct the alias_set varray.
7409 (init_alias_once): Don't do it here.
7410
7411 2004-01-12 Marc Espie <espie@openbsd.org>
7412
7413 * system.h: handle YYBYACC like YYBISON.
7414
7415 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
7416
7417 PR target/10847
7418 * config.gcc: No longer includes conflicting header sparc/sol2.h when
7419 building on sparc64-*-openbsd*.
7420
7421 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
7422
7423 PR debug/13539
7424 * dbxout.c (dbxout_type): Protected inheritance is not
7425 private but protected.
7426
7427 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
7428
7429 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
7430
7431 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
7432
7433 PR optimization/12508.
7434 * combine.c (try_combine): Remove a dead set in a parallel
7435 even if its destination is a subreg.
7436
7437 Revert:
7438 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
7439 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
7440 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
7441
7442 2004-01-12 Geoffrey Keating <geoffk@apple.com>
7443
7444 * real.c: Update copyright date.
7445 * emit-rtl.c: Likewise.
7446 * rtl.h: Likewise.
7447 * dwarf2out.c: Likewise.
7448 * config/rs6000/darwin-ldouble.c: Likewise.
7449 * config/rs6000/rs6000.md: Likewise.
7450
7451 2004-01-12 David Edelsohn <edelsohn@gnu.org>
7452
7453 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
7454 TFmode to SImode libfuncs.
7455
7456 2004-01-12 Roger Sayle <roger@eyesopen.com>
7457
7458 PR middle-end/11397
7459 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
7460
7461 2004-01-12 Jan Hubicka <jh@suse.cz>
7462
7463 PR opt/12826
7464 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
7465 stored.
7466
7467 PR opt/12863
7468 * cfgcleanup.c (label_is_jump_target_p): Move to...
7469 * rtlanal.c (label_is_jump_target_p): ... here.
7470 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
7471 edges unified with branch edges.
7472
7473 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
7474
7475 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
7476 high word of an integral CONST_DOUBLE.
7477
7478 2004-01-12 Paul Brook <paul@codesourcery.com>
7479
7480 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
7481
7482 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
7483
7484 PR target/13585
7485 * sh-protos.h (check_use_sfunc_addr): Declare.
7486 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
7487 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
7488
7489 2004-01-12 Jan Hubicka <jh@suse.cz>
7490
7491 * alias.c: Invlude varray.h
7492 (alias_sets): Turn into varray.
7493 (get_alias_set_entry): Use VARRAY; mark inline.
7494 (mems_in_disjoint_alias_sets_p): Mark inline.
7495 (record_alias_subset): Use varray.
7496 (init_alias_once): Initialize varray.
7497 (new_alias_set): Grow array.
7498 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
7499
7500 2004-01-12 Jan Hubicka <jh@suse.cz>
7501
7502 Partial fix for PR opt/10776 II
7503 * cselib.c: Include params.h
7504 (cselib_invalidate_mem): Limit amount of nonconflicting memory
7505 locations.
7506 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
7507 * Makefile.in (cselib.o): Depend on params.h
7508
7509 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
7510
7511 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
7512 simplify_unary_operation if the operand has a known mode.
7513
7514 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
7515
7516 PR target/13534
7517 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
7518 predicate to handle 'ld' conform addresses.
7519 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
7520 contraint.
7521 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
7522 are memory contraints.
7523 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
7524 New prototype.
7525 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
7526 Change 'o' to 'Y' constraint.
7527 (*movdf_softfloat64): Ditto.
7528
7529 2004-01-12 Bernardo Innocenti <bernie@develer.com>
7530
7531 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
7532 brace-enclosed syntax in all C output statements.
7533
7534 2004-01-12 David Edelsohn <edelsohn@gnu.org>
7535
7536 PR target/13401
7537 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7538 Objective-C language type value is 14.
7539
7540 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
7541
7542 PR c/12148
7543 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
7544 `int' in a number of places to make sure we always have a SImode
7545 and not a HImode. Add a 'L' suffix to a number of constants.
7546
7547 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7548
7549 * pa.c: Don't include obstack.h.
7550
7551 * pa.md: Correct constraint in pattern for loading PIC label address.
7552
7553 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
7554
7555 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
7556 before defining.
7557
7558 2004-01-11 Steven Bosscher <stevenb@suse.de>
7559
7560 PR fortran/9972
7561 * toplev.c (rest_of_handle_inline): Also consider functions
7562 for deferral if the language is GNU F77.
7563
7564 2004-01-11 Zack Weinberg <zack@codesourcery.com>
7565
7566 * c-decl.c (diagnose_arglist_conflict): Add missing space to
7567 diagnostic messages.
7568
7569 2004-01-11 Jakub Jelinek <jakub@redhat.com>
7570
7571 PR middle-end/13392
7572 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
7573 to drop through label. Don't fall back to SCC even when conditional
7574 jump has not been found.
7575
7576 2004-01-11 Jan Hubicka <jh@suse.cz>
7577
7578 * invoke.texi: Fix syntax error in previous patch.
7579
7580 Partial fix for PR opt/10776
7581 * Makefile.in (reload.o): Include param.h
7582 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
7583 * reload.c: Include params.h.
7584 (find_equiv_reg): Work limiting check.
7585 * invoke.texi: Document.
7586
7587 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
7588
7589 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
7590 out-of-bounds accesses to string constants. Simplify mips16
7591 case accordingly.
7592
7593 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
7594
7595 PR optimization/13469
7596 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
7597 reload_cse_regs (-fnon-call-exceptions only).
7598
7599 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
7600
7601 * config/mcore/lib1.asm: Fix comment formatting.
7602 * config/mcore/mcore-elf.h: Likewise.
7603 * config/mcore/mcore.c: Likewise.
7604 * config/mcore/mcore.h: Likewise.
7605 * config/mcore/mcore.md: Likewise.
7606
7607 2004-01-10 Zack Weinberg <zack@codesourcery.com>
7608
7609 * c-decl.c (duplicate_decls): Break apart into...
7610 (diagnose_arglist_conflict, validate_proto_after_old_defn)
7611 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
7612 ... these new functions. Restructure for comprehensibility.
7613 Remove various archaic special cases. Always report the
7614 location of the previous declaration when a diagnostic is issued.
7615 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
7616 (match_builtin_function_types): Delete unnecessary forward declaration.
7617
7618 2004-01-10 Zack Weinberg <zack@codesourcery.com>
7619
7620 * genautomata.c (make_automaton, NDFA_to_DFA):
7621 Print progress bars with '.' characters instead of '*'.
7622 (build_automaton): Change notes to match.
7623
7624 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
7625
7626 * config/m32r/m32r.md: Use define_constants for unspec and
7627 unspec_volatile.
7628
7629 2004-01-10 Jan Hubicka <jh@suse.cz>
7630
7631 PR opt/11635
7632 * expr.c (expand_expr_real): More curefully expand union casts.
7633
7634 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
7635
7636 * config/m32r/m32r.md (flush_icache): Use 1 for
7637 unspec_volatile.
7638
7639 2004-01-10 David Edelsohn <edelsohn@gnu.org>
7640 James E Wilson <wilson@specifixinc.com>
7641
7642 PR debug/12860
7643 * dbxout.c (dbxout_symbol): Remove initialization of
7644 current_sym_code, current_sym_value, and current_sym_addr.
7645 (dbxout_symbol_location): Same.
7646 (dbxout_prepare_symbol): Zero current_sym_code,
7647 current_sym_value, and current_sym_addr.
7648
7649 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
7650
7651 * tree.c (get_unwidened): Reorder conditions so that the null pointer
7652 check is done first.
7653
7654 2004-01-09 Eric Christopher <echristo@redhat.com>
7655
7656 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
7657 if we're running mark_constant_function.
7658
7659 2004-01-09 Jeff Bailey <jbailey@nisa.net>
7660
7661 PR target/12561
7662 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
7663
7664 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
7665
7666 PR debug/11231
7667 * dbxout.c (dbxout_type_fields): Return if any item is
7668 error_mark_node or the type is error_mark_node.
7669
7670 2004-01-09 Geoffrey Keating <geoffk@apple.com>
7671
7672 * config/rs6000/darwin-ldouble.c: Add big comment explaining
7673 exactly what is expected as a 'long double'.
7674 (_xlqadd): When a value to be returned is representable as a
7675 'double', just return it directly, do not construct it using a union.
7676 Also, correct final fixup.
7677 (_xlqmul): Likewise.
7678 (_xlqdiv): Likewise.
7679 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
7680
7681 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
7682
7683 2004-01-09 Richard Henderson <rth@redhat.com>
7684
7685 * recog.c (constrain_operands): Validate mem operands.
7686
7687 2004-01-09 James E Wilson <wilson@specifixinc.com>
7688
7689 * gcc.c (init_spec): Remove -lunwind from shared case.
7690 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
7691
7692 2004-01-09 Steve Ellcey <sje@cup.hp.com>
7693
7694 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
7695 * configure: Regenerate
7696
7697 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
7698
7699 PR c/11234
7700 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
7701 between function and object pointers.
7702 (digest_init): When comparing a pointer to function type to the
7703 target type, only apply TREE_TYPE once to the pointer to function
7704 type.
7705 * except.c (for_each_eh_label_1): Treat data as a pointer to a
7706 function pointer rather than casting it to a function pointer.
7707 (for_each_eh_label): Update caller.
7708 * recog.h (struct insn_data): Use a struct or union for output.
7709 * genoutput.c (output_insn_data): Update.
7710 * final.c (get_insn_template): Update.
7711
7712 2004-01-09 Mark Mitchell <mark@codesourcery.com>
7713
7714 * expr.h (expand_expr): Make it a macro, not a function.
7715 (expand_expr_real): New function.
7716 * expr.c (store_expr): Adjust logic for deciding whether or not to
7717 copy the value returned by expand_expr.
7718 (expand_expr): Rename to ...
7719 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
7720 calls to language hooks.
7721 * c-common.h (c_expand_expr): Adjust prototype.
7722 * c-common.c (c_expand_expr): Add alt_rtl parameter.
7723 * langhooks-def.h (lhd_expand_expr): Change prototype.
7724 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
7725 * langhooks.h (lang_hooks): Change type of expand_expr.
7726 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
7727 (last_expr_alt_rtl): Likewise.
7728 (expand_expr_stmt_value): Set last_expr_alt_rtl.
7729 (clear_last_expr): Clear it.
7730 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
7731 (expand_end_bindings): Save and restor last_expr_alt_rtl.
7732 * tree.def (RTL_EXPR): Give it an additional operand.
7733 * tree.h (RTL_EXPR_ALT_RTL): New macro.
7734
7735 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7736
7737 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
7738 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
7739
7740 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
7741
7742 PR target/13380.
7743 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
7744 or (ne:SI (reg:CC 17) (const_int 0)).
7745 Be specific about modes wherever possible.
7746
7747 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
7748
7749 * config/m32r/m32r.c (m32r_expand_block_move): Call
7750 gen_movestrsi_internal with two more arguments.
7751 (m32r_output_block_move): Adjust operand numbers.
7752 Properly update the source and destination pointers.
7753 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
7754 'r+'. Change the set detinations to match_operand.
7755
7756 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
7757
7758 * final.c (FIRST_INSN_ADDRESS): Remove.
7759 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
7760 * system.h (FIRST_INSN_ADDRESS): Poison.
7761 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
7762 * config/m32r/m32r-protos.h: Remove the prototype for
7763 m32r_first_insn_address.
7764 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
7765 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
7766 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
7767
7768 2004-01-09 J. Brobecker <brobecker@gnat.com>
7769
7770 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
7771 we just created.
7772 (is_ada_subrange_type): DIEs for enumeration subtypes should be
7773 emitted as subrange types too.
7774 (subrange_type_die): Add handling of enumeration subtypes.
7775
7776 2004-01-08 Richard Henderson <rth@redhat.com>
7777
7778 PR opt/12441
7779 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7780 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7781 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7782 (ix86_address_cost): Be prepared for SUBREGed registers.
7783 (legitimate_address_p): Accept SUBREGed registers.
7784
7785 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
7786
7787 * Makefile.in: Rename configure.in to configure.ac
7788 * doc/sourcebuild.texi: Likewise.
7789 * configure: Regenerate.
7790 * config.in: Regenerate.
7791
7792 2004-01-08 Stuart Hastings <stuart@apple.com>
7793
7794 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
7795
7796 2004-01-08 Jan Hubicka <jh@suse.cz>
7797
7798 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
7799
7800 2004-01-08 Geoffrey Keating <geoffk@apple.com>
7801
7802 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
7803 (UNSPEC_FIX_TRUNC_TF): New constant.
7804 (movtf_internal): Make splitter active only when insn is active.
7805 (extenddftf2): Rewrite to properly load zero into low part.
7806 (extenddftf2_internal): New.
7807 (extendsftf2): Rewrite.
7808 (truncdftf2): Correct length.
7809 (floatditf2): Delete.
7810 (fix_trunc_helper): New.
7811 (fix_trunctfdi2): Use fix_trunc_helper.
7812 (fix_trunctfsi2): Likewise.fix_trunc
7813 (fix_trunctfsi2_internal): New.
7814
7815 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
7816 addresses are legitimate on Darwin even when flag_pic.
7817 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
7818 non-offsettable addresses for loads of TFmode constants.
7819
7820 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7821
7822 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
7823 variables in the appropriate bss section.
7824
7825 2004-01-09 Alan Modra <amodra@bigpond.net.au>
7826
7827 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
7828 target_flags has MASK_POWERPC64 when -m64.
7829 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
7830 to 620, 630, power3, power4 and rs64a entries.
7831 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
7832
7833 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
7834
7835 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
7836 floating-point constants.
7837
7838 2004-01-08 J. Brobecker <brobecker@gnat.com>
7839
7840 * dwarf2out.c (subrange_type_die): Add context_die parameter.
7841 Create the subrange_type DIE using the given context DIE.
7842 (modified_type_die): Update call to subrange_type_die.
7843
7844 2004-01-08 Zack Weinberg <zack@codesourcery.com>
7845
7846 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
7847 Add multiple-include guard.
7848
7849 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
7850
7851 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
7852 all vector constant loadable by vsplt*.
7853 (output_vec_const_move): Likewise.
7854
7855 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
7856
7857 PR c/6024
7858 * c-typeck.c (comptypes): Only treat enumerated types in the same
7859 translation unit as compatible with each other when they are the
7860 same type.
7861 * doc/extend.texi: Update.
7862
7863 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
7864
7865 PR c/12165
7866 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
7867 array type from the array element type.
7868
7869 2004-01-07 Alan Modra <amodra@bigpond.net.au>
7870
7871 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
7872 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
7873 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
7874 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
7875 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
7876
7877 2004-01-06 Eric Christopher <echristo@redhat.com>
7878
7879 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
7880 (DWARF2_DEBUGGING_INFO): Define.
7881 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
7882 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
7883 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
7884 for irix as.
7885 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
7886 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
7887 * config/mips/iris5gas.h: Ditto.
7888 (DBX_DEBUGGING_INFO): Remove.
7889 (DWARF2_DEBUGGING_INFO): Ditto.
7890 (MIPS_DEBUGGING_INFO): Ditto.
7891 (PREFERRED_DEBUGGING_TYPE): Ditto.
7892 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
7893 (PREFERRED_DEBUGGING_TYPE): Ditto.
7894 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
7895 * config/mips/elf64.h: Ditto.
7896
7897 2004-01-06 Jan Hubicka <jh@suse.cz>
7898
7899 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
7900 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
7901
7902 2004-01-06 Geoffrey Keating <geoffk@apple.com>
7903
7904 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
7905 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
7906 * config/rs6000/darwin-ldouble.c: New.
7907
7908 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
7909 for constants.
7910 (constant_subword): Delete.
7911 * rtl.h (constant_subword): Delete prototype.
7912 (immed_double_const): Is not in varasm.c.
7913 * simplify-rtx.c (simplify_immed_subreg): New.
7914 (simplify_subreg): Use simplify_immed_subreg.
7915
7916 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
7917 than trying to generate RTL directly.
7918 (fix_trunctfsi2): Use expand_fix rather than trying to generate
7919 RTL directly.
7920
7921 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
7922
7923 2004-01-06 David Edelsohn <edelsohn@gnu.org>
7924
7925 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
7926 function into a separate macro.
7927 (read_only_data_section): Add void argument.
7928 (private_data_section): Same.
7929 (read_only_private_data_section): Same.
7930 (toc_section): Same.
7931
7932 2004-01-06 Jan Hubicka <jh@suse.cz>
7933
7934 * invoke.texi: Remove typo in last change.
7935
7936 PR target/10301
7937 * config.gcc: Accept opteron and athlon-64 as variants
7938 of k8.
7939 * i386.c (override_options): Likewise.
7940 * invoke.texi (i386 -mtune): Expand documentation.
7941
7942 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
7943
7944 * alias.c: Fix comment typos.
7945 * builtins.c: Likewise.
7946 * cfg.c: Likewise.
7947 * df.c: Likewise.
7948 * dominance.c: Likewise.
7949 * dwarf2out.c: Likewise.
7950 * emit-rtl.c: Likewise.
7951 * expr.c: Likewise.
7952 * final.c: Likewise.
7953 * fold-const.c: Likewise.
7954 * gcse.c: Likewise.
7955 * genattrtab.c: Likewise.
7956 * genrecog.c: Likewise.
7957 * gensupport.c: Likewise.
7958 * ggc-zone.c: Likewise.
7959 * integrate.c: Likewise.
7960 * local-alloc.c: Likewise.
7961 * loop.c: Likewise.
7962 * recog.c: Likewise.
7963 * regmove.c: Likewise.
7964 * reg-stack.c: Likewise.
7965 * reorg.c: Likewise.
7966 * rtlanal.c: Likewise.
7967 * rtl.h: Likewise.
7968 * sched-ebb.c: Likewise.
7969 * simplify-rtx.c: Likewise.
7970 * toplev.c: Likewise.
7971 * varasm.c: Likewise.
7972
7973 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
7974
7975 * doc/install.texi: Fix typos.
7976 * doc/invoke.texi: Likewise.
7977 * doc/md.texi: Likewise.
7978
7979 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7980
7981 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
7982
7983 2004-01-06 Jan Hubicka <jh@suse.cz>
7984
7985 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
7986 (function_arg_advance): Do not pass aggregates in SSE; deal handling
7987 of MMX_REGPARM.
7988 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
7989 add MMX_REGPARM.
7990 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
7991 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
7992 (MMX_REGPARM_MAX): Similarly for -mmmx.
7993
7994 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
7995
7996 * config/sh/linux.h: Fix comment formatting.
7997 * config/sh/netbsd-elf.h: Likewise.
7998 * config/sh/sh.c: Likewise.
7999 * config/sh/sh.h: Likewise.
8000 * config/sh/vxworks.h: Likewise.
8001
8002 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
8003
8004 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
8005 * toplev.c (output_file_directive): Don't use
8006 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
8007
8008 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
8009
8010 * toplev.c: Fix broken checkin of 2003-12-30.
8011
8012 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
8013
8014 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
8015 (USING_MMAP): We don't support non-mmap.
8016 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
8017 large objects.
8018 (struct page_entry): Remove bytes_free.
8019 (struct page_table_chain): Remove.
8020 (struct globals): Remove page_table member.
8021 (loookup_page_table_entry): Function deleted.
8022 (set_page_table_entry): Ditto.
8023 (ggc_allocated_p): No longer need page table lookups.
8024 (ggc_marked_p): Ditto.
8025 (alloc_small_page): Don't care about bytes_free anymore.
8026 (alloc_large_page): Round up size.
8027 (ggc_alloc_zone_1): Mark large objects as such, and calculate
8028 their size the new way.
8029 Remove page table lookups and setting.
8030 (ggc_get_size): Calculate large object size the new way.
8031 (sweep_pages): Redo to account for fact that we no longer have
8032 bytes_free.
8033 (ggc_collect): No longer need to reincrement bytes_free.
8034 (ggc_pch_alloc_object): Handle new large objects properly.
8035 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
8036
8037 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
8038
8039 * doc/invoke.texi: Remove a page break.
8040
8041 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
8042
8043 * config/avr/avr.c (avr_output_function_prologue): Remove an
8044 extra pair of curly braces.
8045
8046 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
8047
8048 * config/mn10300/mn10300.c: Fix comment formatting.
8049 * config/mn10300/mn10300.h: Likewise.
8050
8051 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8052
8053 * tree.h: Update documentation on nothrow_flag.
8054 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
8055 types.
8056
8057 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
8058
8059 * doc/invoke.texi: Remove traces of dead ports.
8060
8061 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
8062
8063 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
8064 option.
8065
8066 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
8067
8068 PR target/12945
8069 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
8070 counter labels.
8071 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
8072 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
8073 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
8074 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
8075 (mips_symbol_insns): Don't trust the local/global classification.
8076 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
8077 (override_options): Make -mabicalls -fno-unit-at-a-time imply
8078 -mno-explicit-relocs.
8079 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
8080 between local and global symbols.
8081
8082 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
8083
8084 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
8085 (mips_preferred_reload_class): Declare.
8086 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
8087 (EXTRA_CONSTRAINT): Update accordingly.
8088 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
8089 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
8090 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
8091 mips_dangerous_for_la25_p.
8092 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
8093 if mips_dangerous_for_la25_p.
8094
8095 2004-01-05 Bernardo Innocenti <bernie@develer.com>
8096
8097 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
8098 warning.
8099
8100 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
8101
8102 * configure.ac: Use AC_PROG_CPP_WERROR.
8103 * configure: Regenerate.
8104
8105 2004-01-04 Zack Weinberg <zack@codesourcery.com>
8106
8107 * .cvsignore: Add autom4te.cache.
8108
8109 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
8110
8111 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
8112 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
8113 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
8114 then architecture options, then ABI options. General rewording.
8115
8116 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
8117
8118 PR c/3414
8119 * doc/extend.texi: Clarify definition of malloc attribute.
8120
8121 2004-01-04 Jan Hubicka <jh@suse.cz>
8122
8123 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
8124 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
8125 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
8126 (cgraph_inline_p): Add extra argument reason.
8127 * cgraphunit.c: Minor formating fixes.
8128 cgraph_first_inlined_callee): New functions.
8129 (record_call_1): Record builtins too.
8130 (cgraph_analyze_function): Update inline_failed messages.
8131 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
8132 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
8133 (cgraph_check_inline_limits): Likewise; Add argument reason.
8134 (cgraph_set_inline_failed): New static function.
8135 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
8136 reasons.
8137 (cgraph_inline_p): Add new argument reason.
8138 * tree-inline.c (expand_call_inline): Update warning.
8139
8140 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
8141
8142 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
8143 with modern equivalents.
8144 * configure: Regenerate.
8145
8146 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
8147 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
8148 * configure: Regenerate.
8149
8150 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
8151
8152 * configure.in: Rename to configure.ac.
8153 * configure.ac: Renamed from configure.in; make minimum necessary
8154 changes for autoconf 2.5x.
8155 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
8156 * configure: Regenerate with autoconf 2.57.
8157
8158 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
8159
8160 * config/mips/linux.h: Fix comment formatting.
8161 * config/mips/mips.c: Likewise.
8162 * config/mips/mips.h: Likewise.
8163 * config/mips/mips.md: Likewise.
8164 * config/mips/netbsd.h: Likewise.
8165 * config/mips/windiss.h: Likewise.
8166
8167 2004-01-02 Richard Henderson <rth@redhat.com>
8168
8169 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
8170 for sse and 387; add suppression for mmx.
8171
8172 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
8173
8174 * loop.c (loop_optimize): Free all loops_info's mems.
8175
8176 * c-typeck.c (finish_init): Free spelling_base before
8177 setting it again.
8178
8179 * cfgloop.c (flow_loops_find): Always free the sbitmap
8180 headers.
8181
8182 * predict.c (estimate_probability): Free bbs after being
8183 done with it.
8184
8185 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
8186
8187 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
8188 const_8bit_operand and call_address_operand.
8189
8190 2004-01-02 Jan Hubicka <jh@suse.cz>
8191
8192 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
8193 when there is nothing to inline but warnings are requested.
8194 (cgraph_decide_inlining): Fix memory leak.
8195
8196 2004-01-02 Jan Hubicka <jh@suse.cz>
8197
8198 * expr.c (store_constructor): Fix pasto in previous patch.
8199
8200 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
8201
8202 * config/i386/cygming.h: Fix comment formatting.
8203 * config/i386/djgpp.h: Likewise.
8204 * config/i386/gthr-win32.c: Likewise.
8205 * config/i386/i386-interix.h: Likewise.
8206 * config/i386/i386.c: Likewise.
8207 * config/i386/i386.h: Likewise.
8208 * config/i386/openbsd.h: Likewise.
8209 * config/i386/winnt.c: Likewise.
8210 * config/i386/xm-mingw32.h: Likewise.
8211
8212 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
8213
8214 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
8215 copyright and last modification dates.
8216
8217 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
8218
8219 * doc/install.texi (Specific): Mention x86_64.
8220
8221 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
8222
8223 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
8224 Call force_operand on plus_constant result.
8225
8226 2004-01-01 Jan Hubicka <jh@suse.cz>
8227
8228 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
8229 * expr.c (store_constructor): Use vec_init pattern.
8230 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
8231 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
8232 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
8233 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
8234 New patterns.
8235 (sse2_unpc?pd): Fix pattern.
8236 (sse2_movlpd): Kill.
8237 (sse2_movsd): Deal with movlpd too.
8238 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
8239 (ix86_expand_vector_init): New.
8240 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
8241 * md.texi (vec_set, vec_extract): Document
8242
8243 2003-12-31 Jan Hubicka <jh@suse.cz>
8244
8245 PR opt/13473
8246 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
8247 ASM input operands
8248
8249 PR opt/12617
8250 * toplev.c (dump_file_index): Reorder ce3 and bbro.
8251 (dump_file): Likewise.
8252 (rest_of_compilation): Likewise.
8253
8254 PR debug/13367
8255 * cgraph.c (cgraph_function_possibly_inlined): Even with
8256 flag_really_no_inline we inline always_inline functions.
8257 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
8258 for non-always_inline functions when there is flag_really_no_inline.
8259 (cgraph_decide_inlining): Limit work done when not inlining.
8260 (cgraph_decide_inlining_incrementally): Likewise.
8261 (cgraph_optimize_function): Check whether something got inlined.
8262 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
8263 extern inline functions when not inlining.
8264
8265 * opts.c (decode_options): Disable crossjumping at -O1
8266 * invoke.texi (-O1): Document change.
8267
8268 See ChangeLog.10 for earlier changes.