OSDN Git Service

* cselib.c (clear_table): Rename to cselib_clear_table.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-04-10  Steven Bosscher  <stevenb@suse.de>
2
3         * cselib.c (clear_table): Rename to cselib_clear_table.
4         * cselib.h (cselib_clear_table): Add prototype.
5         * gcse.c (gcse_main): Make 'f' argument unused.
6         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
7         of each basic block instead.
8         (compute_sets, compute_hash_table_work): Likewise.
9         (constprop_register): Change int 'alter_jumps' argument to bool.
10         (do_local_cprop): Likewise.
11         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
12         the insn chain.  Explicitly clear the cselib tables after finishing
13         one basic block.  Make sure there are no unterminated libcall blocks.
14         Update compute_sets call.
15         (cprop): Walk basic blocks instead of the insn chain.
16         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
17         Likewise.
18         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
19         one_cprop_pass calls.
20
21 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
22
23         * combine.c (combine_simplify_rtx): Remove a transformation that
24         relies on an invalid assumption about rtl sign-extension semantics.
25
26 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
27
28         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
29         to build_int_cst_wide.
30
31 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
32
33         PR target/20126
34         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
35         set the original address pseudo to the correct value before the
36         original insn, if possible, and leave the insn alone, otherwise
37         create a new pseudo, set it and replace it in the insn.
38         * recog.c (validate_change_maybe_volatile): New.
39         * recog.h (validate_change_maybe_volatile): Declare.
40
41 2005-04-09  Caroline Tice  <ctice@apple.com>
42
43         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
44         Remove targetm.have_named_sections test.
45         (fix_edges_for_rarely_executed_code): Likewise.
46         (insert_section_boundary_note): Likewise.
47         (reorder_basic_blocks): Check partitioning flag before calling
48         verify_hot_cold_block_grouping.
49         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
50         the function struct rather than global variables.
51         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
52         (COLD_END_LABEL): Likewise
53         (cold_text_section_label): New static global variable.
54         (cold_end_label): Likewise.
55         (dwarf2out_switch_text_section): Get hot/cold section labels from
56         the function struct rather than global variables.
57         (output_aranges): Use cold_text_section_label and cold_end_label;
58         check partitioning flag before putting out delta.
59         (output_ranges): Remove incorrect code attempting to use
60         hot/cold labels.
61         (output_line_info): Get cold section label from function struct.
62         (add_location_or_const_value_attribute): Likewise.
63         (get_subprogram_die): Get hot/cold section labels from function struct.
64         (dwarf2out_var_location): Likewise.
65         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
66         write out cold_text_section_label if partition flag is set.
67         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
68         * function.h (struct function): Add new fields to point to hot/cold
69         section labels: hot_section_label, cold_section_label,
70         hot_section_end_label and cold_section_end_label; also add new field
71         for cold text section name, unlikely_text_section_name.
72         * opts.c (decode_options): Turn off partitioning flag if
73         !targetm.have_named_sections.
74         * output.h (hot_section_label): Remove.
75         (hot_section_end_label): Remove.
76         (cold_section_end_label): Remove.
77         (unlikely_section_label): Remove.
78         (unlikely_text_section_name): Remove.
79         * passes.c (rest_of_handle_final):  Remove code that frees
80         unlikely_text_section_name.
81         * varasm.c (unlikely_section_label): Remove.
82         (hot_section_label): Remove.
83         (hot_section_end_label): Remove.
84         (cold_section_end_label): Remove.
85         (unlikely_text_section_name):  Remove.
86         (initialize_cold_section_name): Modify to call
87         targetm.strip_name_encoding; to store cold section name in current
88         function struct, if it exists; and to only use the decl_section_name
89         if flag_named_sections is true.
90         (unlikely_text_section): Modify to get section name out of current
91         function struct, if there is one; otherwise build it from
92         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
93         (in_unlikely_text_section): Likewise.
94         (named_section): Modify to get/put cold section name in current function
95         struct, if there is one.
96         (function_section):  Change 'bool unlikely' to 'int reloc'; check
97         targetm.have_named_sections before calling named_section.
98         (current_function_section): Likewise.
99         (assemble_start_function): Modify to get/put unlikely_text_section_name
100         in current function struct; modify to get hot/cold section labels
101         from function struct; initialize labels using 
102         ASM_GENERATE_INTERNAL_LABEL;
103         test partitioning flag before writing out hot section label.
104         (assemble_end_function): Test partitioning flag before writing out
105         hot/cold section labels.
106         (default_section_type_flags_1):  Modify to use array instead of
107          char* for unlikely_text_section_name; set flags correctly for
108          cold text section if there is not a current function decl.
109
110 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
111
112         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
113         and TI_VA_LIST_FPR_COUNTER_FIELD.
114         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
115         * tree-pass.h (pass_stdarg): Add.
116         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
117         * tree-stdarg.c: New file.
118         * tree-stdarg.h: New file.
119         * Makefile.in (OBJS-common): Add tree-stdarg.o.
120         (tree-stdarg.o): Add dependencies.
121         * function.h (struct function): Add va_list_gpr_size and
122         va_list_fpr_size fields.
123         * function.c (allocate_struct_function): Initialize them.
124         * target.h (struct gcc_target): Add stdarg_optimize_hook.
125         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
126         (TARGET_INITIALIZER): Add it.
127
128         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
129         va_list_{g,f}pr_counter_field.
130         (ix86_setup_incoming_varargs): Don't do anything if reg_save
131         area will not be used.  Only save registers that tree-stdarg.c
132         detected they need saving.
133         (ix86_va_start): Don't set up fields that won't be used.
134
135         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
136         va_list_{g,f}pr_counter_field.
137         (setup_incoming_varargs): Don't do anything if reg_save
138         area will not be used.  Only save registers that tree-stdarg.c
139         detected they need saving.
140         (rs6000_va_start): Don't set up fields that won't be used.
141
142         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
143         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
144         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
145         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
146
147 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
148
149         PR target/20795
150         * config/i386/i386.c (construct_container): Pass empty aligned
151         struct, union or class in memory.
152
153 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
154
155         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
156         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
157         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
158         config/rs6000/predicates.md: Fix comment typos.
159
160         * sched-int.h (haifa_insn_data): Remove blockage and units.
161         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
162         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
163         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
164
165 2005-04-09  Jan Hubicka  <jh@suse.cz>
166             Steven Bosscher  <stevenb@suse.de>
167
168         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
169         * cfgloop.c (get_loop_exit_edges): Likewise.
170         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
171         (unloop): Likewise.
172         * loop-unroll.c (analyze_insns_in_loop): Likewise.
173         * tree-cfg.c (dump_cfg_status): Likewise.
174
175 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
176
177         * config/rs6000/predicates.md (altivec_register_operand): Remove
178         redundant match_code test.
179         (gpc_reg_operand): Same.
180         (cc_reg_operand): Same.
181         (cc_reg_not_cr0_operand): Same.
182
183 2005-04-09  Jan Hubicka  <jh@suse.cz>
184
185         Forgotten hunk from my last merge patch:
186         * final.c (output_addr_const): Do not call mark_referenced.
187
188 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
189
190         * doc/tree-ssa.texi: Add immediate use documentation.
191
192 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
193
194         * arm.c (FL_WBUF): Define.
195         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
196         (arm_is_6_or_7): Delete.
197         (arm_tune_wbuf): New.
198         (arm_override_options): Set arm_tune_wbuf.
199         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
200         (arm_is_6_or_7): Delete declaration.
201         (arm_tune_wbuf): New declartion.
202         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
203         (model_wbuf): Derive from arm_tune_wbuf.
204         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
205         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
206         (arm740t): Mark CPUs as having a write buffer.
207
208 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
209
210         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
211         of 'const_double_operand' in operand 2 constraints.  Update enable
212         condition.
213
214 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
215
216         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
217         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
218         * optabs.h (enum optab_index): Add new OTI_lfloor.
219         (lfloor_optab): Define corresponding macro.
220         * optabs.c (init_optabs): Initialize lfloor_optab.
221         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
222         and lfloordi2 patterns.
223         * builtins.c (expand_builtin_int_roundingfn): New prototype.
224         (expand_builtin_int_roundingfn): New function.
225         (fold_builtin_int_roundingfn): New prototype.
226         (fold_builtin_int_roundingfn): New function, renamed from
227         fold_builtin_lround.
228         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
229         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
230         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
231         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
232         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
233         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
234         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
235         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
236         into lfloor built-in function and (long long int)floor{,f,l} into
237         llfloor built-in function.
238         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
239         BUILT_IN_LLFLOOR.
240
241 2005-04-08  Ian Lance Taylor  <ian@airs.com>
242
243         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
244         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
245         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
246         (DO_COND, DO_BODY): Likewise.
247         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
248         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
249         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
250         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
251         (build_continue_stmt, build_break_stmt): Don't declare.
252         (c_do_switch_warnings): Update declaration.
253         * c-gimplify.c (enum bc_t): Remove.
254         (struct c_gimplify_ctx, ctxp): Remove.
255         (push_context, pop_context): Remove static functions.
256         (c_genericize): Don't call push_context or pop_context.
257         (begin_bc_block, finish_bc_block): Remove static functions.
258         (build_bc_goto): Likewise.
259         (gimplify_c_loop): Likewise.
260         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
261         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
262         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
263         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
264         * c-common.c (c_do_switch_warnings): Rename from
265         c_do_switch_warnings_1.
266         (c_do_switch_warnings) [old version]: Remove.
267         (c_do_switch_expr_warnings): Remove.
268         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
269         function instead of c_do_switch_expr_warnings.
270         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
271         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
272         * c-pretty-print.c (pp_c_statement): Likewise.
273         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
274
275 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
276
277         Merge from tree-cleanup-branch: VRP, store CCP, store
278             copy-prop, incremental SSA updating of FUD chains and
279             newly exposed symbols.
280
281         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
282         (OBJS-common): Add tree-vrp.o.
283         (tree-vrp.o): New rule.
284         * basic-block.h (nearest_common_dominator_for_set): Declare.
285         * common.opt (ftree-store-ccp): New flag.
286         (ftree-copy-prop): New flag.
287         (ftree-vrp): New flag.
288         (ftree-store-copy-prop): New flag.
289         * dominance.c (nearest_common_dominator_for_set): New.
290         * domwalk.c (walk_dominator_tree): Only traverse
291         statements in blocks marked in walk_data->interesting_blocks.
292         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
293         * fold-const.c (fold): Handle ASSERT_EXPR.
294         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
295         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
296         flag_tree_vrp at -O2.
297         * timevar.def (TV_TREE_VRP): Define.
298         (TV_TREE_COPY_PROP): Define.
299         (TV_TREE_STORE_COPY_PROP): Define.
300         (TV_TREE_SSA_INCREMENTAL): Define.
301         (TV_TREE_STORE_CCP): Define.
302         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
303         to kill_redundant_phi_nodes from comment.
304         (verify_expr): Handle ASSERT_EXPR.
305         * tree-dfa.c (mark_new_vars_to_rename): Remove second
306         argument.  Update all users.
307         (mark_call_clobbered_vars_to_rename): Remove.  Update all
308         users.
309         * tree-flow-inline.h (unmodifiable_var_p): New.
310         * tree-flow.h (enum value_range_type): Declare.
311         (struct value_range_def): Declare.
312         (value_range): Declare.
313         (remove_all_phi_nodes_for): Remove.  Update all users.
314         (find_phi_node_for): Declare.
315         (add_type_alias): Declare.
316         (count_uses_and_derefs): Declare.
317         (kill_redundant_phi_nodes): Remove.
318         (rewrite_into_ssa): Remove.
319         (rewrite_def_def_chains): Remove.
320         (update_ssa, register_new_name_mapping, create_new_def_for,
321         need_ssa_update_p, name_registered_for_update_p,
322         release_ssa_name_after_update_ssa, dump_repl_tbl,
323         debug_repl_tbl, dump_names_replaced_by,
324         debug_names_replaced_by, mark_sym_for_renaming,
325         mark_set_for_renaming, get_current_def, set_current_def,
326         get_value_range, dump_value_range, debug_value_range,
327         dump_all_value_ranges, debug_all_value_ranges,
328         expr_computes_nonzero, loop_depth_of_name,
329         unmodifiable_var_p): Declare.
330         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
331         ASSERT_EXPR.
332         * tree-into-ssa.c (block_defs_stack): Update comment.
333         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
334         syms_to_rename, names_to_release, repl_tbl,
335         need_to_initialize_update_ssa_p, need_to_update_vops_p,
336         need_to_replace_names_p): New locals.
337         (NAME_SETS_GROWTH_FACTOR): Define.
338         (struct repl_map_d): Declare.
339         (struct mark_def_sites_global_data): Add field
340         interesting_blocks.
341         (enum rewrite_mode): Declare.
342         (REGISTER_DEFS_IN_THIS_STMT): Define.
343         (compute_global_livein): Use last_basic_block instead of
344         n_basic_blocks.
345         (set_def_block): Remove last argument.  Update all callers.
346         (prepare_use_operand_for_rename): Remove.  Update all callers.
347         (prepare_def_operand_for_rename): Remove.  Update all callers.
348         (symbol_marked_for_renaming): New.
349         (is_old_name): New.
350         (is_new_name): New.
351         (repl_map_hash): New.
352         (repl_map_eq): New.
353         (repl_map_free): New.
354         (names_replaced_by): New.
355         (add_to_repl_tbl): New.
356         (add_new_name_mapping): New.
357         (mark_def_sites): Assume that all the operands in the
358         statement are in normal form.
359         (find_idf): Assert that the block in the stack is valid.
360         (get_default_def_for): New.
361         (insert_phi_nodes_for): Add new argument 'update_p'.
362         Add documentation.
363         If update_p is true, add a new mapping between the LHS of
364         each new PHI and the name that it replaces.
365         (insert_phi_nodes_1): Only call find_idf if needed.
366         (get_reaching_def): Call get_default_def_for.
367         (rewrite_operand): Remove.
368         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
369         and REWRITE_THIS_STMT are false.
370         Assume that all the operands in the statement are in
371         normal form.
372         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
373         (rewrite_virtual_phi_arguments): Remove.
374         (invalidate_name_tags): Remove.
375         (register_new_update_single, register_new_update_set,
376         rewrite_update_init_block, replace_use,
377         rewrite_update_fini_block, rewrite_update_stmt,
378         rewrite_update_phi_arguments): New.
379         rewrite_blocks): Remove argument 'fix_virtual_phis'.
380         Add arguments 'entry', 'what' and 'blocks'.
381         Initialize the dominator walker according to 'what' and
382         'blocks'.
383         Start the dominator walk at 'entry'.
384         (mark_def_site_blocks): Add argument 'interesting_blocks'.
385         Use it to configure the dominator walker.
386         (rewrite_into_ssa): Remove argument 'all'.
387         Make internal.
388         (rewrite_all_into_ssa): Remove.
389         (rewrite_def_def_chains): Remove.
390         (mark_def_interesting, mark_use_interesting,
391         prepare_phi_args_for_update, prepare_block_for_update,
392         prepare_def_site_for, prepare_def_sites,
393         dump_names_replaced_by, debug_names_replaced_by,
394         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
395         delete_update_ssa, create_new_def_for,
396         register_new_name_mapping, mark_sym_for_renaming,
397         mark_set_for_renaming, need_ssa_update_p,
398         name_registered_for_update_p, ssa_names_to_replace,
399         release_ssa_name_after_update_ssa,
400         insert_updated_phi_nodes_for, update_ssa): New.
401         * tree-loop-linear.c (linear_transform_loops): Call
402         update_ssa instead of rewrite_into_ssa.
403         * tree-optimize.c (vars_to_rename): Remove.
404         Update all users.
405         (init_tree_optimization_passes): Replace
406         pass_redundant_phi with pass_copy_prop.
407         Add pass_vrp.
408         Replace pass_ccp with pass_store_ccp.
409         Add pass_store_copy_prop after pass_store_ccp.
410         (execute_todo): If the TODO_ flags don't include updating
411         the SSA form, assert that it does not need to be updated.
412         Call update_ssa instead of rewrite_into_ssa and
413         rewrite_def_def_chains.
414         If TODO_verify_loops is set, call verify_loop_closed_ssa.
415         (tree_rest_of_compilation):
416         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
417         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
418         TODO_cleanup_cfg): Renumber.
419         (TODO_verify_loops, TODO_update_ssa,
420         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
421         TODO_update_ssa_only_virtuals): Define.
422         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
423         Declare.
424         * tree-phinodes.c (make_phi_node): Update documentation.
425         (remove_all_phi_nodes_for): Remove.
426         (find_phi_node_for): New.
427         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
428         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
429         (interpret_rhs_modify_expr): Likewise.
430         * tree-sra.c (decide_instantiations): Mark all symbols in
431         SRA_CANDIDATES for renaming.
432         (mark_all_v_defs_1): Rename from mark_all_v_defs.
433         (mark_all_v_defs): New function.  Update all users to call it 
434         with the whole list of scalarized statements, not just the
435         first one.
436         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
437         (compute_flow_insensitive_aliasing): If the tag is
438         unmodifiable and the variable isn't or vice-versa, don't
439         make them alias of each other.
440         (setup_pointers_and_addressables): If the type tag for
441         VAR is about to change, mark the old one for renaming.
442         (add_type_alias): New.
443         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
444         (ccp_lattice_t): Rename from latticevalue.
445         (value): Remove.  Update all users.
446         (const_val): New local variable.
447         (do_store_ccp): New local variable.
448         (dump_lattice_value): Handle UNINITIALIZED.
449         (debug_lattice_value): New.
450         (get_default_value): Re-write.
451         (set_lattice_value): Re-write.
452         (def_to_varying): Remove.  Update all users.
453         (likely_value): Return VARYING for statements that make
454         stores when STORE_CCP is false.
455         Return VARYING for any statement other than MODIFY_EXPR,
456         COND_EXPR and SWITCH_EXPR.
457         (ccp_initialize): Re-write.
458         (replace_uses_in, replace_vuse_in, substitute_and_fold):
459         Move to tree-ssa-propagate.c.
460         (ccp_lattice_meet): Handle memory stores when
461         DO_STORE_CCP is true.
462         (ccp_visit_phi_node): Likewise.
463         (ccp_fold): Likewise.
464         (evaluate_stmt): Likewise.
465         (visit_assignment): Likewise.
466         (ccp_visit_stmt): Likewise.
467         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
468         into DO_STORE_CCP.
469         (do_ssa_ccp): New.
470         (pass_ccp): Use it.
471         (do_ssa_store_ccp): New.
472         (gate_store_ccp): New.
473         (pass_store_ccp): Declare.
474         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
475         (may_propagate_copy): Reformat.
476         Don't abort if ORIG is a virtual and DEST isn't.
477         If NEW does not have alias information but DEST does,
478         copy it.
479         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
480         copy_prop_kind, which_copy_prop): Declare.
481         (stmt_may_generate_copy, get_copy_of_val,
482         get_last_copy_of, set_copy_of_val, dump_copy_of,
483         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
484         copy_prop_visit_stmt, copy_prop_visit_phi_node,
485         init_copy_prop, fini_copy_prop, execute_copy_prop,
486         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
487         store_copy_prop): New.
488         (pass_copy_prop, pass_store_copy_prop): Declare.
489         * tree-ssa-dom.c (struct opt_stats_d): Add fields
490         'num_const_prop' and 'num_copy_prop'.
491         (cprop_operand): Update them.
492         (dump_dominator_optimization_stats): Dump them.
493         (tree_ssa_dominator_optimize): Call update_ssa instead of
494         rewrite_into_ssa.
495         (loop_depth_of_name): Declare extern.
496         (simplify_cond_and_lookup_avail_expr): Guard against NULL
497         values for LOW or HIGH.
498         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
499         (record_equivalences_from_stmt): Call expr_computes_nonzero.
500         (cprop_operand): Only propagate if VAL != OP.
501         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
502         statement for renaming.
503         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
504         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
505         add_type_alias if necessary.
506         Call mark_new_vars_to_rename.
507         (tree_ssa_iv_optimize): If new symbols need to be renamed,
508         mark every statement updated, call update_ssa and
509         rewrite_into_loop_closed_ssa.
510         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
511         from LIVEIN if VAR is a virtual.
512         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
513         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
514         (get_call_expr_operands): Reformat statement.
515         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
516         symbols.
517         * tree-ssa-propagate.c (ssa_prop_init): Initialize
518         SSA_NAME_VALUE for every name.
519         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
520         get_value_loaded_by): New.
521         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
522         substitute_and_fold): Move from tree-ssa-ccp.c.
523         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
524         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
525         get_value_loaded_by, replace_uses_in, substitute_and_fold):
526         Declare.
527         * tree-ssa.c (verify_use): Fix error message.
528         (propagate_into_addr, replace_immediate_uses, get_eq_name,
529         check_phi_redundancy, kill_redundant_phi_nodes,
530         pass_redundant_phi): Remove.  Update all users.
531         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
532         add_type_alias, if necessary.
533         * tree-vectorizer.h (struct _stmt_vect_info): Update
534         documentation for field 'memtag'.
535         * tree-vrp.c: New file.
536         * tree.def (ASSERT_EXPR): Define.
537         * tree.h (ASSERT_EXPR_VAR): Define.
538         (ASSERT_EXPR_COND): Define.
539         (SSA_NAME_VALUE_RANGE): Define.
540         (struct tree_ssa_name): Add field 'value_range'.
541         (PHI_REWRITTEN): Remove.
542         (struct tree_phi_node): Remove field 'rewritten'.
543         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
544         -ftree-store-copy-prop): Document.
545         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
546         Document usage of update_ssa.
547
548 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
549
550         PR target/20814
551         * config/rs6000/predicates.md (altivec_register_operand): Accept
552         SUBREG. 
553         (and64_operand): Do not limit CONST_INT to mask64_operand.
554         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
555         (and_operand): Do not limit CONST_INT to mask_operand.
556
557 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
558
559         PR rtl-optimization/20466
560         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
561         for overlap of the address of each list member.
562         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
563
564 2005-04-08  Mike Stump  <mrs@apple.com>
565
566         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
567         
568         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
569         instead of 4.
570
571 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
572
573         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
574
575         * function.c (push_function_context_to): Don't set
576         contains_functions.
577         * function.h (function): Remove contains_functions.
578         (current_function_contains_functions): Remove.
579
580         * function.h (function): Remove instrument_entry_exit.
581         (current_function_instrument_entry_exit): Remove.
582
583         * function.h (nonlocal_labels): Remove.
584
585         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
586
587         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
588         (check_attr_value, write_attr_get, write_expr_attr_cache,
589         find_attr, make_internal_attr): Don't reference negative_ok or
590         unsigned_p.
591         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
592         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
593         (ATTR_STATIC): Adjust the value.
594
595         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
596
597 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
598
599         * config/s390/tpf.h (ASM_SPEC): Define.
600
601 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
602
603         * tree-flow.h: Remove the prototype for
604         redirect_immediate_uses.
605         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
606
607 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
608
609         * arm.c (arm_const_double_by_parts): New function.
610         * arm-protos.h (arm_const_double_by_parts): Add prototype.
611         * arm.md (define_split for 64-bit constants): Add another one.
612
613 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
614
615         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
616
617 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
618
619         * system.h: Revert last change.
620
621 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
622
623         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
624         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
625         (TARGET_SWITCHES): Delete.
626         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
627         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
628         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
629         * config/xtensa/xtensa.opt: New file.
630
631 2005-04-08  Ben Elliston  <bje@au.ibm.com>
632
633         * config/fp-bit.c: Include L_mul_tf in #endif comment.
634         * config/fp-bit.h: Tidy comments.
635
636 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
637
638         * system.h: Poison PARAMS.
639
640 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
641
642         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
643         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
644         (TARGET_SWITCHES): Delete.
645         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
646         * config/vax/vax.opt: New file.
647
648 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
649
650         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
651
652 2005-04-07  Ian Lance Taylor  <ian@airs.com>
653
654         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
655         define.
656         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
657         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
658         Likewise.
659
660 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
661
662         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
663         all immediate uses in PHI nodes.
664
665 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
666
667         * arm.c (arm_const_double_inline_cost): Handle any constant by
668         using gen_lowpart and gen_highpart_mode.
669         (note_invalid_constants): All constants in an RTX with a constraint
670         that permits memory are now pushed to the constant pool.
671         (output_move_double): Delete code to handle reg to reg and 
672         constant to reg moves.
673         (const_double_needs_minipool, output_mov_immediate): Delete.
674         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
675         CONST_INT and CONST_VECTOR.
676         * arm.md (ANY64): New mode macro.
677         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
678         (movdf_soft_insn): Split reg-reg and const-reg moves.
679         (split patterns for 64-bit constant and register moves): New.
680         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
681         (cirrus_movdf_hard_insn): Likewise.
682         * fpa.md (movdf_fpa): Likewise.
683         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
684         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
685         constraints.
686         (movv2si_internal_2): Likewise.
687         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
688         (movdf_vfp): Likewise.
689         * arm-protos.h (output_mov_immediate): Delete prototype.
690
691 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
692
693         PR target/20093
694         * simplify-rtx.c (simplify_unary_operation_1): Check
695         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
696
697 2005-04-06  James E Wilson  <wilson@specifixinc.com>
698
699         PR target/20717
700         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
701         ADDR_EXPR.
702
703 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
704
705         * coverage.h (GCOV_TYPE_NODE): Delete.
706         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
707         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
708         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
709         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
710         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
711
712 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
713
714         PR other/20792
715         * Makefile.in (gcc.pot): Remove options.c dependency.
716         * optc-gen.awk: Don't quote help strings with N_().
717
718 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
719
720         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
721         the function returns a pointer type.
722
723 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
724
725         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
726         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
727         * doc/invoke.texi: Documnet salias-max-implicit-fields.
728         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
729         explicit_uses members.
730         (get_or_create_used_part_for): Initialize new fields.
731         (fieldoff_compare): New function.
732         (create_overlap_variables_for): Count number of fields, use
733         heuristic to determine whether to create subvars for vars with
734         only implicit uses.
735         Sort the field list by offset and avoid creating duplicate SFT's.
736
737 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
738
739         * c.opt (-F): Remove trailing whitespace from help string.
740         (-finput-charset): Use a tab to separate the switch name and help
741         string.
742         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
743         (-ftree-vectorizer-verbose): Likewise.
744
745 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
746
747         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
748         a PHI argument where a use occurs instead of all PHI arguments.
749
750 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
751
752         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
753         scope.
754
755 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
756
757         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
758         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
759         config/bfin/bfin.h: Fix comment typos.
760
761 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
762
763         * doc/install.texi: Update the URL for Jacks.
764         * doc/sourcebuild.texi: Likewise.
765
766 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
767
768         PR target/17245
769         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
770         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
771
772 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
773
774         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
775
776 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
777
778         * config/v850/v850-protos.h (override_options): Delete.
779         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
780         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
781         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
782         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
783         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
784         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
785         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
786         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
787         (OVERRIDE_OPTIONS): Delete.
788         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
789         (small_memory_info): Remove the value field.
790         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
791         TARGET_NO_APP_REGS.
792         * config/v850/v850.c (small_memory): Remove the value field.
793         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
794         (override_options): Delete.
795         (v850_handle_memory_option, v850_handle_option): New functions.
796         * config/v850/v850.opt: New file.
797
798 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
799
800         * config.host: Add a section for generic hosts, and a subsection
801         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
802         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
803         * config/host-darwin.h: New.
804         * config/x-darwin: New.
805         * config/i386/host-i386-darwin.c: New.
806         * config/i386/x-darwin: New.
807         * config/rs6000/host-darwin.c: Include host-darwin.h.
808         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
809         (darwin_rs6000_gt_pch_use_address): Likewise.
810         * config/rs6000/x-darwin: Change name of .o built, update
811         dependencies for changes to rs6000/host-darwin.c.
812
813 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
814
815         PR target/17824
816         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
817
818 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
819
820         * tree-vect-analyze.c (vect_analyze_loop_form): Call
821         split_loop_exit_edge instead of loop_split_edge_with. 
822
823 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
824
825         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
826         UNSPEC_SET_VSCR): New constants, used throughout.
827         (*andc3_v4sf): New.
828         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
829         Replace with...
830         (altivec_vspltis<VI_char>): ... this pattern, using
831         a QImode const_int_operand for the immediate.
832         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
833         define_expands.
834
835 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
836
837         PR target/17822
838         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
839
840 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
841
842         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
843
844 2005-04-06  Ben Elliston  <bje@au.ibm.com>
845
846         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
847         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
848         macros as living in "this file" and not gcc.h.
849
850 2005-04-06  Ben Elliston  <bje@au.ibm.com>
851
852         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
853         -ftree-live_range_split.  Perhaps renamed at some point?
854
855 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
856
857         PR target/20625
858         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
859         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
860
861 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
862
863         * tree-flow.h (number_of_iterations_cond): Declaration removed.
864         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
865         (number_of_iterations_special): New function.
866         (number_of_iterations_exit): Use number_of_iterations_special.
867         Use simplify_using_outer_evolutions only at -O3.
868         (number_of_iterations_cond, tree_simplify_using_condition,
869         simplify_using_initial_conditions, loop_niter_by_eval,
870         compare_trees, can_count_iv_in_wider_type_bound,
871         simplify_using_outer_evolutions): Use fold_build.
872
873 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
874
875         * doc/install.texi (Configuration): Document --with-java-home.
876
877 2005-04-05  Richard Henderson  <rth@redhat.com>
878
879         PR target/20342
880         PR target/20447
881         * config/i386/i386.c (print_operand): Handle vector zeros.
882         (ix86_split_to_parts): Handle CONST_VECTOR.
883         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
884         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
885         what modes to tie for MMX and SSE registers.
886         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
887         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
888         to vector modes as well.
889         * config/i386/predicates.md (const0_operand): Handle VOIDmode
890         properly as an input mode.
891
892 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
893
894         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
895
896 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
897
898         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
899
900 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
901
902         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
903         and local functions, set sse_nregs to 8 and float_in_sse.
904         (function_arg_advance, function_arg): If float_in_sse, pass
905         SFmode and DFmode arguments in SSE registers.
906         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
907
908         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
909         of -funit-at-a-time.
910
911 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
912
913         * config/i386/i386-protos.h (ix86_function_value): Accept two
914         arguments, like the target macro.
915         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
916         * config/i386/i386.c (ix86_function_value): Accept the second
917         argument of the target macro.
918         (ix86_function_ok_for_sibcall): Pass a function pointer to
919         ix86_function_value.
920         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
921         call to ix86_value_regno).
922         (ix86_value_regno): Add support for returning floating point values
923         in SSE registers.
924
925 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
926
927         PR tree-optimization/20076
928         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
929         that call __builtin_return or __builtin_apply_args.
930
931 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
932
933         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
934         Use immediate use iterator.
935         (stmt_is_bumper_for_loop): Use immediate use iterator.
936         * predict.c (strip_builtin_expect): Use update_stmt.
937         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
938         on all elements of a STATEMENT_LIST.
939         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
940         (bsi_remove): Remove imm_use links and mark the stmt as modified.
941         (bsi_replace): Mark stmt as modified and the update it.
942         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
943         (expand_complex_libcal): Call update_stmt.
944         (expand_complex_comparison): Call mark_stmt_modified.
945         (expand_complex_operations_1): Call update_stmt_if_modified.
946         (expand_vector_operations_1): Call mark_stmt_modified.
947         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
948         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
949         add_immediate_use, redirect_immediate_use,
950         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
951         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
952         (mark_new_vars_to_rename): Call update_stmt.
953         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
954         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.  
955         Ignore PHI nodes.
956         (unmodify_stmt): Delete.
957         (update_stmt): New.  Force an update of a stmt.
958         (update_stmt_if_modified): update a stmt if it is out of date.
959         (get_stmt_operands): Verify stmt is NOT modified. 
960         (stmt_modified_p): Update comment.
961         (delink_imm_use): Remove a use node from its immuse list.
962         (link_imm_use_to_list): Link a use node to a specific list.
963         (link_imm_use): Link a node to the correct list.
964         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
965         it in the correct list, if appropriate.
966         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
967         (relink_imm_use): Link a use node in place of another node in a list.
968         (relink_imm_use_stmt): LInk a node in place of another node, and set
969         the stmt pointer.
970         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
971         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
972         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
973         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
974         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
975         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
976         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
977         (has_zero_uses): New.  Return true if there are no uses of a var.
978         (has_single_use): New.  Return true if there is only a single use of a
979         variable.
980         (single_imm_use): New.  Return the simgle immediate use.
981         (num_imm_uses): New.  Return the number of immediate uses.
982         (get_v_must_def_ops): Use is now a pointer.
983         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
984         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of 
985         the use node.
986         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
987         (delink_stmt_imm_use): Delink all immuses from a stmt.
988         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
989         * tree-flow.h (struct dataflow_d): Delete.
990         (immediate_use_iterator_d): New.  Immediate use iterator struct.
991         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
992         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
993         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe 
994         iteration.
995         (struct stmt_ann_d): Remove dataflow_t from struct.
996         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
997         (if_convertible_phi_p): Use FAST immuse iterator.
998         (if_convertible_loop_p): Don't call compute_immediate_uses.
999         (replace_phi_with_cond_modify_expr): Call update_stmt.
1000         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call 
1001         update_stmt_if_modified.
1002         (rewrite_all_into_ssa): Initialize ssa operands.
1003         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
1004         compute_immediate_uses.
1005         * tree-optimize.c (execute_todo): Call verify_ssa whenever the 
1006         ssa_property is available.
1007         (execute_one_pass):  Change parameters passed to execute_todo.
1008         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
1009         (remove_ssa_form): Call fini_ssa_operands.
1010         (insert_backedge_copies): Delete call to modify_stmt.
1011         * tree-phinodes.c (make_phi_node): Initialize use nodes.
1012         (release_phi_node): Delink any use nodes before releasing.
1013         (resize_phi_node): Relink any use nodes.
1014         (remove_phi_arg_num): Delink the use node.
1015         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
1016         (remove_all_phi_nodes_for): Release phi node first.
1017         * tree-pretty-print.c (dump_generic_node): Print stmt address.
1018         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
1019         (scalarize_use, scalarize_copy): Call update_stmt.
1020         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
1021         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
1022         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
1023         (ccp_initialize): Remove call to compute_immediate_uses.
1024         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
1025         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified 
1026         stmts.
1027         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
1028         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
1029         (eliminate_redundant_computations): Call mark_stmt_modified.
1030         (cprop_operand): Call mark_stmt_modified.
1031         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
1032         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
1033         (dse_optimize_stmt): Use new immuse interface.
1034         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
1035         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
1036         (substitute_single_use_vars): Use new immuse interface.
1037         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
1038         and compute_immediate_uses.
1039         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse 
1040         interface.
1041         (rewrite_mem_refs): Call update_stmt.
1042         (determine_lsm): Remove call to compute_imm_uses and free_df.
1043         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
1044         (try_unroll_loop_completely): Call update_stmt.
1045         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
1046         (rewrite_use_compare): Call update_stmt.
1047         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
1048         (rewrite_use) : Call update_stmt.
1049         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
1050         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call 
1051         update_stmt.
1052         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
1053         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
1054         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
1055         use nodes.
1056         (initialize_vuse_operand): New.  Initialize a vuse operand.
1057         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
1058         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
1059         (finalize_ssa_defs): Use stmt parameter.
1060         (correct_use_link): Ensure a use node is in the correct list, and has
1061         the correct stmt pointer.
1062         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
1063         finalize_ssa_v_must_defs): Also initialize use nodes.
1064         (finalize_ssa_stmt_operands): Pass extra stmt operands.
1065         (build_ssa_operands): Seperate parsing from final operand construction.
1066         (parse_ssa_operands): New.  Parse entry point for operand building.
1067         (swap_tree_operands): New.  Swap 2 tree operands.
1068         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
1069         operands.
1070         (get_expr_operands): Call swap_tree_operands when needed.
1071         (copy_virtual_operands): Use initialize routines for virtual use ops.
1072         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
1073         (verify_abort): New.  Issue imm_use error.
1074         (verify_imm_links): New Verify imm_use links for a var.
1075         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
1076         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
1077         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
1078         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
1079         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
1080         (NULL_USE_OPERAND_P) Define.
1081         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
1082         use node.
1083         (struct vuse_operand_type): New struct.
1084         (SET_USE): Call set_ssa_use_from_ptr.
1085         (USE_STMT): Define.
1086         (PHI_ARG_INDEX_FROM_USE): Define.
1087         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi 
1088         argument via SET_USE, not PHI_ARG_DEF_TREE.
1089         * tree-ssa-pre.c (eliminate): Call update_stmt.
1090         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
1091         call free_df.
1092         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
1093         (nearest_common_dominator_of_uses): Use imm_use iterator.
1094         (statement_sink_location): Use imm_use iterator and interface.
1095         (execute_sink_code): Don't call compute_immediate_uses or free-df.
1096         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
1097         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
1098         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
1099         (verify_ssa): Ensure no stmt is marked modify after optimization pass
1100         if new parameter is true.
1101         (init_tree_ssa): Don't initialize operand cache here.
1102         (delete_tree_ssa): Don't destroy operand cache here.
1103         (propagate_into_addr): Pass in a use pointer, return true if anything
1104         was changed.
1105         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
1106         (check_phi_redundancy): Use imm_use iterator.
1107         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or 
1108         free_df.
1109         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
1110         (release_ssa_name): Delink node and all elements in its imm_use list.
1111         * tree-tailcall.c (adjust_return_value): Call update_stmt.
1112         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
1113         * tree-vectorizer.c (need_imm_uses_for): Delete.
1114         (vectorize_loops): Dont call compute_immediate_uses or free_df.
1115         * tree.h (struct ssa_imm_use_d): Define.
1116         (SSA_NAME_IMM_USE_NODE): Define.
1117         (struct tree_ssa_name): Add imm_use node.
1118         (PHI_DF): Delete.
1119         (PHI_ARG_IMM_USE_NODE): Define.
1120         (struct phi_arg_d): Add imm_use node.
1121         (struct tree_phi_node): Remove struct dataflow_d element.
1122         (TDF_STMTADDR): Define.
1123
1124 2005-04-05  Dale Johannesen  <dalej@apple.com>
1125
1126         * doc/invoke.texi (Optimization Options):  Remove
1127         duplicate -fcse-follow-jumps.  Add -fweb.
1128         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
1129         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
1130
1131 2005-04-05  Per Bothner  <per@bothner.com>
1132
1133         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
1134         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
1135         (warn_uninit): Get EXPR_LOCUS from context now instead.
1136         This fixes a USE_MAPPED_LOCATION testsuite failure.
1137
1138         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
1139
1140 2005-04-05  Per Bothner  <per@bothner.com>
1141
1142         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
1143         of the artification 'return 0' in main() to BUILTINS_LOCATION.
1144         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
1145         before warning. 
1146
1147 2004-04-05  Devang Patel  <dpatel@apple.com>
1148
1149         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
1150         (lhsr<mode>3): ... new name.
1151         (altivec_vsra<VI_char>): Rename to ..
1152         (ashr<mode>3): ... new name.
1153         * config/rs6000/rs6000.c (builtin_description): Rename shift
1154         operations.
1155         
1156 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
1157
1158         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
1159         gen_lowpart_for_combine.
1160         * cse.c (gen_lowpart_if_possible): Move...
1161         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
1162         gen_lowpart_SUBREG.
1163         (gen_lowpart_no_emit_general): Use it.
1164
1165 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1166
1167         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
1168         overriding.
1169
1170 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
1171
1172         * system.h: Fix typo.
1173
1174 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1175
1176         * config/bfin/bfin-modes.def: New file.
1177         * config/bfin/bfin-protos.h: New file.
1178         * config/bfin/bfin.c: New file.
1179         * config/bfin/bfin.h: New file.
1180         * config/bfin/bfin.md: New file.
1181         * config/bfin/bfin.opt: New file.
1182         * config/bfin/crti.s: New file.
1183         * config/bfin/crtn.s: New file.
1184         * config/bfin/elf.h: New file.
1185         * config/bfin/lib1funcs.asm: New file.
1186         * config/bfin/predicates.md: New file.
1187         * config/bfin/t-bfin: New file.
1188         * config/bfin/t-bfin-elf: New file.
1189         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
1190         Document new attributes.
1191         (interrupt, interrupt_handler, saveall): Update documentation for
1192         these attributes.
1193         * doc/install.texi (Specific): Add entry for the Blackfin.
1194         * doc/invoke.texi (Blackfin Options): New section.
1195         * doc/md.texi (Blackfin family): New section to document constraints.
1196         * config.gcc: Add bfin*-* and bfin*-elf configurations.
1197
1198 2005-04-05  Olivier Hainque  <hainque@adacore.com>
1199         
1200         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
1201         match what the system unwinder expects.
1202         * config/mips/mips.c (mips_frame_set): If we're saving the return
1203         address register and the dwarf return address column number differs
1204         from the hard register number, adjust the note reg to refer to the
1205         former.
1206
1207 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
1208
1209         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
1210         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
1211         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1212         (processor_type): New enum.
1213         (mn10300_processor): New variable.
1214         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
1215         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
1216         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1217         (PROCESSOR_DEFAULT): New macro.
1218         * config/mn10300/mn10300.c (mn10300_processor): New variable.
1219         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1220         (mn10300_handle_option, mn10300_override_options): New functions.
1221         * config/mn10300/mn10300.opt: New file.
1222
1223 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1224             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
1225
1226         PR tree-optimization/19903
1227         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
1228         that don't fit in their type after conversion.
1229
1230 2005-04-05  Uros Bizjak <uros@kss-loka.si>
1231
1232         PR target/20421
1233         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
1234         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
1235         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
1236         flag here. Implement using define_insn_and_split.  
1237         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
1238         (frndintxf2_mask_pm_i387): New insn patterns.
1239         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
1240         Do not set ix86_optimize_mode_switching flag.
1241         (ceilsf2, ceildf2, ceilxf2): Same.
1242         (btruncsf2, btruncdf2, btruncxf2): Same.
1243         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
1244
1245 2005-04-05  Ian Lance Taylor  <ian@airs.com>
1246
1247         PR debug/9963
1248         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
1249         i386_pe_record_external_function.
1250         (i386_pe_record_external_function): Update declaration.
1251         * config/i386/winnt.c (struct extern_list): Add decl field.
1252         (i386_pe_record_external_function): Add decl parameter.
1253         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
1254         identifier.
1255         * config/i386/i386-protos.h (i386_pe_record_external_function):
1256         Update declaration.
1257
1258 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
1259
1260         * config/m68k/m68k-protos.h: Add a prototype for
1261         valid_dbcc_comparison_p_2.
1262         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
1263         extend_operator, const_uint32_operand, const_sint32_operand,
1264         general_src_operand, nonimmediate_src_operand,
1265         memory_src_operand, post_inc_operand, pre_dec_operand,
1266         pcrel_address): Move to predicates to predicates.md.
1267         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
1268         * config/m68k/m68k.md: Include predicates.md.
1269         * config/m68k/predicates.md: New.
1270
1271 2005-04-04  Roger Sayle  <roger@eyesopen.com>
1272
1273         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
1274
1275         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
1276
1277 2005-04-04  Ian Lance Taylor  <ian@airs.com>
1278
1279         * c-typeck.c (struct c_switch): Rename switch_stmt field to
1280         switch_expr.
1281         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
1282         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
1283         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
1284         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
1285         * c-common.c (c_do_switch_warnings_1): New static function broken
1286         out of c_do_switch_warnings.
1287         (c_do_switch_warnings): Call c_do_switch_warnings_1.
1288         (c_do_switch_expr_warnings): New function.
1289         * c-common.h (c_do_switch_expr_warnings): Declare.
1290
1291 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
1292             Daniel Jacobowitz  <dan@codesourcery.com>
1293
1294         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
1295         trapping divide.
1296         * rtlanal.c (may_trap_p): Same.
1297
1298 2005-04-04  Dale Johannesen  <dalej@apple.com>
1299
1300         * ChangeLog:  remove reference to ChangeLog.12.
1301
1302 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
1303
1304         CRIS epilogue as RTL.
1305         * config/cris/cris.md: Change all 0 in unspec 0 to
1306         CRIS_UNSPEC_PLT.
1307         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
1308         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
1309         patterns.
1310         ("return"): Change to define_expand.  Call cris_expand_return for
1311         actual expansion.
1312         ("*return_expanded"): New pattern.
1313         ("epilogue"): New define_expand.
1314         * config/cris/cris.h (PREDICATE_CODES): Add
1315         cris_load_multiple_op.
1316         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
1317         type.
1318         (enum cris_retinsn_type): New.
1319         (struct machine_function): New member return_type.
1320         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
1321         (cris_target_asm_function_epilogue): Remove, moving RTLified
1322         contents to...
1323         (cris_expand_epilogue): New function.
1324         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
1325         (cris_gen_movem_load, cris_load_multiple_op)
1326         (cris_return_address_on_stack_for_return, cris_expand_return): New
1327         functions.
1328         (cris_target_asm_function_prologue)
1329         (cris_initial_frame_pointer_offset): Call
1330         cris_reg_saved_in_regsave_area instead of complicated expression.
1331         Call cris_return_address_on_stack instead of an expression.
1332         (cris_print_operand) <case 'o', case 'O'>: New cases.
1333         (cris_return_address_on_stack): Change return-type to bool.
1334         (cris_simple_epilogue): Ditto.  Return false if registers are
1335         saved.
1336         * config/cris/cris-protos.h (cris_simple_epilogue)
1337         (cris_return_address_on_stack): Adjust prototype return type.
1338         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
1339         (cris_return_address_on_stack_for_return): New prototypes.
1340
1341 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
1342
1343         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
1344         gpr_or_int12_operand.
1345
1346         * config/frv/frv-protos.h: Add a prototype to
1347         frv_legitimate_memory_operand and frv_const_unspec_p.
1348         (frv_unspec): Move from frv.c.
1349         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
1350         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
1351         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
1352         gpr_or_fpr_operand, gpr_or_int12_operand,
1353         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
1354         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
1355         int6_operand, int5_operand, uint5_operand, uint4_operand,
1356         uint1_operand, int_2word_operand, uint16_operand,
1357         upper_int16_operand, integer_register_operand,
1358         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
1359         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
1360         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
1361         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
1362         move_destination_operand, movcc_fp_destination_operand,
1363         frv_function_symbol_referenced_p, move_source_operand,
1364         condexec_dest_operand, condexec_source_operand,
1365         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
1366         const_unspec_operand, gpr_or_memory_operand,
1367         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
1368         icc_operand, fcc_operand, cc_operand, icr_operand,
1369         fcr_operand, cr_operand, call_operand, sibcall_operand,
1370         symbolic_operand, relational_operator,
1371         integer_relational_operator, float_relational_operator,
1372         ccr_eqne_operator, minmax_operator,
1373         condexec_si_binary_operator, condexec_si_media_operator,
1374         condexec_si_divide_operator, condexec_si_unary_operator,
1375         condexec_sf_conv_operator, condexec_sf_add_operator,
1376         condexec_memory_operand, intop_compare_operator, acc_operand,
1377         even_acc_operand, quad_acc_operand, accg_operand: Move to
1378         predicates.md.
1379         * config/frv/frv.h (PREDICATE_CODES): Remove.
1380         * config/frv/frv.md: Include predicates.md.
1381         * config/frv/predicates.md: New.
1382
1383 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
1384
1385         PR target/19537
1386         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
1387         * tree-ssa-loop-ivopts.c: Include langhooks.h.
1388         (add_standard_iv_candidates_for_size): New function, extracting code
1389         from add_standard_iv_candidates and parameterizing it by type size.
1390         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
1391
1392 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
1393
1394         * system.h (GCOV_SIZE_TYPE): Unposion.
1395         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
1396         (GCOV_TYPE_SIZE): ...this new macro.
1397         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
1398         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
1399         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
1400         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
1401         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
1402         instead of unsigned_intSI_type_node.
1403         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
1404         (rtl_gen_one_value_profiler_no_edge_manipulation)
1405         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
1406         * value-prof.c: Include coverage.h.
1407
1408 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
1409             Diego Novillo <dnovillo@redhat.com>
1410             
1411         Fix PR tree-optimization/20703
1412         Fix PR tree-optimization/20725
1413         
1414         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
1415         (create_expression_by_pieces): Ditto.
1416         (valid_in_set): Ditto. Also handle tcc_declaration.
1417         (find_or_generate_expression): Handle comparison class.
1418         (insert_into_preds_of_block): Ditto.
1419         (insert_aux): Ditto.
1420         (create_value_expr_from): Handle comparison class, recursively
1421         handle reference nodes.
1422         (compute_avail): Handle comparison classes, rewrite a little cleaner.
1423         (execute_pre): Fix spacing.
1424         (do_fre): Renamed to execute_fre.
1425
1426 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1427
1428         * doc/invoke.texi (SPARC options): Document that
1429         -mlittle-endian is not supported on Linux either.
1430
1431 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1432
1433         PR target/4198
1434         PR target/12027
1435         * config.gcc (Obsolete configurations): Remove
1436         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
1437         (sparclite-*-coff*): Delete.
1438         (sparclite-*-elf*): Likewise.
1439         (sparc86x-*-elf*): Likewise.
1440         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
1441         * config/sparc/lite.h: Delete.
1442         * config/sparc/litecoff.h: Likewise.
1443         * config/sparc/liteelf.h: Likewise.
1444         * config/sparc/sp86x-elf.h: Likewise.
1445         * config/sparc/t-sparclite: Likewise.
1446         * config/sparc/t-sp86x: Likewise.
1447
1448 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
1449
1450         * config/s390/s390-protos.h: (s390_comparison,
1451         s390_alc_comparison, s390_slb_comparison, const0_operand,
1452         consttable_operand, larl_operand, s_operand,
1453         shift_count_operand, bras_sym_operand, load_multiple_operation,
1454         store_multiple_operation, s390_plus_operand): Remove prototypes.
1455         (s390_legitimate_address_without_index_p): New prototype.
1456         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
1457         to s390.h.
1458         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
1459         const0_operand, consttable_operand, larl_operand, s_operand,
1460         shift_count_operand, bras_sym_operand, load_multiple_operation,
1461         store_multiple_operation, s390_plus_operand): Move to
1462         predicates.md.
1463         (check_mode): Remove.
1464         (s390_branch_condition_mask): Remove 'static'. Move prototype to
1465         s390-protos.h.
1466         (s390_legitimate_address_without_index_p): New.
1467         * config/s390/s390.h (PREDICATE_CODES): Remove.
1468         * config/s390/s390.md: Include predicates.md.
1469         * config/s390/predicates.md: New.
1470
1471 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1472
1473         PR target/20446
1474         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
1475         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
1476         (NEED_INDICATE_EXEC_STACK): Define to 1.
1477         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
1478         (NEED_INDICATE_EXEC_STACK): Define to 1.
1479         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
1480         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
1481         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
1482         (pic_helper_emitted_p): New global.
1483         (emit_pic_helper): New function extracted from...
1484         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
1485         Do not call emit_pic_helper if delay_pic_helper is true.
1486         (sparc_expand_prologue): Pass 'false' to load_pic_register.
1487         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
1488         (sparc_file_end): New function.
1489
1490 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
1491
1492         * config/mcore/mcore-protos.h: Remove the prototypes for
1493         mcore_arith_reg_operand, mcore_general_movsrc_operand,
1494         mcore_general_movdst_operand, mcore_reload_operand,
1495         mcore_arith_J_operand, mcore_arith_K_operand,
1496         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
1497         mcore_arith_K_S_operand, mcore_arith_imm_operand,
1498         mcore_arith_any_imm_operand, mcore_arith_O_operand,
1499         mcore_literal_K_operand, mcore_addsub_operand,
1500         mcore_compare_operand, mcore_load_multiple_operation,
1501         mcore_store_multiple_operation, mcore_call_address_operand.
1502         Add a prototype for const_ok_for_mcore.
1503         * config/mcore/mcore.c (mcore_call_address_operand,
1504         mcore_general_movsrc_operand, mcore_general_movdst_operand,
1505         mcore_arith_reg_operand, mcore_reload_operand,
1506         mcore_arith_J_operand, mcore_arith_K_operand,
1507         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
1508         mcore_arith_M_operand, mcore_arith_imm_operand,
1509         mcore_arith_any_imm_operand, mcore_arith_O_operand,
1510         mcore_literal_K_operand, mcore_addsub_operand,
1511         mcore_compare_operand, mcore_load_multiple_operation,
1512         mcore_store_multiple_operation): Move to predicates.md.
1513         (const_ok_for_mcore): Export.
1514         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
1515         * config/mcore/mcore.md: Include predicates.md.
1516         * config/mcore/predicates.md: New.
1517
1518         * config/mcore/predicates.md: Fix a comment typo.
1519
1520 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
1521             Adrian Straetling  <straetling@de.ibm.com>
1522
1523         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
1524         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
1525         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
1526         attribute.
1527         ("imul"): Removed from "type" attribute.
1528         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
1529         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"): 
1530         Changed type to imulsi.
1531         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
1532
1533 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
1534
1535         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
1536         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
1537         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
1538         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
1539         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
1540         (TARGET_SWITCHES, mcore_stack_increment_string)
1541         (TARGET_OPTIONS): Delete.
1542         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
1543         than *_BIT constants.
1544         (TARGET_8ALIGN): #undef old definition before redefining to 1.
1545         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
1546         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
1547         (mcore_override_options): Delete mcore_stack_increment code.
1548         Change use of M340_BIT to MASK_M340.
1549         * config/mcore/mcore.opt: New file.
1550
1551 2005-04-04  Ian Lance Taylor  <ian@airs.com>
1552
1553         * config/arm/arm.c (replace_symbols_in_block): Remove static
1554         function.
1555
1556 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
1557
1558         * config/fr30/fr30-protos.h: Remove the prototypes for
1559         stack_add_operand, add_immediate_operand,
1560         high_register_operand, low_register_operand, call_operand,
1561         di_operand, and nonimmediate_di_operand.
1562         * config/fr30/fr30.c (stack_add_operand,
1563         add_immediate_operand, high_register_operand,
1564         low_register_operand, call_operand, di_operand,
1565         nonimmediate_di_operand): Move to predicates.md.
1566         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
1567         * config/fr30/fr30.md: Include predicates.md.
1568         * config/fr30/predicates.md: New.
1569
1570         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
1571         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
1572         mcore_call_address_operand.
1573
1574         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
1575         general_movsrc_operand.
1576
1577 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
1578
1579         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
1580         after freeing.
1581
1582 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
1583
1584         PR target/14812
1585         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
1586         a negated value.
1587
1588 2005-04-04  Richard Henderson  <rth@redhat.com>
1589             Jakub Jelinek  <jakub@redhat.com>
1590
1591         PR rtl-optimization/16104
1592         * fold-const.c (fold_unary): Fix folding of vector conversions.
1593
1594 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
1595
1596         * config.gcc (xstormy16-*-elf): Set extra_options.
1597         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
1598         * config/stormy16/stormy16.opt: New file.
1599
1600 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
1601
1602         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
1603         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
1604         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
1605         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
1606         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
1607         (TARGET_UNIX_ASM): Delete.
1608         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
1609         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
1610         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
1611         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1612         * config/pdp11/pdp11.opt: New file.
1613
1614 2005-04-03  Roger Sayle  <roger@eyesopen.com>
1615             Alexandre Oliva  <aoliva@redhat.com>
1616
1617         PR c++/19199
1618         * fold-const.c (non_lvalue): Split tests into...
1619         (maybe_lvalue_p): New function.
1620         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
1621         C++ front-end prior to lowering into gimple form.
1622
1623 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1624
1625         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
1626         BUILT_IN_STRNCASECMP): New.
1627         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
1628         and strndup.
1629
1630 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
1631
1632         PR target/14812
1633         * arm.md (addsi3_compare0_for_combiner): Delete.
1634         (addsi3_compare0_scratch_for_combiner): Delete.
1635         (cmpsi_neg_shiftsi): Delete.
1636         (compare_negsi_si): New pattern.
1637         (cmpsi_negshiftsi_si): New pattern.
1638         (negated_cbranchsi4): Restrict to equality_operator.
1639         
1640         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
1641         template.
1642
1643 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
1644
1645         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
1646         Fix comment typos.
1647
1648         * doc/install.texi: Fix a typo.
1649
1650 2005-04-03  Steven Bosscher  <stevenb@suse.de>
1651
1652         PR middle-end/20648
1653         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
1654         a computed goto if the edge to the computed goto block has
1655         incoming abnormal edges.  Clarify how the function works.
1656
1657 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1658
1659         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
1660         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
1661         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
1662         hash_scan_set, reg_set_between_after_reload_p,
1663         reg_used_between_after_reload_p, get_avail_load_store_reg,
1664         eliminate_partially_redundant_load): Likewise.
1665         * postreload.c (reload_cse_simplify_set,
1666         reload_combine_note_use): Likewise.
1667         * predict.c (predict_insn, expected_value_to_br_prob,
1668         propagate_freq, expensive_function_p): Likewise.
1669         * print-rtl.c (print_rtx): Likewise.
1670         * profile.c (instrument_edges, instrument_values,
1671         compute_branch_probabilities, branch_prob, union_groups,
1672         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
1673         * protoize.c (in_system_include_dir, file_could_be_converted,
1674         file_normally_convertible, gen_aux_info_file, seek_to_line,
1675         do_cleaning): Likewise.
1676         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
1677         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
1678         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1679
1680 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
1681
1682         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
1683         * modulo-sched.c (undo_replace_buff_elem): New structure.
1684         (kernel_number_of_cycles, ps_unschedule_node,
1685         undo_generate_reg_moves,free_undo_replace_buff,
1686         undo_permute_partial_schedule,  loop_single_full_bb_p,
1687         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
1688         build_loops_structure, get_sched_window): New.
1689         (generate_reg_moves): Return undo_replace_buff_elem and other
1690         fixes.
1691         (generate_prolog_epilog): Remove old loop versioning.
1692         (sms_schedule): Use loop information and loop_version.
1693         (sms_schedule_by_order): Split part of it to get_sched_window.
1694         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
1695         cfg_layout_finalize and free_dominance_info before/after SMS.
1696
1697 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
1698
1699         * cfghooks.c (lv_flush_pending_stmts,
1700         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
1701         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
1702         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
1703         lv_add_condition_to_bb,
1704         lv_adjust_loop_header_phi, extract_cond_bb_edges,
1705         flush_pending_stmts): New in cfg_hooks structure.
1706         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
1707         extract_cond_bb_edges, lv_adjust_loop_header_phi,
1708         lv_add_condition_to_bb): New declarations.
1709         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
1710         bool.
1711         (loop_version): Declare.
1712         * cfgloopmanip.c (cfghooks.h): Include.
1713         (duplicate_loop_to_header_edge): Change return type to bool.
1714         (loop_version, lv_adjust_loop_entry_edge): Move here.
1715         * cfgrtl.c (cfgloop.h): Include.
1716         (rtl_verify_flow_info_1): Fix.
1717         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
1718         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
1719         initialization.
1720         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
1721         tree_lv_add_condition_to_bb): New.
1722         (tree_cfg_hooks): Add new hooks to initialization.
1723         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
1724         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
1725
1726 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
1727
1728         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
1729         xstormy16_below100_or_register,
1730         xstormy16_splittable_below100_or_register, and
1731         nonimmediate_nonstack_operand.
1732
1733         * config/stormy16/stormy16-protos.h: Remove the prototypes for
1734         xstormy16_ineqsi_operator, equality_operator,
1735         inequality_operator, shift_operator,
1736         xstormy16_below100_operand, xstormy16_below100_or_register,
1737         xstormy16_splittable_below100_or_register,
1738         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
1739         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
1740         equality_operator, inequality_operator,
1741         xstormy16_below100_operand, xstormy16_below100_or_register,
1742         xstormy16_splittable_below100_or_register,
1743         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
1744         nonimmediate_nonstack_operand, shift_operator): Move to
1745         predicates.md.
1746         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
1747         * config/stormy16/stormy16.md: Include predicates.md.
1748         * config/stormy16/predicates.md: New.
1749
1750 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
1751
1752         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
1753         small_int, large_int, reg_or_0_operand, simple_memory_operand,
1754         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
1755         move_operand, power_of_2_operand): Move to predicates.md.
1756         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
1757         PREDICATE_CODE): Remove.
1758         * config/iq2000/iq2000.md: Include predicates.md.
1759         * config/iq2000/predicates.md: New.
1760
1761 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
1762
1763         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
1764         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
1765         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
1766         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
1767         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
1768         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
1769         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
1770         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
1771         (TARGET_M68HC11): Delete.
1772         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
1773         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
1774         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
1775         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
1776         (nb_soft_regs): Delete.
1777         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
1778         (m68hc11_override_options): Remove the code that caters for MASK_M6811
1779         and MASK_M6812 being set simultaneously.  Change the code that sets
1780         the default m68hc11_soft_reg_count to use integers instead of strings.
1781         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
1782         m68hc11_soft_reg_count (which now has an int type) as the number
1783         of soft registers.
1784         * config/m68hc11/m68hc11.opt: New file.
1785
1786 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
1787
1788         * config/fr30/fr30.h (PREDICATE_CODES): Remove
1789         fp_displacement_operand, sp_displacement_operand.
1790
1791         * config/m68hc11/m68hc11-protos.h: Add a prototype for
1792         m68hcc_auto_inc_p.
1793         Remove the prototypes for tst_operand, cmp_operand,
1794         stack_register_operand, d_register_operand,
1795         hard_addr_reg_operand, splitable_operand,
1796         m68hc11_logical_operator, m68hc11_arith_operator,
1797         m68hc11_non_shift_operator, m68hc11_shift_operator,
1798         m68hc11_unary_operator, m68hc11_eq_compare_operator,
1799         non_push_operand, hard_reg_operand, and
1800         reg_or_some_mem_operand.
1801         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
1802         extern.
1803         (tst_operand, cmp_operand, non_push_operand,
1804         splitable_operand, reg_or_some_mem_operand,
1805         stack_register_operand, d_register_operand,
1806         hard_addr_reg_operand, hard_reg_operand,
1807         m68hc11_eq_compare_operator, m68hc11_logical_operator,
1808         m68hc11_arith_operator, m68hc11_non_shift_operator,
1809         m68hc11_shift_operator, m68hc11_unary_operator): Move to
1810         predicates.md.
1811         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
1812         * config/m68hc11/m68hc11.md: Include predicates.md.
1813         * config/m68hc11/predicates.md: New.
1814
1815 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
1816
1817         PR debug/19345
1818         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
1819         change checked in along with 2005-03-03's patch for debug/20253.
1820         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
1821         (remap_decl): Insert type decl in map earlier.
1822
1823 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
1824
1825         PR tree-optimization/20640
1826         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
1827         post-dominator if it has phi nodes.
1828         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
1829         before dead statements.
1830
1831 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
1832
1833         PR middle-end/20491
1834         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
1835
1836 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
1837
1838         PR rtl-optimization/20290
1839         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
1840         in every iteration if the entry point is the exit test.
1841
1842 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
1843
1844         * config/cris/cris.md (attribute "length"): Define.
1845
1846 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
1847
1848         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
1849         (word_offset_memref_operand): New.
1850         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
1851         (indexed_or_indirect_operand): Delete.
1852         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
1853         (indexed_or_indirect_operand): Delete.
1854
1855         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
1856
1857         PR 20650
1858         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
1859         a register.
1860
1861         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
1862         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
1863
1864 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1865
1866         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
1867
1868 2005-04-01  Ian Lance Taylor  <ian@airs.com>
1869
1870         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
1871         (rus, prus): Remove static variables.
1872         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
1873         (process_command): Permit report_times and use_pipes together.
1874
1875 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
1876
1877         * c-decl.c (validate_proto_after_old_defn): Look at
1878         TYPE_MAIN_VARIANT of argument types.
1879
1880 2005-04-01  Paul Brook  <paul@codesourcery.com>
1881
1882         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
1883         (arm_output_function_epilogue): Allow call_via_SP.
1884         (thumb_call_via_reg, arm_file_end): Ditto.
1885         * config/arm/arm.h (struct machine_function): Include space for SP.
1886         (thumb_call_via_label): Update declaration.
1887
1888 2005-04-01  Ian Lance Taylor  <ian@airs.com>
1889
1890         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
1891         doing a peephole optimization, once again put any notes in the
1892         proper position.
1893
1894 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
1895
1896         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
1897
1898 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
1899
1900         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
1901         (block_alloc, find_free_reg): Likewise.
1902         * loop-doloop.c (doloop_modify): Likewise.
1903         * loop-invariant.c (record_use): Likewise.
1904         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
1905         get_iv_value, canon_condition, eliminate_implied_condition,
1906         eliminate_implied_condition, simplify_using_initial_values,
1907         shorten_into_mode, canonicalize_iv_subregs,
1908         iv_number_of_iterations): Likewise.
1909         * loop-unroll.c (expand_var_during_unrolling): Likewise.
1910         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
1911         unswitch_loop): Likewise.
1912         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
1913         move_movables, replace_call_address, find_and_verify_loops,
1914         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
1915         record_giv, final_giv_value, general_induction_var,
1916         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
1917         loop_giv_dump): Likewise.
1918
1919         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
1920         GCOV_CHECK_WRITING): Remove.
1921         (gcov_position, gcov_rewrite): Use gcc_assert.
1922         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
1923         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
1924         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
1925         gcc_assert.
1926
1927 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
1928
1929         * tree-inline.c: Fix a typo.
1930
1931 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
1932
1933         * configure.ac (enable-checking): Explicitly set all variables for
1934         collective switch values.  Alphabetize variables. Rename
1935         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
1936         synonym for 'no'.
1937         * doc/install.texi (enable-checking): Update documentation.
1938         * configure: Rebuilt.
1939
1940 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
1941
1942         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
1943         possible.
1944
1945 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
1946
1947         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
1948         Also reject cases where this pattern will cause load delay stalls
1949         unless optimizing for size and it will produce a shorter sequence.
1950         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
1951         variants to avoid pre-adjusting the base when possible.
1952
1953 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
1954
1955         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
1956         the frame and argument pointers.
1957         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
1958         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
1959         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
1960         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
1961         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
1962         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
1963
1964 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
1965
1966         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
1967         with entry for selectany attribute.
1968         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
1969         Declare.
1970         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
1971         (i386_pe_asm_named_section): Handle sections generated by
1972         selectany attribute.
1973         * doc/extend.texi (selectany): Document attribute.
1974
1975 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
1976             Jan Hubicka  <jh@suse.cz>
1977
1978         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
1979         to fix addresses involving EBP and ESP.
1980         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
1981         for SUBREGed registers.
1982         (legitimate_address_p): Accept SUBREGed registers.
1983
1984 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
1985
1986         PR c++/19406
1987         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
1988         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
1989         for FIELD_DECLs.
1990
1991 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
1992
1993         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
1994
1995 2005-04-01  James E Wilson  <wilson@specifixinc.com>
1996
1997         PR c++/20505
1998         * dwarf2out.c (rtl_for_decl_init): New function.
1999         (rtl_for_decl_location): Extracted from here.
2000         (tree_add_const_value_attribute): Call rtl_for_decl_init and
2001         add_const_value_attribute.  Delete initializer_constant_valid_p call.
2002
2003 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2004
2005         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
2006         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
2007         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
2008         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
2009         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
2010         config/i386/i386.md, config/rs6000/predicates.md,
2011         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
2012         config/s390/s390.c, config/stormy16/stormy16.c,
2013         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
2014         typos.
2015
2016 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
2017
2018         PR c/17855
2019         * gimplify.c (gimplify_expr): Create a temporary for lvalue
2020         COND_EXPR and CALL_EXPR.
2021
2022 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2023
2024         PR target/20632
2025         * genautomata.c (first_cycle_unit_presence): Check all alternative
2026         states for unit presence.
2027
2028         * doc/md.texi: Remove remark about impossibility to query unit
2029         presence in non nondeterministic automaton state.
2030         
2031         * config/ia64/ia64.c (get_template): Change order of unit querying.
2032
2033 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2034
2035         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
2036         obsolete comment.
2037
2038 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
2039
2040         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
2041         flag for edges outside any loops.
2042
2043 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
2044
2045         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
2046
2047 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2048
2049         * tree-ssa-alias.c: Follow spelling conventions.
2050         * doc/tree-ssa.texi: Fix a typo.
2051
2052 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
2053
2054         * postreload-gcse.c: Include target.h.
2055         (gcse_after_reload_main): Return early if we cannot modify jumps.
2056         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
2057
2058 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
2059
2060         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
2061         expensive operations.
2062
2063 2005-03-31  Ian Lance Taylor  <ian@airs.com>
2064
2065         * collect2.c (lderrout): New variable.
2066         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
2067         if it is set, to stderr.
2068         (handler): Unlink lderrout if it is set.
2069         (dump_file): Add "to" parameter.  Change all callers.
2070         (main): Initialize lderrout.
2071         (collect_execute): Add errname parameter.  Change all callers.
2072         Rename redir parameter to outname.  Never pass
2073         PEX_STDERR_TO_STDOUT to pex_run.
2074         * collect2.h (collect_execute, dump_file): Update declarations.
2075         * tlink.c (tlink_execute): Add errname parameter.  Change all
2076         callers.
2077         (do_tlink): Check lderrout as well as ldout.
2078
2079 2005-03-31  Caroline Tice  <ctice@apple.com>
2080
2081         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
2082         (bb-reorder.o): Add errors.h to list of requirements.
2083         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
2084         profiledbootstrap flags.
2085         * bb-reorder.c (errors.h): Add new include.
2086         (struct bbro_basic_block_data_def): Add new field, in_trace.
2087         (add_unlikely_executed_notes):  Remove function.
2088         (mark_bb_for_unlikely_executed_section): Remove function.
2089         (insert_section_boundary_note): New function.
2090         (verify_hot_cold_block_grouping): New function.
2091         (push_to_next_round_p): Remove variables and tests that push all
2092         cold blocks to last round.
2093         (find_traces): Remove code that added extra round of trace finding
2094         when doing partitioning.
2095         (find_traces_1_round) :  Remove variable last_round;  add code to 
2096         update new struct field, in_trace; correct trace_length where it was 
2097         incorrect before (after call to copy_bb); change code that pushed all 
2098         cold blocks to last round. Instead verify that all blocks going into 
2099         a trace belong in the same partition.
2100         (connect_traces): Modify to connect the traces in two passes, if the
2101         function contains both hot and cold blocks.  The first pass connects 
2102         all the traces for blocks in the partition that the first block in 
2103         the function belongs to; the second pass connnects all the traces 
2104         containing blocks that belong in the other partition.
2105         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
2106         code that automatically put the first block in a function into the
2107         hot partition if the function had any hot blocks.
2108         (fix_crossing_unconditional_branches): Check number of succ edges 
2109         before attempting to get one.
2110         (fix_edges_for_rarely_executed_code):  Update comment describing
2111         function.
2112         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
2113         remove call to add_unlikely_executed_notes; add call to 
2114         verify_hot_cold_block_grouping.
2115         (duplicate_computed_gotos): Don't change computed goto if it's a 
2116         crossing edge.
2117         (partition_hot_cold_basic_blocks):  Update function comment.
2118         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from 
2119         condition.
2120         (try_forward_edges): Likewise.
2121         (merge_blocks_move_predecessor_nojumps): Likewise.
2122         (merge_blocks_move_successor_nojumps): Likewise.
2123         (merge_blocks_move): Likewise.
2124         (try_crossjump_bb): Likewise.
2125         * cfglayout.c (update_unlikely_executed_notes): Remove function.
2126         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
2127         notes to cold bb's; remove call to update_unlikely_executed_notes.
2128         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2129         NOTE_INSN_SWITCH_TEXT_SECTIONS.
2130         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
2131         function declaration.
2132         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
2133         from consideration.
2134         (rtl_can_merge_blocks): Remove redundancy from condition.
2135         (try_redirect_by_replacing_jump): Likewise.
2136         (force_nonfallthru_and_redirect): Remove code for adding
2137         UNLIKELY_EXECUTED_CODE notes to cold bb's.
2138         (commit_one_edge_insertion): Likewise.
2139         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
2140         * dbxout.c (FORCE_TEXT): Replace function_section with 
2141         current_function_section.
2142         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
2143         function, switch_text_section.
2144         (struct xcoff_debug): Likewise.
2145         (dbxout_function_end): Add code to put out label diffs for both
2146         hot and cold sections.
2147         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
2148         for new debug_hooks funciton, switch_text_section..
2149         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
2150         switch_text_section.
2151         * dwarf2out.c (struct dw_fde_struct):  Add five new fields: 
2152         dw_fde_hot_section_label, dw_fde_hot_section_end_label, 
2153         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and 
2154         dw_fde_switched_sections.
2155         (output_call_frame_info):  Add test to see if function switches text
2156         sections in the middle; if so, use appropriate extra hot and cold 
2157         section labels to compute size deltas for the hot and cold sections.
2158         (dwarf2out_begin_prologue): Add code to initialize new fields in 
2159         dw_fde_struct.
2160         (dwarf2out_switch_text_section): New function (invoked through 
2161         debug_hook); updates new fields in dw_fde_struct appropriately and
2162         increments separate_line_info_table_in_use.
2163         (dwarf2_debug_hooks): Initialize switch_text_section function to be
2164         dwarf2out_switch_text_section.
2165         (struct var_loc_node): Add new field, section_label.
2166         (output_aranges): Add code to check whether in hot or cold section and
2167         use the appropriate label in calculating deltas.
2168         (output_ranges): Likewise.
2169         (output_line_info): Add code to check which section we're in and
2170         use appropriate hot/cold label.
2171         (add_location_or_constant_value_attribute): Likewise.
2172         (gen_subprogam_die): Modify arange attributes to use correct labels.
2173         (dwarf2out_begin_block): Change call to function_section into call to
2174         current_function_section.
2175         (dwarf2out_end_block): Likewise.
2176         (dwarf2out_source_line): Likewise.
2177         (dwarf2out_var_location): Add code to check whether in hot or cold 
2178         section and use the appropriate label.
2179         * except.c (output_function_exception_table): Change call to 
2180         function_section into call to current_function_section.
2181         * final.c (profile_function): Likewise.
2182         (scan_ahead_for_unlikely_executed_note): Remove function.
2183         (final_scan_insn):  Remove calls to 
2184         scan_ahead_for_unlikely_executed_note, and related code for switching 
2185         to cold section, except for the single time 
2186         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to 
2187         debug_hooks->switch_text_sections; replace appropriate calls to 
2188         function_section with calls to current_function_section.
2189         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add 
2190         test_bb to condition.
2191         (find_if_case_2): Likewise.
2192         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2193         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
2194         * opts.c (decode_options): Change warning about hot/cold partitioning
2195         with exceptionss to inform (so as not to cause bootstrap failures);
2196         remove warning about partitioning with DWARF debug info.
2197         * output.h (current_function_section): Add new function decl.
2198         (insert_section_boundary_note): Likewise.
2199         (enum in_section): Move this declaration here from varasm.c.
2200         (unlikely_section_label): Likewise.
2201         (unlikely_text_section_name): Likewise.
2202         (last_text_section_name): New global variable.
2203         (last_text_section): Likewise.
2204         (hot_section_label): Likewise.
2205         (hot_section_end_label): Likewise.
2206         (cold_section_end_label): Likewise.
2207         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
2208         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
2209         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
2210         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note 
2211         insn from consideration.
2212         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function, 
2213         switch_text_section.
2214         * varasm.c (basic-block.h): Add new include.
2215         (unlikely_section_label_printed): Remove global variable.
2216         (unlikely_section_label): Make global variable not be static any more.
2217         (unlikely_text_section_name): Likewise.
2218         (hot_section_end_label): New global variable (not static)
2219         (first_function_block_is_cold): Likewise.
2220         (hot_section_label): Likewise.
2221         (cold_section_end_label): Likewise..
2222         (last_text_section): New global variable, not static.
2223         (last_text_section_name): New global variable, not static.
2224         (initialize_cold_section_name): New function.
2225         (enum in_section): Move declaration to output.h.
2226         (text_section): Update last_text_section.
2227         (unlikely_text_section): Replace code to determine cold section name 
2228         with call to initialize_cold_section_name; Add code to update 
2229         last_text_section; remove code for printing out label.
2230         (named_section_real): Add code to update last_text_section and 
2231         last_text_section_name as appropriate.
2232         (function_section): Change test for 'unlikely' to depend on
2233         first_function_block_is_cold (moved old test to 
2234         current_function_section).
2235         (current_function_section): New function.
2236         (assemble_start_function): Move code that frees 
2237         unlikely_text_section_name; initialize hot_section_end_label; 
2238         print hot and cold section labels at the start of the function; 
2239         set first_function_block_is_cold, if appropriate; initialize l
2240         ast_text_section; add call to insert_section_boundary_note.
2241         (assemble_end_function):  Add code to write out hot and cold section
2242         end labels.
2243         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
2244         switch_text_section.
2245         * config/darwin.c (machopic_select_section): Replace incorrect 
2246         function in base_funs; update reloc for cold sections if necessary.
2247         * config/darwin.h (SECTION_FUNCTION):  Add code to update 
2248         last_text_section if appropriate.
2249         (text_unlikely_section): Remove.
2250         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
2251         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
2252         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
2253         partitioning for this architecture.
2254
2255 2005-03-31  Olivier Hainque  <hainque@adacore.com>
2256
2257         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
2258         defined and non-zero.
2259
2260 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2261
2262         PR c++/18644
2263         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
2264         semantics. 
2265
2266 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
2267
2268         PR target/20611
2269         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
2270         label operand.  Remove (use (unspec..)).  Don't emit a label on
2271         the offset word.
2272         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
2273         generate inline label for load_toc_v4_PIC_1b.
2274         (rs6000_emit_load_toc_table): Likewise.
2275
2276 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2277
2278         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
2279         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
2280
2281 2005-03-29  Devang Patel  <dpatel@apple.com>
2282
2283         * tree-sra.c (decide_block_copy): Disable scalarization of
2284         sub-elements.
2285         
2286 2005-03-30  Stuart Hastings  <stuart@apple.com>
2287             Dale Johannesen  <dalej@apple.com>
2288
2289         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
2290         * print-tree.c (print_node):  Add case STATEMENT_LIST.
2291
2292 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
2293
2294         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
2295         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
2296         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
2297         is given with "powerpc64*" or "all", or when --with-cpu chooses
2298         a 64-bit cpu.
2299
2300 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
2301
2302         PR debug/20268
2303         * dwarf2out.c (add_high_low_attributes): New function, extracted from
2304         gen_lexical_block_die.
2305         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
2306
2307 2005-03-31  Jan Hubicka  <jh@suse.cz>
2308
2309         2004-11-02  Jan Hubicka  <jh@suse.cz>
2310
2311         * cgraph.c (cgraph_varpool_node_name): New function.
2312         (dump_cgraph_varpool_node): New function.
2313         (dump_varpool): New function.
2314         * cgraphunit.c (cgraph_optimize): Dump varpool.
2315
2316         2004-10-16  Jan Hubicka  <jh@suse.cz>
2317
2318         * cgraph.c (decide_is_variable_needed): New function.
2319         (cgraph_varpool_finalize_decl): Use it.
2320         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
2321         unit-at-a-time.
2322         * final.c (output_addr_const): Do not call mark_referenced.
2323         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
2324         always go via cgraph.
2325         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
2326         (check_global_declarations): Ifdef out code clearing DECL_RTL.
2327         * tree-optimize.c (execute_inline): Mark functions called.
2328         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
2329
2330         2004-10-11  Jan Hubicka  <jh@suse.cz>
2331
2332         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
2333         (cgraph_varpool_last_needed_node): New static variable.
2334         (enqueue_needed_varpool_node): Break out from ...; add items to the
2335         end of queue; update first pointers.
2336         (cgraph_varpool_mark_needed_node): ... here.
2337         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
2338         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
2339         * cgraph.h (cgraph_varpool_node): Add analyzed field.
2340         (cgraph_varpool_first_unanalyzed_node): Declare.
2341         * cgraphunit.c: Include output.h.
2342         (cgraph_varpool_analyze_pending_decls): New function.
2343         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
2344         for errors, analyze pending decls.
2345         (cgraph_finalize_compilation_unit): Only analyze decls.
2346         (cgraph_optimize): Assemble the decls after expanding.
2347
2348 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
2349
2350         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
2351         subvars get marked properly in tags for grouping.
2352         (add_pointed_to_var): Mark only actual pointed to
2353         variables/subvars in addresses needed.
2354         (create_overlap_variables_for): Clear call clobbered on original
2355         variable.
2356         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
2357         addresable vars with subvars into list.
2358         * tree-ssa.c (verify_ssa_name): Verify original is not used where
2359         subvar should be.
2360
2361 2005-03-30  Richard Henderson  <rth@redhat.com>
2362
2363         * cgraph.h (struct cgraph_node): Add alias.
2364         * varasm.c (assemble_alias): Set it.
2365         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
2366         avoid calling cgraph_expand_function.
2367
2368 2005-03-30  Tom Tromey  <tromey@redhat.com>
2369
2370         * tree.def (FILE_TYPE): Removed.
2371         * typeclass.h (enum type_class): Removed file_type_class.
2372         * dwarf2out.c (is_base_type): Updated.
2373         (gen_type_die): Likewise.
2374         * dbxout.c (dbxout_type): Updated.
2375         * builtins.c (type_to_class): Updated.
2376         * tree.c (type_contains_placeholder_1): Updated.
2377         * config/sparc/sparc.c (sparc_type_code): Updated.
2378         * config/ia64/ia64.c (hfa_element_mode): Updated.
2379         * expr.c (count_type_elements): Updated.
2380         * stor-layout.c (layout_type): Updated.
2381         * tree-inline.c (remap_type): Updated.
2382         * tree-pretty-print.c (dump_generic_node): Updated.
2383
2384 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
2385
2386         * builtins.c (expand_builtin_powi): Fix mode of
2387         2nd argument to match int.
2388         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
2389         2nd argument type to int.
2390         * libgcc2.c: Change prototype of __powi* functions to use
2391         int.
2392
2393 2005-03-30  Dale Johannesen  <dalej@apple.com>
2394
2395         PR middle-end/19225
2396         * calls.c (expand_call):  Flush pending deferrals before
2397         throwing call.
2398
2399 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
2400
2401         PR c/772
2402         PR c/17913
2403         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
2404         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
2405         c_label_context, label_context_stack): New.
2406         * c-decl.c (define_label): Check for jumps into statement
2407         expressions.  Add label to list of defined labels.
2408         (start_function): Push context on label_context_stack.
2409         (finish_function): Pop context from label_context_stack.
2410         * c-typeck.c (label_context_stack): New.
2411         (c_finish_goto_label): Check for jumps into statement
2412         expressions.  Add label to list of jumped to labels.
2413         (struct c_switch): Add blocked_stmt_expr.
2414         (c_start_case): Initialize it.
2415         (do_case): Check it.
2416         (c_finish_case): Verify !blocked_stmt_expr.
2417         (c_begin_stmt_expr):  Push context on label_context_stack.
2418         Increment blocked_stmt_expr.  Mark labels jumped to from outside
2419         as undefinable.
2420         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
2421         defined in the statement expression and no longer jumpable to.
2422         Mark labels jumped to from just outside the statement expression
2423         as again definable.  Pop context from label_context_stack.
2424         * doc/extend.texi (Statement Exprs): Update.
2425
2426 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
2427
2428         PR c/20368
2429         * c-decl.c (start_function): Check for old_decl being
2430         error_mark_node.
2431
2432 2005-03-30  Ian Lance Taylor  <ian@airs.com>
2433
2434         * final.c (final): Remove prescan parameter.  Change all callers.
2435         (final_scan_insn): Remove prescan parameter.  Change all callers.
2436
2437 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
2438
2439         * tree-vectorizer.c: Fix comment typos.
2440
2441 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
2442
2443         * tree-scalar-evolution.c (instantiate_parameters_1): Return
2444         as soon as a chrec_dont_know is detected.
2445
2446 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
2447
2448         Merge from csl-arm-branch.
2449         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
2450
2451         * tlink.c (recompile_files): Do not assume that "rename" can
2452         overwrite an existing file.
2453
2454 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
2455
2456         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
2457         * gcc/configure: Regenerate.
2458
2459 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
2460
2461         * doc/install.texi: Update binutils requirement for powerpc*-linux.
2462
2463         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
2464
2465         * calls.c (struct arg_data): Update "partial" comment.
2466         (load_register_parameters): Update "nregs" comment.
2467
2468 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
2469
2470         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
2471         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
2472         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
2473         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
2474         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
2475         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
2476         than target_flags & 0.
2477         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
2478         (iq2000_arch, iq2000_parse_cpu): Delete.
2479         (TARGET_HANDLE_OPTION): Override default.
2480         (iq2000_handle_option): New function.
2481         (override_options): Remove -march= and -mcpu= handling.
2482         * config/iq2000/iq2000.opt: New file.
2483
2484 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
2485
2486         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
2487         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
2488         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
2489         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
2490         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
2491         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
2492         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
2493         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
2494         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
2495         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
2496         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
2497         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
2498         (c4x_rpts_cycles_string, c4x_cpu_version_string)
2499         (TARGET_OPTIONS): Delete.
2500         (c4x_rpts_cycles, c4x_cpu_version): Declare.
2501         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
2502         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
2503         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
2504         (c4x_cpu_version_string): Delete.
2505         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2506         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
2507         equivalent -mcpu= option.
2508         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
2509         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
2510         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
2511         or clearing the appropriate MASK_* bit.
2512         (c4x_file_start): Use c4x_cpu_version.
2513         * config/c4x/c4x.opt: New file.
2514
2515 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
2516
2517         * doc/options.texi: Document the new MaskExists flag.
2518         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
2519         if the option has the MaskExists flag.
2520
2521 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
2522
2523         * opt-functions.awk (flag_set_p, test_flag): New functions.
2524         (switch_flags): Use them.
2525         * opth-gen.awk: Use flag_set_p to check for flags.
2526         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
2527
2528 2005-03-30  Ian Lance Taylor  <ian@airs.com>
2529
2530         * config.host (i[34567]86-*-mingw32*): Don't set
2531         host_can_use_collect2 to no.
2532
2533 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
2534
2535         PR target/20203
2536         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
2537         Remove convert_memory_address call duplicating that in memory_address.
2538
2539 2005-03-29  Richard Henderson  <rth@redhat.com>
2540
2541         PR c/20519
2542         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
2543         (build_compound_literal): Likewise.  Propagate decl type into the
2544         initializer.
2545         (finish_decl): Likewise.  Use new return value from complete_array_type
2546         for zero sized arrays.
2547         (complete_array_type): Move ...
2548         * c-common.c (complete_array_type): ... here.  Change first argument
2549         to pointer-to-type-node.  Consistently use sizetype for the index
2550         except for zero sized arrays.  Detect zero sized arrays for pedantic
2551         mode diagnostics.  Create a new type node instead of modifying the
2552         old node in place.
2553         * c-tree.h (complete_array_type): Move decl ...
2554         * c-common.h (complete_array_type): ... here.
2555
2556 2005-03-29  Richard Henderson  <rth@redhat.com>
2557
2558         PR tree-opt/19108
2559         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
2560
2561 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
2562
2563         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
2564         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
2565         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
2566         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
2567
2568 2005-03-29  Eric Christopher  <echristo@redhat.com>
2569
2570         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
2571         truthvalue conversion removal.
2572
2573 2005-03-29  Ian Lance Taylor  <ian@airs.com>
2574
2575         PR bootstrap/14316
2576         * collect2.c: Never include <vfork.h>.
2577         (VFORK_STRING, vfork): Don't define.
2578         (pid): Remove global variable.
2579         (handler): Call raise instead of kill (getpid(), ...).
2580         (collect_wait): Add pex parameter.  Change all callers.  Use
2581         pex_get_status rather than pwait.
2582         (do_wait): Add pex parameter.  Change all callers.
2583         (collect_execute): Return struct pex_obj * rather than void.  Use
2584         pex routines rather than pexecute.
2585         (fork_execute): Get pex_obj from collect_execute, and pass it to
2586         do_wait.
2587         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
2588         Only declare quit_handler if SIGQUIT is defined.
2589         (scan_libraries): Likewise.
2590         * collect2.h (collect_execute): Update declaration.
2591         (collect_wait): Update declaration.
2592         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
2593         pass it to collect_wait.
2594
2595 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
2596
2597         PR c/20672
2598         * c-parser.c (c_parser_compound_statement_nostart): Give error
2599         message for EOF instead of just setting parser->error.
2600
2601 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
2602
2603         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
2604         (slpeel_update_phi_nodes_for_guard1): New function.
2605         (slpeel_update_phi_nodes_for_guard2): New function.
2606         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
2607         of slpeel_update_phi_nodes_for_guard.
2608         (vectorize_loops): Remove call to loop_closed_rewrite.
2609         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
2610         assertion.
2611
2612 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
2613
2614         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
2615         (TARGET_LITTLE_ENDIAN): New macro.
2616         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
2617         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
2618         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
2619         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
2620         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
2621         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
2622         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
2623         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
2624         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
2625         (TARGET_OPTIONS): Delete.
2626         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
2627         (CACHE_FLUSH_TRAP): Turn into an integer.
2628         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
2629         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
2630         -mflush-trap is in use.
2631         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
2632         (m32r_cache_flush_trap_string): Delete.
2633         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
2634         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
2635         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
2636         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2637         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
2638         -mmodel= and -msdata= handling from...
2639         (m32r_init): ...here.
2640         * config/m32r/m32r.opt: New file.
2641
2642 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
2643
2644         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
2645         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
2646         * tree-vect-analyze.c (vect_object_analysis): additional parm
2647         pass back a "struct ptr_info_def *" with the points-to info.
2648         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
2649         statement using info returned from vect_object_analysis.
2650         * tree-vect-transform.c (update_vuses_to_preheader): New function.
2651         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
2652         for virtual uses and defs when creating a replacement vector
2653         reference.  Call duplicate_ssa_name_ptr_info to define points-to
2654         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
2655         (vectorizable_store): copy_virtual_operands and update
2656         definition statements.
2657         (vectorizable_load): copy_virtual_operands.  Remove call to
2658         mark_call_clobbered_vars_to_rename for call to "const" builtin.
2659         * tree-vectorizer.c (vectorize_loops): Remove calls to
2660         rewrite_into_ssa and bitmap_clear (vars_to_rename).
2661         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
2662         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
2663         define macro STMT_VINFO_PTR_INFO for use in accessing.
2664         * tree.h add export of duplicate_ssa_name_ptr_info.
2665         * rs6000.c (altivec_init_builtins): Declare builtin function
2666         __builtin_altivec_mask_for_load to be "const".
2667
2668 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
2669
2670         PR middle-end/20622
2671         * cgraph.h (struct cgraph_varpool_node): Add alias field.
2672         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
2673         assemble_variable on aliases.
2674         * varasm.c (assemble_alias): Set node->alias.
2675         * toplev.c (wrapup_global_declarations): Don't call
2676         rest_of_decl_compilation on aliases again.
2677
2678 2005-03-29  Paul Brook  <paul@codesourcery.com>
2679
2680         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
2681         * config/arm/arm.c (arm_dbx_register_number): New function.
2682         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
2683
2684 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2685
2686         PR middle-end/20263
2687         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
2688         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
2689
2690 2005-03-29  Dale Johannesen <dalej@apple.com>
2691
2692         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
2693         $(TREE_H) and $(COVERAGE_H).
2694         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
2695         * opts.c (common_handle_option): Enable tree-based value transforms.
2696         * toplev.c (process_options): Ditto.
2697         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
2698         refers to references to this type.
2699         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
2700         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
2701         for may_be_more, may_be_less.
2702         (rtl_gen_pow2_profiler): Adjust.
2703         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
2704         (rtl_gen_one_value_profiler): Adjust.
2705         (rtl_gen_const_delta_profiler): Adjust.
2706         * tree-profile.c (tree_gen_interval_profiler): Implement.
2707         (tree_gen_pow2_profiler): Ditto.
2708         (tree_gen_one_value_profiler): Ditto.
2709         (tree_profiling): New.
2710         (pass_tree_profile): Reference it.
2711         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
2712         tree.h, gcov-io.h.
2713         (insn_divmod_values_to_profile): Rename to
2714         rtl_divmod_values_to_profile. Adjust.
2715         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
2716         (insn_prefetch_values_to_profile): Adjust.
2717         (rtl_value_profile_transformations): Adjust.
2718         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
2719         (gen_mod_pow2): Rename to rtl_mod_pow2.
2720         (gen_mod_subtract): Rename to rtl_mod_subtract.
2721         (divmod_fixed_value_transform): Rename to
2722         rtl_divmod_fixed_value_transform.
2723         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
2724         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
2725         (rtl_find_values_to_profile): Adjust.
2726         (tree_value_profile_transformations): Implement.
2727         (tree_divmod_values_to_profile): New.
2728         (tree_values_to_profile): New.
2729         (tree_divmod_fixed_value): New.
2730         (tree_mod_pow2): New.
2731         (tree_mod_subtract): New.
2732         (tree_divmod_fixed_value_transform): New.
2733         (tree_mod_pow2_value_transform): New.
2734         (tree_mod_subtract_transform): New.
2735         (tree_find_values_to_profile): Implement.
2736         * profile.c (instrument_values):  Free histograms.
2737         (compute_value_histograms): Adjust. Implement tree version.
2738
2739 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
2740
2741         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
2742         * config/i386/i386.c (output_fix_trunc): Add new round_mode
2743         variable.  Output "fldcw" depending on round_mode.
2744         * config/i386/i386.md (UNSPEC_FIST): New.
2745         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
2746         New isns patterns to implement lrint and llrint built-ins as x87
2747         intrinsic function.
2748         (fistdi2, fist<mode>2 splitters): New splitters.
2749         (lrint<mode>2): New expanders.
2750
2751 2005-03-28  Ian Lance Taylor  <ian@airs.com>
2752
2753         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
2754         0 when calling final_scan_insn.
2755
2756 2005-03-28  Jan Hubicka  <jh@suse.cz>
2757
2758         PR middle-end/20635
2759         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
2760         as needed.
2761
2762         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
2763         types where possible.
2764
2765 2005-03-26  Per Bothner  <per@bothner.com>
2766
2767         Make -f[no-]show-column also control non-cpp diagnostics.
2768         * c.opt (fshow-column): Move option from here ...
2769         * common.opt (fshow-column): ... to here.
2770         * diagnostic.c (diagnostic_build_prefix): Only print column number
2771         if flag_show_column.
2772
2773 2005-03-27  Steven Bosscher  <stevenb@suse.de>
2774
2775         * vax-protos.h (vax_output_int_move, vax_output_int_add,
2776         vax_output_conditional_branch): New prototypes.
2777         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
2778         extracted from vax.md mov and add patterns.
2779         (vax_output_conditional_branch): New function to output conditional
2780         branch instructions.
2781         * vax.md: Use mode macros for arithmetic and mov patterns.
2782         Use code macros for the jump patterns.
2783
2784 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
2785
2786         * Makefile.in (libbackend.o): Depend on version files;
2787         add custom generation command.
2788
2789 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
2790
2791         PR target/20636
2792         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
2793         sure that we have a REG before getting its REGNO.
2794
2795 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2796
2797         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
2798         * builtins.def (BUILT_IN_STRNDUP): New.
2799
2800 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
2801
2802         PR tree-optimization/20470
2803         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
2804         ABS(x-y).
2805
2806 2005-03-25  Mike Stump  <mrs@apple.com>
2807
2808         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
2809         sized objects.
2810
2811 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
2812
2813         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
2814         Use our own structure definitions.
2815
2816         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
2817         (fix_truncdfsi2): Allow registers or memory as destination.
2818         When TARGET_PPC_GFXOPT, generate simplified pattern.
2819         (fix_truncdfsi2_internal): Use define_insn_and_split.
2820         (fix_truncdfsi2_internal_gfxopt): New.
2821         (fctiwz): Don't confuse register allocation by giving it no choices.
2822         (stfiwx): New.
2823         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
2824         (EXTRA_MEMORY_CONSTRAINT): Likewise.
2825         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
2826         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
2827
2828 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
2829
2830         * dominance.c (free_dominance_info): Speed up by freeing et
2831         data structures without maintaining other nodes.
2832         * et-forest.c (et_free_tree_force): New.
2833         * et-forest.h: Add a prototype for et_free_tree_force.
2834
2835         * tree.c (get_set_constructor_bits,
2836         get_set_constructor_bytes): Remove.
2837         * tree.h: Remove the corresponding prototypes.
2838
2839 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
2840
2841         PR target/15491
2842         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
2843         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
2844         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
2845         PRE_DEC, NEG and NOT.
2846
2847 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
2848
2849         * fold-const.c: Convert uses of fold (build (...)) to
2850         fold_buildN.
2851
2852 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
2853
2854         PR rtl-optimization/20249
2855         * cse.c (insert_regs): Do not record equivalence of registers in
2856         different modes.
2857
2858 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
2859
2860         * emit-rtl.c (reverse_comparison): Remove.
2861         * rtl.h: Remove the corresponding prototype.
2862
2863 2005-03-24  James E Wilson  <wilson@specifixinc.com>
2864
2865         * doc/install.texi (--enable-altivec): Delete docs.
2866
2867 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
2868
2869         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
2870         SFmode and DFmode before reload when
2871         flag_unsafe_math_optimizations not enabled.
2872
2873 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
2874
2875         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
2876
2877         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
2878         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
2879
2880 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
2881
2882         * configure.ac (enable-checking): Add 'runtime' option.
2883         * doc/install.texi (enable-checking): Document 'runtime' checking.
2884         * tsystem.h (gcc_assert, gcc_unreachable): Define.
2885         * config.in: Regenerated.
2886         * configure: Regenerated.
2887
2888 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
2889
2890         * optabs.h (enum optab_index): Remove OTI_llrint.
2891         (llrint_optab): Remove macro.
2892         * optabs.c (init_optabs): Remove llrint_optab initialization.
2893         * genopinit.c (optabs): Remove llrint_optab implementation.
2894         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
2895         using lrint_optab.
2896
2897 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
2898
2899         PR rtl-optimization/20532
2900         * simplify-rtx.c (simplify_binary_operation_1): Protect from
2901         overflow when adding coefficients for PLUS or MINUS.
2902         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
2903         two as multiplier.
2904
2905 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
2906
2907         * langhooks.h (truthvalue_conversion): Remove.
2908         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
2909         LANG_HOOKS_TRUTHVALUE_CONVERSION.
2910         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
2911         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
2912         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
2913
2914 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
2915
2916         * params.def: Fix a typo.
2917         * config/mips/mips.c: Follow the spelling convensions.
2918         * doc/invoke.texi: Fix typos.
2919
2920 2005-03-18  Dale Johannese  <dalej@apple.com>
2921
2922         * cp/tree.c (cp_tree_equal):  Handle SSA_NAME.
2923
2924 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
2925
2926         Fix PR tree-optimization/20601
2927
2928         * tree-ssa-pre.c (insert_aux): Add missing condition to
2929         constification.
2930
2931 2005-03-23  Ian Lance Taylor  <ian@airs.com>
2932
2933         * final.c (final_scan_insn): Don't remove no-op instructions.
2934         * reload1.c (reload): Remove simple no-op instructions even when
2935         not optimizing.
2936
2937 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
2938
2939         PR tree-optimization/20501
2940         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
2941         reporting that peeling for alignment is applied moved to...
2942         * (vect_analyze_data_refs_alignment): Here.
2943
2944 2005-03-23  Ian Lance Taylor  <ian@airs.com>
2945
2946         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
2947
2948 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2949
2950         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
2951         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
2952
2953 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
2954
2955         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
2956         imply that this is called once, independent of asms in code.
2957         Adjust to now being pased output and input lists.  Mention helper
2958         function decl_overlaps_hard_reg_set_p.
2959         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
2960         hook_tree_tree_identity and to take three trees, returning third.
2961         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
2962         prototype.
2963         * stmt.c: include hard-reg-set.h before tree.h.
2964         (decl_overlaps_hard_reg_set_p): New function, broken out from...
2965         (decl_conflicts_with_clobbers_p): Call
2966         decl_overlaps_hard_reg_set_p.
2967         (expand_asm_operands): Pass output and input lists in call to
2968         targetm.md_asm_clobbers.
2969         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
2970         hook_tree_tree_tree_tree_3rd_identity.
2971         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
2972         parameters.
2973         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
2974         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
2975         parameters, first two unused.
2976         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
2977         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
2978         in constraint letters and MOF is not mentioned as a asm-declared
2979         register in neither of the input and output lists.
2980
2981 2005-03-23  DJ Delorie  <dj@redhat.com>
2982
2983         * optabs.c (expand_binop): Make sure the first subword's result
2984         gets stored.
2985
2986 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
2987
2988         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
2989         Call c_common_truthvalue_conversion rather than
2990         lang_hooks.truthvalue_conversion.
2991         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
2992         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
2993         c-typeck.c.
2994         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
2995         c_common_truthvalue_conversion.
2996         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
2997         c_parser_conditional_expression, c_parser_binary_expression): Call
2998         c_objc_common_truthvalue_conversion.
2999         * c-typeck.c (build_unary_op): Call
3000         c_objc_common_truthvalue_conversion.
3001         (build_conditional_expr): Do not call
3002         lang_hooks.truthvalue_conversion.
3003         (build_binary_op): Call c_common_truthvalue_conversion.
3004         (c_objc_common_truthvalue_conversion): Moved from
3005         c-objc-common.c.  Call default_function_array_conversion instead
3006         of default_conversion.
3007
3008 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
3009
3010         * c-common.h (default_conversion): Remove.
3011         (perform_integral_promotions): Add.
3012         * c-tree.h (default_conversion): Add.
3013         * c-typeck.c (perform_integral_promotions): New, split out from
3014         default_conversion.
3015         * c-common.c (check_case_value): Use perform_integral_promotions,
3016         not default_conversion.
3017         (c_add_case_label): Don't continue processing case label after
3018         found to be pointer.
3019
3020 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
3021
3022         * gcc.c (do_spec_1): Do not add a -L path for a directory in
3023         the prefix list if we have already added a multilib directory
3024         based on that path.
3025         (main): Do not add MD_EXEC_PREFIX to the list of directories to
3026         search with -L.
3027
3028 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3029
3030         * reload1.c (indirect_symref_ok, reload_obstack): Make them
3031         static.
3032         * reload.h: Remove the prototype for indirect_symref_ok.
3033
3034         * reload1.c (indirect_symref_ok): Make it global.
3035         * reload.h: Add a prototype for indirect_symref_ok.
3036
3037 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3038
3039         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
3040         ashlhi3 expander.
3041
3042 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3043
3044         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
3045
3046 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
3047
3048         * c-opts.c (c_common_parse_file): Only start/end main source file
3049         if debug hooks says the writer wants it.
3050         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
3051         member.
3052         (xcoff_debug_hooks): Ditto.
3053         * debug.c (do_nothing_hooks): Ditto.
3054         * debug.h (gcc_debug_hooks): Ditto.
3055         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
3056         * sdbout.c (sdb_debug_hooks): Ditto.
3057         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
3058
3059 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
3060
3061         * doc/extend.texi: Deprecate C++ min/max operators.
3062
3063 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
3064
3065         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
3066         artificial original candidates.
3067
3068 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
3069             Jan Hubicka  <jh@suse.cz>
3070             Steven Bosscher <stevenb@suse.de>
3071
3072         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
3073         call cost based on argument sizes.
3074         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
3075         inlining.
3076         * params.def: (max-inline-inssn-single): Set to 450.
3077         (max-inline-insns-auto): Set to 90.
3078         (max-inline-insns-recursive): Set to 450
3079         (max-inline-insns-recursive-auto): Set to 450.
3080         (large-function-insns): Set to 2700.
3081         (inline-call-cost): New parameter.
3082         * tree-inline.c (estimate_move_cost): New function.
3083         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
3084         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
3085         based on arguments.
3086         * tree-inline.h (estimate_move_cost): Declare.
3087         * invoke.texi: (max-inline-inssn-single): Change default to 450.
3088         (max-inline-insns-auto): Change default to 90.
3089         (max-inline-insns-recursive): Change default to 450
3090         (max-inline-insns-recursive-auto): Change default to 450.
3091         (large-function-insns): Change default to 2700.
3092         (inline-call-cost): Document new parameter.
3093
3094 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
3095
3096         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
3097         (TARGET_DEFAULT): Delete.
3098         * config/i860/i860.opt: New file.
3099
3100 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
3101
3102         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
3103         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3104         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3105         (frv_sched_lookahead): Delete.
3106         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
3107         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
3108         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
3109         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
3110         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
3111         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
3112         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
3113         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
3114         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
3115         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
3116         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
3117         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
3118         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
3119         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
3120         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
3121         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
3122         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
3123         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
3124         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
3125         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
3126         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
3127         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
3128         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
3129         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3130         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3131         (frv_sched_lookahead): Delete.
3132         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
3133         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3134         (frv_handle_option): New function.  Move -mcpu= handling from...
3135         (frv_override_options): ...here.  Remove handling of other
3136         TARGET_OPTIONS.
3137         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
3138         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
3139         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
3140         and TARGET_NO_MULTI_CE.
3141         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
3142         !TARGET_VLIW_BRANCH.
3143         * config/frv/frv.opt: New file.
3144
3145 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3146
3147         * fold-const.c (fold_ternary): Take decomposed arguments of
3148         CALL_EXPR.
3149         (fold): Update a call to fold_ternary.
3150
3151         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
3152         * tree.h: Add corresponding prototypes.
3153
3154 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
3155
3156         PR target/20561
3157         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
3158         between jump table and its label.
3159         * final.c (shorten_branches): Handle notes in between ADDR_VEC
3160         resp. ADDR_DIFF_VEC and the label preceeding it.
3161         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
3162         is emitted in the right section.
3163
3164 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3165
3166         * fold-const.c (fold_unary, fold_binary): Update comments
3167         about arguments.
3168
3169 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
3170
3171         PR rtl-optimization/20527
3172         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
3173         REG_INC note, test that the register also isn't mentioned in PRED
3174         or SUCC.
3175
3176 2005-03-22  Ben Elliston  <bje@au.ibm.com>
3177
3178         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
3179         and definition.
3180
3181 2005-03-21  Mike Stump  <mrs@apple.com>
3182
3183         * varasm.c (default_assemble_visibility): Remove extra ().
3184
3185 2005-03-21  Roger Sayle  <roger@eyesopen.com>
3186
3187         PR middle-end/20557
3188         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
3189         to determine whether a block can be duplicated, rather than test
3190         whether the block contains noncopyable insns ourselves.
3191
3192 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3193
3194         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
3195         predicates.
3196
3197 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
3198
3199         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
3200
3201 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
3202
3203         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
3204         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
3205         * config/fr30/fr30.opt: New file.
3206
3207 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
3208
3209         Fix PR tree-optimization/20542
3210
3211         * tree-flow-inline.h (overlap_subvar): Move to here.
3212         * tree-ssa-operands.c: From here.
3213         * tree-flow.h (overlap_subvar): Declare.
3214         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
3215         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
3216         for variables with subvars.
3217
3218 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
3219
3220         PR middle-end/20177
3221         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
3222         * modulo-sched.c (const_iteration_count): Return on NULL
3223         pre-header.
3224         (print_node_sched_params): Return on NULL dump_file.
3225         (generate_reg_moves): Handle reg-anti dependencies and disregard
3226         closing branch when generating register moves.
3227         (sms_schedule): Mark the SMSed block dirty.
3228         * passes.c (rest_of_handle_sms): Call update_life_info for all
3229         basic-blocks.
3230         * testsuite/gcc.dg/20050321-1.c: New test.
3231
3232 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
3233
3234         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
3235         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3236         movqi_internal): Likewise.
3237
3238 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
3239
3240         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
3241         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
3242         xtensa_b4const): Delete prototypes.
3243         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
3244         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
3245         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
3246         xtensa_extra_constraint): New prototypes.
3247         (add_operand, arith_operand, nonimmed_operand, mem_operand,
3248         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3249         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
3250         move_operand, const_float_1_operand, fpmem_offset_operand,
3251         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
3252         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
3253         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
3254         argument type to HOST_WIDE_INT.
3255         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
3256         xtensa_mask_immediate): Likewise.
3257         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
3258         Likewise.  Also make these functions static.
3259         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
3260         (xtensa_const_ok_for_letter_p): New.
3261         (add_operand, arith_operand, nonimmed_operand, mem_operand,
3262         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3263         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
3264         move_operand, const_float_1_operand, fpmem_offset_operand,
3265         branch_operator, ubranch_operator, boolean_operator): Move to
3266         predicates.md.
3267         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
3268         (xtensa_mem_offset): Change return type to bool.
3269         (xtensa_extra_constraint): New.
3270         (gen_int_relational): Update type of const_range_p function pointer.
3271         Use xtensa_b4const_or_zero.
3272         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
3273         xtensa_const_ok_for_letter_p.  Update comments.
3274         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
3275         (PREDICATE_CODES): Delete.
3276         * config/xtensa/xtensa.md: Include predicates.md.
3277         * config/xtensa/predicates.md: New file.
3278
3279 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3280
3281         * config/v850/v850-protos.h: Remove the prototypes for
3282         reg_or_int9_operand, reg_or_const_operand,
3283         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
3284         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
3285         movsi_source_operand, power_of_two_operand,
3286         not_power_of_two_operand, special_symbolref_operand,
3287         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
3288         register_is_ok_for_epilogue.
3289         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
3290         reg_or_int9_operand, reg_or_const_operand,
3291         call_address_operand, special_symbolref_operand,
3292         movsi_source_operand, power_of_two_operand,
3293         not_power_of_two_operand, register_is_ok_for_epilogue,
3294         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
3295         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
3296         predicates.md.
3297         * config/v850/v850.h (PREDICATE_CODES): Remove.
3298         * config/v850/v850.md: Include predicates.md.
3299         * config/v850/predicates.md: New.
3300
3301 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
3302
3303         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
3304         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
3305         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
3306         (itoolsdir, itoolsdatadir): Move definition above new first use.
3307         (install-itoolsdirs): New rule.
3308         (install-mkheaders): Depend on install-itoolsdirs, not
3309         install-include-dir.
3310
3311 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3312
3313         * tree-into-ssa.c: Remove obsolete comments.
3314
3315 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
3316
3317         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
3318         unrolling if -fpeel-loops is specified, too.
3319         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3320         Remove superfluous check for flag_unroll_loops.
3321
3322 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
3323
3324         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
3325         (lrint_optab, llrint_optab): Define corresponding macros.
3326         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
3327         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
3328         pattern and llrint_optab using llrintdi2 patterns.
3329         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
3330         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
3331         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
3332         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
3333         flag_unsafe_math_optimizations is set.
3334
3335 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
3336
3337         * combine.c (combine_simplify_rtx, simplify_if_then_else,
3338         simplify_logical, if_then_else_cond, known_cond,
3339         simplify_comparison): Adjust calls to reverse_comparison.
3340         Don't use combine_reversed_comparison_code).
3341         (combine_reversed_comparison_code): Remove.
3342         (reversed_comparison): Using reversed_comparison_code, move it...
3343         * jump.c (reversed_comparison): ... here.
3344         * rtl.h (reversed_comparison): Add prototype.
3345
3346 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3347
3348         * builtins.c (fold_builtin): Take decomposed arguments of
3349         CALL_EXPR.
3350         * fold-const.c (fold_ternary): Update a call to fold_builtin.
3351         * gimplify.c (gimplify_call_expr): Likewise.
3352         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
3353         * tree.h: Update the prototype of fold_builtin.
3354
3355 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
3356
3357         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
3358         * rtlhooks.c (gen_lowpart_no_emit_general): New.
3359         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
3360         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
3361  &nbs