1 2004-03-03 Mike Stump <mrs@apple.com>
3 Add framework support for darwin.
5 * c-incpath.c: Include target.h and machmode.h.
6 (add_path): Use a consistent style for cpp_dir. Initialize
8 (add_cpp_dir_path): New.
9 (register_include_chains): Add use of extra_includes callback.
11 (target_c_incpath): Add.
12 * c-incpath.h (add_cpp_dir_path): New.
13 (target_c_incpath_s): Add.
14 (target_c_incpath): Add.
15 (C_INCPATH_INIT): Add.
16 * c-opts.c (c_common_missing_argument,
17 c_common_handle_option): Add -F argument processing.
18 * c.opt: Add -F argument processing.
19 * gcc.c (trad_capable_cpp): Add -F argument processing.
20 * cppfiles.c (find_file_in_dir): Update to use construct
22 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
24 (_cpp_find_file): Use search_path_exhausted.
25 (make_cpp_dir): Initialize construct to 0.
26 * cpplib.h (missing_header_cb
27 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
28 (cpp_callbacks): Add missing_header
29 (cpp_dir): Add construct.
30 * target-def.h: (TARGET_OPTF): New.
31 * hooks.c (hook_void_int, hook_void_charptr): Add.
32 * hooks.h (hook_void_int, hook_void_charptr): Add.
33 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
34 $(MACHMODE_H) dependencies.
35 * doc/invoke.texi (Darwin Options): Document -F.
36 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
38 * fix-header.c (target_c_incpath): Add.
40 * config/darwin-c.c: Add c-incpath.h include.
41 (using_frameworks, find_subframework_file,
42 find_subframework_header, add_system_framework_path,
43 frameworks_in_use, num_frameworks, max_frameworks,
44 add_framework, find_framework, struct framework_header,
45 framework_header_dirs, framework_construct_pathname,
46 find_subframework_file, add_system_framework_path,
47 add_framework_path, framework_defaults,
48 darwin_register_frameworks, find_subframework_header): Add.
49 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
50 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
51 (CPP_SPEC): Add __APPLE_CC__ support.
52 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
54 2004-03-04 Jan Hubicka <jh@suse.cz>
56 * cselib.c (cselib_finish): Fix miss-application of my previous
59 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
61 * hooks.c (hook_tree_tree_identity): New.
62 * hooks.h: Add a prototype for hook_tree_tree_identity.
63 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
64 instead of MD_ASM_CLOBBERS.
65 * system.h (MD_ASM_CLOBBERS): Poison.
66 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
67 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
68 * target.h (gcc_target): Add md_asm_clobbers.
69 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
70 (ix86_md_asm_clobbers): New.
71 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
72 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
73 TARGET_MD_ASM_CLOBBERS.
75 2004-03-03 Stuart Hastings <stuart@apple.com>
77 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
79 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
81 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
83 * config/sparc/sparc.h (ASM_FLOAT): Delete.
84 (ASM_DOUBLE): Likewise.
85 (ASM_LONGDOUBLE): Likewise.
86 * config/sparc/pbd.h (ASM_INT_OP): Delete.
88 2003-03-03 Richard Henderson <rth@redhat.com>
91 * cselib.c (cselib_record_sets): Don't record multiple sets in
94 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
96 * common.opt: Add description of the new -fgcse-after-reload flag.
98 * flags.h (flag_gcse_after_reload): Declaration of global variable.
100 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
101 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
102 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
103 get_bb_avail_insn, hash_scan_set_after_reload,
104 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
105 gcse_after_reload, get_bb_avail_insn): New functions to implement
107 (gcse_after_reload_main): New function, the main entry point to
110 * rtl.h (gcse_after_reload_main): Declaration of the new function.
112 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
114 * toplev.c (flag_gcse_after_reload): Initialization.
116 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
118 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
119 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
120 the gcse after reload optimization.
122 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
123 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
126 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
128 2004-03-03 Nicolas Pitre <nico@cam.org>
130 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
131 small negative values.
133 2004-03-03 Jan Hubicka <jh@suse.cz>
135 * cselib.c (hash_table): Remove GTY marker.
136 (reg_values): Turn into array.
137 (used_regs): Likewise.
138 (n_used_regs): New static variable.
139 (reg_values_old): Kill.
140 (clear_table): Update uses of arrays.
141 (cselib_lookup): Likewise.
142 (cselib_record_set): Likewise.
143 (cselib_init): Likewise.
144 (cselib_finish): Likewise.
145 (cselib_udpate_varray_sizes): Kill.
146 * cselib.h (cselib_update_varray_sizes): Kill.
148 2004-03-03 Paul Brook <paul@codesourcery.com>
150 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
152 2004-03-03 Jan Hubicka <jh@suse.cz>
154 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
155 Rename from ...; make statistics transparent.
156 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
157 (loc_descriptor): New structure.
158 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
161 (ggc_record_overhead, dump_statistics): New global function.
162 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
163 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
164 from ...; accept locations
165 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
166 ggc_realloc, ggc_alloc_typed): ... this one.
167 from ...; accept locations
168 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
169 ggc_alloc_stat): Rename from ... ; pass locations
170 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
172 (ggc_alloc_stat): Record overehead.
173 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
174 ggc_realloc, ggc_alloc_typed): Turn to macros
175 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
176 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
177 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
178 * langhooks.h (lhd_make_node): Declare.
179 (LANG_HOOKS_MAKE_TYPE): Default to new function,
180 * langhooks.c (lhd_make_node): New.
181 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
183 (rtx_alloc, swallow_copy_rtx): ... this one.
184 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
185 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
186 * toplpev.c (finalize): Dump stats.
187 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
188 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
189 Rename from ... ; pass locators.
190 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
191 build?, build_decl): Declare.
192 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
193 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
195 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
196 build?, build_decl): New macros.
197 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
198 * statistics.h: New file.
200 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
201 Richard Sandiford <rsandifo@redhat.com>
203 * config/mips/mips.h (MASK_FIX_SB1): Bump.
204 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
205 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
206 * config/mips/mips.c (mips_output_division): Fill the branch delay
207 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
209 (mips_output_division): Adjust accordingly.
210 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
211 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
213 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
215 * alias.c (rtx_equal_for_memref_p): Use predicates
216 to test rtx classes and new rtx class codes, possibly
217 splitting conditionals that tested against '<' and 'o'.
218 * caller-save.c (save_call_clobbered_regs): Likewise.
219 * combine.c (contains_muldiv, find_split_point, subst,
220 combine_simplify_rtx, simplify_if_then_else,
221 simplify_set, simplify_logical, expand_compound_operation,
222 make_compound_operation, if_then_else_cond, known_cond,
223 apply_distributive_law, cached_nonzero_bits,
224 cached_num_sign_bit_copies, simplify_shift_const,
225 gen_binary, simplify_comparison, update_table_tick,
226 record_value_for_reg, get_lsat_value_validate): Likewise.
227 * cse.c (mention_regs, find_best_addr, find_comparison_args,
228 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
230 * emit-rtl.c (copy_insn_1): Likewise.
231 * expr.c (force_operand): Likewise.
232 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
233 * flow.c (notice_stack_pointer_modification_1,
234 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
235 and_reg_cond, elim_reg_cond): Likewise.
236 * function.c (update_epilogue_consts): Likewise.
237 * genattrtab.c (attr_rtx_1): Likewise.
238 * genopinit.c (gen_insn): Likewise.
239 * integrate.c (subst_constants): Likewise.
240 * jump.c (reversed_comparison_code_parts,
241 reversed_comparison_code, delete_related_insns,
242 rtx_renumbered_equal_p): Likewise.
243 * local-alloc.c (block_alloc): Likewise.
244 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
245 canonicalize_condition): Likewise.
246 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
248 * optabs.c (add_equal_node, expand_binop): Likewise.
249 * predict.c (estimate_probability): Likewise.
250 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
251 * recog.c (validate_replace_rtx_1, comparison_operator,
252 offsettable_address_p, constrain_operands): Likewise.
253 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
255 * regclass.c (scan_one_insn): Likewise.
256 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
257 * regrename.c (kill_autoinc_value): Likewise.
258 * reload.c (find_reusable_reload, find_reloads,
259 reg_overlap_mentioned_for_reload_p): Likewise.
260 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
261 * rtl.c (copy_rtx): Likewise.
262 * rtl.h (CONSTANT_P, INSN_P): Likewise.
263 * rtlanal.c (commutative_operand_precedence): Likewise.
264 * sched-deps.c (conditions_mutex_p): Likewise.
265 * sched-rgn.c (is_cfg_nonregular): Likewise.
266 * simplify-rtx.c (simplify_gen_binary,
267 simplify_gen_relational, simplify_replace_rtx,
268 simplify_unary_operation, simplify_binary_operation,
269 simplify_ternary_operation, simplify_rtx): Likewise.
270 * unroll.c (reg_dead_after_loop): Likewise.
271 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
272 print_operand): Likewise.
273 * config/arc/arc.c (proper_comparison_operator): Likewise.
274 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
276 * config/avr/avr.c (_reg_unused_after): Likewise.
277 * config/frv/frv.c (frv_ifcvt_modify_tests,
278 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
279 * config/i386/i386.c (ix86_comparison_operator,
280 ix86_carry_flag_operator, fcmov_comparison_operator,
281 arith_or_logical_operator, print_operand,
282 ix86_expand_binary_operator, ix86_binary_operator_ok):
284 * config/i386/i386.md: Likewise.
285 * config/ia64/ia64.c (not_postinc_memory_operand,
286 ia64_print_operand, update_set_flags, errata_emit_nops):
288 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
289 CONSTRAINT_OK_FOR_S): Likewise.
290 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
291 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
292 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
293 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
295 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
296 eqne_comparison_operator, signed_comparison_operator):
298 * config/mips/mips.c (cmp_op, symbolic_expression_p):
300 * config/mmix/mmix (mmix_foldable_comparison_operator,
301 mmix_comparison_operator): Likewise.
302 * config/pa/pa.c (hppa_legitimize_address): Likewise.
303 * config/rs6000/rs6000.c (stmw_operation,
304 branch_comparison_operator, trap_comparison_operator,
306 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
307 * config/s390/s390.c (s390_alc_comparison,
308 s390_slb_comparison):L Likewise.
309 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
311 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
312 noov_compare_op, noov_compare64_op, v9_regcmp_op,
313 emit_hard_tfmode_operation, reg_unused_after)
314 * doc/md.texi, doc/rtl.texi: Likewise.
316 * ra-debug.c: Add 2004 to list of copyright years.
317 * unroll.c: Likewise.
319 * combine.c (simplify_logical): Remove dummy test,
320 (apply_distributive_law): Fix typo in comment.
321 GET_CODE (x) == AND so x is a commutative binary op.
322 * jump.c (delete_related_insns): simplify loop
323 condition, move testing of RTX codes inside the loop.
324 (rtx_renumbered_equal_p): do not use RTX_CODE.
325 * rtl.c (rtx_class): Declare as enum rtx_class.
326 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
327 Move to RTX_COMM_COMPARE class.
328 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
329 Move to RTX_CONST_OBJ class.
330 * rtl.h (enum rtx_class): New declaration,
331 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
332 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
333 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
334 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
335 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
336 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
337 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
338 OBJECT_P): New macros.
339 * config/sparc/sparc.c (noov_compare_op): Remove register
342 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
344 * target.h: Remove texi jargons in comments.
346 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
348 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
352 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
353 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
355 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
356 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
358 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
360 * doc/md.texi (cbranchmode4): New.
362 2004-03-02 Eric Christopher <echristo@redhat.com>
364 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
366 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
367 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
368 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
369 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
371 2004-03-02 Richard Henderson <rth@redhat.com>
374 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
375 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
376 before the compare, if flag_non_call_exceptions.
378 2004-03-02 Richard Henderson <rth@redhat.com>
381 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
382 emitting the label, not after.
384 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
386 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
387 (m68hc11_mov_addr_mode): Likewise.
388 (m68hc11_override_options): Initialize them based on target.
389 (register_indirect_p): Allow a MEM for indirect addressing modes and
390 use flags to control what is allowed.
391 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
392 supported addressing modes.
393 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
394 (go_if_legitimate_address_internal): Likewise.
395 (m68hc11_indirect_p): Likewise and check the mode.
396 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
398 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
400 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
401 (expand_builtin_setjmp_setup): Use
402 targetm.builtin_setjmp_frame_value instead of
403 BUILTIN_SETJMP_FRAME_VALUE.
404 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
405 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
406 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
407 * target.h (gcc_target): Add builtin_setjmp_frame_value.
408 * targhooks.c (default_builtin_setjmp_frame_value): New.
409 * targhooks.h: Add a prototype for
410 default_builtin_setjmp_frame_value.
411 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
412 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
414 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
416 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
418 (add peepholes): New peepholes to optimize sequences adding small
420 (bset peepholes): New peepholes to transform an OR in a bset form
421 (bclr peepholes): Likewise for bclr form.
422 (cmp peepholes): New peepholes to avoid register copies when comparing.
424 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
426 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
427 to separate push from moves.
428 ("*pushdf_internal"): Likewise.
429 ("*pushsf_internal"): Likewise.
430 ("*pushsi_internal"): Likewise.
431 ("movdi_internal"): Use define_insn_and_split; non push operand.
432 ("movdf_internal"): Likewise.
433 ("movsf_internal"): Likewise.
434 ("movsi_internal"): Likewise.
435 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
436 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
437 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
439 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
441 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
442 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
443 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
444 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
445 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
446 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
447 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
448 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
449 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
450 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
451 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
453 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
455 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
456 (SOFT_XY_REGNUM): Define.
457 (cmp split): Use the above instead of hard coded numbers.
458 (8-bit op split): No need to check the mode; allow Q_REG.
459 (ashift split): Adjust the first operand if it uses the SP and we
460 are pushing the shifted value.
461 (plus shift split): Fix when a source is in register D+X.
462 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
464 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
466 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
467 comparing with Z register.
469 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
471 * cfgloop.h (struct loop_desc): Removed.
472 (struct loop): Fields simple, desc and has_desc removed.
473 (simple_loop_p, count_loop_iterations): Declaration removed.
474 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
475 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
476 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
477 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
478 simple_loop_exit_p, variable_initial_value, variable_initial_values,
479 simple_condition_p, simple_increment, count_strange_loop_iterations,
480 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
482 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
484 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
486 * genattrtab.c: Don't handle MATCH_INSN.
487 * genrecog.c: Likewise.
488 * gensupport.c: Likewise.
489 * rtl.def (match_insn): Remove.
490 * doc/md.texi (match_insn, match_insn2): Remove.
492 2004-03-02 Mark Mitchell <mark@codesourcery.com>
494 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
495 macro results in memory allocation.
497 2004-03-02 David O'Brien <obrien@FreeBSD.org>
499 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
500 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
501 %(fbsd_dynamic_linker),
502 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
503 config/i386/freebsd.h
504 * config/arm/freebsd.h: Ditto.
505 * config/i386/freebsd.h: Ditto.
506 * config/i386/freebsd64.h: Ditto.
507 * config/ia64/freebsd.h: Ditto.
508 * config/rs6000/sysv4.h: Ditto.
509 * config/sparc/freebsd.h: Ditto.
511 2004-03-02 Loren James Rittle <ljrittle@acm.org>
513 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
515 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
517 * rtl.def (define_combine): Remove.
519 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
521 * config/h8300/h8300.md: Tweak formatting.
523 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
525 * config/h8300/h8300.md (*cmphi_h8300): Rename to
527 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
529 2004-03-01 Mark Mitchell <mark@codesourcery.com>
532 * gcc.c (process_command): Remove const-qualification from argv.
535 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
537 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
538 pushqi1_h8300hs_advanced. Adjust its caller.
539 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
542 2004-03-02 Nicolas Roche <roche@act-europe.fr>
544 * Makefile.in (install-libgcc, install-multilib): Pass
545 mkinstalldirs var to libgcc.mk.
547 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
549 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
550 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
552 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
554 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
555 * config/h8300/h8300.md: Split several peephole2's, each into
558 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
560 * dominance.c (recount_dominator): Handle postdominators.
562 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
564 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
565 (NUM_SYMBOL_TYPES): Likewise.
566 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
567 (mips_unspec_address): Declare.
568 (mips_gotoff_page, mips_gotoff_global): Delete.
569 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
570 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
571 (mips_symbolic_constant_p, mips_symbolic_address_p)
572 (mips_symbol_insns): Handle new symbol types.
573 (general_symbolic_operand): New predicate.
574 (mips_unspec_address): Make extern.
575 (mips_gotoff_page, mips_gotoff_global): Delete.
576 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
577 Handle new symbol types.
578 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
579 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
580 mips_unspec_address directly.
581 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
582 the documentation of -mexplicit-relocs.
584 2004-03-01 Jeff Law <law@redhat.com>
586 * fold-const.c (fold): An equality comparison of a non-weak object
587 against zero has a known result. Similarly an equality comparison
588 of the address of two non-weak, unaliased symbols has a known result.
590 * ggc-page.c (struct page_entry): New field PREV.
591 (ggc_alloc): Update PREV field appropriately.
592 (sweep_pages): Likewise.
593 (ggc_free): Likewise. Use PREV field rather than loop to
594 improve ggc_free performance.
596 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
598 * config/mips/mips.c (mips_output_division): Use the division
599 instruction to fill the delay slot of a zero check.
600 (mips_idiv_insns): Adjust accordingly.
602 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
604 * config.gcc: Create a default tmake_file for linux, and use
605 it in all but two linux clauses. Comment those two.
607 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
609 * combine.c (try_combine): Do not refer to is_replaced.
610 (gen_lowpart_for_combine): Perverse subregs now have a
611 more politically correct name.
612 * cse.c (cse_insn): Likewise.
613 * jump.c: Fix bogus reference to delete_insn.
615 2004-02-29 Mark Mitchell <mark@codesourcery.com>
618 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
619 constants as signed values.
622 * c-tree.h (readonly_warning): Rename to ...
623 (readonly_error): ... this.
624 * c-typeck.c (build_unary_op): Adjust accordingly.
625 (readonly_warning): Rename to ...
626 (readonly_error): ... this and issue errors, not warnings.
627 (build_modify_expr): Call readonly_error, not readonly_warning.
628 (c_expand_asm_operands): Likewise.
629 * tree-inline.c (optimize_inline_calls): Do not inline functions
630 after errors have occurred.
632 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
634 * configure.ac: Rearrange some threading code for clarity;
636 * configure: Regenerate.
638 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
640 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
642 * doc/cppopts.texi: Fix a typo.
644 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
646 * config/i386/i386.md: Fix formatting.
648 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
650 * configure.ac: Add some comments delineating sections of code.
652 * doc/install.texi: Note that libada uses autoconf 2.57 also.
654 * doc/install.texi: Fix idiot typo in previous commit.
656 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
658 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
660 * config/h8300/h8300.md: Add comments about peephole2's.
662 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
664 * config/h8300/h8300.md: Tweak operand numbers of some
667 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
669 * config/h8300/h8300.md: Tweak comments about peephole2's.
671 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
674 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
675 instead of testing whether DECL_RTL is not NULL.
677 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
679 * config/sh/sh.c: Fix formatting.
681 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
683 * config/sh/sh.c: Convert to ISO-C.
685 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
687 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
690 * config/darwin.h (machopic_finish): Output stub even if the
691 symbol is already defined.
693 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
695 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
697 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
699 * genattr.c (main): Don't define
700 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
701 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
702 (DFA_PIPELINE_INTERFACE): Likewise.
703 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
704 (DFA_PIPELINE_INTERFACE): Likewise.
706 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
708 * config/mips/mips.md (tstsi, tstdi): Delete.
710 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
712 * config/mips/mips.c (override_options): Remove an obsolete
713 duplicate definition of the "e" constraint.
714 * config/mips/mips.h: Update a comment accordingly.
716 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
718 * config/mips/mips.md: Complete the unfinished R4000
719 multiply/shift errata workaround. Improve documentation.
720 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
722 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
723 (muldi3, muldi3_internal): Likewise.
724 (muldi3_internal2): Remove, replacing with...
725 (muldi3_mult3, muldi3_r4000): ...these new patterns.
726 (mulsidi3): Take the errata into account.
727 (mulsidi3_32bit): Remove, replacing with...
728 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
729 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
730 (umulsidi3): Take the errata into account.
731 (umulsidi3_32bit): Remove, replacing with..
732 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
733 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
735 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
736 (smuldi3_highpart, umuldi3_highpart): Likewise.
737 * doc/invoke.texi: Document the errata workaround.
739 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
741 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
742 * config/mips/mips.h (MASK_FIX_SB1): Bump.
743 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
744 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
745 * config/mips/mips.c (mips_idiv_insns): New function.
746 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
747 (mips_output_division): Add a workaround for the R4000 divide/shift
749 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
750 the length of an "idiv" instruction.
751 * doc/invoke.texi: Document the new switches.
753 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
755 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
756 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
758 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
760 PR optimization/14229
761 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
763 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
765 * fold-const.c (fold): Strip NOPs that change the signedness
766 for RSHIFT too. Expand comment.
768 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
771 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
772 from or to call insns.
774 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
777 * flow.c (propagate_one_insn): Interpret calls as setting global
778 registers, not merely clobbering them.
780 2004-02-27 Dale Johannesen <dalej@apple.com>
782 * config/darwin.c (machopic_output_possible_stub_label): Remove.
783 config/darwin-protos.h: Ditto.
784 config/darwin.h: Remove call to it.
785 * combine.c (distribute_notes): Do not place a REG_DEAD note
786 when value is both set and used.
788 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
790 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
792 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
793 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
795 2004-02-27 Andrew Pinski <apinski@apple.com>
797 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
798 Speedup common case of the type values being in the same order.
800 2004-02-27 Steve Ellcey <sje@cup.hp.com>
802 * config/ia64/ia64.h (no-inline-float-divide): New option.
803 * config/ia64/ia64.h (no-inline-int-divide): New option.
804 * config/ia64/ia64.h (no-inline-sqrt): New option.
805 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
806 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
807 * config/ia64/ia64.c (ia64_override_options): Modify error
808 checking for inlined division/sqrt.
810 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
812 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
813 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
814 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
815 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
818 2004-02-27 Paul Brook <paul@codesourcery.com>
820 * function.c (assign_parms): Don't count pretend args for alignment.
822 2004-02-27 Richard Henderson <rth@redhat.com>
824 * passes.c: New file.
825 * Makefile.in (OBJS-common): Add it.
826 * diagnostic.c (rtl_dump_and_exit): Move decl ...
827 * flags.h (rtl_dump_and_exit): ... here.
828 * output.h (size_directive_output, last_assemble_variable_decl):
830 * rtl.h (reg_alloc): Move from toplev.c.
831 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
832 struct dump_file_info, enum dump_file_index, dump_file_tbl,
833 open_dump_file, close_dump_file, rest_of_decl_compilation,
834 rest_of_type_compilation, rest_of_handle_final,
835 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
836 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
837 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
838 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
839 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
840 rest_of_handle_tracer, rest_of_handle_if_conversion,
841 rest_of_handle_if_after_combine, rest_of_handle_web,
842 rest_of_handle_branch_prob,
843 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
844 rest_of_handle_addressof, rest_of_handle_sibling_calls,
845 rest_of_handle_jump_bypass, rest_of_handle_inlining,
846 rest_of_handle_null_pointer, rest_of_handle_combine,
847 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
848 rest_of_handle_gcse, rest_of_handle_loop_optimize,
849 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
850 (decode_d_option): Use enable_rtl_dump_file.
851 (compile_file, finalize, do_compile): Move profile+combine+graph
852 cleanup to finish_optimization_passes.
853 * toplev.h (init_optimization_passes, finish_optimization_passes,
854 enable_rtl_dump_file): Declare.
856 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
857 Roger Sayle <roger@eyesopen.com>
859 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
860 operands to build a tree with swapped operands.
861 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
862 'unsignedp' predicate to specify the signedness.
864 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
866 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
867 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
868 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
869 comment typos and formatting. Follow spelling conventions.
871 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
873 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
876 * config/rs6000/spe.md: Delete spe_efsctuiz.
877 Add spe_fixuns_truncsfsi2.
878 Add spe_fix_truncsfsi2.
880 2004-02-26 Eric Christopher <echristo@redhat.com>
882 * c-lex.c (c_lex_string_translate): New variable.
883 (lex_string): Use to determine string translation.
884 * c-pragma.h: Prototype.
885 * c-parse.in (start_string_translation): New. Set above.
886 (stop_string_translation): Ditto.
887 (attribute, attribute_list, asm_def, asm_stmt,
888 asm_operand): Use above functions.
889 * cp/parser.c (cp_parser_declaration): Translate strings
890 unless token is RID_EXTERN. Set c_lex_string_translate
892 (cp_parser_asm_definition): Only translate argument strings
894 (cp_parser_asm_operand_list): Ditto.
895 (cp_parser_attribute_list): Do not translate attribute strings.
897 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
899 * stmt.c (expand_start_case_dummy): Remove.
900 * tree.h: Remove the corresponding prototype.
902 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
904 * builtins.c (apply_args_register_offset): Remove.
905 * tree.h: Remove the corresponding prototype.
907 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
909 * stor-layout.c (is_pending_size): Remove.
910 * tree.h: Remove the corresponding prototype.
912 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
914 * recog.c (validate_replace_src): Remove.
915 * recog.h: Remove the corresponding prototype.
917 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
919 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
920 MAYBE_REG_PARM_STACK_SPACE.
921 * function.c: Likewise.
922 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
923 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
924 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
925 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
927 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
929 * c-decl.c (c_expand_deferred_function): Remove.
930 * c-tree.h: Remove the corresponding prototype.
932 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
934 * postreload.c (reload_cse_move2add): Generate just a PLUS
935 instead of an entire SET.
937 2004-02-26 Jan Hubicka <jh@suse.cz>
939 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
941 * i386.c (override_options): Add support for new CPUs.
942 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
943 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
945 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
947 2004-02-26 Bob Wilson <bob.wilson@acm.org>
949 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
951 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
953 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
954 (sparc_emit_fixunsdi): New prototype.
955 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
956 (sparc_emit_fixunsdi): New function.
957 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
958 operand 1. Pass SFmode to sparc_emit_floatunsdi.
959 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
960 to sparc_emit_floatunsdi.
961 (fixuns_truncsfdi2): New expander.
962 (fixuns_truncdfdi2): Likewise.
964 2004-02-26 Alan Modra <amodra@bigpond.net.au>
966 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
969 2004-02-25 Richard Henderson <rth@redhat.com>
971 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
972 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
973 use (op0-op1) == 0 if op0 is a pointer.
974 * config/alpha/alpha.md (cmpdi): Use some_operand.
975 (three comparison combine splits): Remove.
977 2004-02-25 Richard Henderson <rth@redhat.com>
980 * c-common.c (handle_alias_attribute): Reject the attribute if
981 current_function_decl is set.
983 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
985 * config.gcc: Add comment describing extra_gcc_objs.
986 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
987 * configure.ac (extra_gcc_objs): New substitution variable.
988 (host_extra_gcc_objs): Don't substitute.
989 * configure: Regenerate.
990 * Makefile.in: Use extra_gcc_objs.
992 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
994 * doc/contrib.texi: Add an entry for myself.
996 2004-02-25 Jan Hubicka <jh@suse.cz>
998 * basic-block.h (make_eh_edge, break_superblocks): Declare.
999 * cfgbuild.c (make_eh_edge): Make global.
1000 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
1001 * except.c (build_post_landing_pads, connect_post_landing_pads,
1002 dw2_build_landing_pads, sjlj_emit_function_enter,
1003 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
1004 sjlj_build_landing_pads): Update CFG.
1005 (emit_to_new_bb_before): New function.
1006 (finish_eh_generation): Do not rebuild the CFG.
1008 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1010 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
1011 target_cpu_default defines.
1012 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
1013 * pa.h (TARGET_DEFAULT): Likewise.
1015 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
1017 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
1018 comparisons with regard to signedness.
1020 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
1022 * arm.c (thumb_legitimize_address): New function.
1023 * arm-protos.h: Prototype it.
1024 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
1025 (LEGITIMIZE_ADDRESS): Use it.
1027 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
1029 * reload1.c (reload): Only spill eliminable register with multiple
1030 adjacent elimination alternatives if all alternatives fail.
1032 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
1034 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
1035 is -4095...+4095 inclusive.
1037 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
1039 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
1040 the bootstrap failure with Sun CC 5.4 and 5.5.
1042 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
1044 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
1045 which modifies NEWREG.
1046 (cse_condition_code_reg): Update the mode of CC_REG in
1047 CC_SRC_INSN on our own.
1049 2004-02-24 Michael Matz <matz@suse.de>
1051 * config/i386/i386.c (ix86_comp_type_attributes): Check for
1054 2004-02-24 Richard Henderson <rth@redhat.com>
1056 * toplev.c (dump_file_tbl): Rename from dump_file.
1057 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
1058 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
1059 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
1060 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
1061 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
1062 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
1063 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
1064 s/rtl_dump_file/dump_file/g.
1066 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
1068 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
1069 (spe_fixuns_truncsfsi2): Delete.
1071 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
1072 (fixuns_truncsfsi2): Delete.
1074 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
1077 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
1079 2004-02-24 Geoffrey Keating <geoffk@apple.com>
1081 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
1083 2004-02-24 Jason Merrill <jason@redhat.com>
1085 * tree.c (check_qualified_type): New fn.
1086 (get_qualified_type): Use it. If type already has the desired
1087 quals, just return it.
1088 * tree.h: Declare it.
1090 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
1092 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
1093 TARGET_SCHED_FINISH_GLOBAL): New macros.
1095 * target.h (md_init_global, md_finish_global): Function
1096 declarations corresponding to new target macros.
1098 * haifa-sched.c (sched_init, sched_finish): Allow target to
1099 call the new schedular hooks.
1101 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
1102 call to update_life_info.
1104 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
1105 flag_schedule_insns for SH4.
1107 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
1108 find_set_regmode_weight, find_insn_regmode_weight,
1109 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
1110 sh_variable_issue, high_pressure, ready_reorder,
1111 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
1112 functions used to throttle the insn movement in first
1113 scheduling pass for SH.
1115 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
1116 TARGET_SCHED_FINISH_GLOBAL.
1118 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
1120 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
1121 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
1122 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
1123 symbols in sections named by the user.
1124 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
1125 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
1126 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
1127 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
1128 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
1130 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
1131 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
1132 one more pseudo to further improve code generation.
1133 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
1134 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
1136 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
1137 * config/frv/frv.c (frv_legitimate_address_p): Added
1138 allow_double_reg_p argument. Adjust all callers. Use it to
1139 decide whether to enable double-register indirect addressing.
1140 (frv_funcdesc_alias_set): Remove.
1141 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
1142 register. Emit movdi_ldd.
1143 (ldd_address_operand): New.
1144 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
1145 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
1146 (PREDICATE_CODES): Add ldd_address_operand.
1147 * config/frv/frv.md (movdi_ldd): New.
1148 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
1149 intermediate computations if possible.
1150 (symGOTOFF2reg_i): Fix harmless typo.
1151 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
1152 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
1153 relocated p_vaddr to vaddr type.
1154 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
1155 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
1156 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
1157 MEM, or use a funcdesc alias set. Use regular move instead of
1159 (dbl_memory_one_insn_operand): Recognize function descriptors by
1160 type or by alias set, and don't split them.
1161 * config/frv/frv.md (call, call_value): Never use call_internal
1163 (call_internal, call_value_internal): Never match for FDPIC.
1164 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
1165 call_value_fdpicsi): Require FDPIC.
1167 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
1168 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
1169 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
1170 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
1171 FDPIC. Compute data base address.
1172 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
1173 before the other self-specs are processed.
1174 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
1176 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
1177 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
1178 inhibit_libc is defined.
1179 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
1180 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
1182 (__RELOC_POINTER): Define.
1183 (_Unwind_IteratePhdrCallback): Use it.
1184 * config/frv/frv.h (Twrite): Define.
1185 (TRANSFER_FROM_TRAMPOLINE): Use it.
1186 * config/frv/linux.h (INVOKE__main): Undefine.
1188 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1189 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
1190 (-mlibrary-pic): Emphasize that this option generates EABI code.
1193 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
1194 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
1195 and CONSTs in FDPIC mode.
1196 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
1197 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1198 * config/frv/frv.c (move_source_operand): Don't accept symbolic
1200 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
1201 rather than 'i' constraint for the 2-instruction alternative.
1202 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
1203 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1204 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
1205 EXTRA_CONSTRAINT_FOR_Y.
1206 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
1207 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
1208 (addsi3): Change 'Y' constraint to 'Q'.
1209 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
1210 * reload.c (CONST_POOL_OK_P): New macro.
1211 (find_reloads): Use it to decide whether a constant can be forced
1213 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
1214 constant satisfies got12_operand.
1215 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
1216 (frv_legitimate_address_p): Check for valid unspec offsets using
1217 got12_operand rather than frv_legitimate_fdpic_operand_p.
1218 (frv_legitimate_fdpic_operand_p): Delete.
1219 (frv_emit_movsi): Abort if we try to use the FDPIC register during
1221 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
1223 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
1224 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
1225 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
1226 (frv_fdpic_fptr_operand): Don't declare here.
1227 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
1228 rather than fdpic_got12_operand.
1229 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
1230 got12_operand and const_unspec_operand.
1231 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
1232 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
1233 (symbolic_operand): Remove.
1234 (const_unspec_operand): New predicate.
1235 * config/frv/frv.md (*movsi_got): Use got12_operand.
1236 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
1237 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
1238 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
1239 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
1240 * config/frv/frv.c (frv_unspec): New structure.
1241 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
1242 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
1243 validate CONST indices. Use frv_output_const_unspec to print them.
1244 (frv_print_operand): Update call to unspec_got_name. Use
1245 frv_output_const_unspec to print constant unspecs.
1246 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
1247 Reject UNSPECs otherwise.
1248 (unspec_got_name): Take the relocation number as argument, not an
1250 (frv_output_addr_const_extra): Remove, replacing with...
1251 (frv_output_const_unspec): ...this new function.
1252 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
1253 (gpr_or_int12_operand): Use fdpic_got12_operand.
1254 (dbl_memory_one_insn_operand): Likewise.
1255 (fdpic_got12_operand): Use frv_const_unspec_p.
1256 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
1257 are already legitimate. Use frv_small_data_reloc_p when deciding
1258 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
1259 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
1260 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
1261 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
1262 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1263 label, for real this time.
1264 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
1265 representation of visibility.
1266 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
1268 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
1269 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
1270 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
1271 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
1272 it was explicitly disabled.
1273 (frv_stack_info): There is no need to save the link register in every
1274 frame unless TARGET_LINKED_FP is true.
1275 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
1276 frame pointer if the stack pointer might change value.
1277 (frv_return_addr_rtx): Check and process "count" argument.
1278 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
1279 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
1280 (frv_find_base_term): Declare.
1281 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
1282 (FIND_BASE_TERM): Define.
1283 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
1284 small_data_register_operand, small_data_symbolic_operand. Add
1286 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
1287 (frv_print_operand_memory_reference, output_move_single): Remove
1288 special handling for unlegitimized sdata addresses.
1289 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
1290 and symbolic addresses.
1291 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
1292 (frv_find_base_term): New function.
1293 (int_2word_operand): Check specifically for symbolic address constants.
1294 (pic_register_operand, pic_symbolic_operand): Delete.
1295 (small_data_register_operand, small_data_symbolic_operand): Delete.
1296 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
1297 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
1298 (move_source_operand): Only accept CONSTs if they're a two-insn
1300 (fdpic_got12_operand): Don't require TARGET_FDPIC.
1301 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
1302 using gen_symGOTOFF2reg*.
1303 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
1304 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
1305 themselves a cost of 3 insns.
1306 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
1307 Change predicate to symbolic_operand.
1308 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
1309 (*movsi_lda_sdata): Delete.
1310 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
1311 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1312 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
1314 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1316 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
1317 -multilib-library-pic.
1318 (LINK_SPEC): Add -z text for -mfdpic.
1319 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
1320 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
1321 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
1323 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
1324 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
1325 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
1326 crtstuff-generated files.
1327 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1328 * config.gcc: Add frv-*-*linux*.
1329 * config/frv/linux.h, config/frv/t-linux: New.
1330 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
1331 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
1332 when -mfdpic even if a linker script is explicitly listed.
1333 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
1334 * config/frv/frv.c (frv_override_options): Clear asm_out
1335 unaligned_op for SImode on FDPIC.
1336 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
1337 argument passed to decl_readonly_section.
1338 (frv_assemble_integer): Revert 2003-09-30's change, but make the
1339 whole block run with FDPIC even with -fno-PIC.
1340 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
1341 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
1342 symbol or label plus offset to memory.
1343 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
1344 GOTOFF and GPREL for LABEL_REF.
1345 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
1346 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
1347 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
1348 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
1349 * doc/invoke.texi: Document them.
1350 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1351 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
1352 (frv_splittable_got_operand): Removed.
1353 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
1354 LO_SUM. Add comments.
1355 (frv_override_options): Moved enabling of FDPIC to
1356 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
1357 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
1358 (frv_legitimize_fdpic_address): Don't duplicate logic in
1360 (frv_gen_GPsym2reg): New.
1361 (unspec_got_name): Added gprel.
1362 (frv_expand_fdpic_call): Add support for inlining PLTs.
1363 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
1364 (gpr_or_int12_operand): Added GPREL12.
1365 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
1366 (small_data_symbolic_operand): Fail if FDPIC.
1367 (fdpic_splittable_got_operand): Removed.
1368 (fdpic_got12_operand): Added GPREL12.
1369 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
1370 when appropriate. Fix sdata GOTOFF.
1371 (frv_legitimate_constant_p): Require legitimate PIC operand for
1372 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
1373 (frv_assemble_integer): Move FDPIC funcdesc handling out of
1375 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
1376 frv_assemble_integer fails.
1377 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
1378 (SUBTARGET_DRIVER_SELF_SPECS): New.
1379 (ASM_SPEC): Don't pass -mno-fdpic.
1380 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
1381 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
1382 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
1383 -multilib-library-pic.
1384 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
1385 condexec_si_media_operator, condexec_sf_add_operator and
1386 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
1387 and condexec_sf_unary_operator.
1388 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
1390 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
1391 movsi_internal. Give them internal names. movsi_got has type
1393 (fdpic got splitters): Remove.
1394 (symGPREL2reg, symGPREL2reg_hilo): New.
1395 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
1396 to -mlibrary-pic. Map -multilib-library-pic to it.
1397 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
1399 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
1400 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
1401 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
1402 (frv_cannot_force_const_mem): New function.
1403 (const_small_data_p, plus_small_data_p): Update comments on sdata
1405 (frv_override_options): Set flag_pie for FDPIC too.
1406 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
1407 call-saved registers on FDPIC.
1408 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
1409 don't force LR to be preserved.
1410 (frv_expand_prologue): Likewise.
1411 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
1412 (frv_frame_pointer_required): Don't force it just because the
1413 FDPIC register is used.
1414 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
1415 operand only if !condexec_p.
1416 (frv_legitimize_address): Return the FDPIC-legitimized address.
1417 Don't match small data here on FDPIC.
1418 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
1419 symbols. Use TRUE/FALSE instead of 1/0.
1420 (frv_local_funcdesc_p): New.
1421 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
1422 immediates when possible.
1423 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
1424 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
1426 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
1427 12-bit immediates when possible.
1428 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
1429 are not legitimate pic operands.
1430 (frv_in_small_data_p): Re-enable for FDPIC.
1431 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
1432 (FRV_GLOBAL_P): Removed.
1433 * config/frv/frv.md: Add modes to CONSTs.
1435 (movsi_lo_sum_got): Use separate matches instead of match_dup.
1436 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
1437 (fdpic splittable operations): Match on flag_pic != 1.
1438 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
1439 * config/frv/frv.c (frv_asm_out_constructor,
1440 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
1442 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
1443 * config/frv/frv.c (frv_assemble_integer): Reject complex
1444 expressions referencing function SYMBOL_REFs.
1445 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
1446 (move_source_operand): Reject CONSTs that reference function
1447 SYMBOL_REFs on FDPIC.
1448 (frv_emit_movsi): If we get such a CONST, break it up.
1449 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
1450 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
1451 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
1453 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
1454 (frv_trampoline_size): Increase for FDPIC.
1455 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
1456 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
1457 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
1458 Disable use of GOTOFF for now.
1459 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
1460 Disable use of small data in FDPIC for now.
1461 (frv_asm_output_mi_thunk): Implement for FDPIC.
1462 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
1463 * config/frv/frv.c (frv_asm_out_constructor): Use
1464 frv_assemble_integer for FDPIC pointers.
1465 (frv_asm_out_destructor): Likewise.
1466 * config/frv/frv.md (ldd): Fix order of operands. Use
1467 address_operand for input.
1468 2003-09-18 DJ Delorie <dj@redhat.com>
1469 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
1470 (unspec_got_name): Correct typo.
1471 (frv_emit_movsi): Pre-expand splittable GOTs.
1472 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
1473 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
1474 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
1475 * config/frv/t-frv: Add -mfdpic multilibs.
1476 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
1477 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
1478 * config/frv/frv.c (frv_override_options): -mfdpic assumes
1479 flag_pic, default to 32-bit pics, require DWORD ops.
1480 (frv_override_options): Add W and Z constraints.
1481 (frv_expand_prologue): No pic prologue for -mfdpic.
1482 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
1483 (frv_print_operand_memory_reference): Handle GOT constants.
1484 (frv_legitimate_address_p): Allow GOT constants.
1485 (frv_legitimize_address): Handle GOT addresses too.
1486 (frv_legitimate_fdpic_operand_p): New.
1487 (frv_legitimize_fdpic_address): New.
1488 (unspec_got_name): New.
1489 (frv_output_addr_const_extra): New.
1490 (frv_expand_fdpic_call): New.
1491 (frv_fdpic_fptr_operand): New.
1492 (gpr_or_int12_operand): Handle GOT operands.
1493 (int_2word_operand): Handle GOT operands.
1494 (fdpic_operand): New.
1495 (fdpic_splittable_got_operand): New.
1496 (fdpic_got12_operand): New.
1497 (frv_emit_movsi): Handle GOT operands.
1498 (frv_assemble_integer): -mfdpic doesn't use rofixups.
1499 (frv_print_operand): Support 'g' code for GOT operands.
1500 * config/frv/frv-protos.h: Add prototypes as needed.
1501 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
1502 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
1503 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
1504 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
1505 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
1506 R_FRV_GOTOFFLO): New.
1507 (movsi_high_got, movsi_lo_sum_got): New.
1508 (*movsi_pic): Don't use this splitter for -mfdpic.
1509 (addsi3): Allow GOT references also.
1510 (call, call_value): Handle -mfdpic separately.
1511 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
1512 call_value_fdpicsi): New.
1513 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
1514 symGOTOFF2reg_i): New.
1515 * config/frv/frv.h (MASK_FDPIC): New.
1516 (TARGET_FDPIC): New.
1517 (TARGET_SWITCHES): Add -mfdpic.
1518 (FDPIC_FPTR_REGNO): New.
1520 (OUR_FDPIC_REG): New.
1521 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
1523 (REG_CLASS_NAMES): Likewise.
1524 (REG_CLASS_CONTENTS): Likewise.
1525 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
1526 (EXTRA_CONSTRAINT): Add it here.
1527 (FRV_GLOBAL_P): New.
1528 (OUTPUT_ADDR_CONST_EXTRA): New.
1530 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
1532 * config/sparc/sparc.h: Remove commented-out definitions of
1533 TARGET_EDOM and GEN_ERRNO_RTX.
1535 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
1537 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
1538 df_analyse with df_analyze.
1540 2004-02-24 Alan Modra <amodra@bigpond.net.au>
1542 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
1545 2004-02-23 James E Wilson <wilson@specifixinc.com>
1547 * calls.c (precompute_arguments): Update comment.
1549 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1551 * et-forest.c: Replace et_occurences with et_occurrences.
1553 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1555 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
1558 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
1560 * config/i386/i386.c: Rename pni to sse3.
1561 * config/i386/i386.h: Likewise.
1562 * config/i386/i386.md: Likewise.
1563 * config/i386/pmmintrin.h: Likewise.
1564 * doc/extend.texi: Likewise.
1565 * doc/invoke.texi: Likewise.
1567 2004-02-23 Zack Weinberg <zack@codesourcery.com>
1568 Kazu Hirata <kazu@cs.umass.edu>
1570 Remove -fwritable-strings.
1571 * c-common.c (fix_string_type): Don't check
1572 flag_writable_strings.
1573 (fix_string_type): Likewise.
1574 * c-opts.c (set_std_c89): Don't initialize
1575 flag_writable_strings.
1576 (set_std_c99): Likewise.
1577 * common.opt (fwritable-strings): Remove.
1578 * flags.h: Remove the external declaration of
1579 flag_writable_strings.
1580 * opts.c (common_handle_option) <OPT_fwritable_strings>:
1582 * toplev.c (flag_writable_strings): Remove.
1583 (f_options): Remove an entry for writable-strings.
1584 * varasm.c (const_hash_1) <STRING_CST>: Don't check
1585 flag_writable_strings.
1586 (compare_constant) <STRING_CST>: Likewise.
1587 (build_constant_desc): Likewise.
1588 * config/darwin.c (machopic_select_section): Likewise.
1589 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
1590 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
1591 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
1592 * config/mips/mips.c (mips_select_section): Likewise.
1593 (mips_encode_section_info): Likewise.
1594 * config/pa/pa.c (pa_select_section): Likewise.
1595 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
1596 * config/v850/v850.c (v850_select_section): Likewise.
1597 * doc/invoke.texi (-fwritable-strings): Remove.
1598 (-fno-const-strings): Don't mention -fwritable-strings.
1599 * doc/trouble.texi: Don't mention -fwritable-strings.
1601 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
1603 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
1605 2004-02-23 Dale Johannesen <dalej@apple.com>
1607 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
1608 (movdf_hardfloat64): Ditto.
1609 (movdf_softfloat64): Ditto.
1611 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
1612 * config/rs6000/rs6000.c (function_arg): call to
1613 rs6000_mixed_function_arg for DFmode moved to allow
1614 normal DFmode incoming register assignment.
1616 2004-02-23 Dale Johannesen <dalej@apple.com>
1618 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
1619 (movdf_hardfloat64): Ditto.
1621 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1623 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
1624 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
1627 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
1630 * c-typeck.c (c_expand_return): Change check for VAR_DECL
1631 to use DECL_P instead.
1633 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
1634 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
1636 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1638 * Makefile.in (opts.o): Depend on target.h.
1639 * opts.c (decode_options): Use targetm.default_short_enums
1640 instead of DEFAULT_SHORT_ENUMS.
1641 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1642 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
1643 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
1644 * target.h (gcc_target): Add default_short_enums.
1645 * config/cris/cris.h: Remove a comment about
1646 DEFAULT_SHORT_ENUMS.
1647 * config/ip2k/ip2k.h: Likewise.
1648 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
1649 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
1651 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1652 Falk Hueffner <falk@debian.org>
1655 * builtins.c (expand_builtin_va_arg): Emit an informative message
1656 if a trap is generated.
1657 * c-typeck.c (build_function_call): Likewise.
1659 2004-02-22 Jakub Jelinek <jakub@redhat.com>
1661 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
1663 * libgcov.c: Include sys/stat.h.
1664 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
1665 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
1666 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
1667 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
1669 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
1671 * reorg.c: Remove comments about dead ports.
1673 2004-02-22 Christopher Faylor <cgf@redhat.com>
1675 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
1676 extra host object file when targetting cygwin rather than generic
1679 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
1681 Merge from tree-ssa:
1682 2003-11-20 Richard Henderson <rth@redhat.com>
1684 * tree-inline.c (insert_decl_map): New.
1685 (remap_decl, remap_type, remap_block, copy_body_r,
1686 initialize_inlined_parameters, declare_return_variable,
1687 remap_save_expr): Use it.
1689 * function.c (copy_body_r): Add mapping from id->ret_label to
1690 id->ret_label. Revert test for ret_label.
1692 2004-02-22 Jakub Jelinek <jakub@redhat.com>
1694 * genoutput.c (process_template): Strip trailing whitespace in @
1695 templates and issue a warning if there was any.
1697 2004-02-21 Christopher Faylor <cgf@redhat.com>
1699 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
1700 object file when targetting cygwin.
1701 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
1702 overridden by top-level Makefile.
1704 2004-02-21 Roger Sayle <roger@eyesopen.com>
1706 * config/i386/i386.c (standard_80387_constant_p): Also prefer
1707 the x87's load constant instructions when optimizing for size.
1709 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
1711 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
1712 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
1713 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
1714 * fold-const.c: Likewise.
1715 * simplify-rtx.c: Likewise.
1717 2004-02-21 Alan Modra <amodra@bigpond.net.au>
1719 * combine.c (can_combine_p): Don't ignore SETs marked with
1720 REG_EH_REGION notes.
1721 (try_combine): When attemting to fix unrecognized insns, don't
1722 split a PARALLEL that contains the original i2.
1724 2004-02-21 Ziemowit Laski <zlaski@apple.com>
1726 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
1727 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
1728 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
1729 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
1730 (vector, pixel, bool): #define to __vector, __pixel and __bool.
1731 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
1733 (__altivec_link_error_invalid_argument): Remove prototype; will use
1734 __builtin_altivec_compiletime_error("vec_*") instead.
1735 (vec_*): Fix/complete set of available operation overloads given the
1736 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
1737 cv-correctness of pointer arguments; in C, always check for correct
1738 argument types before macro expansion.
1739 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
1740 defining Darwin/PowerPC-specific '-f[no-]altivec' and
1741 '-W[no-]altivec-long-deprecated' switches.
1742 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
1743 '__vector', '__pixel' and '__bool' macros using
1744 '__attribute__((altivec(...)))' types.
1745 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
1746 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
1747 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
1749 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
1750 handling '-W[no-]altivec-long-deprecated'.
1751 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
1752 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
1753 altivec_expand_dst_builtin): Remove casts from integer literals.
1754 (altivec_expand_builtin): Likewise; handle expansion of new
1755 '__builtin_altivec_compiletime_error' function.
1756 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
1757 types, and make them distinct from other vector types; register
1758 '__builtin_altivec_compiletime_error' function.
1759 (print_operand): For 'P', print a full target register name instead of
1761 (rs6000_attribute_table): Add "altivec" attribute.
1762 (rs6000_handle_altivec_attribute): New function.
1763 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
1764 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
1766 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
1768 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
1770 2004-02-20 James E Wilson <wilson@specifixinc.com>
1772 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
1774 (shift_mix4left+2): Delete redundant pattern.
1776 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1778 * alias.c (OUTGOING_REGNO): Don't define the default.
1779 * builtins.c (OUTGOING_REGNO): Likewise.
1780 (INCOMING_REGNO): Likewise.
1781 (apply_args_register_offset): Always use OUTGOING_REGNO.
1782 * combine.c (OUTGOING_REGNO): Likewise.
1783 * sibcall.c (OUTGOING_REGNO): Likewise.
1784 * defaults.h (INCOMING_REGNO): Provide the default.
1785 (OUTGOING_REGNO): Likewise.
1787 2004-02-21 Jan Hubicka <jh@suse.cz>
1789 * params.def (max-peeled-insns, max-completely-peeled-insns,
1790 max-once-peeled-insns): Set to 400.
1792 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1795 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
1796 are set for parameters before outputing debugging information.
1798 2004-02-20 Falk Hueffner <falk@debian.org>
1801 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
1804 2004-02-20 Per Bothner <per@bothner.com>
1806 * input.h: Don't #include line-map.h. It may cause link problems
1807 with undefined linemap_line_start when line-map.h is included but
1808 line-map.o is not linked, as currently happens with gengtype on
1809 compilers that don't support inline.
1810 * toplev.c: So we do have to explicitly #include line-map.h here.
1812 2004-02-20 Richard Henderson <rth@redhat.com>
1814 * doc/invoke.texi: Add -Wvariadic-macros.
1816 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1818 * haifa-sched.c (sched_emit_insn): Remove.
1819 * sched-int.h: Remove the corresponding prototype.
1821 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1824 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1825 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1826 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1827 * config/cris/cris.h: Remove a comment about
1828 DEFAULT_SHORT_ENUMS.
1829 * config/ip2k/ip2k.h: Likewise.
1830 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1832 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
1833 Tom Tromey <tromey@redhat.com>
1835 * doc/install.texi: Moved --disable-libgcj and
1836 --with-system-zlib documentation to new section for
1837 Java-specific options.
1838 Added explicit Cross-Compiler-Specific Options subheading.
1839 Added section for Java-specific options.
1841 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
1843 * doc/install.texi (Building the Ada compiler): Remove
1846 2004-02-20 James E Wilson <wilson@specifixinc.com>
1848 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
1850 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1852 * gcc.c (process_command): Allow translation of the copyright
1853 symbol but not the rest of the copyright message.
1854 * gcov.c (print_version): Likewise. Allow translation of the
1855 message about warranty.
1857 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
1859 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
1861 ("*andsi_clear"): Tweak constraints to not match postincrement.
1862 Adjust the predicate to exclude a volatile memory reference.
1863 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
1864 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
1866 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
1868 * move-if-change: Remove.
1869 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
1870 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
1871 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
1872 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
1873 (s-gtyp-gen, s-iov): Use the top level move-if-change.
1874 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
1876 2004-02-19 James E Wilson <wilson@specifixinc.com>
1878 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
1879 for operand2. Add condition that requires register_operand operand2
1882 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
1883 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1885 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
1886 * config/mips/mips.md: Expand comment above unaligned loads and stores.
1888 2004-02-19 Richard Henderson <rth@redhat.com>
1890 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
1891 * tree.c (build0, build1, build2, build3, build4): Split out from...
1892 (build): ... here. Call them.
1893 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
1895 * convert.c (convert_to_integer): Remove extra build argument.
1896 * tree-inline.c (expand_call_inline): Likewise.
1898 2004-02-19 Richard Henderson <rth@redhat.com>
1900 * c-opts.c (warn_variadic_macros): New.
1901 (c_common_handle_option): Set it.
1902 (sanitize_cpp_opts): Copy it to cpp_opts.
1903 * c.opt (Wvariadic-macros): New.
1904 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
1905 * cppinit.c (cpp_create_reader): Initialize it.
1906 * cppmacro.c (parse_params): Check it.
1908 2004-02-19 David Daney <ddaney@avtrex.com>
1910 PR preprocessor/14198
1911 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
1912 builtin_assert ("machine=mips")
1914 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1916 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1917 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1918 * config/cris/cris.h: Remove a comment about
1919 DEFAULT_SHORT_ENUMS.
1920 * config/ip2k/ip2k.h: Likewise.
1921 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1923 2004-02-19 Zack Weinberg <zack@codesourcery.com>
1925 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
1926 when passing single SFmode quantities in general registers,
1927 put them in the high half.
1929 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
1931 * doc/md.texi (Standard Names): Document additional dependency on
1934 * optabs.c (ftruncify): Remove.
1935 (expand_fix): Manually inline ftruncify above.
1936 (can_fix_p): Add FIXME note.
1938 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
1940 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
1941 spe_fixuns_truncsfsi2.
1943 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
1946 2004-02-19 Steve Ellcey <sje@cup.hp.com>
1948 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
1949 * testsuite/gcc.dg/20040219-1.c: New test.
1951 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
1953 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
1954 "*subsf3_cconly"): Subtraction is not commutative.
1956 2004-02-19 Zack Weinberg <zack@codesourcery.com>
1958 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
1959 (sdbout_symbol): If called before sdbout_init, queue DECL for
1961 (sdbout_init): Set sdbout_initialized true, process decls
1962 queued earlier by sdbout_symbol.
1963 (sdbout_finish): Use size_t for index variable.
1965 2004-02-19 Jeff Law <law@redhat.com>
1967 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
1968 for unordered comparison codes.
1970 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
1972 * reload1.c (reload): Correct comment.
1973 (scan_paradoxical_subregs): Remove #if 0 and old comment.
1974 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
1975 register variables are not used by reload.
1977 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
1980 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
1981 constraints to not match postincrement. Adjust the predicate to
1982 exclude a volatile memory reference.
1984 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1986 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
1988 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1990 * hooks.c (hook_void_tree_int): Remove.
1991 (hook_void_constcharptr): Likewise.
1992 (hook_int_void_0): Likewise.
1993 * hooks.h: Remove the prototypes for the above three
1995 * targhooks.c (hook_bool_machine_mode_true): Remove.
1996 * targhooks.h: Remove the prototype for
1997 hook_bool_machine_mode_true.
1999 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2001 * emit-rtl.c (subreg_realpart_p): Remove.
2002 (reorder_insns_with_line_notes): Likewise.
2003 (end_full_sequence): Likewise.
2004 * rtl.h: Remove the prototype for the above functions.
2006 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2008 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
2009 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
2010 config/iq2000/iq2000.h, config/m32r/m32r.h,
2011 config/pdp11/pdp11.h, config/sparc/sparc.h,
2012 config/xtensa/xtensa.h: Remove commented-out or useless
2013 definitions of CASE_VECTOR_PC_RELATIVE.
2015 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2017 * loop.c (all_sets_invariant_p): Remove.
2019 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
2022 * config/sparc/sparc.h (NPARM_REGS): Delete.
2023 (BASE_RETURN_VALUE_REG): Likewise.
2024 (BASE_OUTGOING_VALUE_REG): Likewise.
2025 (BASE_PASSING_ARG_REG): Likewise.
2026 (BASE_INCOMING_ARG_REG): Likewise.
2027 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
2028 TARGET_ARCH64, not TARGET_V9.
2029 (function_arg_slotno): Dispatch based on the mode class.
2030 Handle vector modes like floating-point modes.
2031 (function_arg_record_value_1): Handle vector types like
2032 floating-point types.
2033 (function_arg_record_value_2): Likewise.
2034 Calculate regno after mode transformation.
2035 (function_arg): Handle vector modes like floating-point modes.
2036 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
2037 If ARCH64, do not recheck alignment.
2038 (function_arg_pass_by_reference): Reorder the conditions.
2039 (sparc_return_in_memory): Move after function_arg_padding.
2040 Implement calling conventions for vector modes.
2041 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
2042 (function_value): Move scope of 'regbase'.
2043 Implement calling conventions for vector modes.
2044 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
2045 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
2046 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
2047 the argument is passed by reference.
2048 (sparc_type_code): Handle vector types.
2050 2004-02-19 Alan Modra <amodra@bigpond.net.au>
2052 * function.c (assign_parms): When building decl_rtl for
2053 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
2055 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
2057 * expr.c (is_aligning_offset): Check if we are aligning the
2058 expressions's address over BIGGEST_ALIGNMENT in bytes, not
2061 2003-02-18 Matt Austern <austern@apple.com>
2063 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
2064 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
2065 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
2066 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
2068 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
2070 2004-02-18 Zack Weinberg <zack@codesourcery.com>
2072 * dwarf2out.c (loclabel_num): Move outside #ifdef
2073 DWARF2_DEBUGGING_INFO and mark with GTY(()).
2074 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
2076 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
2077 Allocate memory with ggc_alloc. No need to copy anything.
2078 (ia64_hpux_file_end): Update to match.
2080 2004-02-18 Jakub Jelinek <jakub@redhat.com>
2082 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
2085 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
2087 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
2088 ("divmodtisi3"): Likewise.
2089 ("udivmoddi4", "udivmodtidi3"): Likewise.
2090 ("divmodsi4", "divmoddisi3"): Likewise.
2091 ("udivmodsi4", "udivmoddisi3"): Likewise.
2092 ("udivsi3", "umodsi3"): Likewise.
2094 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
2096 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
2097 placeholder insn when chunkifying the pool.
2099 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2101 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
2102 generating PIC code.
2104 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2106 * config/h8300/h8300-protos.h: Add a prototype for
2107 h8300_expand_branch.
2108 * config/h8300/h8300.c (h8300_expand_branch): New.
2109 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
2110 bgtu, beq, bne): Call h8300_expand_branch().
2112 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2114 * config/h8300/h8300-protos.h: Add prototypes for
2115 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
2116 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
2117 (h8300_hard_regno_mode_ok): Likewise.
2118 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
2119 h8300_hard_regno_nregs().
2120 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
2122 2004-02-18 Per Bothner <per@bothner.com>
2124 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
2125 partly reverts my 2003-10-01 change, because we're back to logically
2126 including <command line> inside the main line.
2127 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
2128 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
2129 Fixes PR preprocessor/14103.
2131 * cppfiles.c (_cpp_stack_include): When appropriate decrement
2132 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
2133 (cpp_push_include): Don't need to increment pfile's line field.
2134 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
2136 * c-ppoutput.c (print struct): New first_time field.
2137 (init_pp_output): Set print.first_time.
2138 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
2139 which is set also for (say) <command line>. Clear print.first_time.
2141 * cppfiles.c (struct _cpp_file): Comment and type for pch field
2142 does not match the code, so fix both.
2143 (should_stack_file): Inline include_pch_p function.
2144 (include_pch_p): Remove pointless function.
2146 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
2148 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2150 * config/h8300/h8300.md (four define_peephole2's): Use
2151 h8300_regs_ok_for_stm().
2153 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2155 * config/h8300/h8300-protos.h: Update the prototype for
2157 * config/h8300/h8300.c (expand_a_rotate): Remove the first
2159 * config/h8300/h8300.md: Update all callers.
2161 2004-02-18 Jan Hubicka <jh@suse.cz>
2163 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
2165 (simplify_binary_operation): Deal with logicals on floats.
2167 * i386.md (SSE fabs splitters): Emit new patterns.
2168 (SSE cmov splitters): Likewise.
2169 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
2170 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
2172 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
2173 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
2175 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2177 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
2179 (output_a_rotate): Tweak a comment.
2180 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
2181 (*rotlhi3_1): Change to rotlhi3_1.
2182 (*rotlsi3_1): Change to rotlsi3_1.
2184 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
2187 * arm.c (load_multiple_operation): Don't insist that the source reg
2188 of a post-increment component is the same as the destination.
2189 (store_multiple_operation): Likewise.
2191 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2193 * config/h8300/h8300.md: Move movsf patterns into one section
2196 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2198 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
2199 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
2200 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
2201 config/mips/linux64.h, config/pa/pa-64.h,
2202 config/rs6000/aix51.h, config/rs6000/aix52.h,
2203 config/rs6000/spe.md, config/sparc/linux.h,
2204 config/sparc/linux64.h: Update copyright.
2206 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2208 * config/h8300/h8300.md: Move push patterns into one
2209 section of the file.
2211 2004-02-18 Mark Mitchell <mark@codesourcery.com>
2214 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
2217 2004-02-18 Paul Brook <paul@codesourcery.com>
2219 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
2221 2004-02-18 Paul Brook <paul@codesourcery.com>
2224 * dwarf2out.c (loc_descriptor_from_tree): Handle
2225 EXPR_WITH_FILE_LOCATION.
2227 2004-02-18 Jakub Jelinek <jakub@redhat.com>
2229 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
2230 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
2231 trailing whitespace from instructions.
2233 2004-02-17 Geoffrey Keating <geoffk@apple.com>
2235 * configure.ac: When generating auto-build.h, pass
2236 --enable-languages to the sub-configure.
2237 Put quotes around ${program_transform_name} when generating
2238 name of as, ld, nm, objdump.
2239 * configure: Regenerate.
2241 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
2243 * Makefile.in (s-check, s-config, s-conditions, s-flags)
2244 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
2245 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
2246 (s-preds, s-iov): Do not depend on move-if-change.
2248 2004-02-17 James E Wilson <wilson@specifixinc.com>
2250 * caller-save.c (insert_restore): Pass mem through copy_rtx.
2251 (insert_save): Likewise.
2253 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2255 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
2258 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2260 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
2262 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
2264 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2266 * config/h8300/h8300-protos.h: Update the prototype of
2268 * config/h8300/h8300.c (fix_bit_operand): Remove the second
2270 * config/h8300/h8300.md: Update all callers.
2272 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2274 * config/h8300/h8300.c (fix_bit_operand): Change the name of
2275 the last argument to "code" from "type".
2277 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2279 * config/h8300/h8300.c: Remove an extern declaration of
2280 rtx_equal_function_value_matters.
2282 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2284 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
2286 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
2287 (*iorqi3_1): Change to iorqi3_1.
2288 (*xorqi3_1): Change to xorqi3_1.
2290 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2292 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
2295 2004-02-17 Jan Hubicka <jh@suse.cz>
2297 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
2299 2004-02-18 Alan Modra <amodra@bigpond.net.au>
2301 PR optimization/14119
2302 * combine.c (try_combine): When attemting to fix unrecognized insns,
2303 don't delete SETs marked with REG_EH_REGION notes.
2305 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
2307 * combine.c (simplify_if_then_else): Do not replace
2308 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
2311 2004-02017 Steven Bosscher <stevenb@suse.de>
2313 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
2314 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
2315 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
2316 * ada/utils.c: Likewise.
2317 * cp/decl.c: Likewise.
2318 * f/com.c: Likewise.
2319 * java/class.c: Likewise.
2321 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2323 * config/h8300/h8300.md: Fix comment typos.
2325 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2327 * config/mips/t-iris6gld: Renamed to ...
2328 * config/mips/t-irix-gld: ... this.
2329 * config.gcc (mips-sgi-irix6*): Reflect this
2330 (mips-sgi-irix5*): Use it with GNU ld.
2332 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
2334 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
2335 * config/mips/t-irix-gld: Reflect this.
2336 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2338 * config/mips/iris5gld.h: New file.
2339 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
2340 Only use collect2 without gas.
2342 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
2343 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
2344 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
2345 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2347 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
2348 * config/mips/iris5.h: ... here.
2350 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
2351 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
2352 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
2354 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
2355 using irix_startfile_spec, irix_endfile_spec.
2357 2004-02-16 Gunther Nikl <gni@gecko.de>
2359 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
2361 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2363 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
2366 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2368 * cfghooks.c (split_edge): Speed up updating of dominators.
2370 2004-02-17 Mark Mitchell <mark@codesourcery.com>
2373 * c-common.c (flag_abi_version): Remove.
2374 * c-common.h (flag_abi_version): Likewise.
2375 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
2376 * c.opt (fabi-version): Remove.
2377 * calls.c (expand_call): Always pass a function type to
2378 struct_value_rtx. Use convert_memory_address.
2379 * common.opt (fabi-version): Add it.
2380 * flags.h (flag_abi_version): Likewise.
2381 (abi_version_at_least): New macro.
2382 * opts.c (common_handle_option): Add OPT_fabi_version.
2383 * toplev.c (flag_abi_version): Define it.
2384 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
2386 (ia64_output_mi_thunk): Use it.
2387 (ia64_struct_value_rtx): Likewise.
2389 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2391 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
2392 Don't generate insns by hand.
2394 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
2397 * doc/invoke.texi (fabi-version): The default is 2 now.
2399 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2401 * loop-iv.c: New file.
2402 * Makefile.in (loop-iv.o): New.
2403 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
2404 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
2405 num_loop_branches): New functions.
2406 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
2407 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
2408 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
2409 get_simple_loop_desc, free_simple_loop_desc): Declare.
2410 (simple_loop_desc): New inline function.
2411 (struct rtx_iv, struct niter_desc): New.
2412 * cfgloopmanip.c (loopify): Specify semantics more precisely.
2413 * expr.c (force_operand): Handle subregs of expressions created by
2415 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
2416 parts of the initialization to toplev.c
2417 * loop-unroll.c (loop_exit_at_end_p): New.
2418 (unroll_and_peel_loops): Call iv_analysis_done.
2419 (decide_peel_once_rolling, decide_peel_completely,
2420 decide_unroll_stupid, decide_unroll_constant_iterations,
2421 decide_unroll_runtime_iterations, decide_peel_simple,
2422 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
2423 unroll_loop_runtime_iterations): Use new simple loop analysis.
2424 * loop-unswitch.c (compare_and_jump_seq): New.
2425 (may_unswitch_on_p): Renamed to ...
2426 (may_unswitch_on): Use new iv analysis.
2427 (reversed_condition): Export.
2428 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
2429 * predict.c (estimate_probability): Use new simple loop analysis.
2430 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
2431 canon_condition, simplify_using_condition): Declare.
2432 * stor-layout.c (get_mode_bounds): New.
2433 * toplev.c (rest_of_handle_loop2): Some parts of
2434 initialization/finalization moved here from loop-init.c.
2436 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2438 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
2440 (CALL_USED_REGISTERS): Likewise.
2441 (REG_ALLOC_ORDER): Likewise.
2442 (REG_CLASS) <GENERAL_REGS>: Likewise.
2444 2004-02-16 Geoffrey Keating <geoffk@apple.com>
2446 * doc/md.texi (Insn Canonicalizations): Document left-chaining
2447 in associative operators.
2448 * rtlanal.c (commutative_operand_precedence): Create some new
2449 variables. Prefer a commutative operand on the left, then
2450 binary expressions, then NEG and NOT.
2452 2004-02-16 Matthias Klose <doko@debian.org>
2454 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
2455 in terms of SHLIB_SOVERSION.
2456 * config/m68k/t-slibgcc-elf-ver: New file.
2457 * config/pa/t-slibgcc-elf-ver: New file.
2458 * config.gcc (m68k-linux, parisc-linux): Use them when not
2459 sjlj exceptions are not configured.
2461 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2463 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
2465 2004-02-16 Zack Weinberg <zack@codesourcery.com>
2467 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
2469 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
2471 * doc/sourcebuild.texi: Mention backends.html.
2473 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
2475 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
2476 line-map.c, line-map.h, var-tracking.c: Fix comment
2479 2004-02-16 Richard Henderson <rth@redhat.com>
2481 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
2483 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
2485 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
2487 * config/h8300/h8300.md: Remove unnecessary parallels from
2488 all define_insn and define_split patterns.
2490 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
2492 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
2495 2004-02-15 Bernardo Innocenti <bernie@develer.com>
2497 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
2500 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
2502 * config/ia64/ia64.c, config/mips/mips.c,
2503 config/mmix/mmix-modes.def: Fix comment typos.
2505 2004-02-15 Roger Sayle <roger@eyesopen.com>
2507 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
2508 (get_directive_line): Remove unused function prototype.
2510 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
2512 * tree-inline.c (copy_body_r): Do not replace ret_label.
2514 2004-02-14 Jan Hubicka <jh@suse.cz>
2516 * i386.c (x86_four_jump_limit): New variable.
2517 (k8_avoid_jump_misspredicts): Rename to ...
2518 (ix86_avoid_jump_misspredicts): .. this one.
2519 (ix86_pad_returns): Break out from ...
2520 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
2522 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
2524 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
2526 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
2529 2004-02-14 Per Bothner <per@bothner.com>
2531 * fix-header.c (line_table): Move local variable in main to global.
2532 * scan.h (line_table): Use it.
2533 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
2534 line (recently renamed to src_loc) before calling recognized_function.
2536 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
2538 * Makefile.in: Fix comment typos.
2540 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
2542 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
2543 for start_value when it is directly moved into reg, and factorize
2544 the retrieval of GET_MODE (reg).
2546 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2548 * config/mips/mips-protos.h (mips_load_got_page): Delete.
2549 (mips_load_got_global): Delete.
2550 (mips_gotoff_page): Declare.
2551 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
2552 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
2553 UNSPEC_LOAD_GOT pattern rather than a MEM.
2554 (*load_got[sd]i): New patterns.
2555 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
2556 (mips_load_got_page, mips_load_got_global): Delete.
2557 (mips_gotoff_page): New function.
2558 (override_options): Don't initialize mips_got_alias_set.
2560 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2562 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
2563 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
2564 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
2565 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
2566 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
2567 * config/mips/mips.c: Fix some overly-long lines.
2568 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
2569 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
2571 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2573 * configure.ac: Search for as, ld below libexec/gcc.
2574 * configure: Regenerate.
2576 2004-02-14 Ben Elliston <bje@wasabisystems.com>
2578 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
2579 __builtin_arm_setwcx ().
2580 * config/arm/arm.c (arm_expand_builtin): Generate operands
2581 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
2583 2004-02-14 Ben Elliston <bje@wasabisystems.com>
2585 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
2586 and "wmuluh" to "wmulsm" and "wmulum", respectively.
2587 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
2588 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
2589 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
2590 (_mm_mulhi_pu16): Likewise.
2592 2004-02-13 Zack Weinberg <zack@codesourcery.com>
2594 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
2595 DECL_NAME != 0 before dereferencing.
2597 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
2599 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
2600 (s390_output_addr_const_extra): Declare.
2601 (s390_output_pool_entry): Remove FILE * argument.
2602 * config/s390/s390.c (s390_output_symbolic_const): Remove.
2603 (s390_output_addr_const_extra): New function.
2604 (print_operand_address): Call output_addr_const instead of
2605 s390_output_symbolic_const.
2606 (print_operand): Likewise.
2607 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
2608 Remove FILE * argument.
2609 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
2610 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
2613 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2615 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
2616 (struct edge, struct vertex, struct graph): New.
2617 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
2618 free_graph): New functions.
2620 2004-02-12 Chris Demetriou <cgd@broadcom.com>
2622 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2623 Use ".set macro" to avoid warnings about multi-instruction
2624 macros, since they're intentional.
2626 2004-02-12 Geoffrey Keating <geoffk@apple.com>
2628 * config/darwin.h: Add include guards. Remove old, now incorrect,
2629 comment about STANDARD_EXEC_PREFIX.
2631 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
2632 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
2633 for installing .1 manpages. Add rules for installing cpp
2634 and gcov manpages under their installed names.
2636 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
2638 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
2639 host, but try LD_FOR_TARGET first.
2640 * configure: Rebuilt.
2642 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2644 * dbxout.c: Move declaration of dbxout_type_decl outside
2645 #ifdef DBX_DEBUGGING_INFO.
2646 * c-parse.in: Don't give the asmdef production a type.
2648 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2650 * debug.h (struct gcc_debug_hooks): Add type_decl field.
2651 (debug_nothing_tree_int): Prototype.
2652 (dwarf_debug_hooks): Delete, unused.
2653 * debug.c (do_nothing_debug_hooks): Update.
2654 (debug_nothing_tree_int): New function.
2655 * langhooks.h (struct lang_hooks_for_decls):
2656 Remove builtin_type_decls field.
2657 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
2658 (LANG_HOOKS_DECLS): Update.
2659 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
2660 Use debug_hooks->type_decl.
2661 * dbxout.c (preinit_symbols): New static.
2662 (dbx_debug_hooks, xcoff_debug_hooks): Update.
2663 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
2664 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
2665 for symbols to output.
2666 (dbxout_type_decl): New function.
2667 (dbxout_symbol): If called before dbxout_init has run, queue
2668 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
2669 to TYPE_DECLs before emitting them.
2670 * xcoffout.c (assign_type_number): Delete.
2671 (xcoff_type_numbers): New static table.
2672 (xcoff_assign_fundamental_type_number): New function.
2673 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
2674 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
2675 * sdbout.c: Include varray.h.
2676 (deferred_global_decls): New static.
2677 (sdb_debug_hooks): Update.
2678 (sdbout_global_decl): If we can't emit something right now,
2679 remember it in deferred_global_decls.
2680 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
2681 (sdbout_init): Initialize deferred_global_decls.
2682 * Makefile.in: Update dependencies of sdbout.o.
2683 * dwarf2out.c (dwarf2out_type_decl): New function.
2684 (dwarf2_debug_hooks): Update.
2685 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
2686 * c-decl.c (getdecls): Just return 0.
2687 (check_for_loop_decls): Don't use getdecls.
2688 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
2689 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
2691 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
2693 * config/s390/s390.c (s390_sched_reorder2): Remove.
2694 (TARGET_SCHED_REORDER2): Do not redefine.
2696 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2698 * c-parse.in (maybe_type_qual): Delete.
2699 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
2700 (asm_argument): New grammar rules.
2701 (extdef_1): Use asmdef.
2702 (maybeasm): Move down with other asm rules; use simple_asm_expr.
2703 (xexpr): Move up with other expression rules.
2704 (stmt): Use asm_stmt.
2706 * c-typeck.c (build_asm_expr): New function - body mostly
2707 pulled from build_asm_stmt.
2708 (build_asm_stmt): Just handle tacking on the volatile qualifier.
2709 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
2711 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
2714 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
2715 (mips_declare_object): Make variadic.
2716 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
2717 mips_output_aligned_decl_common.
2718 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
2719 (mips_declare_object): Make variadic.
2721 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2723 * function.c (update_epilogue_consts): Teach about binary operations.
2725 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
2726 previous MEM_VOLATILE in REF.
2727 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
2728 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
2730 2004-02-12 Gunther Nikl <gni@gecko.de>
2732 * config.gcc: Restore support for m68k-openbsd.
2734 2004-02-12 Jan Hubicka <jh@suse.cz>
2736 * tree-optimize.c (tree_rest_of_compilation): Do not release
2739 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
2741 * doc/install.texi: Fix the spelling of "explicitly".
2743 2004-02-11 Eric Christopher <echristo@redhat.com>
2745 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
2746 duplicate argument structure of cpp_interpret_string.
2747 * cpphash.h: Move prototype...
2749 * cpplib.c: Fix calls to match new function signature.
2751 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
2754 * cppexp.c (num_binary_op): Don't allow comma operators in #if
2755 constant expressions at all outside C99 mode if pedantic.
2757 2004-02-11 Uros Bizjak <uros@kss-loka.si>
2759 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
2760 (log10_optab, log2_optab): Define corresponding macros.
2761 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
2762 * genopinit.c (optabs): Implement log10_optab and log2_optab
2763 using log10?f2 and log2?f2 patterns.
2764 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
2765 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
2766 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
2767 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2769 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
2770 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
2771 log2, log2f and log2l built-ins as inline x87 intrinsics.
2773 2004-02-11 Richard Henderson <rth@redhat.com>
2776 * flow.c (insn_dead_p): A clobber of a dead hard register is a
2777 dead insn after reload.
2779 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
2781 * tree.h (frame_base_decl): Add GTY marker.
2782 * var-tracking.c (frame_base_decl): Likewise.
2784 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
2786 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
2788 (add_location_or_const_value_attribute): Use text_section_label,
2789 not TEXT_SECTION_NAME.
2791 2004-02-11 Per Bothner <per@bothner.com>
2793 Represent column numbers using line-map's source_location.
2794 The "next available source_location" is now managed internally by
2795 line-maps.c rather than by clients.
2796 * line-map.h (struct line_map): New field column_bits.
2797 <from_line>: Rename field to start_location.
2798 (struct line_maps): New fields highest_location and max_column_hint.
2799 (linemap_check_files_exited): New declaration.
2800 (linemap_line_start): New declaration.
2801 (linemap_add): Remove from_line parameter; use highest_location field.
2802 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
2803 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
2804 (CURRENT_LINE_MAP): Remove macro.
2805 (linemap_position_for_column): New inline function.
2806 * line-map.c (linemap_init): Clear new fields.
2807 (linemap_check_files_exited): New function, extracted from ...
2808 (linemap_free): Use linemap_check_files_exited.
2809 (linemap_add): Remove from_line parameter. Various updates.
2810 (linemap_line_start): New function.
2811 (linemap_lookeup): Update for new field names.
2812 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
2813 linemap_position_for_column may unpredictably change the current map,
2814 it is cleaner and simpler for us to not cache it in cpp_reader.
2815 (struct cpp_buffer): New sysp field.
2816 Changed warned_cplusplus_comments and from_stage3 to bitfields.
2817 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
2818 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
2819 current map using linemap_lookup.
2820 (do_linemarker): Also set buffer's sysp field.
2821 (destringize_and_run): No longer need to decrement current line.
2822 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
2823 (search_path_head, open_file_failed): Use buffer's sysp.
2824 (cpp_make_system_header): Get current map using linemap_lookup.
2825 Also set buffer's sysp flag.
2826 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
2827 * cpphash.h (CPP_INCREMENT_LINE): New macro.
2828 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
2829 (struct cpp_reader): ... and adding saved_line_base field.
2830 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
2831 Update accordingly. Don't adjust line.
2832 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
2833 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
2834 (cpp_in_system_header): ... new inline function, using buffer's sysp.
2835 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
2836 * cpplex.c (_cpp_lex_direct): Likewise.
2837 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
2838 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
2839 * cpplib.h (struct cpp_token): Rename line field to src_loc.
2840 Remove col field as it is now subsumed by src_loc.
2841 * cpperror.c: Update various field, parameter, and macro names.
2842 (print_location): If col==0, try SOURCE_COLUMN of line.
2843 (cpp_error): Use cur_token's src_loc field, rather than line+col.
2844 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
2845 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
2846 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
2847 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
2848 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
2849 (_cpp_lex_direct): Use linemap_position_for_column.
2850 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
2851 parameter. Instead get it from the line_table global. Adjust callers.
2852 (print): Remove map field. Replace line field to src_line.
2853 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
2854 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
2855 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
2856 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
2857 * cpptrad.c (copy_comment): Rename variable.
2858 * c-lex.c (map): Remove static variable, for same reason we removed
2859 cpp_reader's map field.
2860 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
2861 to call linemap_lookup.
2862 (cb_line_change): Token's line field replaced by src_loc.
2863 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
2866 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
2869 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
2871 * config/rs6000/altivec.md (*movv4si_internal): At least one
2872 operand must be register_operand.
2873 (*movv8hi_internal1): Likewise.
2874 (*movv16qi_internal1): Likewise.
2875 (*movv4sf_internal1): Likewise.
2877 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
2879 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
2881 (movv4hi_internal): Same.
2882 (movv2sf_internal): Same.
2883 (movv1di_internal): Same.
2885 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2887 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
2888 TARGET_OLDABI consistently.
2889 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
2890 mips_va_arg,override_options,compute_frame_size,
2891 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
2892 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
2893 and TARGET_OLDABI consistently.
2894 * config/mips/mips.md (exception_receiver): Likewise.
2895 * config/mips/linux64.h: Likewise.
2897 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
2899 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
2900 Set AltiVec ABI and vrsave as default for ppc64 linux.
2901 (init_cumulative_args): Post error, if try to return
2902 value in AltiVec register without enable AltiVec.
2903 (function_arg_advance): Ditto for passing arguments.
2905 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
2907 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
2908 a label before updating its usage count.
2910 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
2912 * doc/install.texi: Remove extra cd.
2914 2004-02-10 Ziemowit Laski <zlaski@apple.com>
2916 * c-common.c (vector_size_helper): Remove; call
2917 reconstruct_complex_type() instead.
2918 * tree.c (reconstruct_complex_type): New function
2919 (formerly vector_size_helper() in c-common.c).
2920 (make_vector): Make externally visible.
2921 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
2923 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
2925 * config/h8300/h8300-protos.h: Add a prototype for
2926 h8300_regs_ok_for_stm.
2927 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
2928 * config/h8300/h8300.md (stm_h8300s_2_advanced,
2929 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
2930 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
2931 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
2932 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
2933 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
2934 ldm_h8300s_4_normal, ldm_h8300s_4): Use
2935 h8300_regs_ok_for_stm().
2937 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
2940 * real.c (real_from_string): Look for 'X' as well as 'x' in
2943 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
2945 * config/h8300/h8300.md: Remove an incorrect comment about
2946 peephole2. Add comments.
2948 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
2951 * emit-rtl.c (set_decl_incoming_rtl): New.
2952 * tree.h (set_decl_incoming_rtl): New.
2953 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
2955 * ada/misc.c (adjust_decl_rtl): Likewise.
2957 2004-02-10 Per Bothner <per@bothner.com>
2959 * c-opts.c (c_common_post_options): Don't emit working directory
2960 in cpp output if -P was specified.
2962 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
2965 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
2966 negate_expr back to the original type.
2968 2004-02-10 Alan Modra <amodra@bigpond.net.au>
2970 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
2973 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
2975 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
2976 gen_lowpart_SUBREG): Move under the file in which they
2977 are actually declared.
2979 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
2981 * doc/sourcebuild.texi: Add libada documentation.
2983 * doc/install.texi: Update documentation on Ada build, now
2984 that the GNAT lib and tools are built automatically.
2986 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
2988 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
2991 2004-02-09 Ziemowit Laski <zlaski@apple.com>
2993 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
2994 boundaries outside build_component_ref() call (a macro in ObjC++).
2996 2004-02-09 Bob Wilson <bob.wilson@acm.org>
2998 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
2999 (init_cumulative_args): Likewise.
3000 (a7_overlap_mentioned_p): Delete prototype.
3001 * config/xtensa/xtensa.c (struct machine_function): Replace
3002 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
3003 Add set_frame_ptr_insn field.
3004 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
3005 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
3006 if the operand is an argument in a7. If so, copy a7 to a new pseudo
3007 at the function entry and replace the operand with the pseudo.
3008 (init_cumulative_args): Remove unused arguments. Add new "incoming"
3009 argument and record this flag in CUMULATIVE_ARGS.
3010 (function_arg): Remove result_mode and special-case code to handle
3011 arguments in a7. Instead, set need_a7_copy flag when there is an
3012 incoming argument in a7.
3013 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
3014 and use the value recorded in cfun->machine->set_frame_ptr_insn.
3015 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
3016 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
3018 (a7_overlap_mentioned_p): Delete.
3019 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
3020 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
3021 arguments to init_cumulative_args and pass "incoming" flag instead.
3022 (BLOCK_REG_PADDING): Delete.
3023 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
3024 checks for reload_in_progress and reload_completed. Update calls to
3025 xtensa_copy_incoming_a7.
3026 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
3027 to call xtensa_copy_incoming_a7.
3029 2004-02-09 DJ Delorie <dj@redhat.com>
3031 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
3032 longer modify standard_exec_prefix, standard_bindir_prefix, or
3033 standard_startfile_prefix.
3035 2004-02-09 James E Wilson <wilson@specifixinc.com>
3038 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
3039 to expand_expr_real call, and pass in alt_rtl as last argument.
3042 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
3043 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
3044 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
3045 * except.c (expand_builtin_extend_pointer): New.
3046 * except.h (expand_builtin_extend_pointer): Declare.
3048 2004-02-09 David Edelsohn <edelsohn@gnu.org>
3050 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
3051 unaligned loads and stores.
3053 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3055 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
3056 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
3058 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
3059 * config/mips/iris5.h: ... here.
3060 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
3062 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
3063 * config/mips/iris5.h: ... here.
3065 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3067 * configure.ac: Remove default executable files before AC_PROG_CC.
3068 * configure: Regenerate.
3070 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
3073 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
3074 print a operand other than a register.
3076 2004-02-09 Roger Sayle <roger@eyesopen.com>
3078 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
3079 tree code rather than call fold_convert, which doesn't specify a
3080 default floating point to integer conversion.
3082 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3084 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
3085 code to support SGS assembler. Reformat adjacent code where possible.
3086 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
3088 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
3090 * config/m68k/linux.h, config/m68k/m68k.c,
3091 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
3092 macros and asm_printf() format strings.
3093 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
3094 * config/m68k/linux.h: Update copyright.
3095 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
3097 2004-02-08 Andreas Schwab <schwab@suse.de>
3098 Bernardo Innocenti <bernie@develer.com>
3100 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
3102 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
3103 frame pointer register, overridable by OS targets.
3104 * (M68K_REGNAME): Macro to obtain register name for asm output,
3105 eventually replacing %a6 with M68K_FP_REG_NAME.
3106 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
3107 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
3108 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
3109 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
3110 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
3112 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
3114 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
3115 hook_rtx_tree_int_null.
3116 * targhooks.c (default_struct_value_rtx): Remove.
3117 * targhooks.h: Remove the prototype for
3118 default_struct_value_rtx.
3119 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
3120 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
3121 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
3122 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
3123 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
3124 config/rs6000/rs6000.c, config/s390/s390.c,
3125 config/stormy16/stormy16.c, config/v850/v850.c,
3126 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
3127 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
3129 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
3131 * README.Portability: Change "ISO C89" to "ISO C90".
3132 * c-parse.in (primary, initelt): Likewise.
3134 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
3136 * real.c (encode_ibm_extended): Normalize the input value before
3137 converting it to a double. Handle the case where a normal value
3140 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
3142 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
3144 * cse.c (preferrable): Change to preferable. Update all of its
3146 * genautomata.c (ainsn): Change
3147 first_ainsn_with_given_equialence_num to
3148 first_ainsn_with_given_equivalence_num. Update all of its
3151 2004-02-08 Jan Hubicka <jh@suse.cz>
3153 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
3155 2004-02-07 David Edelsohn <edelsohn@gnu.org>
3157 * function.c (assign_parms): Fix formatting.
3159 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3161 * default.h (PROMOTE_PROTOTYPES): Remove.
3162 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
3163 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
3164 EXPAND_BUILTIN_SAVEREGS): Poison.
3165 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
3166 hook_bool_tree_false.
3167 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3168 * target.h: Replace SETUP_INCOMING_VARARGS with
3169 targetm.calls.setup_incoming_varargs().
3170 * targhooks.c (default_promote_function_return): Remove.
3171 (default_promote_prototypes): Likewise.
3172 (default_struct_value_rtx): Always abort().
3173 (default_expand_builtin_saveregs): Always print an error
3175 (default_setup_incoming_varargs): Do nothing.
3176 (default_pretend_outgoing_varargs_named): Don't depend on
3177 SETUP_INCOMING_VARARGS.
3178 * targhooks.h: Remove the prototype for
3179 default_promote_function_return and
3180 default_promote_prototypes.
3182 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3184 * system.h (SHARED_SECTION_ASM_OP): Poison.
3185 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
3186 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
3188 2004-02-07 Zack Weinberg <zack@codesourcery.com>
3191 * c-decl.c (diagnose_mismatched_decls): Only give special
3192 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
3194 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
3195 DECL_FUNCTION_CODE when defining a built-in function.
3196 Don't update DECL_ESTIMATED_INSNS.
3197 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
3199 * tree.h: Delete DECL_ESTIMATED_INSNS.
3200 * tree-inline.c (struct inline_data): Delete inlined_insns field.
3201 (expand_call_inline, optimize_inline_calls): Don't update
3202 DECL_ESTIMATED_INSNS nor inlined_insns.
3203 * cgraphunit.c (cgraph_analyze_function): Don't update
3204 DECL_ESTIMATED_INSNS.
3206 2004-02-07 Zack Weinberg <zack@codesourcery.com>
3208 * c-common.c (shadow_warning): Delete.
3209 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
3210 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
3211 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
3212 * c-parse.in (free_parser_stacks): Delete.
3214 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
3216 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
3217 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
3218 Use the top level mkinstalldirs, not the one in the gcc subdir.
3219 * mkinstalldirs: Remove (from the gcc subdir).
3221 2004-02-07 Roger Sayle <roger@eyesopen.com>
3224 * fold-const.c (fold_convert): New function to provide type
3225 conversion to the middle-end without using convert.
3226 (negate_expr, associate_trees, size_diffop, omit_one_operand,
3227 operand_equal_for_comparison_p, pedantic_omit_one_operand,
3228 invert_truthvalue, optimize_bit_field_compare, range_binop,
3229 decode_field_reference, make_range, build_range_check, unextend,
3230 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
3231 fold_binary_op_with_conditional_arg, fold_inf_compare,
3232 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
3233 convert with calls to fold_convert.
3235 2004-02-07 Jan Hubicka <jh@suse.cz>
3237 * genrecog.c (find_operand): add extra argument stop.
3238 (validate_pattern): Verify that mach_dup is duplicating operand
3239 defined lexically earlier.
3241 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3243 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
3244 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
3245 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
3246 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3247 config/ia64/ia64.h, config/ip2k/ip2k.h,
3248 config/iq2000/iq2000.h, config/mips/iris5.h,
3249 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
3250 config/rs6000/aix51.h, config/rs6000/aix52.h,
3251 config/rs6000/darwin.h, config/rs6000/rs6000.h,
3252 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
3253 config/sparc/linux.h, config/sparc/linux64.h,
3254 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
3255 config/xtensa/xtensa.h: Remove the definitions of
3256 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
3257 MAX_WCHAR_TYPE_SIZE.
3258 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
3259 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
3261 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
3264 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
3267 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
3269 * var-tracking.c (vt_add_function_parameters): Surround checkings by
3270 #ifdef ENABLE_CHECKING and #endif.
3272 2004-02-07 Roger Sayle <roger@eyesopen.com>
3274 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
3275 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
3276 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
3277 integer types and floating point with unsafe_math_optimizations.
3278 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
3279 Optimize A - B as A + (-B), if B is easily negated.
3281 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3283 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
3284 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
3285 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
3286 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
3289 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
3291 * c-ppoutput.c, var-tracking.c: Fix comment typos.
3293 2004-02-06 James E Wilson <wilson@specifixinc.com>
3295 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
3296 glibc 2.3 or better.
3298 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3300 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
3301 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
3303 2004-02-07 Alan Modra <amodra@bigpond.net.au>
3305 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
3306 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
3307 (SHLIB_MKMAP_OPTS): Delete.
3308 (TARGET_LIBGCC2_CFLAGS): Add -specs.
3309 (bispecs): Add rule.
3310 * config/rs6000/libgcc-ppc64.ver: New file.
3311 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
3312 (__floatdidf, __floatdisf): Optimize multiply.
3313 (__fixunstfdi): New function.
3314 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
3315 real and imag parts larger than one register.
3316 (function_arg): Correct type of reg used when fp arg split partially
3318 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
3319 and __MACH__ or __powerpc64__.
3321 2004-02-06 Roger Sayle <roger@eyesopen.com>
3322 Ulrich Weigand <uweigand@de.ibm.com>
3324 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
3325 of gen_highpart or gen_lowpart when the floating point format is
3326 wider than the result mode.
3328 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
3330 * dwarf2out.c (loclabel_num): Move into #ifdef
3331 DWARF2_DEBUGGING_INFO.
3333 2004-02-06 Ziemowit Laski <zlaski@apple.com>
3335 * objc/objc-act.c (build_super_template) the 'class' field of
3336 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
3337 (get_super_receiver): Likewise.
3339 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3341 * reload1.c (check_eliminable_occurrences): Optimize the reset
3343 (eliminate_regs_in_insn): Likewise.
3345 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
3346 Josef Zlomek <zlomekj@suse.cz>
3348 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
3349 at the beginning of function, call dwarf2out_var_location for
3350 NOTE_INSN_VAR_LOCATION note.
3351 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
3352 decl_loc_table): New.
3353 (lookup_decl_loc): New function.
3354 (add_var_loc_to_decl): New function.
3355 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
3356 only if can_use_fbreg.
3357 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
3359 (loc_descriptor): Likewise. Process VAR_LOCATION.
3360 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
3361 (loc_descriptor_from_tree): Call mem_loc_descriptor with
3362 can_use_fbreg == true.
3363 (add_location_or_const_value_attribute): Added parameter enum
3364 dwarf_attribute attr, generate attribute ATTR. Create the location list.
3365 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
3366 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
3367 with attr == DW_AT_location.
3368 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
3369 if frame_base_decl is defined and has a location list.
3370 (gen_variable_die): Call add_location_or_const_value_attribute with
3371 attr == DW_AT_location.
3372 (dwarf2out_var_location): New function.
3373 (dwarf2out_begin_function): New function.
3374 (dwarf2out_init): Create decl_loc_table.
3376 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3378 * loop.c (force_movables): Transitively increase the priorities of
3379 all insns forces by an insn, not just the first one.
3381 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
3382 Daniel Berlin <dberlin@dberlin.org>
3384 Josef Zlomek <zlomekj@suse.cz>
3385 * Makefile.in (var-tracking.o): New.
3386 * common.opt (fvar-tracking): New.
3387 * flags.h (flag_var_tracking): New.
3388 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
3389 * opts.c (common_handle_option): Add OPT_fvar_tracking.
3390 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
3391 * rtl.c (note_insn_name): Likewise.
3392 * rtl.def (VAR_LOCATION): New.
3393 * rtl.h (NOTE_VAR_LOCATION): New.
3394 (NOTE_VAR_LOCATION_DECL): New.
3395 (NOTE_VAR_LOCATION_LOC): New.
3396 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
3397 (variable_tracking_main): New exported function.
3398 * timevar.def (TV_VAR_TRACKING): New.
3399 * toplev.c (enum dump_file_index): Added DFI_vartrack.
3400 (dump_file): "vartrack" was added (-dV).
3401 (flag_var_tracking): New.
3402 (f_options): "var-tracking" was added.
3403 (rest_of_handle_variable_tracking): New function.
3404 (rest_of_compilation): Run variable tracking.
3405 (process_options): If user has not specified flag_var_tracking set it
3406 according to optimize, debug_info_level and debug_hooks.
3407 * tree.h (frame_base_decl): New.
3408 * var-tracking.c: New file.
3409 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
3410 (ia64_override_options): Set flags to run variable tracking in machine
3411 dependent reorg instead of toplev.c.
3412 (ia64_reorg): Run variable tracking if wanted.
3413 * doc/invoke.texi: Mention variable tracking in -dV,