1 2005-04-10 Richard Sandiford <rsandifo@redhat.com>
3 * combine.c (combine_simplify_rtx): Remove a transformation that
4 relies on an invalid assumption about rtl sign-extension semantics.
6 2005-04-10 Richard Sandiford <rsandifo@redhat.com>
8 * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
11 2005-04-09 Alexandre Oliva <aoliva@redhat.com>
14 * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
15 set the original address pseudo to the correct value before the
16 original insn, if possible, and leave the insn alone, otherwise
17 create a new pseudo, set it and replace it in the insn.
18 * recog.c (validate_change_maybe_volatile): New.
19 * recog.h (validate_change_maybe_volatile): Declare.
21 2005-04-09 Caroline Tice <ctice@apple.com>
23 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24 Remove targetm.have_named_sections test.
25 (fix_edges_for_rarely_executed_code): Likewise.
26 (insert_section_boundary_note): Likewise.
27 (reorder_basic_blocks): Check partitioning flag before calling
28 verify_hot_cold_block_grouping.
29 * dbxout.c (dbxout_function_end): Get hot/cold section labels from
30 the function struct rather than global variables.
31 * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
32 (COLD_END_LABEL): Likewise
33 (cold_text_section_label): New static global variable.
34 (cold_end_label): Likewise.
35 (dwarf2out_switch_text_section): Get hot/cold section labels from
36 the function struct rather than global variables.
37 (output_aranges): Use cold_text_section_label and cold_end_label;
38 check partitioning flag before putting out delta.
39 (output_ranges): Remove incorrect code attempting to use
41 (output_line_info): Get cold section label from function struct.
42 (add_location_or_const_value_attribute): Likewise.
43 (get_subprogram_die): Get hot/cold section labels from function struct.
44 (dwarf2out_var_location): Likewise.
45 (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
46 write out cold_text_section_label if partition flag is set.
47 (dwarf2out_finish): Write out cold_end_label if partition flag is set;
48 * function.h (struct function): Add new fields to point to hot/cold
49 section labels: hot_section_label, cold_section_label,
50 hot_section_end_label and cold_section_end_label; also add new field
51 for cold text section name, unlikely_text_section_name.
52 * opts.c (decode_options): Turn off partitioning flag if
53 !targetm.have_named_sections.
54 * output.h (hot_section_label): Remove.
55 (hot_section_end_label): Remove.
56 (cold_section_end_label): Remove.
57 (unlikely_section_label): Remove.
58 (unlikely_text_section_name): Remove.
59 * passes.c (rest_of_handle_final): Remove code that frees
60 unlikely_text_section_name.
61 * varasm.c (unlikely_section_label): Remove.
62 (hot_section_label): Remove.
63 (hot_section_end_label): Remove.
64 (cold_section_end_label): Remove.
65 (unlikely_text_section_name): Remove.
66 (initialize_cold_section_name): Modify to call
67 targetm.strip_name_encoding; to store cold section name in current
68 function struct, if it exists; and to only use the decl_section_name
69 if flag_named_sections is true.
70 (unlikely_text_section): Modify to get section name out of current
71 function struct, if there is one; otherwise build it from
72 UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
73 (in_unlikely_text_section): Likewise.
74 (named_section): Modify to get/put cold section name in current function
75 struct, if there is one.
76 (function_section): Change 'bool unlikely' to 'int reloc'; check
77 targetm.have_named_sections before calling named_section.
78 (current_function_section): Likewise.
79 (assemble_start_function): Modify to get/put unlikely_text_section_name
80 in current function struct; modify to get hot/cold section labels
81 from function struct; initialize labels using
82 ASM_GENERATE_INTERNAL_LABEL;
83 test partitioning flag before writing out hot section label.
84 (assemble_end_function): Test partitioning flag before writing out
85 hot/cold section labels.
86 (default_section_type_flags_1): Modify to use array instead of
87 char* for unlikely_text_section_name; set flags correctly for
88 cold text section if there is not a current function decl.
90 2005-04-09 Jakub Jelinek <jakub@redhat.com>
92 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
93 and TI_VA_LIST_FPR_COUNTER_FIELD.
94 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
95 * tree-pass.h (pass_stdarg): Add.
96 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
97 * tree-stdarg.c: New file.
98 * tree-stdarg.h: New file.
99 * Makefile.in (OBJS-common): Add tree-stdarg.o.
100 (tree-stdarg.o): Add dependencies.
101 * function.h (struct function): Add va_list_gpr_size and
102 va_list_fpr_size fields.
103 * function.c (allocate_struct_function): Initialize them.
104 * target.h (struct gcc_target): Add stdarg_optimize_hook.
105 * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
106 (TARGET_INITIALIZER): Add it.
108 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
109 va_list_{g,f}pr_counter_field.
110 (ix86_setup_incoming_varargs): Don't do anything if reg_save
111 area will not be used. Only save registers that tree-stdarg.c
112 detected they need saving.
113 (ix86_va_start): Don't set up fields that won't be used.
115 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
116 va_list_{g,f}pr_counter_field.
117 (setup_incoming_varargs): Don't do anything if reg_save
118 area will not be used. Only save registers that tree-stdarg.c
119 detected they need saving.
120 (rs6000_va_start): Don't set up fields that won't be used.
122 * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
123 (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
124 (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
125 (TARGET_STDARG_OPTIMIZE_HOOK): Define.
127 2005-04-09 Jakub Jelinek <jakub@redhat.com>
130 * config/i386/i386.c (construct_container): Pass empty aligned
131 struct, union or class in memory.
133 2005-04-09 Kazu Hirata <kazu@cs.umass.edu>
135 * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
136 tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
137 config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
138 config/rs6000/predicates.md: Fix comment typos.
140 * sched-int.h (haifa_insn_data): Remove blockage and units.
141 (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
142 ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
143 MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
145 2005-04-09 Jan Hubicka <jh@suse.cz>
146 Steven Bosscher <stevenb@suse.de>
148 * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
149 * cfgloop.c (get_loop_exit_edges): Likewise.
150 * cfgloopmanip.c (fix_irreducible_loops): Likewise.
152 * loop-unroll.c (analyze_insns_in_loop): Likewise.
153 * tree-cfg.c (dump_cfg_status): Likewise.
155 2005-04-09 David Edelsohn <edelsohn@gnu.org>
157 * config/rs6000/predicates.md (altivec_register_operand): Remove
158 redundant match_code test.
159 (gpc_reg_operand): Same.
160 (cc_reg_operand): Same.
161 (cc_reg_not_cr0_operand): Same.
163 2005-04-09 Jan Hubicka <jh@suse.cz>
165 Forgotten hunk from my last merge patch:
166 * final.c (output_addr_const): Do not call mark_referenced.
168 2005-04-09 Andrew MacLeod <amacleod@redhat.com>
170 * doc/tree-ssa.texi: Add immediate use documentation.
172 2005-04-09 Richard Earnshaw <richard.earnshaw@arm.com>
174 * arm.c (FL_WBUF): Define.
175 (arm_tune_strongarm): Renamed from arm_is_strong. All uses changed.
176 (arm_is_6_or_7): Delete.
177 (arm_tune_wbuf): New.
178 (arm_override_options): Set arm_tune_wbuf.
179 * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
180 (arm_is_6_or_7): Delete declaration.
181 (arm_tune_wbuf): New declartion.
182 * arm.md (is_strongarm): Derive from arm_tune_strongarm.
183 (model_wbuf): Derive from arm_tune_wbuf.
184 * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
185 (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
186 (arm740t): Mark CPUs as having a write buffer.
188 2005-04-09 Uros Bizjak <uros@kss-loka.si>
190 * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
191 of 'const_double_operand' in operand 2 constraints. Update enable
194 2005-04-09 Uros Bizjak <uros@kss-loka.si>
196 * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
197 (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
198 * optabs.h (enum optab_index): Add new OTI_lfloor.
199 (lfloor_optab): Define corresponding macro.
200 * optabs.c (init_optabs): Initialize lfloor_optab.
201 * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
202 and lfloordi2 patterns.
203 * builtins.c (expand_builtin_int_roundingfn): New prototype.
204 (expand_builtin_int_roundingfn): New function.
205 (fold_builtin_int_roundingfn): New prototype.
206 (fold_builtin_int_roundingfn): New function, renamed from
208 Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
209 BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
210 (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
211 BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
212 (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
213 (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
214 BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
215 * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
216 into lfloor built-in function and (long long int)floor{,f,l} into
217 llfloor built-in function.
218 * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
221 2005-04-08 Ian Lance Taylor <ian@airs.com>
223 * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
224 CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
225 * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
226 (DO_COND, DO_BODY): Likewise.
227 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
228 (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
229 (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
230 BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
231 (build_continue_stmt, build_break_stmt): Don't declare.
232 (c_do_switch_warnings): Update declaration.
233 * c-gimplify.c (enum bc_t): Remove.
234 (struct c_gimplify_ctx, ctxp): Remove.
235 (push_context, pop_context): Remove static functions.
236 (c_genericize): Don't call push_context or pop_context.
237 (begin_bc_block, finish_bc_block): Remove static functions.
238 (build_bc_goto): Likewise.
239 (gimplify_c_loop): Likewise.
240 (gimplify_for_stmt, gimplify_while_stmt): Likewise.
241 (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
242 (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
243 DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
244 * c-common.c (c_do_switch_warnings): Rename from
245 c_do_switch_warnings_1.
246 (c_do_switch_warnings) [old version]: Remove.
247 (c_do_switch_expr_warnings): Remove.
248 * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
249 function instead of c_do_switch_expr_warnings.
250 * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
251 CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
252 * c-pretty-print.c (pp_c_statement): Likewise.
253 * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
255 2005-04-08 Diego Novillo <dnovillo@redhat.com>
257 Merge from tree-cleanup-branch: VRP, store CCP, store
258 copy-prop, incremental SSA updating of FUD chains and
259 newly exposed symbols.
261 * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
262 (OBJS-common): Add tree-vrp.o.
263 (tree-vrp.o): New rule.
264 * basic-block.h (nearest_common_dominator_for_set): Declare.
265 * common.opt (ftree-store-ccp): New flag.
266 (ftree-copy-prop): New flag.
267 (ftree-vrp): New flag.
268 (ftree-store-copy-prop): New flag.
269 * dominance.c (nearest_common_dominator_for_set): New.
270 * domwalk.c (walk_dominator_tree): Only traverse
271 statements in blocks marked in walk_data->interesting_blocks.
272 * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
273 * fold-const.c (fold): Handle ASSERT_EXPR.
274 * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
275 Set flag_tree_store_ccp, flag_tree_store_copy_prop and
276 flag_tree_vrp at -O2.
277 * timevar.def (TV_TREE_VRP): Define.
278 (TV_TREE_COPY_PROP): Define.
279 (TV_TREE_STORE_COPY_PROP): Define.
280 (TV_TREE_SSA_INCREMENTAL): Define.
281 (TV_TREE_STORE_CCP): Define.
282 * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
283 to kill_redundant_phi_nodes from comment.
284 (verify_expr): Handle ASSERT_EXPR.
285 * tree-dfa.c (mark_new_vars_to_rename): Remove second
286 argument. Update all users.
287 (mark_call_clobbered_vars_to_rename): Remove. Update all
289 * tree-flow-inline.h (unmodifiable_var_p): New.
290 * tree-flow.h (enum value_range_type): Declare.
291 (struct value_range_def): Declare.
292 (value_range): Declare.
293 (remove_all_phi_nodes_for): Remove. Update all users.
294 (find_phi_node_for): Declare.
295 (add_type_alias): Declare.
296 (count_uses_and_derefs): Declare.
297 (kill_redundant_phi_nodes): Remove.
298 (rewrite_into_ssa): Remove.
299 (rewrite_def_def_chains): Remove.
300 (update_ssa, register_new_name_mapping, create_new_def_for,
301 need_ssa_update_p, name_registered_for_update_p,
302 release_ssa_name_after_update_ssa, dump_repl_tbl,
303 debug_repl_tbl, dump_names_replaced_by,
304 debug_names_replaced_by, mark_sym_for_renaming,
305 mark_set_for_renaming, get_current_def, set_current_def,
306 get_value_range, dump_value_range, debug_value_range,
307 dump_all_value_ranges, debug_all_value_ranges,
308 expr_computes_nonzero, loop_depth_of_name,
309 unmodifiable_var_p): Declare.
310 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
312 * tree-into-ssa.c (block_defs_stack): Update comment.
313 (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
314 syms_to_rename, names_to_release, repl_tbl,
315 need_to_initialize_update_ssa_p, need_to_update_vops_p,
316 need_to_replace_names_p): New locals.
317 (NAME_SETS_GROWTH_FACTOR): Define.
318 (struct repl_map_d): Declare.
319 (struct mark_def_sites_global_data): Add field
321 (enum rewrite_mode): Declare.
322 (REGISTER_DEFS_IN_THIS_STMT): Define.
323 (compute_global_livein): Use last_basic_block instead of
325 (set_def_block): Remove last argument. Update all callers.
326 (prepare_use_operand_for_rename): Remove. Update all callers.
327 (prepare_def_operand_for_rename): Remove. Update all callers.
328 (symbol_marked_for_renaming): New.
331 (repl_map_hash): New.
333 (repl_map_free): New.
334 (names_replaced_by): New.
335 (add_to_repl_tbl): New.
336 (add_new_name_mapping): New.
337 (mark_def_sites): Assume that all the operands in the
338 statement are in normal form.
339 (find_idf): Assert that the block in the stack is valid.
340 (get_default_def_for): New.
341 (insert_phi_nodes_for): Add new argument 'update_p'.
343 If update_p is true, add a new mapping between the LHS of
344 each new PHI and the name that it replaces.
345 (insert_phi_nodes_1): Only call find_idf if needed.
346 (get_reaching_def): Call get_default_def_for.
347 (rewrite_operand): Remove.
348 (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
349 and REWRITE_THIS_STMT are false.
350 Assume that all the operands in the statement are in
352 (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
353 (rewrite_virtual_phi_arguments): Remove.
354 (invalidate_name_tags): Remove.
355 (register_new_update_single, register_new_update_set,
356 rewrite_update_init_block, replace_use,
357 rewrite_update_fini_block, rewrite_update_stmt,
358 rewrite_update_phi_arguments): New.
359 rewrite_blocks): Remove argument 'fix_virtual_phis'.
360 Add arguments 'entry', 'what' and 'blocks'.
361 Initialize the dominator walker according to 'what' and
363 Start the dominator walk at 'entry'.
364 (mark_def_site_blocks): Add argument 'interesting_blocks'.
365 Use it to configure the dominator walker.
366 (rewrite_into_ssa): Remove argument 'all'.
368 (rewrite_all_into_ssa): Remove.
369 (rewrite_def_def_chains): Remove.
370 (mark_def_interesting, mark_use_interesting,
371 prepare_phi_args_for_update, prepare_block_for_update,
372 prepare_def_site_for, prepare_def_sites,
373 dump_names_replaced_by, debug_names_replaced_by,
374 dump_repl_tbl, debug_repl_tbl, init_update_ssa,
375 delete_update_ssa, create_new_def_for,
376 register_new_name_mapping, mark_sym_for_renaming,
377 mark_set_for_renaming, need_ssa_update_p,
378 name_registered_for_update_p, ssa_names_to_replace,
379 release_ssa_name_after_update_ssa,
380 insert_updated_phi_nodes_for, update_ssa): New.
381 * tree-loop-linear.c (linear_transform_loops): Call
382 update_ssa instead of rewrite_into_ssa.
383 * tree-optimize.c (vars_to_rename): Remove.
385 (init_tree_optimization_passes): Replace
386 pass_redundant_phi with pass_copy_prop.
388 Replace pass_ccp with pass_store_ccp.
389 Add pass_store_copy_prop after pass_store_ccp.
390 (execute_todo): If the TODO_ flags don't include updating
391 the SSA form, assert that it does not need to be updated.
392 Call update_ssa instead of rewrite_into_ssa and
393 rewrite_def_def_chains.
394 If TODO_verify_loops is set, call verify_loop_closed_ssa.
395 (tree_rest_of_compilation):
396 * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
397 TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
398 TODO_cleanup_cfg): Renumber.
399 (TODO_verify_loops, TODO_update_ssa,
400 TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
401 TODO_update_ssa_only_virtuals): Define.
402 (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
404 * tree-phinodes.c (make_phi_node): Update documentation.
405 (remove_all_phi_nodes_for): Remove.
406 (find_phi_node_for): New.
407 * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
408 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
409 (interpret_rhs_modify_expr): Likewise.
410 * tree-sra.c (decide_instantiations): Mark all symbols in
411 SRA_CANDIDATES for renaming.
412 (mark_all_v_defs_1): Rename from mark_all_v_defs.
413 (mark_all_v_defs): New function. Update all users to call it
414 with the whole list of scalarized statements, not just the
416 * tree-ssa-alias.c (count_ptr_derefs): Make extern.
417 (compute_flow_insensitive_aliasing): If the tag is
418 unmodifiable and the variable isn't or vice-versa, don't
419 make them alias of each other.
420 (setup_pointers_and_addressables): If the type tag for
421 VAR is about to change, mark the old one for renaming.
422 (add_type_alias): New.
423 * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
424 (ccp_lattice_t): Rename from latticevalue.
425 (value): Remove. Update all users.
426 (const_val): New local variable.
427 (do_store_ccp): New local variable.
428 (dump_lattice_value): Handle UNINITIALIZED.
429 (debug_lattice_value): New.
430 (get_default_value): Re-write.
431 (set_lattice_value): Re-write.
432 (def_to_varying): Remove. Update all users.
433 (likely_value): Return VARYING for statements that make
434 stores when STORE_CCP is false.
435 Return VARYING for any statement other than MODIFY_EXPR,
436 COND_EXPR and SWITCH_EXPR.
437 (ccp_initialize): Re-write.
438 (replace_uses_in, replace_vuse_in, substitute_and_fold):
439 Move to tree-ssa-propagate.c.
440 (ccp_lattice_meet): Handle memory stores when
441 DO_STORE_CCP is true.
442 (ccp_visit_phi_node): Likewise.
443 (ccp_fold): Likewise.
444 (evaluate_stmt): Likewise.
445 (visit_assignment): Likewise.
446 (ccp_visit_stmt): Likewise.
447 (execute_ssa_ccp): Add argument 'store_ccp'. Copy it
451 (do_ssa_store_ccp): New.
452 (gate_store_ccp): New.
453 (pass_store_ccp): Declare.
454 * tree-ssa-copy.c: Include tree-ssa-propagate.h.
455 (may_propagate_copy): Reformat.
456 Don't abort if ORIG is a virtual and DEST isn't.
457 If NEW does not have alias information but DEST does,
459 (copy_of, cached_last_copy_of, do_store_copy_prop, enum
460 copy_prop_kind, which_copy_prop): Declare.
461 (stmt_may_generate_copy, get_copy_of_val,
462 get_last_copy_of, set_copy_of_val, dump_copy_of,
463 copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
464 copy_prop_visit_stmt, copy_prop_visit_phi_node,
465 init_copy_prop, fini_copy_prop, execute_copy_prop,
466 gate_copy_prop, do_copy_prop, gate_store_copy_prop,
467 store_copy_prop): New.
468 (pass_copy_prop, pass_store_copy_prop): Declare.
469 * tree-ssa-dom.c (struct opt_stats_d): Add fields
470 'num_const_prop' and 'num_copy_prop'.
471 (cprop_operand): Update them.
472 (dump_dominator_optimization_stats): Dump them.
473 (tree_ssa_dominator_optimize): Call update_ssa instead of
475 (loop_depth_of_name): Declare extern.
476 (simplify_cond_and_lookup_avail_expr): Guard against NULL
477 values for LOW or HIGH.
478 (cprop_into_successor_phis): Only propagate if NEW != ORIG.
479 (record_equivalences_from_stmt): Call expr_computes_nonzero.
480 (cprop_operand): Only propagate if VAL != OP.
481 * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
482 statement for renaming.
483 * tree-ssa-loop-im.c (move_computations): Call update_ssa.
484 * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
485 add_type_alias if necessary.
486 Call mark_new_vars_to_rename.
487 (tree_ssa_iv_optimize): If new symbols need to be renamed,
488 mark every statement updated, call update_ssa and
489 rewrite_into_loop_closed_ssa.
490 * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
491 from LIVEIN if VAR is a virtual.
492 * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
493 * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
494 (get_call_expr_operands): Reformat statement.
495 (add_stmt_operand): Don't create V_MAY_DEFs for read-only
497 * tree-ssa-propagate.c (ssa_prop_init): Initialize
498 SSA_NAME_VALUE for every name.
499 (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
500 get_value_loaded_by): New.
501 (replace_uses_in, replace_vuses_in, replace_phi_args_in,
502 substitute_and_fold): Move from tree-ssa-ccp.c.
503 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
504 first_vdef, stmt_makes_single_load, stmt_makes_single_store,
505 get_value_loaded_by, replace_uses_in, substitute_and_fold):
507 * tree-ssa.c (verify_use): Fix error message.
508 (propagate_into_addr, replace_immediate_uses, get_eq_name,
509 check_phi_redundancy, kill_redundant_phi_nodes,
510 pass_redundant_phi): Remove. Update all users.
511 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
512 add_type_alias, if necessary.
513 * tree-vectorizer.h (struct _stmt_vect_info): Update
514 documentation for field 'memtag'.
515 * tree-vrp.c: New file.
516 * tree.def (ASSERT_EXPR): Define.
517 * tree.h (ASSERT_EXPR_VAR): Define.
518 (ASSERT_EXPR_COND): Define.
519 (SSA_NAME_VALUE_RANGE): Define.
520 (struct tree_ssa_name): Add field 'value_range'.
521 (PHI_REWRITTEN): Remove.
522 (struct tree_phi_node): Remove field 'rewritten'.
523 * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
524 -ftree-store-copy-prop): Document.
525 * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
526 Document usage of update_ssa.
528 2005-04-08 David Edelsohn <edelsohn@gnu.org>
531 * config/rs6000/predicates.md (altivec_register_operand): Accept
533 (and64_operand): Do not limit CONST_INT to mask64_operand.
534 (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
535 (and_operand): Do not limit CONST_INT to mask_operand.
537 2005-04-09 Hans-Peter Nilsson <hp@axis.com>
539 PR rtl-optimization/20466
540 * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
541 for overlap of the address of each list member.
542 (mark_set_1): Call invalidate_mems_from_set for MEMs too.
544 2005-04-08 Mike Stump <mrs@apple.com>
546 * config/darwin.c (indirect_data): Fix typo in strncmp logic.
548 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
551 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
553 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
555 * function.c (push_function_context_to): Don't set
557 * function.h (function): Remove contains_functions.
558 (current_function_contains_functions): Remove.
560 * function.h (function): Remove instrument_entry_exit.
561 (current_function_instrument_entry_exit): Remove.
563 * function.h (nonlocal_labels): Remove.
565 * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
567 * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
568 (check_attr_value, write_attr_get, write_expr_attr_cache,
569 find_attr, make_internal_attr): Don't reference negative_ok or
571 * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
572 ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
573 (ATTR_STATIC): Adjust the value.
575 * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
577 2005-04-08 Ulrich Weigand <uweigand@de.ibm.com>
579 * config/s390/tpf.h (ASM_SPEC): Define.
581 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
583 * tree-flow.h: Remove the prototype for
584 redirect_immediate_uses.
585 (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
587 2005-04-08 Richard Earnshaw <richard.earnshaw@arm.com>
589 * arm.c (arm_const_double_by_parts): New function.
590 * arm-protos.h (arm_const_double_by_parts): Add prototype.
591 * arm.md (define_split for 64-bit constants): Add another one.
593 2005-04-08 Andrew MacLeod <amacleod@redhat.com>
595 * tree-ssa-operands.c (correct_use_link): Remove linear scan.
597 2005-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
599 * system.h: Revert last change.
601 2005-04-08 Richard Sandiford <rsandifo@redhat.com>
603 * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
604 (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
605 (TARGET_SWITCHES): Delete.
606 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
607 * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
608 TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
609 * config/xtensa/xtensa.opt: New file.
611 2005-04-08 Ben Elliston <bje@au.ibm.com>
613 * config/fp-bit.c: Include L_mul_tf in #endif comment.
614 * config/fp-bit.h: Tidy comments.
616 2005-04-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
618 * system.h: Poison PARAMS.
620 2005-04-07 Richard Sandiford <rsandifo@redhat.com>
622 * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
623 (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
624 (TARGET_SWITCHES): Delete.
625 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
626 * config/vax/vax.opt: New file.
628 2005-04-07 Daniel Berlin <dberlin@dberlin.org>
630 * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
632 2005-04-07 Ian Lance Taylor <ian@airs.com>
634 * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
636 * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
637 * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
640 2005-04-07 Kazu Hirata <kazu@cs.umass.edu>
642 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
643 all immediate uses in PHI nodes.
645 2005-04-07 Richard Earnshaw <richard.earnshaw@arm.com>
647 * arm.c (arm_const_double_inline_cost): Handle any constant by
648 using gen_lowpart and gen_highpart_mode.
649 (note_invalid_constants): All constants in an RTX with a constraint
650 that permits memory are now pushed to the constant pool.
651 (output_move_double): Delete code to handle reg to reg and
652 constant to reg moves.
653 (const_double_needs_minipool, output_mov_immediate): Delete.
654 * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
655 CONST_INT and CONST_VECTOR.
656 * arm.md (ANY64): New mode macro.
657 (arm_movdi): Split reg-reg and const-reg moves. Simplify constraints.
658 (movdf_soft_insn): Split reg-reg and const-reg moves.
659 (split patterns for 64-bit constant and register moves): New.
660 * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
661 (cirrus_movdf_hard_insn): Likewise.
662 * fpa.md (movdf_fpa): Likewise.
663 * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
664 (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
666 (movv2si_internal_2): Likewise.
667 * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
668 (movdf_vfp): Likewise.
669 * arm-protos.h (output_mov_immediate): Delete prototype.
671 2005-04-07 Joseph S. Myers <joseph@codesourcery.com>
674 * simplify-rtx.c (simplify_unary_operation_1): Check
675 SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
677 2005-04-06 James E Wilson <wilson@specifixinc.com>
680 * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
683 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
685 * coverage.h (GCOV_TYPE_NODE): Delete.
686 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
687 (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
688 * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
689 (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
690 * value-prof.c (tree_divmod_fixed_value_transform): Delete.
692 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
695 * Makefile.in (gcc.pot): Remove options.c dependency.
696 * optc-gen.awk: Don't quote help strings with N_().
698 2005-04-06 James A. Morrison <phython@gcc.gnu.org>
700 * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
701 the function returns a pointer type.
703 2005-04-06 Daniel Berlin <dberlin@dberlin.org>
705 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
706 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
707 * doc/invoke.texi: Documnet salias-max-implicit-fields.
708 * tree-ssa-alias.c (struct used_part): Add implicit_uses and
709 explicit_uses members.
710 (get_or_create_used_part_for): Initialize new fields.
711 (fieldoff_compare): New function.
712 (create_overlap_variables_for): Count number of fields, use
713 heuristic to determine whether to create subvars for vars with
715 Sort the field list by offset and avoid creating duplicate SFT's.
717 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
719 * c.opt (-F): Remove trailing whitespace from help string.
720 (-finput-charset): Use a tab to separate the switch name and help
722 * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
723 (-ftree-vectorizer-verbose): Likewise.
725 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
727 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
728 a PHI argument where a use occurs instead of all PHI arguments.
730 2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
732 * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
735 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
737 * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
738 tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
739 config/bfin/bfin.h: Fix comment typos.
741 2005-04-06 Ranjit Mathew <rmathew@hotmail.com>
743 * doc/install.texi: Update the URL for Jacks.
744 * doc/sourcebuild.texi: Likewise.
746 2005-04-06 Eric Botcazou <ebotcazou@libertysurf.fr>
749 * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
750 Revert 2004-10-08 patch. Reject TFmode LO_SUM in 32-bit mode.
752 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
754 * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
756 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
758 * config/v850/v850-protos.h (override_options): Delete.
759 * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
760 (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
761 (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
762 (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
763 (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
764 (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
765 (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
766 (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
767 (OVERRIDE_OPTIONS): Delete.
768 (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
769 (small_memory_info): Remove the value field.
770 (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
772 * config/v850/v850.c (small_memory): Remove the value field.
773 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
774 (override_options): Delete.
775 (v850_handle_memory_option, v850_handle_option): New functions.
776 * config/v850/v850.opt: New file.
778 2005-04-06 Geoffrey Keating <geoffk@apple.com>
780 * config.host: Add a section for generic hosts, and a subsection
781 for Darwin. Add a case for x86-darwin. Update ppc-darwin case.
782 * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
783 * config/host-darwin.h: New.
784 * config/x-darwin: New.
785 * config/i386/host-i386-darwin.c: New.
786 * config/i386/x-darwin: New.
787 * config/rs6000/host-darwin.c: Include host-darwin.h.
788 (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
789 (darwin_rs6000_gt_pch_use_address): Likewise.
790 * config/rs6000/x-darwin: Change name of .o built, update
791 dependencies for changes to rs6000/host-darwin.c.
793 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
796 * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
798 2005-04-06 Dorit Naishlos <dorit@il.ibm.com>
800 * tree-vect-analyze.c (vect_analyze_loop_form): Call
801 split_loop_exit_edge instead of loop_split_edge_with.
803 2005-04-06 Paolo Bonzini <bonzini@gnu.org>
805 * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
806 UNSPEC_SET_VSCR): New constants, used throughout.
808 (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
810 (altivec_vspltis<VI_char>): ... this pattern, using
811 a QImode const_int_operand for the immediate.
812 (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
815 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
818 * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
820 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
822 * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
824 2005-04-06 Ben Elliston <bje@au.ibm.com>
826 * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
827 DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
828 macros as living in "this file" and not gcc.h.
830 2005-04-06 Ben Elliston <bje@au.ibm.com>
832 * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
833 -ftree-live_range_split. Perhaps renamed at some point?
835 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
838 * tree-ssa-loop-ivopts.c (generic_type_for): New function.
839 (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
841 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
843 * tree-flow.h (number_of_iterations_cond): Declaration removed.
844 * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
845 (number_of_iterations_special): New function.
846 (number_of_iterations_exit): Use number_of_iterations_special.
847 Use simplify_using_outer_evolutions only at -O3.
848 (number_of_iterations_cond, tree_simplify_using_condition,
849 simplify_using_initial_conditions, loop_niter_by_eval,
850 compare_trees, can_count_iv_in_wider_type_bound,
851 simplify_using_outer_evolutions): Use fold_build.
853 2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com>
855 * doc/install.texi (Configuration): Document --with-java-home.
857 2005-04-05 Richard Henderson <rth@redhat.com>
861 * config/i386/i386.c (print_operand): Handle vector zeros.
862 (ix86_split_to_parts): Handle CONST_VECTOR.
863 (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
864 (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
865 what modes to tie for MMX and SSE registers.
866 * config/i386/i386.h (MMX_REG_MODE_P): Remove.
867 * config/i386/i386.md: Extend move 0 -> xor peephole to apply
868 to vector modes as well.
869 * config/i386/predicates.md (const0_operand): Handle VOIDmode
870 properly as an input mode.
872 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
874 * tree-ssa-operands.c (verify_abort): Use %p for pointers.
876 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
878 * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
880 2005-04-05 Jakub Jelinek <jakub@redhat.com>
882 * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
883 and local functions, set sse_nregs to 8 and float_in_sse.
884 (function_arg_advance, function_arg): If float_in_sse, pass
885 SFmode and DFmode arguments in SSE registers.
886 * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
888 * config/i386/i386.c (ix86_value_regno): Only optimize local functions
891 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
893 * config/i386/i386-protos.h (ix86_function_value): Accept two
894 arguments, like the target macro.
895 * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
896 * config/i386/i386.c (ix86_function_value): Accept the second
897 argument of the target macro.
898 (ix86_function_ok_for_sibcall): Pass a function pointer to
900 (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
901 call to ix86_value_regno).
902 (ix86_value_regno): Add support for returning floating point values
905 2005-04-05 Jakub Jelinek <jakub@redhat.com>
907 PR tree-optimization/20076
908 * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
909 that call __builtin_return or __builtin_apply_args.
911 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
913 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
914 Use immediate use iterator.
915 (stmt_is_bumper_for_loop): Use immediate use iterator.
916 * predict.c (strip_builtin_expect): Use update_stmt.
917 * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
918 on all elements of a STATEMENT_LIST.
919 (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
920 (bsi_remove): Remove imm_use links and mark the stmt as modified.
921 (bsi_replace): Mark stmt as modified and the update it.
922 * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
923 (expand_complex_libcal): Call update_stmt.
924 (expand_complex_comparison): Call mark_stmt_modified.
925 (expand_complex_operations_1): Call update_stmt_if_modified.
926 (expand_vector_operations_1): Call mark_stmt_modified.
927 * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
928 compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
929 add_immediate_use, redirect_immediate_use,
930 redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
931 dump_immediate_uses_for, debug_immediate_uses_for): Delete.
932 (mark_new_vars_to_rename): Call update_stmt.
933 * tree-dump.c (dump_option_value_in): Add "stmtaddr".
934 * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
936 (unmodify_stmt): Delete.
937 (update_stmt): New. Force an update of a stmt.
938 (update_stmt_if_modified): update a stmt if it is out of date.
939 (get_stmt_operands): Verify stmt is NOT modified.
940 (stmt_modified_p): Update comment.
941 (delink_imm_use): Remove a use node from its immuse list.
942 (link_imm_use_to_list): Link a use node to a specific list.
943 (link_imm_use): Link a node to the correct list.
944 (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
945 it in the correct list, if appropriate.
946 (link_imm_use_stmt): Link a use node, and set the stmt pointer.
947 (relink_imm_use): Link a use node in place of another node in a list.
948 (relink_imm_use_stmt): LInk a node in place of another node, and set
950 (end_safe_imm_use_traverse): New. Terminate a safe immuse iterator.
951 (end_safe_imm_use_p): New. Check for the end of a safe immuse iterator.
952 (first_safe_imm_use): New. Initialize a safe immuse iterator.
953 (next_safe_imm_use): New. Proceed to next safe immuse iterator value.
954 (end_readonly_imm_use_p): New. Check for end of a fast immuse iterator.
955 (first_readonly_imm_use): New. Initialize a fast immuse iterator.
956 (next_readonly_imm_use): New. Get the next fast immuse iterator value.
957 (has_zero_uses): New. Return true if there are no uses of a var.
958 (has_single_use): New. Return true if there is only a single use of a
960 (single_imm_use): New. Return the simgle immediate use.
961 (num_imm_uses): New. Return the number of immediate uses.
962 (get_v_must_def_ops): Use is now a pointer.
963 (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
964 get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
966 (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
967 (delink_stmt_imm_use): Delink all immuses from a stmt.
968 (phi_arg_index_from_use): New. Return a phi arg index for a use.
969 * tree-flow.h (struct dataflow_d): Delete.
970 (immediate_use_iterator_d): New. Immediate use iterator struct.
971 (FOR_EACH_IMM_USE_FAST): New. Macro for read only immuse iteration.
972 (FOR_EACH_IMM_USE_SAFE): New. Macro for write-safe immuse iteration.
973 (BREAK_FROM_SAFE_IMM_USE): New. Macro for earlyu exit from write-safe
975 (struct stmt_ann_d): Remove dataflow_t from struct.
976 * tree-if-conv.c (tree_if_conversion). Don't call free_df.
977 (if_convertible_phi_p): Use FAST immuse iterator.
978 (if_convertible_loop_p): Don't call compute_immediate_uses.
979 (replace_phi_with_cond_modify_expr): Call update_stmt.
980 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
981 update_stmt_if_modified.
982 (rewrite_all_into_ssa): Initialize ssa operands.
983 * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
984 compute_immediate_uses.
985 * tree-optimize.c (execute_todo): Call verify_ssa whenever the
986 ssa_property is available.
987 (execute_one_pass): Change parameters passed to execute_todo.
988 * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
989 (remove_ssa_form): Call fini_ssa_operands.
990 (insert_backedge_copies): Delete call to modify_stmt.
991 * tree-phinodes.c (make_phi_node): Initialize use nodes.
992 (release_phi_node): Delink any use nodes before releasing.
993 (resize_phi_node): Relink any use nodes.
994 (remove_phi_arg_num): Delink the use node.
995 (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
996 (remove_all_phi_nodes_for): Release phi node first.
997 * tree-pretty-print.c (dump_generic_node): Print stmt address.
998 * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
999 (scalarize_use, scalarize_copy): Call update_stmt.
1000 * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
1001 (compute_points_to_and_addr_escape): Call mark_stmt_modified.
1002 * tree-ssa-cpp.c (need_imm_uses_for): Delete.
1003 (ccp_initialize): Remove call to compute_immediate_uses.
1004 (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
1005 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
1007 (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
1008 (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
1009 (eliminate_redundant_computations): Call mark_stmt_modified.
1010 (cprop_operand): Call mark_stmt_modified.
1011 (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
1012 * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
1013 (dse_optimize_stmt): Use new immuse interface.
1014 (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
1015 * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
1016 (substitute_single_use_vars): Use new immuse interface.
1017 (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
1018 and compute_immediate_uses.
1019 * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
1021 (rewrite_mem_refs): Call update_stmt.
1022 (determine_lsm): Remove call to compute_imm_uses and free_df.
1023 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
1024 (try_unroll_loop_completely): Call update_stmt.
1025 * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
1026 (rewrite_use_compare): Call update_stmt.
1027 (compute_phi_arg_on_exit): Insert each stmt before trying to process.
1028 (rewrite_use) : Call update_stmt.
1029 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
1030 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
1032 * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
1033 (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
1034 (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
1036 (initialize_vuse_operand): New. Initialize a vuse operand.
1037 (initialize_v_may_def_operand): New. Initialize a maydef operand.
1038 (initialize_v_must_def_operand): New. Initialize a mustdef operand.
1039 (finalize_ssa_defs): Use stmt parameter.
1040 (correct_use_link): Ensure a use node is in the correct list, and has
1041 the correct stmt pointer.
1042 (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
1043 finalize_ssa_v_must_defs): Also initialize use nodes.
1044 (finalize_ssa_stmt_operands): Pass extra stmt operands.
1045 (build_ssa_operands): Seperate parsing from final operand construction.
1046 (parse_ssa_operands): New. Parse entry point for operand building.
1047 (swap_tree_operands): New. Swap 2 tree operands.
1048 (update_stmt_operands): Ranamed from get_stmt_operands. Always builds
1050 (get_expr_operands): Call swap_tree_operands when needed.
1051 (copy_virtual_operands): Use initialize routines for virtual use ops.
1052 (create_ssa_artficial_load_stmt): Add extra stmt parameter.
1053 (verify_abort): New. Issue imm_use error.
1054 (verify_imm_links): New Verify imm_use links for a var.
1055 (dump_immediate_uses_for): New. Dump imm_uses for a var to file.
1056 (dump_immediate_uses): New. Dump imm_uses for all vars to file.
1057 (debug_immediate_uses): New. Dump imm_uses for all vars to stderr.
1058 (debug_immediate_uses_for): New. Dump imm_uses for a var to stderr.
1059 * tree-ssa-operands.h (struct use_operand_ptr): Delete.
1060 (NULL_USE_OPERAND_P) Define.
1061 (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
1063 (struct vuse_operand_type): New struct.
1064 (SET_USE): Call set_ssa_use_from_ptr.
1066 (PHI_ARG_INDEX_FROM_USE): Define.
1067 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
1068 argument via SET_USE, not PHI_ARG_DEF_TREE.
1069 * tree-ssa-pre.c (eliminate): Call update_stmt.
1070 * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators. Don't
1072 * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
1073 (nearest_common_dominator_of_uses): Use imm_use iterator.
1074 (statement_sink_location): Use imm_use iterator and interface.
1075 (execute_sink_code): Don't call compute_immediate_uses or free-df.
1076 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
1077 PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
1078 * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
1079 (verify_ssa): Ensure no stmt is marked modify after optimization pass
1080 if new parameter is true.
1081 (init_tree_ssa): Don't initialize operand cache here.
1082 (delete_tree_ssa): Don't destroy operand cache here.
1083 (propagate_into_addr): Pass in a use pointer, return true if anything
1085 (replace_immediate_uses): Use imm_use iterator, call update_stmt.
1086 (check_phi_redundancy): Use imm_use iterator.
1087 (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
1089 * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
1090 (release_ssa_name): Delink node and all elements in its imm_use list.
1091 * tree-tailcall.c (adjust_return_value): Call update_stmt.
1092 * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
1093 * tree-vectorizer.c (need_imm_uses_for): Delete.
1094 (vectorize_loops): Dont call compute_immediate_uses or free_df.
1095 * tree.h (struct ssa_imm_use_d): Define.
1096 (SSA_NAME_IMM_USE_NODE): Define.
1097 (struct tree_ssa_name): Add imm_use node.
1099 (PHI_ARG_IMM_USE_NODE): Define.
1100 (struct phi_arg_d): Add imm_use node.
1101 (struct tree_phi_node): Remove struct dataflow_d element.
1102 (TDF_STMTADDR): Define.
1104 2005-04-05 Dale Johannesen <dalej@apple.com>
1106 * doc/invoke.texi (Optimization Options): Remove
1107 duplicate -fcse-follow-jumps. Add -fweb.
1108 (-ftree-lim): Fix spelling (-ftree-loop-im, invariants).
1109 (-fivcanon): Fix spelling (-ftree-loop-ivcanon).
1111 2005-04-05 Per Bothner <per@bothner.com>
1113 * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
1114 to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
1115 (warn_uninit): Get EXPR_LOCUS from context now instead.
1116 This fixes a USE_MAPPED_LOCATION testsuite failure.
1118 * tree-ssa.c (warn_uninitialized_var): Remove useless local.
1120 2005-04-05 Per Bothner <per@bothner.com>
1122 * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
1123 of the artification 'return 0' in main() to BUILTINS_LOCATION.
1124 * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
1127 2004-04-05 Devang Patel <dpatel@apple.com>
1129 * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
1130 (lhsr<mode>3): ... new name.
1131 (altivec_vsra<VI_char>): Rename to ..
1132 (ashr<mode>3): ... new name.
1133 * config/rs6000/rs6000.c (builtin_description): Rename shift
1136 2004-04-05 Paolo Bonzini <bonzini@gnu.org>
1138 * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
1139 gen_lowpart_for_combine.
1140 * cse.c (gen_lowpart_if_possible): Move...
1141 * rtlhooks.c (gen_lowpart_if_possible): ... here. Also try
1143 (gen_lowpart_no_emit_general): Use it.
1145 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1147 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
1150 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
1152 * system.h: Fix typo.
1154 2005-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
1156 * config/bfin/bfin-modes.def: New file.
1157 * config/bfin/bfin-protos.h: New file.
1158 * config/bfin/bfin.c: New file.
1159 * config/bfin/bfin.h: New file.
1160 * config/bfin/bfin.md: New file.
1161 * config/bfin/bfin.opt: New file.
1162 * config/bfin/crti.s: New file.
1163 * config/bfin/crtn.s: New file.
1164 * config/bfin/elf.h: New file.
1165 * config/bfin/lib1funcs.asm: New file.
1166 * config/bfin/predicates.md: New file.
1167 * config/bfin/t-bfin: New file.
1168 * config/bfin/t-bfin-elf: New file.
1169 * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
1170 Document new attributes.
1171 (interrupt, interrupt_handler, saveall): Update documentation for
1173 * doc/install.texi (Specific): Add entry for the Blackfin.
1174 * doc/invoke.texi (Blackfin Options): New section.
1175 * doc/md.texi (Blackfin family): New section to document constraints.
1176 * config.gcc: Add bfin*-* and bfin*-elf configurations.
1178 2005-04-05 Olivier Hainque <hainque@adacore.com>
1180 * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
1181 match what the system unwinder expects.
1182 * config/mips/mips.c (mips_frame_set): If we're saving the return
1183 address register and the dwarf return address column number differs
1184 from the hard register number, adjust the note reg to refer to the
1187 2004-04-05 Richard Sandiford <rsandifo@redhat.com>
1189 * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
1190 * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
1191 (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1192 (processor_type): New enum.
1193 (mn10300_processor): New variable.
1194 (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
1195 (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
1196 * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1197 (PROCESSOR_DEFAULT): New macro.
1198 * config/mn10300/mn10300.c (mn10300_processor): New variable.
1199 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1200 (mn10300_handle_option, mn10300_override_options): New functions.
1201 * config/mn10300/mn10300.opt: New file.
1203 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1204 Sebastian Pop <sebastian.pop@cri.ensmp.fr>
1206 PR tree-optimization/19903
1207 * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
1208 that don't fit in their type after conversion.
1210 2005-04-05 Uros Bizjak <uros@kss-loka.si>
1213 * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
1214 (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
1215 Allocate local stack slots here. Set ix86_optimize_mode_switching.
1216 flag here. Implement using define_insn_and_split.
1217 (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
1218 (frndintxf2_mask_pm_i387): New insn patterns.
1219 (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
1220 Do not set ix86_optimize_mode_switching flag.
1221 (ceilsf2, ceildf2, ceilxf2): Same.
1222 (btruncsf2, btruncdf2, btruncxf2): Same.
1223 (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
1225 2005-04-05 Ian Lance Taylor <ian@airs.com>
1228 * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
1229 i386_pe_record_external_function.
1230 (i386_pe_record_external_function): Update declaration.
1231 * config/i386/winnt.c (struct extern_list): Add decl field.
1232 (i386_pe_record_external_function): Add decl parameter.
1233 (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
1235 * config/i386/i386-protos.h (i386_pe_record_external_function):
1238 2005-04-05 Kazu Hirata <kazu@cs.umass.edu>
1240 * config/m68k/m68k-protos.h: Add a prototype for
1241 valid_dbcc_comparison_p_2.
1242 * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
1243 extend_operator, const_uint32_operand, const_sint32_operand,
1244 general_src_operand, nonimmediate_src_operand,
1245 memory_src_operand, post_inc_operand, pre_dec_operand,
1246 pcrel_address): Move to predicates to predicates.md.
1247 * config/m68k/m68k.h (PREDICATE_CODES): Remove.
1248 * config/m68k/m68k.md: Include predicates.md.
1249 * config/m68k/predicates.md: New.
1251 2005-04-04 Roger Sayle <roger@eyesopen.com>
1253 * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
1255 * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
1257 2005-04-04 Ian Lance Taylor <ian@airs.com>
1259 * c-typeck.c (struct c_switch): Rename switch_stmt field to
1261 (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
1262 (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
1263 (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
1264 Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
1265 * c-common.c (c_do_switch_warnings_1): New static function broken
1266 out of c_do_switch_warnings.
1267 (c_do_switch_warnings): Call c_do_switch_warnings_1.
1268 (c_do_switch_expr_warnings): New function.
1269 * c-common.h (c_do_switch_expr_warnings): Declare.
1271 2005-04-04 David Edelsohn <edelsohn@gnu.org>
1272 Daniel Jacobowitz <dan@codesourcery.com>
1274 * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
1276 * rtlanal.c (may_trap_p): Same.
1278 2005-04-04 Dale Johannesen <dalej@apple.com>
1280 * ChangeLog: remove reference to ChangeLog.12.
1282 2005-04-05 Hans-Peter Nilsson <hp@axis.com>
1284 CRIS epilogue as RTL.
1285 * config/cris/cris.md: Change all 0 in unspec 0 to
1287 (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
1288 ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
1290 ("return"): Change to define_expand. Call cris_expand_return for
1292 ("*return_expanded"): New pattern.
1293 ("epilogue"): New define_expand.
1294 * config/cris/cris.h (PREDICATE_CODES): Add
1295 cris_load_multiple_op.
1296 * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
1298 (enum cris_retinsn_type): New.
1299 (struct machine_function): New member return_type.
1300 (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
1301 (cris_target_asm_function_epilogue): Remove, moving RTLified
1303 (cris_expand_epilogue): New function.
1304 (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
1305 (cris_gen_movem_load, cris_load_multiple_op)
1306 (cris_return_address_on_stack_for_return, cris_expand_return): New
1308 (cris_target_asm_function_prologue)
1309 (cris_initial_frame_pointer_offset): Call
1310 cris_reg_saved_in_regsave_area instead of complicated expression.
1311 Call cris_return_address_on_stack instead of an expression.
1312 (cris_print_operand) <case 'o', case 'O'>: New cases.
1313 (cris_return_address_on_stack): Change return-type to bool.
1314 (cris_simple_epilogue): Ditto. Return false if registers are
1316 * config/cris/cris-protos.h (cris_simple_epilogue)
1317 (cris_return_address_on_stack): Adjust prototype return type.
1318 (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
1319 (cris_return_address_on_stack_for_return): New prototypes.
1321 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
1323 * config/frv/frv.h (PREDICATE_CODES): Add CONST to
1324 gpr_or_int12_operand.
1326 * config/frv/frv-protos.h: Add a prototype to
1327 frv_legitimate_memory_operand and frv_const_unspec_p.
1328 (frv_unspec): Move from frv.c.
1329 * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
1330 (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
1331 (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
1332 gpr_or_fpr_operand, gpr_or_int12_operand,
1333 gpr_fpr_or_int12_operand, fpr_or_int6_operand,
1334 gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
1335 int6_operand, int5_operand, uint5_operand, uint4_operand,
1336 uint1_operand, int_2word_operand, uint16_operand,
1337 upper_int16_operand, integer_register_operand,
1338 gpr_no_subreg_operand, fpr_operand, even_reg_operand,
1339 odd_reg_operand, even_gpr_operand, odd_gpr_operand,
1340 quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
1341 dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
1342 move_destination_operand, movcc_fp_destination_operand,
1343 frv_function_symbol_referenced_p, move_source_operand,
1344 condexec_dest_operand, condexec_source_operand,
1345 reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
1346 const_unspec_operand, gpr_or_memory_operand,
1347 gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
1348 icc_operand, fcc_operand, cc_operand, icr_operand,
1349 fcr_operand, cr_operand, call_operand, sibcall_operand,
1350 symbolic_operand, relational_operator,
1351 integer_relational_operator, float_relational_operator,
1352 ccr_eqne_operator, minmax_operator,
1353 condexec_si_binary_operator, condexec_si_media_operator,
1354 condexec_si_divide_operator, condexec_si_unary_operator,
1355 condexec_sf_conv_operator, condexec_sf_add_operator,
1356 condexec_memory_operand, intop_compare_operator, acc_operand,
1357 even_acc_operand, quad_acc_operand, accg_operand: Move to
1359 * config/frv/frv.h (PREDICATE_CODES): Remove.
1360 * config/frv/frv.md: Include predicates.md.
1361 * config/frv/predicates.md: New.
1363 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
1366 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
1367 * tree-ssa-loop-ivopts.c: Include langhooks.h.
1368 (add_standard_iv_candidates_for_size): New function, extracting code
1369 from add_standard_iv_candidates and parameterizing it by type size.
1370 (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
1372 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
1374 * system.h (GCOV_SIZE_TYPE): Unposion.
1375 * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
1376 (GCOV_TYPE_SIZE): ...this new macro.
1377 * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
1378 * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
1379 (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
1380 (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
1381 (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
1382 instead of unsigned_intSI_type_node.
1383 * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
1384 (rtl_gen_one_value_profiler_no_edge_manipulation)
1385 (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
1386 * value-prof.c: Include coverage.h.
1388 2005-04-02 Daniel Berlin <dberlin@dberlin.org>
1389 Diego Novillo <dnovillo@redhat.com>
1391 Fix PR tree-optimization/20703
1392 Fix PR tree-optimization/20725
1394 * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
1395 (create_expression_by_pieces): Ditto.
1396 (valid_in_set): Ditto. Also handle tcc_declaration.
1397 (find_or_generate_expression): Handle comparison class.
1398 (insert_into_preds_of_block): Ditto.
1399 (insert_aux): Ditto.
1400 (create_value_expr_from): Handle comparison class, recursively
1401 handle reference nodes.
1402 (compute_avail): Handle comparison classes, rewrite a little cleaner.
1403 (execute_pre): Fix spacing.
1404 (do_fre): Renamed to execute_fre.
1406 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1408 * doc/invoke.texi (SPARC options): Document that
1409 -mlittle-endian is not supported on Linux either.
1411 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1415 * config.gcc (Obsolete configurations): Remove
1416 sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
1417 (sparclite-*-coff*): Delete.
1418 (sparclite-*-elf*): Likewise.
1419 (sparc86x-*-elf*): Likewise.
1420 (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
1421 * config/sparc/lite.h: Delete.
1422 * config/sparc/litecoff.h: Likewise.
1423 * config/sparc/liteelf.h: Likewise.
1424 * config/sparc/sp86x-elf.h: Likewise.
1425 * config/sparc/t-sparclite: Likewise.
1426 * config/sparc/t-sp86x: Likewise.
1428 2005-04-04 Adrian Straetling <straetling@de.ibm.com>
1430 * config/s390/s390-protos.h: (s390_comparison,
1431 s390_alc_comparison, s390_slb_comparison, const0_operand,
1432 consttable_operand, larl_operand, s_operand,
1433 shift_count_operand, bras_sym_operand, load_multiple_operation,
1434 store_multiple_operation, s390_plus_operand): Remove prototypes.
1435 (s390_legitimate_address_without_index_p): New prototype.
1436 * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
1438 (s390_comparison, s390_alc_comparison, s390_slb_comparison,
1439 const0_operand, consttable_operand, larl_operand, s_operand,
1440 shift_count_operand, bras_sym_operand, load_multiple_operation,
1441 store_multiple_operation, s390_plus_operand): Move to
1443 (check_mode): Remove.
1444 (s390_branch_condition_mask): Remove 'static'. Move prototype to
1446 (s390_legitimate_address_without_index_p): New.
1447 * config/s390/s390.h (PREDICATE_CODES): Remove.
1448 * config/s390/s390.md: Include predicates.md.
1449 * config/s390/predicates.md: New.
1451 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1454 * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
1455 * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
1456 (NEED_INDICATE_EXEC_STACK): Define to 1.
1457 * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
1458 (NEED_INDICATE_EXEC_STACK): Define to 1.
1459 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
1460 (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
1461 (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
1462 (pic_helper_emitted_p): New global.
1463 (emit_pic_helper): New function extracted from...
1464 (load_pic_register): ...here. Add 'delay_pic_helper' parameter.
1465 Do not call emit_pic_helper if delay_pic_helper is true.
1466 (sparc_expand_prologue): Pass 'false' to load_pic_register.
1467 (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
1468 (sparc_file_end): New function.
1470 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
1472 * config/mcore/mcore-protos.h: Remove the prototypes for
1473 mcore_arith_reg_operand, mcore_general_movsrc_operand,
1474 mcore_general_movdst_operand, mcore_reload_operand,
1475 mcore_arith_J_operand, mcore_arith_K_operand,
1476 mcore_arith_K_operand_not_0, mcore_arith_M_operand,
1477 mcore_arith_K_S_operand, mcore_arith_imm_operand,
1478 mcore_arith_any_imm_operand, mcore_arith_O_operand,
1479 mcore_literal_K_operand, mcore_addsub_operand,
1480 mcore_compare_operand, mcore_load_multiple_operation,
1481 mcore_store_multiple_operation, mcore_call_address_operand.
1482 Add a prototype for const_ok_for_mcore.
1483 * config/mcore/mcore.c (mcore_call_address_operand,
1484 mcore_general_movsrc_operand, mcore_general_movdst_operand,
1485 mcore_arith_reg_operand, mcore_reload_operand,
1486 mcore_arith_J_operand, mcore_arith_K_operand,
1487 mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
1488 mcore_arith_M_operand, mcore_arith_imm_operand,
1489 mcore_arith_any_imm_operand, mcore_arith_O_operand,
1490 mcore_literal_K_operand, mcore_addsub_operand,
1491 mcore_compare_operand, mcore_load_multiple_operation,
1492 mcore_store_multiple_operation): Move to predicates.md.
1493 (const_ok_for_mcore): Export.
1494 * config/mcore/mcore.h (PREDICATE_CODES): Remove.
1495 * config/mcore/mcore.md: Include predicates.md.
1496 * config/mcore/predicates.md: New.
1498 * config/mcore/predicates.md: Fix a comment typo.
1500 2005-04-04 Andreas Krebbel <krebbel1@de.ibm.com>
1501 Adrian Straetling <straetling@de.ibm.com>
1503 * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
1504 * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
1505 * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
1507 ("imul"): Removed from "type" attribute.
1508 ("*muldi3_sign", "muldi3"): Changed type to imuldi.
1509 ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
1510 Changed type to imulsi.
1511 ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
1513 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
1515 * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
1516 (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
1517 (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
1518 (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
1519 (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
1520 (TARGET_SWITCHES, mcore_stack_increment_string)
1521 (TARGET_OPTIONS): Delete.
1522 (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
1523 than *_BIT constants.
1524 (TARGET_8ALIGN): #undef old definition before redefining to 1.
1525 * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
1526 (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
1527 (mcore_override_options): Delete mcore_stack_increment code.
1528 Change use of M340_BIT to MASK_M340.
1529 * config/mcore/mcore.opt: New file.
1531 2005-04-04 Ian Lance Taylor <ian@airs.com>
1533 * config/arm/arm.c (replace_symbols_in_block): Remove static
1536 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
1538 * config/fr30/fr30-protos.h: Remove the prototypes for
1539 stack_add_operand, add_immediate_operand,
1540 high_register_operand, low_register_operand, call_operand,
1541 di_operand, and nonimmediate_di_operand.
1542 * config/fr30/fr30.c (stack_add_operand,
1543 add_immediate_operand, high_register_operand,
1544 low_register_operand, call_operand, di_operand,
1545 nonimmediate_di_operand): Move to predicates.md.
1546 * config/fr30/fr30.h (PREDICATE_CODES): Remove.
1547 * config/fr30/fr30.md: Include predicates.md.
1548 * config/fr30/predicates.md: New.
1550 * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
1551 LABEL_REF to mcore_general_movsrc_operand. Add SYMBOL_REF to
1552 mcore_call_address_operand.
1554 * config/sh/sh.h (PREDICATE_CODES): Add CONST to
1555 general_movsrc_operand.
1557 2005-04-04 Alan Modra <amodra@bigpond.net.au>
1559 * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
1562 2005-04-04 Richard Earnshaw <richard.earnshaw@arm.com>
1565 * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
1568 2005-04-04 Richard Henderson <rth@redhat.com>
1569 Jakub Jelinek <jakub@redhat.com>
1571 PR rtl-optimization/16104
1572 * fold-const.c (fold_unary): Fix folding of vector conversions.
1574 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
1576 * config.gcc (xstormy16-*-elf): Set extra_options.
1577 * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
1578 * config/stormy16/stormy16.opt: New file.
1580 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
1582 * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
1583 (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
1584 (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
1585 (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
1586 (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
1587 (TARGET_UNIX_ASM): Delete.
1588 (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
1589 * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
1590 * config/pdp11/pdp11.c (pdp11_handle_option): New function.
1591 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1592 * config/pdp11/pdp11.opt: New file.
1594 2005-04-03 Roger Sayle <roger@eyesopen.com>
1595 Alexandre Oliva <aoliva@redhat.com>
1598 * fold-const.c (non_lvalue): Split tests into...
1599 (maybe_lvalue_p): New function.
1600 (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
1601 C++ front-end prior to lowering into gimple form.
1603 2005-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1605 * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
1606 BUILT_IN_STRNCASECMP): New.
1607 * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
1610 2005-04-03 Richard Earnshaw <richard.earnshaw@arm.com>
1613 * arm.md (addsi3_compare0_for_combiner): Delete.
1614 (addsi3_compare0_scratch_for_combiner): Delete.
1615 (cmpsi_neg_shiftsi): Delete.
1616 (compare_negsi_si): New pattern.
1617 (cmpsi_negshiftsi_si): New pattern.
1618 (negated_cbranchsi4): Restrict to equality_operator.
1620 * arm.md (movhi_insn_arch4): delete trailing white space from assembler
1623 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
1625 * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
1628 * doc/install.texi: Fix a typo.
1630 2005-04-03 Steven Bosscher <stevenb@suse.de>
1633 * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
1634 a computed goto if the edge to the computed goto block has
1635 incoming abnormal edges. Clarify how the function works.
1637 2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
1639 * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
1640 * passes.c (open_dump_file, rest_of_handle_final): Likewise.
1641 * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
1642 hash_scan_set, reg_set_between_after_reload_p,
1643 reg_used_between_after_reload_p, get_avail_load_store_reg,
1644 eliminate_partially_redundant_load): Likewise.
1645 * postreload.c (reload_cse_simplify_set,
1646 reload_combine_note_use): Likewise.
1647 * predict.c (predict_insn, expected_value_to_br_prob,
1648 propagate_freq, expensive_function_p): Likewise.
1649 * print-rtl.c (print_rtx): Likewise.
1650 * profile.c (instrument_edges, instrument_values,
1651 compute_branch_probabilities, branch_prob, union_groups,
1652 tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
1653 * protoize.c (in_system_include_dir, file_could_be_converted,
1654 file_normally_convertible, gen_aux_info_file, seek_to_line,
1655 do_cleaning): Likewise.
1656 * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
1657 * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
1658 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1660 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
1662 * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
1663 * modulo-sched.c (undo_replace_buff_elem): New structure.
1664 (kernel_number_of_cycles, ps_unschedule_node,
1665 undo_generate_reg_moves,free_undo_replace_buff,
1666 undo_permute_partial_schedule, loop_single_full_bb_p,
1667 SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
1668 build_loops_structure, get_sched_window): New.
1669 (generate_reg_moves): Return undo_replace_buff_elem and other
1671 (generate_prolog_epilog): Remove old loop versioning.
1672 (sms_schedule): Use loop information and loop_version.
1673 (sms_schedule_by_order): Split part of it to get_sched_window.
1674 * passes.c (rest_of_handle_sms): call cfg_layout_initialize
1675 cfg_layout_finalize and free_dominance_info before/after SMS.
1677 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
1679 * cfghooks.c (lv_flush_pending_stmts,
1680 cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
1681 lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
1682 * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
1683 lv_add_condition_to_bb,
1684 lv_adjust_loop_header_phi, extract_cond_bb_edges,
1685 flush_pending_stmts): New in cfg_hooks structure.
1686 (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
1687 extract_cond_bb_edges, lv_adjust_loop_header_phi,
1688 lv_add_condition_to_bb): New declarations.
1689 * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
1691 (loop_version): Declare.
1692 * cfgloopmanip.c (cfghooks.h): Include.
1693 (duplicate_loop_to_header_edge): Change return type to bool.
1694 (loop_version, lv_adjust_loop_entry_edge): Move here.
1695 * cfgrtl.c (cfgloop.h): Include.
1696 (rtl_verify_flow_info_1): Fix.
1697 (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
1698 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
1700 * tree-cfg.c (tree_lv_adjust_loop_header_phi,
1701 tree_lv_add_condition_to_bb): New.
1702 (tree_cfg_hooks): Add new hooks to initialization.
1703 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
1704 lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
1706 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
1708 * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
1709 xstormy16_below100_or_register,
1710 xstormy16_splittable_below100_or_register, and
1711 nonimmediate_nonstack_operand.
1713 * config/stormy16/stormy16-protos.h: Remove the prototypes for
1714 xstormy16_ineqsi_operator, equality_operator,
1715 inequality_operator, shift_operator,
1716 xstormy16_below100_operand, xstormy16_below100_or_register,
1717 xstormy16_splittable_below100_or_register,
1718 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
1719 * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
1720 equality_operator, inequality_operator,
1721 xstormy16_below100_operand, xstormy16_below100_or_register,
1722 xstormy16_splittable_below100_or_register,
1723 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
1724 nonimmediate_nonstack_operand, shift_operator): Move to
1726 * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
1727 * config/stormy16/stormy16.md: Include predicates.md.
1728 * config/stormy16/predicates.md: New.
1730 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
1732 * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
1733 small_int, large_int, reg_or_0_operand, simple_memory_operand,
1734 equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
1735 move_operand, power_of_2_operand): Move to predicates.md.
1736 * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
1737 PREDICATE_CODE): Remove.
1738 * config/iq2000/iq2000.md: Include predicates.md.
1739 * config/iq2000/predicates.md: New.
1741 2005-04-02 Richard Sandiford <rsandifo@redhat.com>
1743 * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
1744 (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
1745 (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
1746 (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
1747 (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
1748 (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
1749 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
1750 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
1751 (TARGET_M68HC11): Delete.
1752 (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
1753 * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
1754 * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
1755 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
1756 (nb_soft_regs): Delete.
1757 (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
1758 (m68hc11_override_options): Remove the code that caters for MASK_M6811
1759 and MASK_M6812 being set simultaneously. Change the code that sets
1760 the default m68hc11_soft_reg_count to use integers instead of strings.
1761 (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
1762 m68hc11_soft_reg_count (which now has an int type) as the number
1764 * config/m68hc11/m68hc11.opt: New file.
1766 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
1768 * config/fr30/fr30.h (PREDICATE_CODES): Remove
1769 fp_displacement_operand, sp_displacement_operand.
1771 * config/m68hc11/m68hc11-protos.h: Add a prototype for
1773 Remove the prototypes for tst_operand, cmp_operand,
1774 stack_register_operand, d_register_operand,
1775 hard_addr_reg_operand, splitable_operand,
1776 m68hc11_logical_operator, m68hc11_arith_operator,
1777 m68hc11_non_shift_operator, m68hc11_shift_operator,
1778 m68hc11_unary_operator, m68hc11_eq_compare_operator,
1779 non_push_operand, hard_reg_operand, and
1780 reg_or_some_mem_operand.
1781 * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
1783 (tst_operand, cmp_operand, non_push_operand,
1784 splitable_operand, reg_or_some_mem_operand,
1785 stack_register_operand, d_register_operand,
1786 hard_addr_reg_operand, hard_reg_operand,
1787 m68hc11_eq_compare_operator, m68hc11_logical_operator,
1788 m68hc11_arith_operator, m68hc11_non_shift_operator,
1789 m68hc11_shift_operator, m68hc11_unary_operator): Move to
1791 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
1792 * config/m68hc11/m68hc11.md: Include predicates.md.
1793 * config/m68hc11/predicates.md: New.
1795 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1798 * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
1799 change checked in along with 2005-03-03's patch for debug/20253.
1800 * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
1801 (remap_decl): Insert type decl in map earlier.
1803 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1805 PR tree-optimization/20640
1806 * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
1807 post-dominator if it has phi nodes.
1808 (eliminate_unnecessary_stmts): Remove dead phis in all blocks
1809 before dead statements.
1811 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1814 * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
1816 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1818 PR rtl-optimization/20290
1819 * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
1820 in every iteration if the entry point is the exit test.
1822 2005-04-02 Hans-Peter Nilsson <hp@axis.com>
1824 * config/cris/cris.md (attribute "length"): Define.
1826 2005-04-02 Geoffrey Keating <geoffk@apple.com>
1828 * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
1829 (word_offset_memref_operand): New.
1830 * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
1831 (indexed_or_indirect_operand): Delete.
1832 * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
1833 (indexed_or_indirect_operand): Delete.
1835 * config/rs6000/t-darwin8: Comment out ppc64 multilib.
1838 * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
1841 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
1842 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
1844 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1846 * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
1848 2005-04-01 Ian Lance Taylor <ian@airs.com>
1850 * gcc.c: Don't include <sys/resource.h> or declare getrusage.
1851 (rus, prus): Remove static variables.
1852 (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
1853 (process_command): Permit report_times and use_pipes together.
1855 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
1857 * c-decl.c (validate_proto_after_old_defn): Look at
1858 TYPE_MAIN_VARIANT of argument types.
1860 2005-04-01 Paul Brook <paul@codesourcery.com>
1862 * config/arm/arm.c (thumb_call_via_label): Include space for SP.
1863 (arm_output_function_epilogue): Allow call_via_SP.
1864 (thumb_call_via_reg, arm_file_end): Ditto.
1865 * config/arm/arm.h (struct machine_function): Include space for SP.
1866 (thumb_call_via_label): Update declaration.
1868 2005-04-01 Ian Lance Taylor <ian@airs.com>
1870 * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
1871 doing a peephole optimization, once again put any notes in the
1874 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1876 * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
1878 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
1880 * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
1881 (block_alloc, find_free_reg): Likewise.
1882 * loop-doloop.c (doloop_modify): Likewise.
1883 * loop-invariant.c (record_use): Likewise.
1884 * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
1885 get_iv_value, canon_condition, eliminate_implied_condition,
1886 eliminate_implied_condition, simplify_using_initial_values,
1887 shorten_into_mode, canonicalize_iv_subregs,
1888 iv_number_of_iterations): Likewise.
1889 * loop-unroll.c (expand_var_during_unrolling): Likewise.
1890 * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
1891 unswitch_loop): Likewise.
1892 * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
1893 move_movables, replace_call_address, find_and_verify_loops,
1894 rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
1895 record_giv, final_giv_value, general_induction_var,
1896 simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
1897 loop_giv_dump): Likewise.
1899 * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
1900 GCOV_CHECK_WRITING): Remove.
1901 (gcov_position, gcov_rewrite): Use gcc_assert.
1902 * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
1903 gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
1904 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
1907 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1909 * tree-inline.c: Fix a typo.
1911 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
1913 * configure.ac (enable-checking): Explicitly set all variables for
1914 collective switch values. Alphabetize variables. Rename
1915 ac_checking_valgrind to ac_valgrind_checking. Allow 'none' as
1917 * doc/install.texi (enable-checking): Update documentation.
1918 * configure: Rebuilt.
1920 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1922 * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
1925 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
1927 * arm.c (adjacent_mem_locations): Reject volatile memory refs.
1928 Also reject cases where this pattern will cause load delay stalls
1929 unless optimizing for size and it will produce a shorter sequence.
1930 * arm.md (arith_adjacent_mem): Make better use of ldm addressing
1931 variants to avoid pre-adjusting the base when possible.
1933 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
1935 * arm.md (minmax_arithsi): Reject all eliminable registers, not just
1936 the frame and argument pointers.
1937 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
1938 (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
1939 (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
1940 (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
1941 (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
1942 (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
1944 2005-04-01 Danny Smith <dannysmith@users.sourceforge.net>
1946 * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
1947 with entry for selectany attribute.
1948 * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
1950 * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
1951 (i386_pe_asm_named_section): Handle sections generated by
1952 selectany attribute.
1953 * doc/extend.texi (selectany): Document attribute.
1955 2005-04-01 Paolo Bonzini <bonzini@gnu.org>
1956 Jan Hubicka <jh@suse.cz>
1958 * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
1959 to fix addresses involving EBP and ESP.
1960 (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
1961 for SUBREGed registers.
1962 (legitimate_address_p): Accept SUBREGed registers.
1964 2005-04-01 Jakub Jelinek <jakub@redhat.com>
1967 * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
1968 (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
1971 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1973 * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
1975 2005-04-01 James E Wilson <wilson@specifixinc.com>
1978 * dwarf2out.c (rtl_for_decl_init): New function.
1979 (rtl_for_decl_location): Extracted from here.
1980 (tree_add_const_value_attribute): Call rtl_for_decl_init and
1981 add_const_value_attribute. Delete initializer_constant_valid_p call.
1983 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1985 * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
1986 lambda-code.c, loop.c, machmode.def, mips-tfile.c,
1987 modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
1988 tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
1989 config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
1990 config/i386/i386.md, config/rs6000/predicates.md,
1991 config/rs6000/rs6000.c, config/s390/fixdfdi.h,
1992 config/s390/s390.c, config/stormy16/stormy16.c,
1993 config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
1996 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
1999 * gimplify.c (gimplify_expr): Create a temporary for lvalue
2000 COND_EXPR and CALL_EXPR.
2002 2005-03-31 Vladimir Makarov <vmakarov@redhat.com>
2005 * genautomata.c (first_cycle_unit_presence): Check all alternative
2006 states for unit presence.
2008 * doc/md.texi: Remove remark about impossibility to query unit
2009 presence in non nondeterministic automaton state.
2011 * config/ia64/ia64.c (get_template): Change order of unit querying.
2013 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
2015 * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
2018 2005-03-31 Zdenek Dvorak <dvorakz@suse.cz>
2020 * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
2021 flag for edges outside any loops.
2023 2005-03-31 Janis Johnson <janis187@us.ibm.com>
2025 * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
2027 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
2029 * tree-ssa-alias.c: Follow spelling conventions.
2030 * doc/tree-ssa.texi: Fix a typo.
2032 2005-03-31 J"orn Rennecke <joern.rennecke@st.com>
2034 * postreload-gcse.c: Include target.h.
2035 (gcse_after_reload_main): Return early if we cannot modify jumps.
2036 * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
2038 2005-03-31 David Edelsohn <edelsohn@gnu.org>
2040 * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
2041 expensive operations.
2043 2005-03-31 Ian Lance Taylor <ian@airs.com>
2045 * collect2.c (lderrout): New variable.
2046 (collect_exit): Dump ldout to stdout. Dump and unlink lderrout,
2047 if it is set, to stderr.
2048 (handler): Unlink lderrout if it is set.
2049 (dump_file): Add "to" parameter. Change all callers.
2050 (main): Initialize lderrout.
2051 (collect_execute): Add errname parameter. Change all callers.
2052 Rename redir parameter to outname. Never pass
2053 PEX_STDERR_TO_STDOUT to pex_run.
2054 * collect2.h (collect_execute, dump_file): Update declarations.
2055 * tlink.c (tlink_execute): Add errname parameter. Change all
2057 (do_tlink): Check lderrout as well as ldout.
2059 2005-03-31 Caroline Tice <ctice@apple.com>
2061 * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
2062 (bb-reorder.o): Add errors.h to list of requirements.
2063 (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
2064 profiledbootstrap flags.
2065 * bb-reorder.c (errors.h): Add new include.
2066 (struct bbro_basic_block_data_def): Add new field, in_trace.
2067 (add_unlikely_executed_notes): Remove function.
2068 (mark_bb_for_unlikely_executed_section): Remove function.
2069 (insert_section_boundary_note): New function.
2070 (verify_hot_cold_block_grouping): New function.
2071 (push_to_next_round_p): Remove variables and tests that push all
2072 cold blocks to last round.
2073 (find_traces): Remove code that added extra round of trace finding
2074 when doing partitioning.
2075 (find_traces_1_round) : Remove variable last_round; add code to
2076 update new struct field, in_trace; correct trace_length where it was
2077 incorrect before (after call to copy_bb); change code that pushed all
2078 cold blocks to last round. Instead verify that all blocks going into
2079 a trace belong in the same partition.
2080 (connect_traces): Modify to connect the traces in two passes, if the
2081 function contains both hot and cold blocks. The first pass connects
2082 all the traces for blocks in the partition that the first block in
2083 the function belongs to; the second pass connnects all the traces
2084 containing blocks that belong in the other partition.
2085 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
2086 code that automatically put the first block in a function into the
2087 hot partition if the function had any hot blocks.
2088 (fix_crossing_unconditional_branches): Check number of succ edges
2089 before attempting to get one.
2090 (fix_edges_for_rarely_executed_code): Update comment describing
2092 (reorder_basic_blocks): Add code to initialize new field (in_trace);
2093 remove call to add_unlikely_executed_notes; add call to
2094 verify_hot_cold_block_grouping.
2095 (duplicate_computed_gotos): Don't change computed goto if it's a
2097 (partition_hot_cold_basic_blocks): Update function comment.
2098 * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
2100 (try_forward_edges): Likewise.
2101 (merge_blocks_move_predecessor_nojumps): Likewise.
2102 (merge_blocks_move_successor_nojumps): Likewise.
2103 (merge_blocks_move): Likewise.
2104 (try_crossjump_bb): Likewise.
2105 * cfglayout.c (update_unlikely_executed_notes): Remove function.
2106 (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
2107 notes to cold bb's; remove call to update_unlikely_executed_notes.
2108 (duplicate_insn_chain): change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2109 NOTE_INSN_SWITCH_TEXT_SECTIONS.
2110 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
2111 function declaration.
2112 * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
2114 (rtl_can_merge_blocks): Remove redundancy from condition.
2115 (try_redirect_by_replacing_jump): Likewise.
2116 (force_nonfallthru_and_redirect): Remove code for adding
2117 UNLIKELY_EXECUTED_CODE notes to cold bb's.
2118 (commit_one_edge_insertion): Likewise.
2119 (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
2120 * dbxout.c (FORCE_TEXT): Replace function_section with
2121 current_function_section.
2122 (struct dbx_debug_h): Add do_nothing function for new debug_hooks
2123 function, switch_text_section.
2124 (struct xcoff_debug): Likewise.
2125 (dbxout_function_end): Add code to put out label diffs for both
2126 hot and cold sections.
2127 * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
2128 for new debug_hooks funciton, switch_text_section..
2129 * debug.h (struct gcc_debug_hooks): Add new function to debug_hooks,
2130 switch_text_section.
2131 * dwarf2out.c (struct dw_fde_struct): Add five new fields:
2132 dw_fde_hot_section_label, dw_fde_hot_section_end_label,
2133 dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
2134 dw_fde_switched_sections.
2135 (output_call_frame_info): Add test to see if function switches text
2136 sections in the middle; if so, use appropriate extra hot and cold
2137 section labels to compute size deltas for the hot and cold sections.
2138 (dwarf2out_begin_prologue): Add code to initialize new fields in
2140 (dwarf2out_switch_text_section): New function (invoked through
2141 debug_hook); updates new fields in dw_fde_struct appropriately and
2142 increments separate_line_info_table_in_use.
2143 (dwarf2_debug_hooks): Initialize switch_text_section function to be
2144 dwarf2out_switch_text_section.
2145 (struct var_loc_node): Add new field, section_label.
2146 (output_aranges): Add code to check whether in hot or cold section and
2147 use the appropriate label in calculating deltas.
2148 (output_ranges): Likewise.
2149 (output_line_info): Add code to check which section we're in and
2150 use appropriate hot/cold label.
2151 (add_location_or_constant_value_attribute): Likewise.
2152 (gen_subprogam_die): Modify arange attributes to use correct labels.
2153 (dwarf2out_begin_block): Change call to function_section into call to
2154 current_function_section.
2155 (dwarf2out_end_block): Likewise.
2156 (dwarf2out_source_line): Likewise.
2157 (dwarf2out_var_location): Add code to check whether in hot or cold
2158 section and use the appropriate label.
2159 * except.c (output_function_exception_table): Change call to
2160 function_section into call to current_function_section.
2161 * final.c (profile_function): Likewise.
2162 (scan_ahead_for_unlikely_executed_note): Remove function.
2163 (final_scan_insn): Remove calls to
2164 scan_ahead_for_unlikely_executed_note, and related code for switching
2165 to cold section, except for the single time
2166 NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered; add calls to
2167 debug_hooks->switch_text_sections; replace appropriate calls to
2168 function_section with calls to current_function_section.
2169 * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
2170 test_bb to condition.
2171 (find_if_case_2): Likewise.
2172 * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2173 NOTE_INSN_SWITCH_TEXT_SECTIONS. Update comment appropriately.
2174 * opts.c (decode_options): Change warning about hot/cold partitioning
2175 with exceptionss to inform (so as not to cause bootstrap failures);
2176 remove warning about partitioning with DWARF debug info.
2177 * output.h (current_function_section): Add new function decl.
2178 (insert_section_boundary_note): Likewise.
2179 (enum in_section): Move this declaration here from varasm.c.
2180 (unlikely_section_label): Likewise.
2181 (unlikely_text_section_name): Likewise.
2182 (last_text_section_name): New global variable.
2183 (last_text_section): Likewise.
2184 (hot_section_label): Likewise.
2185 (hot_section_end_label): Likewise.
2186 (cold_section_end_label): Likewise.
2187 * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
2188 * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
2189 to NOTE_INSN_SWITCH_TEXT_SECTIONS.
2190 * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
2191 insn from consideration.
2192 * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
2193 switch_text_section.
2194 * varasm.c (basic-block.h): Add new include.
2195 (unlikely_section_label_printed): Remove global variable.
2196 (unlikely_section_label): Make global variable not be static any more.
2197 (unlikely_text_section_name): Likewise.
2198 (hot_section_end_label): New global variable (not static)
2199 (first_function_block_is_cold): Likewise.
2200 (hot_section_label): Likewise.
2201 (cold_section_end_label): Likewise..
2202 (last_text_section): New global variable, not static.
2203 (last_text_section_name): New global variable, not static.
2204 (initialize_cold_section_name): New function.
2205 (enum in_section): Move declaration to output.h.
2206 (text_section): Update last_text_section.
2207 (unlikely_text_section): Replace code to determine cold section name
2208 with call to initialize_cold_section_name; Add code to update
2209 last_text_section; remove code for printing out label.
2210 (named_section_real): Add code to update last_text_section and
2211 last_text_section_name as appropriate.
2212 (function_section): Change test for 'unlikely' to depend on
2213 first_function_block_is_cold (moved old test to
2214 current_function_section).
2215 (current_function_section): New function.
2216 (assemble_start_function): Move code that frees
2217 unlikely_text_section_name; initialize hot_section_end_label;
2218 print hot and cold section labels at the start of the function;
2219 set first_function_block_is_cold, if appropriate; initialize l
2220 ast_text_section; add call to insert_section_boundary_note.
2221 (assemble_end_function): Add code to write out hot and cold section
2223 *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
2224 switch_text_section.
2225 * config/darwin.c (machopic_select_section): Replace incorrect
2226 function in base_funs; update reloc for cold sections if necessary.
2227 * config/darwin.h (SECTION_FUNCTION): Add code to update
2228 last_text_section if appropriate.
2229 (text_unlikely_section): Remove.
2230 * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
2231 * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
2232 * config/xtensa/xtensa.c (override_options): Turn off hot/cold
2233 partitioning for this architecture.
2235 2005-03-31 Olivier Hainque <hainque@adacore.com>
2237 * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
2238 defined and non-zero.
2240 2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
2243 * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
2246 2005-03-31 Alan Modra <amodra@bigpond.net.au>
2249 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
2250 label operand. Remove (use (unspec..)). Don't emit a label on
2252 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
2253 generate inline label for load_toc_v4_PIC_1b.
2254 (rs6000_emit_load_toc_table): Likewise.
2256 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
2258 * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
2259 ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
2261 2005-03-29 Devang Patel <dpatel@apple.com>
2263 * tree-sra.c (decide_block_copy): Disable scalarization of
2266 2005-03-30 Stuart Hastings <stuart@apple.com>
2267 Dale Johannesen <dalej@apple.com>
2269 * Makefile.in (print-tree.o): Depend on tree-iterator.h.
2270 * print-tree.c (print_node): Add case STATEMENT_LIST.
2272 2005-03-31 Alan Modra <amodra@bigpond.net.au>
2274 * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
2275 (powerpc64-*-linux*): Use it. Rearrange tm_file assignment.
2276 (powerpc-*-linux*): Build a biarch compiler when --enable-targets
2277 is given with "powerpc64*" or "all", or when --with-cpu chooses
2280 2005-03-30 James E. Wilson <wilson@specifixinc.com>
2283 * dwarf2out.c (add_high_low_attributes): New function, extracted from
2284 gen_lexical_block_die.
2285 (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
2287 2005-03-31 Jan Hubicka <jh@suse.cz>
2289 2004-11-02 Jan Hubicka <jh@suse.cz>
2291 * cgraph.c (cgraph_varpool_node_name): New function.
2292 (dump_cgraph_varpool_node): New function.
2293 (dump_varpool): New function.
2294 * cgraphunit.c (cgraph_optimize): Dump varpool.
2296 2004-10-16 Jan Hubicka <jh@suse.cz>
2298 * cgraph.c (decide_is_variable_needed): New function.
2299 (cgraph_varpool_finalize_decl): Use it.
2300 * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
2302 * final.c (output_addr_const): Do not call mark_referenced.
2303 * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
2304 always go via cgraph.
2305 * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
2306 (check_global_declarations): Ifdef out code clearing DECL_RTL.
2307 * tree-optimize.c (execute_inline): Mark functions called.
2308 * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
2310 2004-10-11 Jan Hubicka <jh@suse.cz>
2312 * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
2313 (cgraph_varpool_last_needed_node): New static variable.
2314 (enqueue_needed_varpool_node): Break out from ...; add items to the
2315 end of queue; update first pointers.
2316 (cgraph_varpool_mark_needed_node): ... here.
2317 (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
2318 (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
2319 * cgraph.h (cgraph_varpool_node): Add analyzed field.
2320 (cgraph_varpool_first_unanalyzed_node): Declare.
2321 * cgraphunit.c: Include output.h.
2322 (cgraph_varpool_analyze_pending_decls): New function.
2323 (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
2324 for errors, analyze pending decls.
2325 (cgraph_finalize_compilation_unit): Only analyze decls.
2326 (cgraph_optimize): Assemble the decls after expanding.
2328 2005-03-30 Daniel Berlin <dberlin@dberlin.org>
2330 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
2331 subvars get marked properly in tags for grouping.
2332 (add_pointed_to_var): Mark only actual pointed to
2333 variables/subvars in addresses needed.
2334 (create_overlap_variables_for): Clear call clobbered on original
2336 * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
2337 addresable vars with subvars into list.
2338 * tree-ssa.c (verify_ssa_name): Verify original is not used where
2341 2005-03-30 Richard Henderson <rth@redhat.com>
2343 * cgraph.h (struct cgraph_node): Add alias.
2344 * varasm.c (assemble_alias): Set it.
2345 * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
2346 avoid calling cgraph_expand_function.
2348 2005-03-30 Tom Tromey <tromey@redhat.com>
2350 * tree.def (FILE_TYPE): Removed.
2351 * typeclass.h (enum type_class): Removed file_type_class.
2352 * dwarf2out.c (is_base_type): Updated.
2353 (gen_type_die): Likewise.
2354 * dbxout.c (dbxout_type): Updated.
2355 * builtins.c (type_to_class): Updated.
2356 * tree.c (type_contains_placeholder_1): Updated.
2357 * config/sparc/sparc.c (sparc_type_code): Updated.
2358 * config/ia64/ia64.c (hfa_element_mode): Updated.
2359 * expr.c (count_type_elements): Updated.
2360 * stor-layout.c (layout_type): Updated.
2361 * tree-inline.c (remap_type): Updated.
2362 * tree-pretty-print.c (dump_generic_node): Updated.
2364 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
2366 * builtins.c (expand_builtin_powi): Fix mode of
2367 2nd argument to match int.
2368 * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
2369 2nd argument type to int.
2370 * libgcc2.c: Change prototype of __powi* functions to use
2373 2005-03-30 Dale Johannesen <dalej@apple.com>
2376 * calls.c (expand_call): Flush pending deferrals before
2379 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
2383 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
2384 C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
2385 c_label_context, label_context_stack): New.
2386 * c-decl.c (define_label): Check for jumps into statement
2387 expressions. Add label to list of defined labels.
2388 (start_function): Push context on label_context_stack.
2389 (finish_function): Pop context from label_context_stack.
2390 * c-typeck.c (label_context_stack): New.
2391 (c_finish_goto_label): Check for jumps into statement
2392 expressions. Add label to list of jumped to labels.
2393 (struct c_switch): Add blocked_stmt_expr.
2394 (c_start_case): Initialize it.
2395 (do_case): Check it.
2396 (c_finish_case): Verify !blocked_stmt_expr.
2397 (c_begin_stmt_expr): Push context on label_context_stack.
2398 Increment blocked_stmt_expr. Mark labels jumped to from outside
2400 (c_finish_stmt_expr): December blocked_stmt_expr. Mark labels
2401 defined in the statement expression and no longer jumpable to.
2402 Mark labels jumped to from just outside the statement expression
2403 as again definable. Pop context from label_context_stack.
2404 * doc/extend.texi (Statement Exprs): Update.
2406 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
2409 * c-decl.c (start_function): Check for old_decl being
2412 2005-03-30 Ian Lance Taylor <ian@airs.com>
2414 * final.c (final): Remove prescan parameter. Change all callers.
2415 (final_scan_insn): Remove prescan parameter. Change all callers.
2417 2005-03-30 Kazu Hirata <kazu@cs.umass.edu>
2419 * tree-vectorizer.c: Fix comment typos.
2421 2005-03-30 Sebastian Pop <pop@cri.ensmp.fr>
2423 * tree-scalar-evolution.c (instantiate_parameters_1): Return
2424 as soon as a chrec_dont_know is detected.
2426 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2428 Merge from csl-arm-branch.
2429 2004-02-12 Mark Mitchell <mark@codesourcery.com>
2431 * tlink.c (recompile_files): Do not assume that "rename" can
2432 overwrite an existing file.
2434 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
2436 * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
2437 * gcc/configure: Regenerate.
2439 2005-03-30 Alan Modra <amodra@bigpond.net.au>
2441 * doc/install.texi: Update binutils requirement for powerpc*-linux.
2443 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
2445 * calls.c (struct arg_data): Update "partial" comment.
2446 (load_register_parameters): Update "nregs" comment.
2448 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
2450 * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
2451 (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
2452 (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
2453 (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
2454 (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
2455 (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
2456 than target_flags & 0.
2457 * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
2458 (iq2000_arch, iq2000_parse_cpu): Delete.
2459 (TARGET_HANDLE_OPTION): Override default.
2460 (iq2000_handle_option): New function.
2461 (override_options): Remove -march= and -mcpu= handling.
2462 * config/iq2000/iq2000.opt: New file.
2464 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
2466 * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
2467 * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
2468 (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
2469 (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
2470 (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
2471 (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
2472 (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
2473 (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
2474 (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
2475 (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
2476 (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
2477 (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
2478 (c4x_rpts_cycles_string, c4x_cpu_version_string)
2479 (TARGET_OPTIONS): Delete.
2480 (c4x_rpts_cycles, c4x_cpu_version): Declare.
2481 (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
2482 (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
2483 * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
2484 (c4x_cpu_version_string): Delete.
2485 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2486 (c4x_handle_option): New function. Map -m3x and -m4x options to the
2487 equivalent -mcpu= option.
2488 (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
2489 Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
2490 TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
2491 or clearing the appropriate MASK_* bit.
2492 (c4x_file_start): Use c4x_cpu_version.
2493 * config/c4x/c4x.opt: New file.
2495 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
2497 * doc/options.texi: Document the new MaskExists flag.
2498 * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
2499 if the option has the MaskExists flag.
2501 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
2503 * opt-functions.awk (flag_set_p, test_flag): New functions.
2504 (switch_flags): Use them.
2505 * opth-gen.awk: Use flag_set_p to check for flags.
2506 * optc-gen.awk: Likewise. Use opt_args to check for Init(...) flags.
2508 2005-03-30 Ian Lance Taylor <ian@airs.com>
2510 * config.host (i[34567]86-*-mingw32*): Don't set
2511 host_can_use_collect2 to no.
2513 2005-03-30 Alan Modra <amodra@bigpond.net.au>
2516 * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
2517 Remove convert_memory_address call duplicating that in memory_address.
2519 2005-03-29 Richard Henderson <rth@redhat.com>
2522 * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
2523 (build_compound_literal): Likewise. Propagate decl type into the
2525 (finish_decl): Likewise. Use new return value from complete_array_type
2526 for zero sized arrays.
2527 (complete_array_type): Move ...
2528 * c-common.c (complete_array_type): ... here. Change first argument
2529 to pointer-to-type-node. Consistently use sizetype for the index
2530 except for zero sized arrays. Detect zero sized arrays for pedantic
2531 mode diagnostics. Create a new type node instead of modifying the
2533 * c-tree.h (complete_array_type): Move decl ...
2534 * c-common.h (complete_array_type): ... here.
2536 2005-03-29 Richard Henderson <rth@redhat.com>
2539 * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
2541 2005-03-29 Kazu Hirata <kazu@cs.umass.edu>
2543 * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
2544 debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
2545 rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
2546 tree-profile.c, tsystem.h, value-prof.h: Update copyright.
2548 2005-03-29 Eric Christopher <echristo@redhat.com>
2550 * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
2551 truthvalue conversion removal.
2553 2005-03-29 Ian Lance Taylor <ian@airs.com>
2556 * collect2.c: Never include <vfork.h>.
2557 (VFORK_STRING, vfork): Don't define.
2558 (pid): Remove global variable.
2559 (handler): Call raise instead of kill (getpid(), ...).
2560 (collect_wait): Add pex parameter. Change all callers. Use
2561 pex_get_status rather than pwait.
2562 (do_wait): Add pex parameter. Change all callers.
2563 (collect_execute): Return struct pex_obj * rather than void. Use
2564 pex routines rather than pexecute.
2565 (fork_execute): Get pex_obj from collect_execute, and pass it to
2567 (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
2568 Only declare quit_handler if SIGQUIT is defined.
2569 (scan_libraries): Likewise.
2570 * collect2.h (collect_execute): Update declaration.
2571 (collect_wait): Update declaration.
2572 * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
2573 pass it to collect_wait.
2575 2005-03-29 Joseph S. Myers <joseph@codesourcery.com>
2578 * c-parser.c (c_parser_compound_statement_nostart): Give error
2579 message for EOF instead of just setting parser->error.
2581 2005-03-29 Dorit Naishlos <dorit@il.ibm.com>
2583 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
2584 (slpeel_update_phi_nodes_for_guard1): New function.
2585 (slpeel_update_phi_nodes_for_guard2): New function.
2586 (slpeel_tree_peel_loop_to_edge): Call above new functions instead
2587 of slpeel_update_phi_nodes_for_guard.
2588 (vectorize_loops): Remove call to loop_closed_rewrite.
2589 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
2592 2005-03-29 Richard Sandiford <rsandifo@redhat.com>
2594 * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
2595 (TARGET_LITTLE_ENDIAN): New macro.
2596 * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
2597 (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
2598 (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
2599 (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
2600 (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
2601 (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
2602 (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
2603 (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
2604 (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
2605 (TARGET_OPTIONS): Delete.
2606 (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
2607 (CACHE_FLUSH_TRAP): Turn into an integer.
2608 (TARGET_LITTLE_ENDIAN): Define to 0 by default.
2609 (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
2610 -mflush-trap is in use.
2611 * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
2612 (m32r_cache_flush_trap_string): Delete.
2613 (m32r_model) Initialize to M32R_MODEL_DEFAULT.
2614 (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
2615 (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
2616 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2617 (m32r_handle_option): New function. Move -mflush-trap=, -mflush-func=,
2618 -mmodel= and -msdata= handling from...
2619 (m32r_init): ...here.
2620 * config/m32r/m32r.opt: New file.
2622 2005-03-29 Keith Besaw <kbesaw@us.ibm.com>
2624 * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
2625 (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
2626 * tree-vect-analyze.c (vect_object_analysis): additional parm
2627 pass back a "struct ptr_info_def *" with the points-to info.
2628 (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
2629 statement using info returned from vect_object_analysis.
2630 * tree-vect-transform.c (update_vuses_to_preheader): New function.
2631 (vect_create_data_ref_ptr): Remove updates to vars_to_rename
2632 for virtual uses and defs when creating a replacement vector
2633 reference. Call duplicate_ssa_name_ptr_info to define points-to
2634 info for vector pointer replacement using STMT_VINFO_PTR_INFO.
2635 (vectorizable_store): copy_virtual_operands and update
2636 definition statements.
2637 (vectorizable_load): copy_virtual_operands. Remove call to
2638 mark_call_clobbered_vars_to_rename for call to "const" builtin.
2639 * tree-vectorizer.c (vectorize_loops): Remove calls to
2640 rewrite_into_ssa and bitmap_clear (vars_to_rename).
2641 (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
2642 * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
2643 define macro STMT_VINFO_PTR_INFO for use in accessing.
2644 * tree.h add export of duplicate_ssa_name_ptr_info.
2645 * rs6000.c (altivec_init_builtins): Declare builtin function
2646 __builtin_altivec_mask_for_load to be "const".
2648 2005-03-29 Jakub Jelinek <jakub@redhat.com>
2651 * cgraph.h (struct cgraph_varpool_node): Add alias field.
2652 * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
2653 assemble_variable on aliases.
2654 * varasm.c (assemble_alias): Set node->alias.
2655 * toplev.c (wrapup_global_declarations): Don't call
2656 rest_of_decl_compilation on aliases again.
2658 2005-03-29 Paul Brook <paul@codesourcery.com>
2660 * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
2661 * config/arm/arm.c (arm_dbx_register_number): New function.
2662 * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
2664 2005-03-29 Eric Botcazou <ebotcazou@libertysurf.fr>
2667 * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
2668 the DECL_NAME, not the DECL_ASSEMBLER_NAME.
2670 2005-03-29 Dale Johannesen <dalej@apple.com>
2672 * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
2673 $(TREE_H) and $(COVERAGE_H).
2674 * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
2675 * opts.c (common_handle_option): Enable tree-based value transforms.
2676 * toplev.c (process_options): Ditto.
2677 * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
2678 refers to references to this type.
2679 * tree-flow.h: (struct stmt_ann_d): Add histograms field.
2680 * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
2681 for may_be_more, may_be_less.
2682 (rtl_gen_pow2_profiler): Adjust.
2683 (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
2684 (rtl_gen_one_value_profiler): Adjust.
2685 (rtl_gen_const_delta_profiler): Adjust.
2686 * tree-profile.c (tree_gen_interval_profiler): Implement.
2687 (tree_gen_pow2_profiler): Ditto.
2688 (tree_gen_one_value_profiler): Ditto.
2689 (tree_profiling): New.
2690 (pass_tree_profile): Reference it.
2691 * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
2693 (insn_divmod_values_to_profile): Rename to
2694 rtl_divmod_values_to_profile. Adjust.
2695 (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
2696 (insn_prefetch_values_to_profile): Adjust.
2697 (rtl_value_profile_transformations): Adjust.
2698 (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
2699 (gen_mod_pow2): Rename to rtl_mod_pow2.
2700 (gen_mod_subtract): Rename to rtl_mod_subtract.
2701 (divmod_fixed_value_transform): Rename to
2702 rtl_divmod_fixed_value_transform.
2703 (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
2704 (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
2705 (rtl_find_values_to_profile): Adjust.
2706 (tree_value_profile_transformations): Implement.
2707 (tree_divmod_values_to_profile): New.
2708 (tree_values_to_profile): New.
2709 (tree_divmod_fixed_value): New.
2710 (tree_mod_pow2): New.
2711 (tree_mod_subtract): New.
2712 (tree_divmod_fixed_value_transform): New.
2713 (tree_mod_pow2_value_transform): New.
2714 (tree_mod_subtract_transform): New.
2715 (tree_find_values_to_profile): Implement.
2716 * profile.c (instrument_values): Free histograms.
2717 (compute_value_histograms): Adjust. Implement tree version.
2719 2005-03-29 Uros Bizjak <uros@kss-loka.si>
2721 * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
2722 * config/i386/i386.c (output_fix_trunc): Add new round_mode
2723 variable. Output "fldcw" depending on round_mode.
2724 * config/i386/i386.md (UNSPEC_FIST): New.
2725 (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
2726 New isns patterns to implement lrint and llrint built-ins as x87
2728 (fistdi2, fist<mode>2 splitters): New splitters.
2729 (lrint<mode>2): New expanders.
2731 2005-03-28 Ian Lance Taylor <ian@airs.com>
2733 * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
2734 0 when calling final_scan_insn.
2736 2005-03-28 Jan Hubicka <jh@suse.cz>
2739 * varasm.c (mark_decl_referenced): Do not mark extern inline functions
2742 * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
2743 types where possible.
2745 2005-03-26 Per Bothner <per@bothner.com>
2747 Make -f[no-]show-column also control non-cpp diagnostics.
2748 * c.opt (fshow-column): Move option from here ...
2749 * common.opt (fshow-column): ... to here.
2750 * diagnostic.c (diagnostic_build_prefix): Only print column number
2751 if flag_show_column.
2753 2005-03-27 Steven Bosscher <stevenb@suse.de>
2755 * vax-protos.h (vax_output_int_move, vax_output_int_add,
2756 vax_output_conditional_branch): New prototypes.
2757 * vax.c (vax_output_int_move, vax_output_int_add): New functions,
2758 extracted from vax.md mov and add patterns.
2759 (vax_output_conditional_branch): New function to output conditional
2760 branch instructions.
2761 * vax.md: Use mode macros for arithmetic and mov patterns.
2762 Use code macros for the jump patterns.
2764 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
2766 * Makefile.in (libbackend.o): Depend on version files;
2767 add custom generation command.
2769 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
2772 * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
2773 sure that we have a REG before getting its REGNO.
2775 2005-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2777 * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
2778 * builtins.def (BUILT_IN_STRNDUP): New.
2780 2005-03-25 Pat Haugen <pthaugen@us.ibm.com>
2782 PR tree-optimization/20470
2783 * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
2786 2005-03-25 Mike Stump <mrs@apple.com>
2788 * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
2791 2005-03-25 Geoffrey Keating <geoffk@apple.com>
2793 * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
2794 Use our own structure definitions.
2796 * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
2797 (fix_truncdfsi2): Allow registers or memory as destination.
2798 When TARGET_PPC_GFXOPT, generate simplified pattern.
2799 (fix_truncdfsi2_internal): Use define_insn_and_split.
2800 (fix_truncdfsi2_internal_gfxopt): New.
2801 (fctiwz): Don't confuse register allocation by giving it no choices.
2803 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
2804 (EXTRA_MEMORY_CONSTRAINT): Likewise.
2805 * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
2806 * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
2808 2005-03-25 Kazu Hirata <kazu@cs.umass.edu>
2810 * dominance.c (free_dominance_info): Speed up by freeing et
2811 data structures without maintaining other nodes.
2812 * et-forest.c (et_free_tree_force): New.
2813 * et-forest.h: Add a prototype for et_free_tree_force.
2815 * tree.c (get_set_constructor_bits,
2816 get_set_constructor_bytes): Remove.
2817 * tree.h: Remove the corresponding prototypes.
2819 2005-03-25 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
2822 * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
2823 (vax_rtx_costs): Return false when passed unsupported rtx's. Handle
2824 FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE. Fix costs for POST_INC,
2825 PRE_DEC, NEG and NOT.
2827 2005-03-25 Kazu Hirata <kazu@cs.umass.edu>
2829 * fold-const.c: Convert uses of fold (build (...)) to
2832 2005-03-25 Zdenek Dvorak <dvorakz@suse.cz>
2834 PR rtl-optimization/20249
2835 * cse.c (insert_regs): Do not record equivalence of registers in
2838 2005-03-24 Kazu Hirata <kazu@cs.umass.edu>
2840 * emit-rtl.c (reverse_comparison): Remove.
2841 * rtl.h: Remove the corresponding prototype.
2843 2005-03-24 James E Wilson <wilson@specifixinc.com>
2845 * doc/install.texi (--enable-altivec): Delete docs.
2847 2005-03-24 David Edelsohn <edelsohn@gnu.org>
2849 * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
2850 SFmode and DFmode before reload when
2851 flag_unsafe_math_optimizations not enabled.
2853 2005-03-24 Geoffrey Keating <geoffk@apple.com>
2855 * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
2857 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
2858 MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
2860 2005-03-24 Nathan Sidwell <nathan@codesourcery.com>
2862 * configure.ac (enable-checking): Add 'runtime' option.
2863 * doc/install.texi (enable-checking): Document 'runtime' checking.
2864 * tsystem.h (gcc_assert, gcc_unreachable): Define.
2865 * config.in: Regenerated.
2866 * configure: Regenerated.
2868 2005-03-23 Uros Bizjak <uros@kss-loka.si>
2870 * optabs.h (enum optab_index): Remove OTI_llrint.
2871 (llrint_optab): Remove macro.
2872 * optabs.c (init_optabs): Remove llrint_optab initialization.
2873 * genopinit.c (optabs): Remove llrint_optab implementation.
2874 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
2877 2005-03-24 Alexandre Oliva <aoliva@redhat.com>
2879 PR rtl-optimization/20532
2880 * simplify-rtx.c (simplify_binary_operation_1): Protect from
2881 overflow when adding coefficients for PLUS or MINUS.
2882 (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
2885 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2887 * langhooks.h (truthvalue_conversion): Remove.
2888 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
2889 LANG_HOOKS_TRUTHVALUE_CONVERSION.
2890 * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
2891 * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
2892 * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
2894 2005-03-23 Kazu Hirata <kazu@cs.umass.edu>
2896 * params.def: Fix a typo.
2897 * config/mips/mips.c: Follow the spelling convensions.
2898 * doc/invoke.texi: Fix typos.
2900 2005-03-18 Dale Johannese <dalej@apple.com>
2902 * cp/tree.c (cp_tree_equal): Handle SSA_NAME.
2904 2005-03-23 Daniel Berlin <dberlin@dberlin.org>
2906 Fix PR tree-optimization/20601
2908 * tree-ssa-pre.c (insert_aux): Add missing condition to
2911 2005-03-23 Ian Lance Taylor <ian@airs.com>
2913 * final.c (final_scan_insn): Don't remove no-op instructions.
2914 * reload1.c (reload): Remove simple no-op instructions even when
2917 2005-03-23 Dorit Naishlos <dorit@il.ib.com>
2919 PR tree-optimization/20501
2920 * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
2921 reporting that peeling for alignment is applied moved to...
2922 * (vect_analyze_data_refs_alignment): Here.
2924 2005-03-23 Ian Lance Taylor <ian@airs.com>
2926 * reorg.c (dbr_schedule): Remove #if 0 code to call final.
2928 2005-03-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2930 * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
2931 Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
2933 2005-03-23 Hans-Peter Nilsson <hp@axis.com>
2935 * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
2936 imply that this is called once, independent of asms in code.
2937 Adjust to now being pased output and input lists. Mention helper
2938 function decl_overlaps_hard_reg_set_p.
2939 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
2940 hook_tree_tree_identity and to take three trees, returning third.
2941 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
2943 * stmt.c: include hard-reg-set.h before tree.h.
2944 (decl_overlaps_hard_reg_set_p): New function, broken out from...
2945 (decl_conflicts_with_clobbers_p): Call
2946 decl_overlaps_hard_reg_set_p.
2947 (expand_asm_operands): Pass output and input lists in call to
2948 targetm.md_asm_clobbers.
2949 * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
2950 hook_tree_tree_tree_tree_3rd_identity.
2951 * target.h (struct gcc_target.md_asm_clobbers): Take three tree
2953 * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
2954 * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
2955 parameters, first two unused.
2956 * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
2957 parameters. Only add MOF to clobbers if there's no 'h' mentioned
2958 in constraint letters and MOF is not mentioned as a asm-declared
2959 register in neither of the input and output lists.
2961 2005-03-23 DJ Delorie <dj@redhat.com>
2963 * optabs.c (expand_binop): Make sure the first subword's result
2966 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2968 * c-common.c (c_common_truthvalue_conversion): Adjust comment.
2969 Call c_common_truthvalue_conversion rather than
2970 lang_hooks.truthvalue_conversion.
2971 * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
2972 * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
2974 * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
2975 c_common_truthvalue_conversion.
2976 * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
2977 c_parser_conditional_expression, c_parser_binary_expression): Call
2978 c_objc_common_truthvalue_conversion.
2979 * c-typeck.c (build_unary_op): Call
2980 c_objc_common_truthvalue_conversion.
2981 (build_conditional_expr): Do not call
2982 lang_hooks.truthvalue_conversion.
2983 (build_binary_op): Call c_common_truthvalue_conversion.
2984 (c_objc_common_truthvalue_conversion): Moved from
2985 c-objc-common.c. Call default_function_array_conversion instead
2986 of default_conversion.
2988 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2990 * c-common.h (default_conversion): Remove.
2991 (perform_integral_promotions): Add.
2992 * c-tree.h (default_conversion): Add.
2993 * c-typeck.c (perform_integral_promotions): New, split out from
2995 * c-common.c (check_case_value): Use perform_integral_promotions,
2996 not default_conversion.
2997 (c_add_case_label): Don't continue processing case label after
2998 found to be pointer.
3000 2005-03-23 Mark Mitchell <mark@codesourcery.com>
3002 * gcc.c (do_spec_1): Do not add a -L path for a directory in
3003 the prefix list if we have already added a multilib directory
3005 (main): Do not add MD_EXEC_PREFIX to the list of directories to
3008 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
3010 * reload1.c (indirect_symref_ok, reload_obstack): Make them
3012 * reload.h: Remove the prototype for indirect_symref_ok.
3014 * reload1.c (indirect_symref_ok): Make it global.
3015 * reload.h: Add a prototype for indirect_symref_ok.
3017 2005-03-22 Kaz Kojima <kkojima@gcc.gnu.org>
3019 * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
3022 2005-03-22 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
3024 * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
3026 2005-03-22 Daniel Berlin <dberlin@dberlin.org>
3028 * c-opts.c (c_common_parse_file): Only start/end main source file
3029 if debug hooks says the writer wants it.
3030 * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
3032 (xcoff_debug_hooks): Ditto.
3033 * debug.c (do_nothing_hooks): Ditto.
3034 * debug.h (gcc_debug_hooks): Ditto.
3035 * dwarf2out.c (dwarf2_debug_hooks): Ditto.
3036 * sdbout.c (sdb_debug_hooks): Ditto.
3037 * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
3039 2005-03-22 Mark Mitchell <mark@codesourcery.com>
3041 * doc/extend.texi: Deprecate C++ min/max operators.
3043 2005-03-22 Zdenek Dvorak <dvorakz@suse.cz>
3045 * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
3046 artificial original candidates.
3048 2005-03-22 Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
3049 Jan Hubicka <jh@suse.cz>
3050 Steven Bosscher <stevenb@suse.de>
3052 * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
3053 call cost based on argument sizes.
3054 (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
3056 * params.def: (max-inline-inssn-single): Set to 450.
3057 (max-inline-insns-auto): Set to 90.
3058 (max-inline-insns-recursive): Set to 450
3059 (max-inline-insns-recursive-auto): Set to 450.
3060 (large-function-insns): Set to 2700.
3061 (inline-call-cost): New parameter.
3062 * tree-inline.c (estimate_move_cost): New function.
3063 (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
3064 for non-gimple-regs, set cost to 0 for gimple-regs. Compute call size
3066 * tree-inline.h (estimate_move_cost): Declare.
3067 * invoke.texi: (max-inline-inssn-single): Change default to 450.
3068 (max-inline-insns-auto): Change default to 90.
3069 (max-inline-insns-recursive): Change default to 450
3070 (max-inline-insns-recursive-auto): Change default to 450.
3071 (large-function-insns): Change default to 2700.
3072 (inline-call-cost): Document new parameter.
3074 2005-03-22 Richard Sandiford <rsandifo@redhat.com>
3076 * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
3077 (TARGET_DEFAULT): Delete.
3078 * config/i860/i860.opt: New file.
3080 2005-03-22 Richard Sandiford <rsandifo@redhat.com>
3082 * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
3083 (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3084 (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3085 (frv_sched_lookahead): Delete.
3086 * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
3087 (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
3088 (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
3089 (MASK_LIBPIC, MASK_ACC_4, MASK_PACK, MASK_LONG_CALLS)
3090 (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
3091 (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
3092 (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
3093 (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
3094 (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
3095 (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
3096 (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
3097 (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
3098 (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
3099 (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
3100 (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
3101 (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
3102 (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
3103 (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
3104 (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
3105 (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
3106 (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
3107 (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
3108 * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
3109 (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3110 (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3111 (frv_sched_lookahead): Delete.
3112 (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
3113 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3114 (frv_handle_option): New function. Move -mcpu= handling from...
3115 (frv_override_options): ...here. Remove handling of other
3117 (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
3118 TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
3119 (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
3120 and TARGET_NO_MULTI_CE.
3121 (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
3122 !TARGET_VLIW_BRANCH.
3123 * config/frv/frv.opt: New file.
3125 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
3127 * fold-const.c (fold_ternary): Take decomposed arguments of
3129 (fold): Update a call to fold_ternary.
3131 * fold-const.c (fold_build1, fold_build2, fold_build3): New.
3132 * tree.h: Add corresponding prototypes.
3134 2005-03-22 Jakub Jelinek <jakub@redhat.com>
3137 * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
3138 between jump table and its label.
3139 * final.c (shorten_branches): Handle notes in between ADDR_VEC
3140 resp. ADDR_DIFF_VEC and the label preceeding it.
3141 (final_scan_insn): Likewise. Ensure ADDR_VEC resp. ADDR_DIFF_VEC
3142 is emitted in the right section.
3144 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
3146 * fold-const.c (fold_unary, fold_binary): Update comments
3149 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
3151 PR rtl-optimization/20527
3152 * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
3153 REG_INC note, test that the register also isn't mentioned in PRED
3156 2005-03-22 Ben Elliston <bje@au.ibm.com>
3158 * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
3161 2005-03-21 Mike Stump <mrs@apple.com>
3163 * varasm.c (default_assemble_visibility): Remove extra ().
3165 2005-03-21 Roger Sayle <roger@eyesopen.com>
3168 * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
3169 to determine whether a block can be duplicated, rather than test
3170 whether the block contains noncopyable insns ourselves.
3172 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
3174 * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
3177 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
3179 * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
3181 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
3183 * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
3184 (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
3185 * config/fr30/fr30.opt: New file.
3187 2005-03-18 Daniel Berlin <dberlin@dberlin.org>
3189 Fix PR tree-optimization/20542
3191 * tree-flow-inline.h (overlap_subvar): Move to here.
3192 * tree-ssa-operands.c: From here.
3193 * tree-flow.h (overlap_subvar): Declare.
3194 * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
3195 * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
3196 for variables with subvars.
3198 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
3201 * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
3202 * modulo-sched.c (const_iteration_count): Return on NULL
3204 (print_node_sched_params): Return on NULL dump_file.
3205 (generate_reg_moves): Handle reg-anti dependencies and disregard
3206 closing branch when generating register moves.
3207 (sms_schedule): Mark the SMSed block dirty.
3208 * passes.c (rest_of_handle_sms): Call update_life_info for all
3210 * testsuite/gcc.dg/20050321-1.c: New test.
3212 2005-03-21 Bob Wilson <bob.wilson@acm.org>
3214 * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
3215 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3216 movqi_internal): Likewise.
3218 2005-03-21 Bob Wilson <bob.wilson@acm.org>
3220 * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
3221 xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
3222 xtensa_b4const): Delete prototypes.
3223 (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
3224 xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
3225 (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
3226 xtensa_extra_constraint): New prototypes.
3227 (add_operand, arith_operand, nonimmed_operand, mem_operand,
3228 mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3229 lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
3230 move_operand, const_float_1_operand, fpmem_offset_operand,
3231 branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
3232 * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
3233 (xtensa_b4const_or_zero): ...this. Change return type to bool and
3234 argument type to HOST_WIDE_INT.
3235 (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
3236 xtensa_mask_immediate): Likewise.
3237 (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
3238 Likewise. Also make these functions static.
3239 (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
3240 (xtensa_const_ok_for_letter_p): New.
3241 (add_operand, arith_operand, nonimmed_operand, mem_operand,
3242 mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3243 lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
3244 move_operand, const_float_1_operand, fpmem_offset_operand,
3245 branch_operator, ubranch_operator, boolean_operator): Move to
3247 (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
3248 (xtensa_mem_offset): Change return type to bool.
3249 (xtensa_extra_constraint): New.
3250 (gen_int_relational): Update type of const_range_p function pointer.
3251 Use xtensa_b4const_or_zero.
3252 * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
3253 xtensa_const_ok_for_letter_p. Update comments.
3254 (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
3255 (PREDICATE_CODES): Delete.
3256 * config/xtensa/xtensa.md: Include predicates.md.
3257 * config/xtensa/predicates.md: New file.
3259 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
3261 * config/v850/v850-protos.h: Remove the prototypes for
3262 reg_or_int9_operand, reg_or_const_operand,
3263 pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
3264 reg_or_0_operand, reg_or_int5_operand, call_address_operand,
3265 movsi_source_operand, power_of_two_operand,
3266 not_power_of_two_operand, special_symbolref_operand,
3267 pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
3268 register_is_ok_for_epilogue.
3269 * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
3270 reg_or_int9_operand, reg_or_const_operand,
3271 call_address_operand, special_symbolref_operand,
3272 movsi_source_operand, power_of_two_operand,
3273 not_power_of_two_operand, register_is_ok_for_epilogue,
3274 pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
3275 pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
3277 * config/v850/v850.h (PREDICATE_CODES): Remove.
3278 * config/v850/v850.md: Include predicates.md.
3279 * config/v850/predicates.md: New.
3281 2005-03-21 Zack Weinberg <zack@codesourcery.com>
3283 * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
3284 (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
3285 (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
3286 (itoolsdir, itoolsdatadir): Move definition above new first use.
3287 (install-itoolsdirs): New rule.
3288 (install-mkheaders): Depend on install-itoolsdirs, not
3289 install-include-dir.
3291 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
3293 * tree-into-ssa.c: Remove obsolete comments.
3295 2005-03-21 Richard Guenther <rguenth@gcc.gnu.org>
3297 * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
3298 unrolling if -fpeel-loops is specified, too.
3299 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3300 Remove superfluous check for flag_unroll_loops.
3302 2005-03-21 Uros Bizjak <uros@kss-loka.si>
3304 * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
3305 (lrint_optab, llrint_optab): Define corresponding macros.
3306 * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
3307 * genopinit.c (optabs): Implement lrint_optab using lrintsi2
3308 pattern and llrint_optab using llrintdi2 patterns.
3309 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
3310 using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
3311 (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
3312 BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
3313 flag_unsafe_math_optimizations is set.
3315 2005-03-21 Paolo Bonzini <bonzini@gnu.org>
3317 * combine.c (combine_simplify_rtx, simplify_if_then_else,
3318 simplify_logical, if_then_else_cond, known_cond,
3319 simplify_comparison): Adjust calls to reverse_comparison.
3320 Don't use combine_reversed_comparison_code).
3321 (combine_reversed_comparison_code): Remove.
3322 (reversed_comparison): Using reversed_comparison_code, move it...
3323 * jump.c (reversed_comparison): ... here.
3324 * rtl.h (reversed_comparison): Add prototype.
3326 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
3328 * builtins.c (fold_builtin): Take decomposed arguments of
3330 * fold-const.c (fold_ternary): Update a call to fold_builtin.
3331 * gimplify.c (gimplify_call_expr): Likewise.
3332 * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
3333 * tree.h: Update the prototype of fold_builtin.
3335 2005-03-21 Paolo Bonzini <bonzini@gnu.org>
3337 * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
3338 * rtlhooks.c (gen_lowpart_no_emit_general): New.
3339 * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
3340 (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
3341 * simplify-rtx.c (simplify_binary_operation_1): Use it.
3343 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
3345 * builtins.c (fold_builtin_1): Take decomposed arguments of
3347 (fold_builtin): Update a call to fold_builtin_1.
3349 2005-03-21 Nathan Sidwell <nathan@codesourcery.com>
3352 * gcov.c (output_lines): Only output function block summary when
3353 outputting branch information.
3354 * doc/gcov.texi: Document format of preamble and additional block
3357 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
3359 * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
3360 (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
3361 the defaults false if BITS_PER_UNIT != 8.
3362 (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
3363 (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
3364 than BITS_PER_UNIT != 8.
3365 (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
3366 (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
3367 (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
3369 * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
3370 (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
3372 2005-03-20 Roger Sayle <roger@eyesopen.com>
3375 * fold-const.c (fold_binary): Fix type mismatch between
3376 TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
3377 (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
3378 for non-truth-valued expressions.
3380 * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
3381 and FUNCTION_DECL in the main switch.
3382 <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
3383 TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
3384 we also need to convert their operands to match.
3385 <TRUTH_NOT_EXPR>: Likewise.
3387 2005-03-21 Joseph S. Myers <joseph@codesourcery.com>
3389 * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
3390 diagnostic without checking whether an lvalue.
3391 * c-common.h (lvalue_p): Remove.
3392 (enum lvalue_use): Update comment.
3393 (lvalue_or_else): Replace by lvalue_error.
3394 * c-typeck.c (lvalue_p): Make static.
3395 (lvalue_or_else): New. Call lvalue_error.
3397 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3399 * config/rs6000/rs6000.c (rs6000_parm_start): New function.
3400 (function_arg_advance): Use rs6000_parm_start.
3401 (function_arg, rs6000_arg_partial_bytes): Likewise.
3403 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
3405 * c-common.c (check_case_value): Adjust comment about stripping
3407 (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
3408 * c-typeck.c (default_conversion, convert_arguments,
3409 build_modify_expr, convert_for_assignment, store_init_value,
3410 digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
3411 manually. Remove inaccurate comments.
3413 2005-03-20 Roger Sayle <roger@eyesopen.com>
3414 Joseph S. Myers <joseph@codesourcery.com>
3416 * varasm.c (do_assemble_alias): Restore comment describing function.
3417 Annotate the target parameter as potentially unused.
3419 2005-03-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
3422 * config/avr/avr.c (avr_output_function_prologue): Do not use
3423 current_function_name() in a label, use a local label instead.
3425 2005-03-20 David Edelsohn <edelsohn@gnu.org>
3427 * config/rs6000/rs6000.c (rs6000_generate_compare): Test
3428 flag_finite_math_only, not flag_unsafe_math_optimizations.
3430 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
3432 * builtins.c (fold_builtin_1): Update a call to
3433 targetm.fold_builtin.
3434 * hooks.c (hook_tree_tree_bool_null): Rename to
3435 hook_tree_tree_tree_bool_null. Take one more argument of type
3437 * hooks.h: Update the prototype of hook_tree_tree_bool_null.
3438 * target-def.h (TARGET_FOLD_BUILTIN): Define it as
3439 hook_tree_tree_tree_bool_null.
3440 * target.h (gcc_target): Update the prototype of fold_builtin.
3441 * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
3442 arguments of CALL_EXPR.
3443 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update. Mention the
3446 2005-03-20 Jan Hubicka <jh@suse.cz>
3448 * cgraph.h (cgraph_node): Add prev_clone pointer.
3449 * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
3450 (cgraph_clone_node): Produce doubly linked chain.
3452 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
3454 * c-common.c (handle_aligned_attribute, check_function_sentinel,
3455 get_nonnull_operand, handle_sentinel_attribute,
3456 check_function_arguments_recurse): Do not strip NOPS from
3458 * c-decl.c (check_bitfield_type_and_width, build_enumerator):
3460 * c-format.c (get_constant): Likewise.
3461 * c-parser.c (c_parser_postfix_expression): Likewise.
3462 * c-typeck.c (set_init_index): Likewise.
3463 (convert_arguments): Don't check for NOP_EXPR containing integer
3466 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
3468 * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
3469 fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
3470 Take decomposed arguments of CALL_EXPR.
3471 (fold_builtin_1): Update calls to the functions mentioned
3474 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
3476 * c-decl.c (check_bitfield_type_and_width): Require bit-field
3477 width to have integer type.
3478 (build_enumerator): Require enumerator value to have integer type.
3480 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
3482 * doc/extend.texi (__builtin_inf): Move statement about INFINITY
3485 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
3487 * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
3488 std=iso9899:199x): Correct descriptions.
3490 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
3492 * config.gcc: Consistently use solaris2.1[0-9]* instead of
3495 2005-03-19 Kazu Hirata <kazu@cs.umass.edu>
3497 * builtins.c (fold_builtin_memcpy): Take decomposed arguments
3499 (expand_builtin_memcpy, fold_builtin_1): Update calls to
3500 fold_builtin_memcpy.
3502 * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
3503 arguments of CALL_EXPR.
3504 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
3505 fold_builtin_found, fold_builtin_1): Update calls to
3506 fold_trunc_transparent_mathfn.
3508 2005-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3511 * fold-const.c (fold_widened_comparison): Don't optimize casts of
3512 function pointers on targets that require function pointer
3514 (fold_sign_changed_comparison): Likewise.
3516 2005-03-19 Bernd Schmidt <bernd.schmidt@analog.com>
3518 * combine.c (try_combine): When changing the mode of a hard reg, make
3519 sure that doing so is valid.
3521 2005-03-19 Richard Sandiford <rsandifo@redhat.com>
3523 * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
3524 (TARGET_HANDLE_OPTION): Override default.
3525 (avr_handle_option): New function.
3526 * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
3527 (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
3528 (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
3529 (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
3530 (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
3531 (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
3532 (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
3533 (TARGET_OPTIONS): Delete.
3534 * config/avr/avr.opt: New file.
3536 2005-03-18 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3538 * config/m32r/m32r-protos.h: Remove the prototypes for
3539 call_address_operand, symbolic_operand, seth_add3_operand,
3540 cmp_int16_operand, uint16_operand, reg_or_int16_operand,
3541 reg_or_uint16_operand, reg_or_cmp_int16_operand,
3542 two_insn_const_operand, move_src_operand,
3543 move_double_src_operand, move_dest_operand,
3544 eqne_comparison_operator, signed_comparison_operator,
3545 large_insn_p, conditional_move_operand, carry_compare_operand,
3546 m32r_block_immediate_operand, extend_operand,
3547 reg_or_eq_int16_operand, int8_operand, and
3548 reg_or_zero_operand.
3549 * config/m32r/m32r.c (call_address_operand, symbolic_operand,
3550 seth_add3_operand, int8_operand, cmp_int16_operand,
3551 uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
3552 reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
3553 reg_or_zero_operand, two_insn_const_operand, move_src_operand,
3554 move_double_src_operand, move_dest_operand,
3555 eqne_comparison_operator, signed_comparison_operator,
3556 extend_operand, small_insn_p, large_insn_p,
3557 conditional_move_operand, carry_compare_operand,
3558 m32r_block_immediate_operand): Move to predicates.md.
3559 (MAX_MOVE_BYTES): Move to m32r.h.
3560 * config/m32r/m32r.h (PREDICATE_CODES): Remove.
3561 * config/m32r/m32r.md: Include predicates.md.
3562 * config/m32r/predicates.md: New.
3564 2005-03-18 James E Wilson <wilson@specifixinc.com>
3567 * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
3570 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3572 * config/mn10300/mn10300-protos.h: Remove the prototypes for
3573 call_address_operand, const_8bit_operand.
3574 * config/mn10300/mn10300.c (call_address_operand,
3575 const_8bit_operand, const_1f_operand): Move to predicates.md.
3576 * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
3577 * config/mn10300/mn10300.md: Include predicates.md.
3578 * config/mn10300/predicates.md: New.
3580 2005-03-18 Joseph S. Myers <joseph@codesourcery.com>
3582 * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
3583 declarations in diagnostics and %E for identifiers, not %s.
3585 2005-03-18 Jan Hubicka <jh@suse.cz>
3586 Dale Johannesen <dalej@apple.com>
3588 * basic-block.h (scale_bbs_frequencies_int,
3589 scale_bbs_frequencies_gcov_type): Declare.
3590 * cfg.c (RDIV): New macro.
3591 (update_bb_frequency_for_threading): Fix.
3592 * basic-block.h (scale_bbs_frequencies_int,
3593 scale_bbs_frequencies_gcov_type): New.
3594 * cfgloopmanip.c (scale_bbs_frequencies): Kill.
3595 (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
3596 scale_bbs_frequencies_int.
3597 * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
3599 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3601 * config/m32r/m32r-protos.h: Remove the prototypes for
3602 call_address_operand, symbolic_operand, seth_add3_operand,
3603 cmp_int16_operand, uint16_operand, reg_or_int16_operand,
3604 reg_or_uint16_operand, reg_or_cmp_int16_operand,
3605 two_insn_const_operand, move_src_operand,
3606 move_double_src_operand, move_dest_operand,
3607 eqne_comparison_operator, signed_comparison_operator,
3608 large_insn_p, conditional_move_operand, carry_compare_operand,
3609 m32r_block_immediate_operand, extend_operand,
3610 reg_or_eq_int16_operand, int8_operand, and
3611 reg_or_zero_operand.
3612 * config/m32r/m32r.c (call_address_operand, symbolic_operand,
3613 seth_add3_operand, int8_operand, cmp_int16_operand,
3614 uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
3615 reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
3616 reg_or_zero_operand, two_insn_const_operand, move_src_operand,
3617 move_double_src_operand, move_dest_operand,
3618 eqne_comparison_operator, signed_comparison_operator,
3619 extend_operand, small_insn_p, large_insn_p,
3620 conditional_move_operand, carry_compare_operand,
3621 m32r_block_immediate_operand): Move to predicates.md.
3622 (MAX_MOVE_BYTES): Move to m32r.h.
3623 * config/m32r/m32r.h (PREDICATE_CODES): Remove.
3624 * config/m32r/m32r.md: Include predicates.md.
3625 * config/m32r/predicates.md: New.
3627 * config/pa/pa-protos.h: Add prototypes for magic_milli and
3629 * config/pa/pa.c (reg_or_0_operand, call_operand_address,
3630 symbolic_operand, symbolic_memory_operand,
3631 reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
3632 indexed_memory_operand, move_dest_operand, move_src_operand,
3633 prefetch_cc_operand, prefetch_nocc_operand,
3634 reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
3635 arith_operand, arith11_operand, pre_cint_operand,
3636 post_cint_operan, arith_double_operand, ireg_or_int5_operand,
3637 ireg_operand, int5_operand, uint5_operand, int11_operand,
3638 uint32_operand, arith5_operand, and_operand, ior_operand,
3639 lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
3640 pc_or_label_operand, div_operand, plus_xor_ior_operator,
3641 shadd_operand, movb_comparison_operator,
3642 cmpib_comparison_operator): Move to predicates.md.
3643 (magic_milli, shadd_constant_p): Make it extern.
3644 * config/pa/pa.h (PREDICATE_CODES): Remove.
3645 * config/pa/pa.md: Include predicates.md.
3646 * config/pa/predicates.md: New.
3648 * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
3651 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3653 * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
3654 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
3655 config/alpha/freebsd.h, config/alpha/linux.h,
3656 config/alpha/netbsd.h, config/alpha/osf5.h,
3657 config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
3658 config/h8300/h8300-protos.h, config/h8300/h8300.c,
3659 config/h8300/h8300.h, config/ia64/unwind-ia64.c,
3660 doc/cppopts.texi: Update copyright.
3662 2005-03-18 Jan Hubicka <jh@suse.cz>
3665 * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
3667 * varasm.c (find_decl_and_mark_needed): Mark needed only when not
3670 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3672 * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
3675 2005-03-18 Paolo Bonzini <bonzini@gnu.org>
3677 * combine.c (gen_binary): Remove.
3678 (known_cond, simplify_shift_const, find_split_point,
3679 combine_simplify_rtx, simplify_if_then_else, simplify_set,
3680 simplify_logical, expand_field_assignment, extract_left_shift,
3681 force_to_mode, if_then_else_cond, apply_distributive_law,
3682 simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
3683 simplify_comparison, reversed_comparison): Replace with
3684 simplify_gen_binary, simplify_gen_relational or
3685 distribute_and_simplify_rtx.
3686 (distribute_and_simplify_rtx): New function.
3688 2005-03-18 Alexey Neyman <alex.neyman@auriga.ru>
3689 Paolo Bonzini <gcc.gnu.org>
3691 * calls.c (setjmp_call_p, special_function_p): Update comments
3692 at the head of the functions.
3694 2005-03-18 Jan Hubicka <jh@suse.cz>
3696 * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
3698 * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
3699 function body should be released; do not proactively release function
3700 bodies in non-unit-at-a-time mode.
3702 2005-03-18 Ralf Corsepius <ralf.corsepius@rtems.org>
3704 * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
3705 mno-fp-ret-in-387 multilib variants.
3707 2005-03-18 Richard Sandiford <rsandifo@redhat.com>
3709 * common.opt (m): Remove.
3710 * opts.c (handle_option): Pass 'm' options to set_target_switch if
3712 (common_handle_option): Remove OPT_m case.
3714 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3716 * builtins.c (fold_builtin_bitop): Take decomposed arguments
3718 (fold_builtin_1): Update a call to fold_builtin_bitop.
3720 * builtins.c (fold_builtin_signbit): Take decomposed arguments
3722 (fold_builtin_1): Update a call to fold_builtin_signbit.
3724 2005-03-17 Dorit Naishlos <dorit@il.ibm.com>
3726 PR tree-optimization/20474
3727 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
3728 size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
3730 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
3732 * config/h8300/h8300-protos.h: Remove prototypes for
3733 general_operand_src, general_operand_dst, single_one_operand,
3734 single_zero_operand, call_insn_operand,
3735 two_insn_adds_subs_operand, small_call_insn_operand,
3736 jump_address_operand, bit_operand, bit_memory_operand,
3737 stack_pointer_operand, const_int_gt_2_operand,
3738 const_int_ge_8_operand, const_int_qi_operand,
3739 const_int_hi_operand, incdec_operand, bit_operator,
3740 nshift_operator, eqne_operator, gtle_operator,
3741 gtuleu_operator, iorxor_operator.
3742 Add prototypes for h8sx_shift_type h8sx_classify_shift and
3743 h8300_ldm_stm_parallel.
3744 * config/h8300/h8300.c (h8sx_shift_type,): Move to
3746 (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
3747 SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
3748 (h8300_ldm_stm_parallel): Make it extern.
3749 (h8300_ldm_parallel, h8300_stm_parallel,
3750 h8300_return_parallel, general_operand_src,
3751 general_operand_dst, h8300_dst_operand, h8300_src_operand,
3752 nibble_operand, reg_or_nibble_operand, single_one_operand,
3753 single_zero_operand, call_insn_operand,
3754 two_insn_adds_subs_operand, small_call_insn_operand,
3755 jump_address_operand, bit_operand, bit_memory_operand,
3756 stack_pointer_operand, const_int_gt_2_operand,
3757 const_int_ge_8_operand, const_int_qi_operand,
3758 const_int_hi_operand, incdec_operand, eqne_operator,
3759 gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
3760 h8sx_binary_memory_operator, h8sx_unary_memory_operator,
3761 h8sx_unary_shift_operator, h8sx_binary_shift_operator,
3762 nshift_operator): Move to predicates.md.
3763 * config/h8300/h8300.h (PREDICATE_CODES): Remove.
3764 * config/h8300/h8300.md: Include predicates.md.
3765 * config/h8300/predicates.md: New.
3767 2005-03-17 Richard Henderson <rth@redhat.com>
3769 * config.gcc (ia64*-*-hpux*): Add extra_options.
3770 * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
3771 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
3772 * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
3773 (ia64_tls_size_string, ia64_tune_string): Remove.
3774 (ia64_tune): Init to PROCESSOR_ITANIUM2.
3775 (TARGET_DEFAULT_TARGET_FLAGS): New.
3776 (TARGET_HANDLE_OPTION): New.
3777 (ia64_override_options): Move options parsing ...
3778 (ia64_handle_option): ... here. New.
3779 * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
3780 MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
3781 MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
3782 MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
3783 MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
3784 MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
3785 MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
3786 TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
3787 TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
3788 TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
3789 TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
3790 TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
3791 TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
3792 TARGET_EARLY_STOP_BITS): Remove.
3793 (TARGET_ILP32): Default false.
3794 (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
3795 (enum ia64_inline_type): New.
3796 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
3797 * config/ia64/ia64.md: Update for new definitions of
3798 TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
3799 * config/ia64/ia64.opt: New file.
3800 * config/ia64/ilp32.opt: New file.
3802 2005-03-17 H.J. Lu <hongjiu.lu@intel.com>
3805 * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
3807 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
3809 * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
3810 instead of MASK_H8300S.
3811 * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
3812 MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
3813 MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
3814 MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
3815 TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
3816 TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
3817 TARGET_SWITCHES): Remove.
3818 (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
3820 * config/h8300/h8300.opt: New.
3822 * config/alpha/alpha.opt, config/arc/arc.opt,
3823 config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
3826 2005-03-17 Ian Lance Taylor <ian@airs.com>
3830 2005-03-17 Richard Sandiford <rsandifo@redhat.com>
3832 * config/arc/arc.c (arc_cpu_string): Make static. Default to "base"
3833 (arc_text_string, arc_data_string, arc_rodata_string): Make static.
3834 (TARGET_HANDLE_OPTION): Override default.
3835 (arc_handle_option): New function.
3836 (arc_init): Remove code to set arch_cpu_string.
3837 * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
3838 (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
3839 (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
3840 (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
3841 (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
3842 (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
3843 (arc_rodata_string, TARGET_OPTIONS): Delete.
3844 * config/arc/arc.opt: New file.
3846 2005-03-17 Richard Henderson <rth@redhat.com>
3848 * doc/extend.texi (Weak Pragmas): New section.
3849 (attribute alias): Clarify that target must be in the same
3852 2005-03-17 Richard Henderson <rth@redhat.com>
3854 * config/alpha/alpha.opt: New file.
3855 * config/alpha/alpha.c (alpha_tune): New. Rename all existing uses
3857 (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
3858 alpha_fprm_string, alpha_fptm_string): Make static.
3859 (alpha_tls_size_string): Remove.
3860 (alpha_handle_option): New.
3861 (override_options): Update for alpha_cpu/alpha_tune split.
3862 (alpha_file_start): Likewise.
3863 (TARGET_DEFAULT_TARGET_FLAGS): New.
3864 (TARGET_HANDLE_OPTION): New.
3865 * config/alpha/alpha.h (alpha_tune): Declare.
3866 (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
3867 MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
3868 MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
3869 TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
3870 TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
3871 TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
3872 MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
3873 MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
3874 TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
3875 TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
3876 (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
3877 (TARGET_DEFAULT): Remove MASK_FP.
3878 (TARGET_FP): Redefined based on TARGET_SOFT_FP.
3879 (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
3880 (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
3881 alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
3882 alpha_tls_size_string): Remove.
3883 * config/alpha/alpha.md (prefetch): Use alpha_cpu.
3884 (attribute tune): Rename from attribute cpu.
3885 * config/alpha/ev4.md: Update to match.
3886 * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
3887 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
3888 * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
3889 * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
3890 * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
3891 * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
3893 2005-03-16 James E. Wilson <wilson@specifixinc.com>
3895 * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
3896 and return without creating new state if before_nops_num is nonzero.
3897 * config/ia64/ia64.md (first_insn): New attribute.
3898 (alloc): Set it to yes.
3900 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
3902 * tree-vectorizer.c (new_vec_stmt_info): Initialize
3903 STMT_VINFO_SUBVARS to NULL.
3904 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
3906 2005-03-16 Dale Johannesen <dalej@apple.com>
3908 * rtlanal.c (find_first_parameter_load): Rewrite to
3909 return actual first param load or the call if none,
3910 instead of first in block, when not all loads exist.
3912 2005-03-16 Roger Sayle <roger@eyesopen.com>
3914 * optabs.c (expand_copysign_absneg): Make static.
3915 * optabs.h (expand_copysign_absneg): Delete prototype.
3916 * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
3918 2005-03-16 Richard Henderson <rth@redhat.com>
3921 * varasm.c (struct alias_pair): Rename from struct output_def_pair.
3922 (alias_pairs): Rename from output_defs.
3923 (find_decl_and_mark_needed): Split out from assemble_alias.
3924 (do_assemble_alias): New.
3925 (assemble_output_def): Remove.
3926 (finish_aliases_1, finish_aliases_2): New.
3927 (process_pending_assemble_output_defs): Remove.
3928 (assemble_alias): Defer aliases for which we don't yet have a
3929 non-external decl for the target symbol.
3930 * passes.c (rest_of_decl_compilation): Register variables with cgraph.