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