OSDN Git Service

* config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
2
3         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4
5 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
6
7         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
8         cascaded if ... else if with a switch.
9
10 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
11
12         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
13
14 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
15
16         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
17         and TI_VA_LIST_FPR_COUNTER_FIELD.
18         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
19         * tree-pass.h (pass_stdarg): Add.
20         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
21         * tree-stdarg.c: New file.
22         * Makefile.in (OBJS-common): Add tree-stdarg.o.
23         (tree-stdarg.o): Add dependencies.
24         * function.h (struct function): Add va_list_gpr_size and
25         va_list_fpr_size fields.
26         * function.c (allocate_struct_function): Initialize them.
27
28         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
29         va_list_{g,f}pr_counter_field.
30         (ix86_setup_incoming_varargs): Don't do anything if reg_save
31         area will not be used.  Only save registers that tree-stdarg.c
32         detected they need saving.
33         (ix86_va_start): Don't set up fields that won't be used.
34
35         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
36         va_list_{g,f}pr_counter_field.
37         (setup_incoming_varargs): Don't do anything if reg_save
38         area will not be used.  Only save registers that tree-stdarg.c
39         detected they need saving.
40         (rs6000_va_start): Don't set up fields that won't be used.
41
42 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
43
44         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
45         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
46         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
47         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
48         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
49         ATTR_NONNULL_1_4): New.
50
51 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
52
53         PR tree-optimization/17697
54         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
55         cfg if needed.
56
57 2004-09-28  Per Bothner  <per@bothner.com>
58
59         * profile.c (branch_prob): Pass correct value to output_location,
60         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
61
62 2004-09-28  Richard Henderson  <rth@redhat.com>
63
64         PR 15089
65         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
66         * tree-flow.h (may_propagate_copy_into_asm): Declare.
67         * tree-ssa-ccp.c (replace_uses_in): Use it.
68         * tree-ssa-dom.c (cprop_operand): Likewise.
69
70 2004-09-28 Jeff Law  <law@redhat.com>
71
72         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
73         that no outgoing edges be left in the duplicate block.  Do no
74         update information on outgoing edges or PHI nodes in target
75         blocks here.
76         (remove_ctrl_stmt_and_useless_edges): Renamed from
77         remove_last_stmt_and_useless_edges.  Handle case where the
78         block is empty or has no control statements.  Do not update edge
79         flags here.
80         (thread_block): Create a template block rather than copying the
81         original block every time.  Create outgoing edges from the
82         duplicate blocks and update PHIs at the target of the outgoing
83         edges here.  Fix edge flags for the original block if necessary.
84         * cfghooks (duplicate_block): No longer assert that the original
85         block has incoming edges.
86
87 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
88
89         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
90         Reg Vars to enforce register allocation with general constraints.
91         (Explicit Reg Vars): Clarify relation to asm statements.
92         (Local Reg Vars): Similar.
93
94 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
95
96         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
97         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
98         build_control_flow, new_edge): Remove.
99         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
100         (bitlst, bitlst_table_last, bitlst_table): Remove.
101         (bblst): Store basic_block pointer instead of block index.
102         (bblst_table): Likewise.
103         (edgelst): Store edge pointer instead of edge index.
104         (edgelst_table, edgelst_last): New variables.
105         (extract_bitlst): Rename to ...
106         (extract_edgelst): ... this.  Return edge pointers, not indices.
107         (split_edges): Update call.
108         (rgn_edges): Store edge pointers instead of indices.
109         (edge_to_bit): Remove.
110         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
111         (SET_EDGE_TO_BIT): New macro.
112         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
113         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
114         data structures instead of haifa_edge et al.  Use edge pointers
115         instead of edge indices everywhere.
116         (compute_dom_prob_ps): Use standard CFG data structures.  Account
117         for exit edges.
118         (compute_trg_info): Likewise.
119         (propagate_deps): Likewise.
120         (debug_candidate): Account for bblst data structure change.
121         (check_live_1, update_live_1, is_pfree): Likewise.
122         (IS_REACHABLE): Use standard CFG data structures.
123         (init_ready_list): Update bblst_table/edgelst_table allocation.
124         (schedule_region): Update alloc/cleanup code to data structure
125         changes.  Use edge->aux to store per-region edge index.
126         (init_regions): No longer call build_control_flow.  Do not
127         create edge list any more.
128
129 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
130
131         * cse.c (cse_insn): Avoid creating direct non-local jumps.
132         * combine.c (can_combine_p): Likewise.
133         * local-alloc. (update_equiv_regs): Likewise.
134
135 2004-09-28  Richard Henderson  <rth@redhat.com>
136
137         PR 17531
138         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
139         Don't check VOIDmode here.  Force PLUS operands to common type.
140         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
141         Pmode if given a non pointer type.
142
143 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
144
145         PR 17531
146         * optabs.c (expand_binop): Force constants to the correct mode.
147
148 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
149
150         * config/s390/s390.c (s390_adjust_cost): Remove.
151         (TARGET_SCHED_ADJUST_COST): Do not redefine.
152         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
153         * config/s390/s390.md ("main_pool"): Use "larl" type 
154         attribute if TARGET_CPU_ZARCH.
155
156 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
157
158         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
159         variable.
160
161 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
162
163         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
164         name to the pass.
165
166 2004-09-28  Steven Bosscher  <stevenb@suse.de>
167
168         * common.opt (flag_gcse_sm): Disable by default.
169         (flag_gcse_las): Likewise.
170         (flag_web): Likewise.  Create from this file.
171         * flags.h: Remove flag_web declaration.
172         * toplev.c (flag_web): Likewise.
173         (process_options): Never set flag_web.
174
175 2004-09-28  Steven Bosscher  <stevenb@suse.de>
176
177         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
178         * tree-ssa-propagate.c: Include vec.h.
179         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
180         instead of varrays.
181         (cfg_blocks_add): Assert the block is not already in the worklist.
182         Update uses of interesting_ssa_edges and varying_ssa_edges.
183         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
184         ssa_propagate): Likewise.
185
186 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
187
188         PR c/16409
189         * c-decl.c (start_decl): Check for initializing incomplete array
190         of VLAs.
191         (build_compound_literal): Check for TYPE being error_mark_node.
192         * c-parse.in (primary): Check for VLA compound literals.
193
194 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
195
196         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
197         with --disable-checking.
198
199 2004-09-28  Devang Patel  <dpatel@apple.com>
200
201         * tree-pretty-print.c (dump_generic_node): Print vector types.
202         
203 2004-09-28  Nick Clifton  <nickc@redhat.com>
204
205         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
206         invocation of the function sh_init_cumulative_args.
207         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
208         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
209         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
210         * config/sh/sh.c (sh_init_cumulative_args): New function based
211         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
212         heuristic added to determine the setting of force_mem when a
213         library function is being called.
214
215 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
216
217         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
218         Skip constant arguments.
219
220 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
221
222         * tree-ssa-alias.c (create_name_tags): If PTR points to a
223         volatile type, mark the tag volatile.
224         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
225         volatile.
226
227 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
228
229         * tree.def (vec_cond_expr): Fix. Change 'e'
230         to tcc_expression.
231
232 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
233
234         * basic-block.h: Fix a comment typo.
235
236 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
237
238         * optabs.c, optabs.h: Fix comment typos.
239
240 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
241
242         * config/sparc/sparc.md (call_address_struct_value_sp32):
243         Properly mask the immediate field of the 'unimp' instruction.
244         (call_symbolic_struct_value_sp32): Likewise.
245
246 2004-09-24  Ben Elliston  <bje@au.ibm.com>
247             Steven Bosscher  <stevenb@suse.de>
248             Andrew Pinski  <pinskia@physics.uc.edu>
249
250         Merge from edge-vector-branch:
251         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
252         (struct edge_def): Remove pred_next, succ_next members.
253         (struct basic_block_def): Remove pred, succ members.  Add preds
254         and succs members of type VEC(edge).
255         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
256         (BRANCH_EDGE): Likewise.
257         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
258         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
259         (edge_iterator): New.
260         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
261         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
262         (FOR_EACH_EDGE): New.
263         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
264         where applicable.
265         (rotate_loop): Likewise.
266         (find_traces_1_route): Likewise.
267         (bb_to_key): Likewise.
268         (connect_traces): Likewise.
269         (copy_bb_p): Likewise.
270         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
271         (add_labels_and_missing_jumps): Likewise.
272         (fix_up_fall_thru_edges): Likewise.
273         (find_jump_block): Likewise.
274         (fix_crossing_conditional_branches): Likewise.
275         (fix_crossing_unconditional_branches): Likewise.
276         (add_reg_crossing_jump_notes): Likewise.
277         * bt-load.c (augment_live_range): Likewise.
278         * cfg.c (clear_edges): Likewise.
279         (unchecked_make_edge): Likewise.
280         (cached_make_edge): Likewise.
281         (make_single_succ_edge): Likewise.
282         (remove_edge): Likewise.
283         (redirect_edge_succ_nodup): Likewise.
284         (check_bb_profile): Likewise.
285         (dump_flow_info): Likewise.
286         (alloc_aux_for_edges): Likewise.
287         (clear_aux_for_edges): Likewise.
288         (dump_cfg_bb_info): Likewise.
289         * cfganal.c (forwarder_block_p): Likewise.
290         (can_fallthru): Likewise.
291         (could_fall_through): Likewise.
292         (mark_dfs_back_edges): Likewise.
293         (set_edge_can_fallthru_flag): Likewise.
294         (find_unreachable_blocks): Likewise.
295         (create_edge_list): Likewise.
296         (verify_edge_list): Likewise.
297         (add_noreturn_fake_exit_edges): Likewise.
298         (connect_infinite_loops_to_exit): Likewise.
299         (flow_reverse_top_sort_order_compute): Likewise.
300         (flow_depth_first_order_compute): Likewise.
301         (flow_preorder_transversal_compute): Likewise.
302         (flow_dfs_compute_reverse_execute): Likewise.
303         (dfs_enumerate_from): Likewise.
304         (compute_dominance_frontiers_1): Likewise.
305         * cfgbuild.c (make_edges): Likewise.
306         (compute_outgoing_frequencies): Likewise.
307         (find_many_sub_basic_blocks): Likewise.
308         (find_sub_basic_blocks): Likewise.
309         * cfgcleanup.c (try_simplify_condjump): Likewise.
310         (thread_jump): Likewise.
311         (try_forward_edges): Likewise.
312         (merge_blocks_move): Likewise.
313         (outgoing_edges_match): Likewise.
314         (try_crossjump_to_edge): Likewise.
315         (try_crossjump_bb): Likewise.
316         (try_optimize_cfg): Likewise.
317         (merge_seq_blocks): Likewise.
318         * cfgexpand.c (expand_gimple_tailcall): Likewise.
319         (expand_gimple_basic_block): Likewise.
320         (construct_init_block): Likewise.
321         (construct_exit_block): Likewise.
322         * cfghooks.c (verify_flow_info): Likewise.
323         (dump_bb): Likewise.
324         (delete_basic_block): Likewise.
325         (split_edge): Likewise.
326         (merge_blocks): Likewise.
327         (make_forwarder_block): Likewise.
328         (tidy_fallthru_edges): Likewise.
329         (can_duplicate_block_p): Likewise.
330         (duplicate_block): Likewise.
331         * cfglayout.c (fixup_reorder_chain): Likewise.
332         (fixup_fallthru_exit_predecessor): Likewise.
333         (can_copy_bbs_p): Likewise.
334         (copy_bbs): Likewise.
335         * cfgloop.c (flow_loops_cfg_dump): Likewise.
336         (flow_loop_entry_edges_find): Likewise.
337         (flow_loop_exit_edges_find): Likewise.
338         (flow_loop_nodes_find): Likewise.
339         (mark_single_exit_loops): Likewise.
340         (flow_loop_pre_header_scan): Likewise.
341         (flow_loop_pre_header_find): Likewise.
342         (update_latch_info): Likewise.
343         (canonicalize_loop_headers): Likewise.
344         (flow_loops_find): Likewise.
345         (get_loop_body_in_bfs_order): Likewise.
346         (get_loop_exit_edges): Likewise.
347         (num_loop_branches): Likewise.
348         (verify_loop_structure): Likewise.
349         (loop_latch_edge): Likewise.
350         (loop_preheader_edge): Likewise.
351         * cfgloopanal.c (mark_irreducible_loops): Likewise.
352         (expected_loop_iterations): Likewise.
353         * cfgloopmanip.c (remove_bbs): Likewise.
354         (fix_bb_placement): Likewise.
355         (fix_irreducible_loops): Likewise.
356         (remove_path): Likewise.
357         (scale_bbs_frequencies): Likewise.
358         (loopify): Likewise.
359         (unloop): Likewise.
360         (fix_loop_placement): Likewise.
361         (loop_delete_branch_edge): Likewise.
362         (duplicate_loop_to_header_edge): Likewise.
363         (mfb_keep_just): Likewise.
364         (create_preheader): Likewise.
365         (force_single_succ_latches): Likewise.
366         (loop_split_edge_with): Likewise.
367         (create_loop_notes): Likewise.
368         * cfgrtl.c (rtl_split_block): Likewise.
369         (rtl_merge_blocks): Likewise.
370         (rtl_can_merge_blocks): Likewise.
371         (try_redirect_by_replacing_jump): Likewise.
372         (force_nonfallthru_and_redirect): Likewise.
373         (rtl_tidy_fallthru_edge): Likewise.
374         (commit_one_edge_insertion): Likewise.
375         (commit_edge_insertions): Likewise.
376         (commit_edge_insertions_watch_calls): Likewise.
377         (rtl_verify_flow_info_1): Likewise.
378         (rtl_verify_flow_info): Likewise.
379         (purge_dead_edges): Likewise.
380         (cfg_layout_redirect_edge_and_branch): Likewise.
381         (cfg_layout_can_merge_blocks_p): Likewise.
382         (rtl_flow_call_edges_add): Likewise.
383         * cse.c (cse_cc_succs): Likewise.
384         * df.c (hybrid_search): Likewise.
385         * dominance.c (calc_dfs_tree_nonrec): Likewise.
386         (calc_dfs_tree): Likewise.
387         (calc_idoms): Likewise.
388         (recount_dominator): Likewise.
389         * domwalk.c (walk_dominator_tree): Likewise.
390         * except.c (emit_to_new_bb_before): Likewise.
391         (connect_post_landing_pads): Likewise.
392         (sjlj_emit_function_enter): Likewise.
393         (sjlj_emit_function_exit): Likewise.
394         (finish_eh_generation): Likewise.
395         * final.c (compute_alignments): Likewise.
396         * flow.c (calculate_global_regs_live): Likewise.
397         (initialize_uninitialized_subregs): Likewise.
398         (init_propagate_block_info): Likewise.
399         * function.c (thread_prologue_and_epilogue_insns): Likewise.
400         * gcse.c (find_implicit_sets): Likewise.
401         (bypass_block): Likewise.
402         (bypass_conditional_jumps): Likewise.
403         (compute_pre_data): Likewise.
404         (insert_insn_end_bb): Likewise.
405         (insert_store): Likewise.
406         (remove_reachable_equiv_notes): Likewise.
407         * global.c (global_conflicts): Likewise.
408         (calculate_reg_pav): Likewise.
409         * graph.c (print_rtl_graph_with_bb): Likewise.
410         * ifcvt.c (mark_loop_exit_edges): Likewise.
411         (merge_if_block): Likewise.
412         (find_if_header): Likewise.
413         (block_jumps_and_fallthru_p): Likewise.
414         (find_if_block): Likewise.
415         (find_cond_trap): Likewise.
416         (block_has_only_trap): Likewise.
417         (find_if_case1): Likewise.
418         (find_if_case_2): Likewise.
419         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
420         (perfect_nestify): Likewise.
421         * lcm.c (compute_antinout_edge): Likewise.
422         (compute_laterin): Likewise.
423         (compute_available): Likewise.
424         (compute_nearerout): Likewise.
425         * loop-doloop.c (doloop_modify): Likewise.
426         * loop-init.c (loop_optimizer_init): Likewise.
427         * loop-invariant.c (find_exits): Likewise.
428         * loop-iv.c (simplify_using_initial_values): Likewise.
429         (check_simple_exit): Likewise.
430         (find_simple_exit): Likewise.
431         * loop-unroll.c (peel_loop_completely): Likewise.
432         (unroll_loop_constant_iterations): Likewise.
433         (unroll_loop_runtime_iterations): Likewise.
434         * loop-unswitch.c (may_unswitch_on): Likewise.
435         (unswitch_loop): Likewise.
436         * modulo-sched.c (generate_prolog_epilog): Likewise.
437         (sms_schedule): Likewise.
438         * postreload-gcse.c (eliminate_partially_redundant_load):
439         Likewise.
440         * predict.c (can_predict_insn_p): Likewise.
441         (set_even_probabilities): Likewise.
442         (combine_predictions_for_bb): Likewise.
443         (predict_loops): Likewise.
444         (estimate_probability): Likewise.
445         (tree_predict_by_opcode): Likewise.
446         (tree_estimate_probability): Likewise.
447         (last_basic_block_p): Likewise.
448         (propagate_freq): Likewise.
449         (estimate_loops_at_level): Likewise.
450         (estimate_bb_frequencies): Likewise.
451         * profile.c (instrument_edges): Likewise.
452         (get_exec_counts): Likewise.
453         (compute_branch_probabilities): Likewise.
454         (branch_prob): Likewise.
455         * ra-build.c (live_in): Likewise.
456         * ra-rewrite.c (rewrite_program2): Likewise.
457         * ra.c (reg_alloc): Likewise.
458         * reg-stack.c (reg_to_stack): Likewise.
459         (convert_regs_entry): Likewise.
460         (compensate_edge): Likewise.
461         (convert_regs_1): Likewise,
462         (convert_regs_2): Likewise.
463         (convert_regs): Likewise.
464         * regrename.c (copyprop_hardreg_forward): Likewise.
465         * reload1.c (fixup_abnormal_edges): Likewise.
466         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
467         (sbitmap_insersection_of_preds): Likewise.
468         (sbitmap_union_of_succs): Likewise.
469         (sbitmap_union_of_preds): Likewise.
470         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
471         (fix_basic_block_boundaries): Likewise.
472         (sched_ebbs): Likewise.
473         * sched-rgn.c (build_control_flow): Likewise.
474         (find_rgns): Likewise.
475         * tracer.c (find_best_successor): Likewise.
476         (find_best_predecessor): Likewise.
477         (tail_duplicate): Likewise.
478         * tree-cfg.c (make_edges): Likewise.
479         (make_ctrl_stmt_edges): Likewise.
480         (make_goto_expr_edges): Likewise.
481         (tree_can_merge_blocks_p): Likewise.
482         (tree_merge_blocks): Likewise.
483         (cfg_remove_useless_stmts_bb): Likewise.
484         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
485         (tree_block_forwards_to): Likewise.
486         (cleanup_control_expr_graph): Likewise.
487         (find_taken_edge): Likewise.
488         (dump_cfg_stats): Likewise.
489         (tree_cfg2vcg): Likewise.
490         (disband_implicit_edges): Likewise.
491         (tree_find_edge_insert_loc): Likewise.
492         (bsi_commit_edge_inserts): Likewise.
493         (tree_split_edge): Likewise.
494         (tree_verify_flow_info): Likewise.
495         (tree_make_forwarder_block): Likewise.
496         (tree_forwarder_block_p): Likewise.
497         (thread_jumps): Likewise.
498         (tree_try_redirect_by_replacing_jump): Likewise.
499         (tree_split_block): Likewise.
500         (add_phi_args_after_copy_bb): Likewise.
501         (rewrite_to_new_ssa_names_bb): Likewise.
502         (dump_function_to_file): Likewise.
503         (print_pred_bbs): Likewise.
504         (print_loop): Likewise.
505         (tree_flow_call_edges_add): Likewise.
506         (split_critical_edges): Likewise.
507         (execute_warn_function_return): Likewise.
508         (extract_true_false_edges_from_block): Likewise.
509         * tree-if-conv.c (tree_if_conversion): Likewise.
510         (if_convertable_bb_p): Likewise.
511         (find_phi_replacement_condition): Likewise.
512         (combine_blocks): Likewise.
513         * tree-into-ssa.c (compute_global_livein): Likewise.
514         (ssa_mark_phi_uses): Likewise.
515         (ssa_rewrite_initialize_block): Likewise.
516         (rewrite_add_phi_arguments): Likewise.
517         (ssa_rewrite_phi_arguments): Likewise.
518         (insert_phi_nodes_for): Likewise.
519         (rewrite_into_ssa): Likewise.
520         (rewrite_ssa_into_ssa): Likewise.
521         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
522         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
523         (rewrite_trees): Likewise.
524         * tree-pretty-print.c (dump_bb_header): Likewise.
525         (dump_implicit_edges): Likewise.
526         * tree-sra.c (insert_edge_copies): Likewise.
527         (find_obviously_necessary_stmts): Likewise.
528         (remove_data_stmt): Likewise.
529         * tree-ssa-dom.c (thread_across_edge): Likewise.
530         (dom_opt_finalize_block): Likewise.
531         (single_incoming_edge_ignoring_loop_edges): Likewise.
532         (record_equivalences_from_incoming_edges): Likewise.
533         (cprop_into_successor_phis): Likewise.
534         * tree-ssa-live.c (live_worklist): Likewise.
535         (calculate_live_on_entry): Likewise.
536         (calculate_live_on_exit): Likewise.
537         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
538         (copy_loop_headers): Likewise.
539         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
540         (fill_always_executed_in): Likewise.
541         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
542         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
543         (compute_phi_arg_on_exit): Likewise.
544         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
545         (get_loops_exit): Likewise.
546         (split_loop_exit_edge): Likewise.
547         (ip_normal_pos): Likewise.
548         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
549         Likewise.
550         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
551         (replace_phi_with_stmt): Likewise.
552         (value_replacement): Likewise.
553         * tree-ssa-pre.c (compute_antic_aux): Likewise.
554         (insert_aux): Likewise.
555         (init_pre): Likewise.
556         * tree-ssa-propagate.c (simulate_stmt): Likewise.
557         (simulate_block): Likewise.
558         (ssa_prop_init): Likewise.
559         * tree-ssa-threadupdate.c (thread_block): Likewise.     
560         (create_block_for_threading): Likewise.
561         (remove_last_stmt_and_useless_edges): Likewise.
562         * tree-ssa.c (verify_phi_args): Likewise.
563         (verify_ssa): Likewise.
564         * tree_tailcall.c (independent_of_stmt_p): Likewise.
565         (find_tail_calls): Likewise.
566         (eliminate_tail_call): Likewise.
567         (tree_optimize_tail_calls_1): Likewise.
568         * tree-vectorizer.c (vect_transform_loop): Likewise.
569         * var-tracking.c (prologue_stack_adjust): Likewise.
570         (vt_stack_adjustments): Likewise.
571         (vt_find_locations): Likewise.
572         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
573         * config/i386/i386.c (ix86_pad_returns): Likewise.
574         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
575         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
576
577 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
578
579         PR target/16532
580         * config/sparc/sparc.c (struct machine_function): New field
581         'leaf_function_p' and 'prologue_data_valid_p'.
582         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
583         to conveniently access the above fields.
584         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
585         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
586         of the generic flavor 'current_function_uses_only_leaf_regs'.
587         (eligible_for_sibcall_delay): Likewise.
588         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
589         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
590         (sparc_asm_function_prologue): Add sanity check for the assumption
591         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
592         (sparc_can_use_return_insn_p): New function.
593         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
594         (output_restore): Likewise.
595         (output_sibcall): Likewise.
596         (sparc_output_mi_thunk): Likewise.
597         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
598         * config/sparc/sparc.md (return): New expander.
599
600         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
601
602 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
603
604         PR c++/17642
605         * stor-layout.c (layout_decl): Use fold_convert, not convert.
606         (bit_from_pos): Likewise.
607         (byte_from_pos): Likewise.
608         (pos_from_bit): Likewise.
609         (normalize_offset): Likewise.
610         (place_field): Likewise.
611         (finalize_type_size): Likewise.
612         (layout_type): Likewise.
613         * tree.c (build_index_type): Likewise.
614
615 2004-09-27  Devang Patel  <dpatel@apple.com>
616
617         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
618         * genopinit.c (optabs): New entry for vcond_gen_code and
619         vcondu_gen_code.
620         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
621         (get_rtx_code): New function.
622         (vector_compare_rtx): New function.
623         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
624         (expand_vec_cond_expr_p): New function.
625         (expand_vec_cond_expr): New function.
626         (get_vcond_icode): New function.
627         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
628         (vcond_gen_code, vcondu_gen_code): Same.
629
630 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
631
632         * Makefile.in (STAGESTUFF): Split into ...
633         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
634         (mostlyclean): Update.
635         (stage1-start, stage2-start, stage3-start, stage4-start,
636         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
637         Move the STAGEMOVESTUFF.
638
639 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
640
641         * system.h (getpagesize): Return 'int' instead of 'long'.
642
643 2004-09-27  Michael Matz <matz@suse.de>
644
645         PR bootstrap/17698
646         PR bootstrap/17702
647         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
648         bmp_iter_and_init): Shift by bit_in_word.
649
650 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
651
652         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
653         * configure.ac: Don't sinclude it here.
654         * configure: Regenerate.
655
656 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
657
658         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
659         Handle AND pattern
660
661 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
662
663         PR c/13804
664         * c-typeck.c (build_component_ref): Name type involved in
665         diagnostic for structure or union without a member of the given
666         name.
667
668 2004-09-27  DJ Delorie  <dj@redhat.com>
669
670         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
671         .comm alignment is bytes, not bits.
672
673 2004-09-27  Devang Patel  <dpatel@apple.com>
674
675         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
676         (print_call_name): Do not print VEC_COND_EXPR.
677
678 2004-09-27  Devang Patel  <dpatel@apple.com>
679
680         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
681         
682 2004-09-27  Jan Hubicka  <jh@suse.cz>
683
684         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
685
686 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
687
688         * bitmap.h: Fix a comment typo.
689
690 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
691
692         * libgcc2.c (getpagesize): Change type of return value to int.
693
694 2004-09-26  Matt Austern  <austern@apple.com>
695
696         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
697         using mmap.
698         
699 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
700
701         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
702         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
703         (bitmap_iterator): New type.
704         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
705         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
706         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
707         bmp_iter_and_init, bmp_iter_and_next): New functions.
708         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
709         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
710         use iterator-style EXECUTE_IF_IN_BITMAP macros.
711         * bitmap.c (bitmap_print): Ditto.
712         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
713         btr_def_live_range): Ditto.
714         * cfganal.c (compute_dominance_frontiers_1) Ditto.
715         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
716         Ditto.
717         * ddg.c (build_inter_loop_deps): Ditto.
718         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
719         Ditto.
720         * except.c (remove_eh_handler): Ditto.
721         * flow.c (reg_set_to_hard_reg_set): Ditto.
722         * gcse.c (clear_modify_mem_tables): Ditto.
723         * global.c (build_insn_chain): Ditto.
724         * ifcvt.c (dead_or_predicable): Ditto.
725         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
726         Ditto.
727         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
728         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
729         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
730         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
731         tree_purge_all_dead_eh_edges): Ditto.
732         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
733         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
734         rewrite_ssa_into_ssa): Ditto.
735         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
736         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
737         Ditto.
738         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
739         compute_flow_sensitive_aliasing, maybe_create_global_var,
740         dump_points_to_info_for): Ditto.
741         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
742         * tree-ssa-dse.c (dse_finalize_block): Ditto.
743         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
744         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
745         Ditto.
746         * tree-ssa-loop-ivopts.c (find_induction_variables,
747         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
748         determine_use_iv_costs, determine_set_costs, find_best_candidate,
749         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
750         Ditto.
751         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
752         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
753         add_call_read_ops): Ditto.
754         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
755
756 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
757
758         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
759         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
760
761 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
762
763         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
764         reflect size of memory regions being compared.
765
766 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
767
768         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
769         expressions.  Always clear MEM_SIZE and alias set.
770
771 2004-09-26  Roger Sayle  <roger@eyesopen.com>
772             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
773
774         PR middle-end/17112
775         * stor-layout.c (compute_record_mode): For records with a single
776         field, only use the field's mode if its size matches what we'd
777         have choosen for the record ourselves.  This forces the use of
778         BLKmode for packed records that don't completely fill a mode.
779
780 2004-09-26  Roger Sayle  <roger@eyesopen.com>
781
782         PR middle-end/17151
783         * combine.c (force_to_mode): Remove dubious early return test that
784         inhibits further optimization.
785
786 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
787
788         * profile.c: Fix a comment typo.
789
790 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
791
792         PR bootstrap/17591
793         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
794         with varying offset.
795         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
796         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
797         ARRAY_REFS.
798         (expr_invariant_in_loop_p): New function.
799         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
800         component_ref_field_offset for COMPONENT_REFs.  Do not allow
801         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
802         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
803         MISALIGNED_INDIRECT_REFs.
804         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
805         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
806         MISALIGNED_INDIRECT_REFs.
807
808 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
809
810         PR c/11459
811         * gcc.c (cpp_options, cc1_options): Preserve relative order of
812         -std and -ansi options.
813
814 2004-09-26  Jan Hubicka  <jh@suse.cz>
815
816         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
817         for nested functions whose proper parent has not been output.
818
819         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
820         when re-constructing profile previously invalidated by loop.
821
822 2004-09-25  Dale Johannesen  <dalej@apple.com>
823
824         * tree-gimple.c:  Move GIMPLE definition...
825         * doc/tree-ssa.texi:  here.
826
827 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
828
829         * tree-vectorizer.c: Fix a comment typo.
830
831 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
832
833         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
834         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
835         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
836         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
837
838 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
839
840         * tree-ssa-loop-unswitch.c: Fix a comment typo.
841
842 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
843
844         * doc/passes.texi: Fix a typo.
845
846 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
847
848         * tree-optimize.c (init_tree_optimization_passes): Add
849         pass_record_bounds.
850         * tree-pass.h (pass_record_bounds): Declare.
851         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
852         New pass.
853
854 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
855
856         PR tree-optimization/17474
857         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
858         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
859
860 2004-09-25  Jan Hubicka  <jh@suse.cz>
861
862         * predict.c (counts_to_freqs): Make global.
863         * predict.h (counts_to_freqa): Declare.
864         * profile.c (compute_branch_probabilities): Compute frequencies
865         * tree-profile.c (do_tree_profiling): Refine conditional on when
866         tree profiling pass is needed.
867
868         * passes.c (rest_of_handle_cfg): Disable const/pure function
869         detection when doing tree based profiling.
870
871         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
872         conditional.
873
874 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
875
876         * config/mips/mips.h (struct mips_args): Clarify comments.
877         * config/mips/mips.c (struct mips_arg_info): Likewise.
878         (mips_arg_info): Don't allow fpr_p to affect the register or
879         stack alignment.  Remove o64 silliness.
880         (function_arg): Deal with the o32 float,float case specially.
881
882 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
883
884         * config/mips/mips.md (loadx, storex): Define for V2SF.
885
886 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
887
888         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
889         * config/s390/s390.c (s390_back_chain_rtx): New function.
890         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
891         Call anti_adjust_stack.
892         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
893         only if compiling with back chain.
894         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
895         back chain only if back chain enabled.  Use s390_back_chain_rtx.
896         
897 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
898
899         * doc/trouble.texi: Remove obsolete information.  Update
900         information on how to regenerate fixincluded headers.
901
902 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
903
904         PR c/12951
905         * doc/invoke.texi: Document that
906         -Wno-error-implicit-function-declaration is not accepted.
907
908 2004-09-24  Richard Henderson  <rth@redhat.com>
909
910         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
911         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
912         on TARGET_MAX.
913         (alpha_expand_mov): Allow unaligned vectors.
914         (alpha_expand_unaligned_store): Use CONST0_RTX.
915         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
916
917 2004-09-24 Jeff Law  <law@redhat.com>
918
919         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
920         aliasing rules.
921         (simplify_cond_and_lookup_avail_expr): Likewise.
922
923 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
924
925         PR c/12802
926         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
927         title.  Document interaction with -fms-extensions.
928         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
929         section.
930
931 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
932
933         PR c/12713
934         * doc/extend.texi: Document interaction of attribute noreturn and
935         longjmp.
936
937 2004-09-24  Richard Henderson  <rth@redhat.com>
938
939         PR rtl-opt/17503
940         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
941         (som_hash, som_eq): New.
942         (init_subregs_of_mode, record_subregs_of_mode): New.
943         (cannot_change_mode_set_regs): Rewrite for htab implementation.
944         (invalid_mode_change_p): Likewise.
945         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
946         * flow.c (mark_used_regs): Likewise.
947         (life_analysis): Use init_subregs_of_mode.
948         * regs.h (subregs_of_mode): Remove.
949         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
950
951 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
952
953         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
954         type with the copy of the conditional.
955
956 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
957
958         PR tree-opt/16954
959         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
960         Prevent renaming if the aliasing sets of the type which the
961         pointer points to are different.
962
963 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
964
965         PR c/17188
966         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
967         declarations of enumerators.
968         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
969         for redefinition.  Check for nested redefinition.
970         (finish_struct): Don't check for nested redefinition.
971         (start_enum): Check for nested redefinition.
972
973 2004-09-24  Devang Patel  <dpatel@apple.com>
974
975         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
976         only when necesssary.
977         (combine_blocks): Combine loop header and exit block.
978         
979 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
980
981         * hooks.c (hook_tree_tree_bool_null): New.
982         * hooks.h (hook_tree_tree_bool_null): Declare it.
983         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
984         * targhooks.c (default_fold_builtin): Remove.
985         * targhooks.h (default_fold_builtin): Remove.
986
987 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
988
989         PR rtl-optimization/17625
990         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
991
992 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
993
994         PR tree-opt/17624
995         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
996         Reject if any of the operands occur in an abnormal PHI.
997
998 2004-09-24  Andreas Schwab  <schwab@suse.de>
999
1000         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
1001         rules.
1002
1003 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1004
1005         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
1006         if the GNU assembler is used.
1007         (sparc-*-solaris2*): Likewise.
1008         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
1009         (dbxout_function_end): Protect N_ENSYM with it.
1010         (dbxout_begin_prologue): Protect N_BNSYM with it.
1011         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
1012         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
1013         * config/sparc/sol2-gas.h: New file.
1014
1015 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
1016
1017         PR bootstrap/17369
1018         * Makefile.in (@set_gcc_lib_path@): Added.
1019
1020         * configure.ac: Include ../config/gcc-lib-path.m4. Use
1021         TL_AC_GNU_MAKE_GCC_LIB_PATH.
1022         * configure: Regenerated.
1023
1024 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1025
1026         PR c/6980
1027         * c-typeck.c (build_c_cast): Improve wording of
1028         -Wbad-function-cast diagnostic.
1029
1030 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
1031
1032         PR target/17626
1033         * config/cris/cris.md (moverside, movemside): Rename variable
1034         "reg" to "otherop".  To generate canonical RTX, check that otherop
1035         isn't constant instead of checking that operand 1 is a register.
1036
1037 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
1038
1039         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
1040
1041 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
1042             Jakub Jelinek  <jakub@redhat.com>
1043
1044         * tree-flow.h (find_new_referenced_vars): Add prototype.
1045         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
1046         Move to...
1047         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
1048         ... here.
1049         (mark_new_vars_to_rename): Walk through all operands.
1050         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
1051         (execute_fold_all_builtins): Use it.
1052         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
1053
1054 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
1055
1056         * gthr-tpf.h: New file.
1057         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
1058         * gthr.h: Use gthr-tpf.h on TPF OS.
1059
1060 2004-09-23 Jeff Law  <law@redhat.com>
1061
1062         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
1063         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
1064         (substitute_and_fold):  Likewise.
1065         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
1066         except invariants from SSA_NAME_VALUE.
1067         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
1068         and SET_SSA_NAME_EQUIV.
1069         (restore_vars_to_original_value, record_const_or_copy): Likewise.
1070         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
1071         (record_equality, cprop_into_successor_phis): Likewise.
1072         (record_equivalences_from_stmt, cprop_operand): Likewise.
1073         (lookup_avail_expr): Likewise.
1074         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
1075         from SSA_NAME_VALUE.
1076         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
1077         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
1078         annotation from the VALUE_HANDLE field.
1079
1080 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
1081
1082         PR c++/13989
1083         PR c++/9844
1084         * tree.c (reconstruct_complex_type): Remove extra "this".
1085         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): 
1086         Add V4SFmode to case statement.
1087
1088 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
1089
1090         PR c/16833
1091         * doc/extend.texi, doc/invoke.texi: Document interaction of
1092         -fno-builtin with format checks.  Note that built-in functions
1093         have effects beyond generating code that avoids calls to those
1094         functions.
1095
1096 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
1097
1098         PR tree-optimization/17533
1099         * dominance.c (verify_dominators): Tolerate even more incorrect
1100         dominance data during error message printing.
1101         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
1102         and edges more correctly.
1103         
1104 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
1105
1106         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
1107         New tree-codes.
1108         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
1109         MISALIGNED_INDIRECT_REF.
1110         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
1111         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
1112         Likewise.
1113         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
1114         (find_interesting_uses_address): Likewise.
1115         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
1116         (build_fold_addr_expr_with_type): Likewise.
1117         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
1118         * print-rtl.c (print_mem_expr): Likewise.
1119         * tree-dump.c (dequeue_and_dump): Likewise.
1120         * tree-eh.c (tree_could_trap_p): Likewise.
1121         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1122         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
1123         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
1124         Likewise.
1125         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1126         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
1127         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
1128         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
1129         (add_address_candidates, rewrite_address_base): Likewise.
1130         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
1131         Likewise.
1132         * tree.c (staticp, build1_stat): Likewise.
1133
1134         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
1135         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
1136         * tree-ssa-operands.c (get_expr_operands): Likewise.
1137         * expr.c (expand_expr_real_1): Likewise.
1138
1139         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
1140         optabs.
1141         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
1142         for the new optabs.
1143         (expand_ternary_op): New function.
1144         * genopinit.c (optabs): Handle the new optabs.
1145         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
1146         (init_optabs): Initialize vec_realign_load_optab.
1147         (expand_ternary_op): New functions.
1148
1149         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
1150         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
1151         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
1152         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
1153         * target.h (struct vectorize): New member for struct gcc_target.
1154         (misaligned_mem_ok): New member for targetm.vectorize.
1155         (builtin_mask_for_load): Likewise.
1156         (builtin_mask_for_store): Likewise.
1157         * targethooks.c (default_vect_misaligned_mem_ok): New function.
1158         * targethooks.h (default_vect_misaligned_mem_ok): New function.
1159
1160         * config/rs6000/altivec.md (build_vector_mask_for_load): New
1161         define_expand.
1162         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
1163         (vec_realign_load_v16qi): New define_insn.
1164         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
1165         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
1166         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
1167         (altivec_builtin_mask_for_store): New variables.
1168         (rs6000_builtin_mask_for_load): New function. Implements
1169         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
1170         (rs6000_builtin_mask_for_store): New function. Implements
1171         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
1172         (rs6000_expand_builtin): Expand the target builtins
1173         builtin_mask_for_load and builtin_mask_for_store.
1174         (altivec_init_builtins): Initialize the new target builtins.
1175         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
1176         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
1177
1178         * tree-vectorizer.c (vect_create_data_ref): Renamed to
1179         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
1180         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
1181         (vectorizable_store): Call vect_create_data_ref_ptr with additional
1182         arguments, and create an indirect_ref with its return value data_ref.
1183         Check aligned_access_p.
1184         (vectorizable_load): Handle misaligned loads, using software-pipelined
1185         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
1186         vec_realign_load_optab is supported, or using a scheme without
1187         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
1188         misaligned_mem_ok is supported.
1189
1190         (vect_finish_stmt_generation): Typo.
1191         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
1192         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
1193         presence of misaligned loads.
1194         (vect_analyze_data_ref_access): Add check for constant init.
1195         (vect_get_symbl_and_dr): Remove duplicate line.
1196         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
1197
1198 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
1199
1200         * builtins.c: Fix a comment typo.
1201
1202 2004-09-23  Jan Hubicka  <jh@suse.cz>
1203
1204         * profile.c (branch_prob): Do not verify flow info in the middle of the
1205         pass.
1206
1207 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1208
1209         * cfgloop.h (update_single_exits_after_duplication): Declare.
1210         (loopify, split_loop_bb): Declaration changed.
1211         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
1212         of rtx.
1213         (loopify): Added redirect_all_edges argument.
1214         (update_single_exits_after_duplication): Export.
1215         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
1216         * tree-flow.h (tree_duplicate_loop_to_header_edge,
1217         tree_ssa_loop_version): Declare.
1218         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
1219         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
1220         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
1221         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
1222
1223         * tree-ssa-loop-unswitch.c: New file.
1224         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
1225         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
1226         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
1227         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
1228         * tree-pass.h (pass_unswitch): Declare.
1229         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
1230         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
1231         * doc/passes.texi: Documen tree level loop unswitching.
1232
1233 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
1234
1235         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
1236
1237 2004-09-22  Eric Christopher  <echristo@redhat.com>
1238
1239         * builtins.c (simplify_builtin_va_start): Remove.
1240         (simplify_builtin): Ditto.
1241         (fold_builtin_strchr): Ditto.
1242         (simplify_builtin_*): Rename remainders to fold_builtin_*.
1243         (expand_builtin): Fix up for above changes.
1244         (fold_builtin_1): Add new folders. Change for above.
1245         (expand_builtin_va_start): Call fold_builtin_next_arg.
1246         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
1247         * tree.h: Remove prototype for simplify_builtin.
1248
1249 2004-09-23  Jan Hubicka  <jh@suse.cz>
1250
1251         PR debug/17389
1252         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
1253         of fully inlined functions.
1254         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
1255         inlined.
1256
1257         * cfgexpand.c (add_reg_br_prob_note): New function.
1258         (expand_gimple_cond_expr): Use it.
1259         (tree_expand_cfg): No longer kill the profile.
1260         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
1261         only if it is present.
1262         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
1263         * predict.c (combine_predictions_for_insn): Set the probabilities
1264         based on REG_BR_PROB note if present.
1265         * predict.c (branch_prob): Profile is read only with
1266         flag_branch_probabilities.
1267
1268 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
1269
1270         * aclocal.m4: Add in gettext's m4 includes.
1271         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
1272         * configure.ac: Add in check for iconv.h
1273         * configure: Regenerate.
1274
1275 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
1276
1277         * aclocal.m4: Update for rename of gettext-sister.m4.
1278
1279 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
1280
1281         Fix PR tree-optimization/17587
1282         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
1283         (insert_aux): Instead of here.
1284
1285 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
1286
1287         PR tree-optimization/16721
1288         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
1289         * tree-ssa-alias.c (create_memory_tag): Move setting of
1290         TREE_THIS_VOLATILE ...
1291         (get_tmt_for): ... here.
1292
1293 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1294
1295         * config/sparc/sparc.md (cmove splitter): Fix formatting.
1296         (conditional_trap expander): Reject inappropriate CCmodes.
1297         (conditional trap insn): Use V9 syntax if possible.
1298
1299 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1300
1301         PR c/16566
1302         * c-typeck.c (build_component_ref): Don't special-case
1303         COMPOUND_EXPR.
1304
1305 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
1306
1307         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
1308         returns NULL.
1309
1310 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
1311
1312         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
1313         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
1314         TRUTH_XOR_EXPR): Mention the restriction on types.
1315
1316 2004-09-22  Matt Austern  <austern@apple.com>
1317
1318         * config/darwin.c (darwin_make_decl_one_only):
1319         Allow coalesced symbol to appear in static archive's table of contents
1320
1321 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
1322
1323         PR tree-optimization/17512
1324         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
1325         special cases.
1326
1327 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
1328
1329         * dbxout.c (get_lang_number): Do not define if
1330         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
1331
1332 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
1333
1334         PR target/15583
1335         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
1336         builtin_define ("__USE_INIT_FINI__").
1337
1338 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
1339
1340         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
1341         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
1342         * config/s390/s390.h (TARGET_TPF): New macro.
1343         * config/s390/s390.md ("eh_return"): New expander.
1344         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
1345         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
1346         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
1347         * config/s390/tpf.h (TARGET_TPF): Define to 1.
1348         (STACK_POINTER_OFFSET): Increase to 448.
1349         (TARGET_DEFAULT): Set -mtpf-trace on as default.
1350         (TPF_LOC_DIFF_OFFSET): New macro.
1351         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
1352         encoding.
1353         (__isPATrange): Add prototype.
1354         (MD_FALLBACK_FRAME_STATE_FOR): Define.
1355         * config/s390/tpf-eh.c: New file.
1356
1357 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
1358
1359         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
1360         operands in an integer comparison.
1361         * tree-cfg.c (find_taken_edge): Call fold() to determine
1362         whether the predicate is known.
1363
1364 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
1365
1366         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
1367         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
1368         Create build and doc directories along with the language directories.
1369         Don't create doc directory separately.
1370         * configure: Regenerate.
1371         * Makefile.in: Create all object and executables files built
1372         with the build compiler in a build/ directory.
1373         (genobjnames): Add missing build objects.
1374         (STAGESTUFF): Don't stage the gen* programs.
1375         (ggc-none.o): Define dependencies for the target compiler.
1376         (build-print-rtl.o): Rename to build/print-rtl.o.
1377         (build-errors.o): Rename to build/errors.o.
1378         (build-varray.o): Rename to build/varray.o.
1379         (maintainerclean): Delete the contents of the build directory.
1380         ($(genobjs): %.o): Explicitly use -o.
1381         (build/insn-conditions.o): Delete specfic rule to use generic rule.
1382         (build/gengtype-lex.o): Likewise.
1383         (build/gengtype-yacc.o): Likewise.
1384         (build/gcov-iov.o): Likewise.
1385
1386 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
1387
1388         * vec.h (VEC_space): Return true if there _is_ space.
1389         (VEC_reserve): Adjust.
1390
1391 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
1392
1393         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
1394         use FPRs for scalar, complex and vector types only.
1395
1396 2004-09-21 Jeff Law  <law@redhat.com>
1397
1398         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
1399         the opt_stats_d structure.
1400         (vrp_data): Change from a varray into a hash table.
1401         (vrp_hash_elt): New structure for elements in the vrp hash table.
1402         (vrp_hash, vrp_eq):New functions for hashing and testing equality
1403         in the vrp hash table.
1404         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
1405         initialization slightly to make it easier to read.  No longer need
1406         to grow/clear the varray.  Instead empty and delete the hash table.
1407         (dom_opt_finalize_block): Update due to change of VRP_DATA from
1408         a varray to a hash table.
1409         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
1410
1411         * tree-ssa-ccp.c (get_default_value): If we have a constant
1412         value recorded for an SSA_NAME, then use that constant as
1413         the initial lattice value.
1414         (substitute_and_fold): Transfer equivalences discovered into
1415         SSA_NAME_EQUIV.
1416
1417         * tree.h (SSA_NAME_EQUIV): Add comments.
1418         (SET_SSA_NAME_EQUIV): Similarly.
1419
1420 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
1421
1422         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
1423
1424         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
1425
1426 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
1427
1428         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
1429         (finish_decl): Likewise.
1430
1431 2004-09-21  Devang Patel  <dpatel@apple.com>
1432
1433         * tree.def (VEC_COND_EXPR): New tree node.
1434         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
1435
1436 2004-09-21  Stan Shebs  <shebs@apple.com>
1437
1438         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
1439         * config/rs6000/darwin-world.asm: Likewise.
1440
1441 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
1442
1443         * tree-ssa.c (verify_def): Use print_generic_stmt,
1444         not debug_generic_stmt.
1445         (verify_use): Ditto.
1446         (verify_phi_args): Ditto.
1447         (verify_ssa): Ditto.
1448
1449 2004-09-21  Paul Brook  <paul@codesourcery.com>
1450
1451         * varasm.c (default_assemble_integer): Return false for values wider
1452         than the target word size.  Works around GAS bug.
1453
1454 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
1455
1456         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
1457         gets value 0.
1458         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
1459         if it has value 0.
1460
1461 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
1462
1463         * c-typeck.c (build_function_call): Give name of object
1464         we are attempting to call in error message.
1465         * c-objc-common.c (c_tree_printer): Call pp_expression,
1466         not return false, for 'E' case.
1467
1468 2004-09-21  Steven Bosscher  <stevenb@suse.de>
1469
1470         PR rtl-optimization/17482
1471         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
1472         load_killed_in_block_p): Clarify comments.
1473         (record_last_reg_set_info): Make static inline.
1474         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
1475         (record_opr_changes): New function to replace the above.
1476         (compute_hash_table): Clarify comments.  Use record_opr_changes.
1477         (reg_set_between_after_reload_p): Clean up.
1478         (reg_used_between_after_reload_p): Likewise.
1479         (eliminate_partially_redundant_load): Clarify comments.
1480
1481 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1482
1483         PR rtl-optimization/17266
1484         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
1485
1486 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
1487
1488         PR rtl-optimization/14851
1489         * rtlanal.c (commutative_operand_precedence): Calculate
1490         precedence of stripped constant.
1491
1492 2004-09-20 Jeff Law  <law@redhat.com>
1493            Jan Hubicka  <jh@suse.cz>
1494
1495         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
1496         initialize key elements here.
1497         (release_ssa_name): Zero the released SSA_NAME here.
1498         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
1499         (struct tree_ssa_name): Add new "equiv" field.
1500         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
1501         (tree_ssa_dominator_optimize): No longer allocate, resize or
1502         clear CONST_AND_COPIES.
1503         (get_value_for, set_value_for): Kill.
1504         (thread_across_edge): Get/set the equivalency using
1505         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
1506         (restore_vars_to_original_value): Likewise.
1507         (record_equivalences_from_phis): Likewise.
1508         (record_dominating_conditions): Likewise.
1509         (record_const_or_copy, record_equality): Likewise.
1510         (lookup_avail_expr): Likewise.
1511         (record_equivalences_from_stmt, cprop_operand): Likewise.
1512         (cprop_into_successor_phis): No longer need to pass around
1513         CONST_AND_COPIES.  Callers updated. Get equivalences via
1514         SSA_NAME_EQUIV.
1515         (cprop_into_phis): Likewise.
1516
1517 2004-09-20  Matt Austern <austern@apple.com>
1518             Zack Weinberg  <zack@codesourcery.com>
1519
1520         * c-common.c (fix_string_type): Build the unqualified array
1521         type unconditionally, then use c_build_qualified_type to get
1522         the proper const-qualified variant, and set its
1523         TYPE_MAIN_VARIANT to refer to the unqualified type.
1524         * c-lex.c (c_lex_return_raw_string): New global.
1525         (c_lex_with_flags): Honor it.
1526         * c-pragma.h: Declare it.
1527
1528 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
1529
1530         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
1531
1532 2004-09-21  Jan Hubicka  <jh@suse.cz>
1533
1534         PR middle-end/17126
1535         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
1536         (tree_rest_of_compilation): Cleanup.
1537
1538 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
1539
1540         * config/s390/s390.c (s390_select_rtx_section): Remove.
1541         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
1542
1543 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1544
1545         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
1546         note to pretend a direct save from the original register when an
1547         intermediate register is used for the save.
1548
1549 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1550
1551         * tsystem.h (alloca): Provide a default definition.
1552
1553         Revert:
1554         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1555             * unwind-dw2.c: Call __builtin_alloca, not alloca.
1556
1557 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
1558
1559         PR tree-opt/17558
1560         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
1561         aliasing sets are the same rather than just conflicting.
1562
1563 2004-09-20  Jan Hubicka  <jh@suse.cz>
1564
1565         PR middle-end/16460
1566
1567         * cgraph.c (cgraph_unnest_node): New function.
1568         (c_finalize): Rename to ....
1569         (c_warn_unused_result_recursivly): ... this one; do only the warning
1570         (finish_function): Finalize the toplevel function; do not lower nested tree.
1571         * cgraph.h (cgraph_unnest_node): Declare.
1572         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
1573         nestedness datastructure.
1574         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
1575         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
1576         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
1577
1578 2004-09-20  Richard Henderson  <rth@redhat.com>
1579
1580         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
1581         from some_small_symbolic_operand_1; export.
1582         (some_small_symbolic_operand): Remove.
1583         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
1584         extra C check.
1585         * config/alpha/predicates.md (some_small_symbolic_operand): New.
1586
1587 2004-09-20  Jan Hubicka  <jh@suse.cz>
1588
1589         * predict.c (return_prediction): New function.
1590         (apply_return_prediction): Likewise.
1591         (tree_bb_level_predictions): Likewise.
1592         (tree_estimate_probability): Add noreturn exit edges; call
1593         bb_level_predictions; fix logic of return heuristics.
1594         (predict_paths_leading_to):  Rescuesce from old CVS version of
1595         process_note_prediction function.
1596         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
1597
1598 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
1599
1600         * config/s390/s390.c (s390_frame_info): Added alignment statement for
1601         floating point register area on stack.
1602
1603 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
1604
1605         * predict.c (expr_expected_value): Use *_CLASS_P macros.
1606
1607 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
1608
1609         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
1610         generating useless garbage.
1611
1612 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
1613
1614         * builtins.c (fold_builtin): Call the new omonymous
1615         target hook for machine-dependent built-ins.
1616         * target-def.h (TARGET_FOLD_BUILTIN): New.
1617         * target.h (struct gcc_target): Add the fold_builtin hook.
1618         * targhooks.c (default_fold_builtin): New.
1619         * targhooks.h (default_fold_builtin): Declare it.
1620
1621 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
1622
1623         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
1624         comment typos.
1625
1626 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
1627
1628         PR target/17565
1629         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
1630
1631 2004-09-20  Jan Hubicka  <jh@suse.cz>
1632
1633         * predict.c (estimate_probability): Remove unnecesary code.
1634
1635 2004-09-19  Ira Rosen  <irar@il.ibm.com>
1636
1637         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
1638         (STMT_VINFO_VECT_DR_BASE): Declare.
1639         (VECT_SMODULO): Declare.
1640         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
1641         (vect_compute_array_base_alignment): New function.
1642         (vect_analyze_data_ref_access): Check array indices. Remove one
1643         dimensional arrays restriction.
1644         (vect_get_ptr_offset): New function.
1645         (vect_get_symbl_and_dr): New function.
1646         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
1647         (former name vect_get_base_decl_and_bit_offset).
1648         (vect_create_index_for_array_ref): Removed.
1649         (vect_create_index_for_vector_ref): New function.
1650         (vect_create_addr_base_for_vector_ref): New function.
1651         (vect_create_data_ref): Handle additional data refs. Call
1652         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
1653         (vect_compute_data_ref_alignment): Support the changes. Call
1654         vect_get_base_and_bit_offset.
1655         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
1656         data refs. Store vect_dr_base.
1657         (vect_analyze_data_ref_accesses): Support nonconstant init.
1658         (new_stmt_vec_info): Initialize vect_dr_base field.
1659         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
1660         (get_vectype_for_scalar_type): Check for BLKmode.
1661         * tree-chrec.h (initial_condition_in_loop_num): Declare.
1662         * tree-chrec.c (initial_condition_in_loop_num): New function.
1663         (chrec_component_in_loop_num): New function.
1664         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
1665         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
1666         to be pointer to varray_type.
1667
1668 2004-09-19  Jan Hubicka  <jh@suse.cz>
1669
1670         * basic-block.h (update_bb_profile_after_threading): Declare.
1671         * cfg.c (update_bb_profile_after_threading): Break out from ...
1672         * cfgcleanup.c (try_forward_edges): ... here; use it.
1673         * tree-ssa-dom.c (thread_across_edge): Use it.
1674         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
1675         profile of the new BB.
1676
1677 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
1678
1679         * tree-ssa-pre.c (insert_into_set): Don't put
1680         is_gimple_min_invariant values into the set.
1681
1682 2004-09-19  Andreas Jaeger  <aj@suse.de>
1683
1684         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
1685         prototype.
1686
1687 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
1688
1689         * config/cris/cris.h: Preserve the original spelling in a
1690         quote.
1691
1692 2004-09-18 Jeff Law  <law@redhat.com>
1693
1694         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
1695         global varrays to replace the block local varrays.
1696         (struct dom_walk_block_data): Remove, no longer used.
1697         (get_eq_expr_value): No longer need to pass around pointers to local
1698         varrays.  Callers updated.  Unused markers added to unused parameters.
1699         (record_range, record_equivalences_from_stmt): Likewise.
1700         (record_equivalences_from_incoming_edge): Likewise.
1701         (record_var_is_nonzero): Likewise.  Update now that we have a
1702         single global varray of SSA_NAMEs that need restoring.
1703         (dom_opt_initialize_block_local_data): Kill, no longer used.
1704         (tree_ssa_dominator_optimize): Initialize new global varrays.
1705         Update callbacks in dominator walker structure.
1706         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
1707         VRP_VARIABLES_STACK.
1708         (restore_nonzero_vars_to_original_value): Update now that we have
1709         a single global varray of SSA_NAMEs that need restoring.
1710         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
1711         Remove unused variables.
1712         (optimize_stmt): Remove unused variable.
1713
1714 2004-09-18  Jan Hubicka  <jh@suse.cz>
1715
1716         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
1717
1718         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
1719         verify_cgraph call.
1720
1721 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
1722
1723         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
1724         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
1725         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
1726         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
1727         tree-ssa-operands.c, tree-ssa-phiopt.c,
1728         tree-ssa-threadupdate.c: Fix comment typos.
1729
1730 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
1731
1732         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
1733         config/arm/README-interworking, config/arm/arm-cores.def,
1734         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
1735         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
1736         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
1737         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
1738         config/frv/frv.md, config/i386/winnt.c,
1739         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
1740         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
1741         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
1742         config/mcore/mcore.c, config/mips/mips.h,
1743         config/mn10300/mn10300.md, config/pa/pa.c,
1744         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
1745         config/rs6000/rs6000.c, config/sh/symbian.c,
1746         config/sparc/sparc.h: Fix comment typos.  Follow spelling
1747         conventions.
1748
1749 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
1750
1751         PR c/17424
1752         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
1753
1754 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
1755
1756         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
1757         remove TREE_ADDRESSABLE from RESULT_DECL.
1758
1759 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
1760
1761         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
1762
1763 2004-09-18  Jan Hubicka  <jh@suse.cz>
1764
1765         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
1766         NULL.
1767         * tree-ssa-alias.c (init_alias_info): Likewise.
1768         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
1769         (verify_ssa): Likewise.
1770         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
1771
1772 2004-09-18  Jan Hubicka  <jh@suse.cz>
1773
1774         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
1775         huge offset.
1776
1777 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1778
1779         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
1780         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1781         DW_EH_PE_sdata* for data.
1782         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1783
1784 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
1785
1786         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
1787         shared anyway.
1788
1789         PR pch/13361
1790         * c-typeck.c (constructor_asmspec): Delete.
1791         (struct initializer_stack): Delete field 'asmspec'.
1792         (start_init): Delete saving of asmspec.
1793         (finish_init): Don't update constructor_asmspec.
1794         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
1795         * stmt.c (expand_asm): Duplicate strings from tree.
1796         (expand_asm_operands): Likewise.
1797         * tree.c (tree_size): Update computation of size of STRING_CST.
1798         (make_node): Don't make STRING_CST nodes.
1799         (build_string): Allocate string with tree node.
1800         (tree_code_size): Clean up assertions, don't allow requests
1801         for "the size of a STRING_CST".
1802         * tree.def (STRING_CST): Update comment.
1803         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
1804         (tree_string): Place contents of string in tree node.
1805         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
1806         from tree.
1807
1808 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
1809
1810         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
1811         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
1812
1813 2004-09-17  Jones Desougi  <jones@ingate.com>
1814
1815         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
1816         * configure, config.in: Regenerate.
1817
1818 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
1819
1820         * tree.c, tree.h (tree_class_strings): Make array const.
1821         Reindent per coding convention.  Move asterisk to proper place
1822         per coding convention.
1823
1824 2004-09-18  Andreas Schwab  <schwab@suse.de>
1825
1826         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
1827         (tree-vectorizer.o): Likewise.
1828         (targhooks.o): Likewise.
1829
1830 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
1831             Zack Weinberg  <zack@codesourcery.com>
1832
1833         * alias.c (find_base_decl): Remove unreachable case '3' block.
1834         * expr.c (safe_from_p): Abort if passed a type.
1835         * tree-gimple.c (recalculate_side_effects): Abort if passed
1836         anything other than an expression.
1837         * tree-ssa-pre.c (phi_translate): Return expr immediately if
1838         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
1839         Abort on un-handled tree classes.
1840         (valid_in_set): Likewise.
1841         * tree.c (tree_code_class_strings): New static data.
1842
1843         * tree.h (enum tree_code_class): New.
1844         (tree_code_class_strings): Declare.
1845         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
1846         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
1847         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
1848         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
1849         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
1850
1851         * tree.def, c-common.def, objc/objc-tree.def: Use
1852         tree_code_class enumeration constants instead of code letters.
1853
1854         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
1855         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
1856         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
1857         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
1858         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
1859         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
1860         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
1861         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
1862         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
1863         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
1864         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
1865         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
1866         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
1867         Update to match.
1868
1869         * LANGUAGES: Add note about change.
1870
1871 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
1872
1873         PR tree-optimization/17319
1874         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
1875         examine pointers on the LHS of an assignment.
1876         (collect_points_to_info_r): Handle RETURN_EXPR.
1877
1878 2004-09-17 Jeff Law  <law@redhat.com>
1879
1880         * tree-ssa-dom.c (const_and_copies_stack): New.
1881         (dom_walk_block_data): Remove const_and_copies field.
1882         (record_const_or_copy): No longer need to pass in varray_type *.
1883         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
1884         Callers updated.
1885         (record_equality): Similarly.
1886         (restore_vars_to_original_value): Similarly.  Revamp to use new
1887         single global stack rather than per-block stacks.
1888         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
1889         (thread_across_edge): Remove now unused parameters.
1890         (dom_opt_initialize_block_local_data): No longer test the block
1891         local CONST_AND_COPIES.
1892         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
1893
1894 2004-09-17  Jan Hubicka  <jh@suse.cz>
1895
1896         PR tree-optimization/17509
1897         * tree-optimize.c (update_inlined_to_pointers): New function.
1898         (tree_rest_of_compilation): Use it.
1899
1900 2004-09-17  Devang Patel  <dpatel@apple.com>
1901
1902         * dbxout.c (get_lang_number): New.
1903         (dbxout_init): Include lang number in N_SO  stab.
1904         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
1905         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
1906
1907 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
1908
1909         PR tree-optimization/17273
1910         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
1911         replacement is a constant.
1912
1913 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1914
1915         * c-tree.h (enum c_typespec_keyword): New.
1916         (struct c_declspecs): Adjust description of "type".  Remove
1917         specbits, explicit_int_p and explicit_char_p.  Rename
1918         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
1919         short_p, signed_p, unsigned_p and complex_p.
1920         (finish_declspecs): New.
1921         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
1922         typename): Call finish_declspecs.
1923         * c-decl.c (finish_declspecs): New.
1924         (declspecs_add_type): Check for combinations which cannot occur in
1925         valid specifier lists.  Update comments.
1926         (shadow_tag_warned): Remove checks done in finish_declspecs.
1927         Don't report useless type name if type defaulted to int.
1928         (grokdeclarator): Remove checks and actions done in
1929         finish_declspecs.  Don't allow for type being NULL.  Update for
1930         datastructures changes.  Initialize decl_attr.
1931         (build_null_declspecs, quals_from_declspecs): Update for
1932         datastructures changes.
1933
1934 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
1935
1936         * doc/extend.texi: Fix duplicated word.
1937
1938 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
1939
1940         * doc/invoke.texi: Remove stray explanation on
1941         -freduce-all-givs and -fmove-all-movables.
1942
1943 2004-09-17  James Morrison  <phython@gcc.gnu.org>
1944
1945         * doc/cfg.texi: Use @smallexample.
1946         * doc/md.texi: Likewise.
1947         * doc/tree-ssa.texi: Likewise.
1948         * doc/extend.texi: Likewise.  Use @r{} in comments.
1949         * doc/trouble.texi: Use @r{} in comments.
1950
1951 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
1952
1953         * configure.ac (gcc_cv_gld_version): Handle whitespace before
1954         "VERSION=".
1955         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
1956         * configure: Regenerate.
1957
1958 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
1959
1960         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
1961         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
1962         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
1963         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
1964         slashes in substitutions.
1965         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
1966
1967 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1968
1969         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
1970         gimplify.c, lambda-code.c, optabs.c, predict.c,
1971         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
1972         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
1973         conventions.
1974
1975 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1976
1977         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
1978         doc/extend.texi, doc/install.texi, doc/invoke.texi,
1979         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
1980         doc/trouble.texi: Use @option around options.
1981
1982 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
1983
1984         * Makefile.in (gen-protos.o): Depend on errors.h.
1985
1986 2004-09-17  Steven Bosscher  <stevenb@suse.de>
1987
1988         PR tree-optimization/17513
1989         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
1990         for successors of the entry block.
1991
1992 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
1993
1994         PR rtl-optimization/15187
1995         * ifcvt.c (noce_try_cmove_arith): Exit early if total
1996         insn_rtx_cost of both branches > BRANCH_COST
1997
1998 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
1999
2000         PR tree-optimization/17528
2001         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
2002         erase the may-alias set for a tag when merging it with
2003         another.
2004
2005 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2006
2007         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
2008         for 32-bit TARGET_SHMEDIA.
2009         (call_value): Likewise.
2010
2011 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
2012
2013         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
2014         test apply only to TREE_STATIC and DECL_EXTERNAL.
2015
2016 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2017
2018         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
2019         * basic-block.h (get_dominated_by_region): Declare.
2020         * dominance.c (get_dominated_by_region): New function.
2021         * tree-cfg.c: Include cfglayout.h.
2022         (tree_duplicate_bb): Duplicate also phi nodes.
2023         (struct ssa_name_map_entry): New type.
2024         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
2025         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
2026         allocate_ssa_names, rewrite_to_new_ssa_names_def,
2027         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
2028         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
2029         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
2030         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
2031         rewrite_to_new_ssa_names, allocate_ssa_names,
2032         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
2033         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
2034         (copy_loop_headers): Use tree_duplicate_sese_region.
2035
2036 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
2037
2038         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
2039
2040 2004-09-16 Jeff Law  <law@redhat.com>
2041
2042         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
2043         (rewrite_block_data): Remove, no longer used.
2044         (rewrite_initialize_block_local_data): Remove, no longer used.
2045         (rewrite_initialize_block): Mark parameters as unused as needed.
2046         Change references to the block local block_defs to be block_defs_stack.
2047         Push a marker onto the block_defs_stack.
2048         (ssa_rewrite_initialize_block): Similarly.
2049         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
2050         (ssa_register_new_def): No longer needs varray argument.  Use
2051         block_defs_stack instead.  No longer handle possibly null block_defs
2052         varray.  Reverse order of items we push on the stack to make it
2053         easier to identify our marker.
2054         (register_new_def): No longer handle possibly null block_defs
2055         varray.
2056         (rewrite_finalize_block): Revamp to look for markers in the global
2057         block_defs_stack varray rather than wiping a block local varray.
2058         Mark arguments as unused as needed.
2059         (ssa_rewrite_finalize_block): Similarly.
2060         (rewrite_into_ssa): Update initialization of dom walker structure
2061         to reflect that we don't need block local data anymore.  Initialize
2062         the block_defs_stack varray.
2063         (rewrite_ssa_into_ssa): Similarly.
2064         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
2065         (struct dom_walk_data): Kill block_defs field.
2066         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
2067         (thread_across_edge): Use the global block_defs_stack instead of
2068         the old block_defs varray.
2069         (dom_opt_initialize_block_local_data): Update now that we don't have
2070         block_defs field to check anymore.
2071         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
2072         (restore_currdefs_to_original_value): Use the new block_defs_stack
2073         instead of a block local varray.
2074         (dom_opt_finalize_block): Similarly.
2075         (record_equivalencs_from_phis): Similarly.
2076         (optimize_stmt, register_definitions_for_stmt): Similarly.
2077
2078 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
2079
2080         PR tree-optimization/17517
2081         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2082         coalesce same-root variables without checking for abnormal PHI usage.
2083
2084 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
2085
2086         * cfgloop.h (duplicate_loop):  Add prototype.
2087         * cfgloopmanip.c (duplicate_loop): Make non-static.
2088         * lambda-code.c (perfect_nestify): Factor out test whether
2089         we can handle this loop into separate function.
2090         Call it.
2091         (can_convert_to_perfect_nest): New function.
2092         (replace_uses_of_x_with_y): Add modify_stmt call.
2093         * tree-loop-linear.c (linear_transform_loops): Call
2094         rewrite_into_loop_closed_ssa and free_df.
2095
2096 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
2097
2098         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
2099         loop invariant as well.
2100         (perfect_nestify): new function.
2101         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
2102         upper bounds, and steps.
2103         Set outerinductionvar properly.
2104         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
2105         parameters.
2106         Return NULL if we need a perfect loop and can't make one.
2107         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
2108         (not_interesting_stmt): New function.
2109         (phi_loop_edge_uses_def): Ditto.
2110         (stmt_uses_phi_result): Ditto.
2111         (stmt_is_bumper_for_loop): Ditto.
2112         (perfect_nest_p): Ditto.
2113         (nestify_update_pending_stmts): Ditto.
2114         (replace_uses_of_x_with_y): Ditto.
2115         (stmt_uses_op): Ditto.
2116         (perfect_nestify): Ditto.
2117         * lambda-mat.c (lambda_matrix_id_p): New function.
2118         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
2119         * lambda.h: Update prototypes.
2120         * tree-loop-linear (linear_transform_loop): Use new
2121         perfect_nest_p. Detect and ignore identity transform.
2122         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
2123
2124 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
2125
2126         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
2127         Gather also strides of accessed data.  Pass in the data references
2128         array.
2129         (try_interchange_loops): Add a new heuristic for handling the temporal
2130         locality.  Pass in the data references array.
2131         (linear_transform_loops): Pass the data references array to
2132         try_interchange_loops.
2133
2134 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
2135
2136         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
2137
2138 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
2139
2140         * doc/c-tree.texi (Classes): Remove index entries for
2141         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
2142
2143 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2144
2145         * fold-const.c (fold): Fold difference of addresses.
2146         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
2147         get_inner_reference.
2148         * tree-ssa-loop-ivopts.c (peel_address): Removed.
2149         (ptr_difference_const): Moved to fold-const.c.
2150         (split_address_cost): Use get_inner_reference instead of peel_address.
2151         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
2152         * tree.h (ptr_difference_const): Export.
2153
2154         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
2155         variable type to the dump.  Fix indentation.
2156         (idx_find_step): Handle nonconstant array_ref_element_size and
2157         array_ref_low_bound.
2158         (idx_record_use): Handle array_ref_element_size and
2159         array_ref_low_bound.
2160         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
2161         statements correctly.
2162         (get_computation_at, iv_value): Do not unshare expressions here.
2163         (rewrite_use_outer): Unshare the expression before it is emitted
2164         to code.
2165         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
2166         Moved to tree.c.
2167         * tree.c (unsigned_type_for, signed_type_for): Moved from
2168         tree-ssa-loop-niter.c.  Use langhooks.
2169         * tree.h (signed_type_for): Export.
2170
2171 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
2172
2173         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
2174         prototype.
2175
2176 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
2177
2178         PR target/11572
2179         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
2180         Add two parameters to extra_includes.
2181         (C_INCPATH_INIT): Remove.
2182         * c-incpath.c (register_include_chains): Call extra_pre_includes
2183         before adding the standard include directory.
2184         Update call to extra_includes.
2185         (!defined TARGET_EXTRA_INCLUDES): Update
2186         hook_void_charptr_charptr_int and add !define
2187         TARGET_EXTRA_PRE_INCLUDES.
2188         (!define TARGET_EXTRA_INCLUDES): Define as
2189         hook_void_charptr_charptr_int.
2190         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
2191         (target_c_incpath): Always declare.
2192         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
2193         empty function.
2194         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
2195         * config/darwin.h: (darwin_register_frameworks): Update for
2196         the two new parameters.
2197         (darwin_register_objc_includes): Add prototype.
2198         (TARGET_EXTRA_PRE_INCLUDES): Define.
2199         * config/darwin-c.c (darwin_register_objc_includes): New function.
2200         (darwin_register_frameworks): Update for the two new parameters.
2201         (target_c_incpath): Remove.
2202         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
2203         the compile line.
2204         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
2205         parameters.
2206         (TARGET_EXTRA_PRE_INCLUDES): Document.
2207
2208         * gcc.c (spec_function): Add replace-outfile.
2209         (replace_outfile_spec_function): New function.
2210         * config/darwin.h (LINK_SPEC): Add replace
2211         -lobjc with -lobjc-gnu if -fgnu-runtime is
2212         supplied.
2213         * invoke.texi (replace-outfile): Document.
2214
2215 2004-09-13  Jan Hubicka  <jh@suse.cz>
2216
2217         * predict.c (expr_expected_value, strip_builtin_expect): New function.
2218         (tree_predict_by_opcode): Use it.
2219         (tree_estimate_probability): Add, for now disabled,
2220         strip_builtin_expect call.
2221
2222 2004-09-15  James E Wilson  <wilson@specifixinc.com>
2223
2224         PR target/17455
2225         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
2226         if current_function_decl is a sibcall.
2227
2228 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
2229
2230         * varasm.c (default_function_rdodata_section): Make sure to pass
2231         along a decl for a link-once section.
2232
2233 2004-09-15  Richard Henderson  <rth@redhat.com>
2234
2235         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
2236         warning with code disable.  Fix formatting.
2237
2238 2004-09-15  Steven Bosscher  <stevenb@suse.de>
2239
2240         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
2241         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
2242         after propagating into an ADDR_EXPR.
2243
2244 2004-09-15  Andrew Pinski  <apinski@apple.com>
2245
2246         PR rtl-opt/17427
2247         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
2248         Move it out of gcc_assert.
2249
2250 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2251
2252         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
2253         except.c, fold-const.c, function.c, langhooks.c, params.c,
2254         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
2255         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
2256         for quoting in diagnostics going through pretty-print.c.  Use ''
2257         for quoting in other diagnostic text.
2258         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
2259         translation.
2260         * Makefile.in (langhooks.o): Update dependencies.
2261         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
2262         formats.
2263
2264 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
2265
2266         * configure.ac: Check for COMDAT support.  Robustify check for
2267         SHF_MERGE support.
2268         * configure: Regenerated.
2269         * config.in: Likewise.
2270         * langhooks-def.h (lhd_comdat_group): New function.
2271         (LANG_HOOKS_COMDAT_GROUP): New macro.
2272         (LANG_HOOKS_DECLS): Use it.
2273         * langhooks.c (lhd_comdat_group): Define.
2274         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
2275         * output.h (named_section_flags): Make it a macro.
2276         (named_section_real): New function.
2277         (default_no_named_section): Add decl parameter.
2278         (default_elf_asm_named_section): Likewise.
2279         (default_coff_asm_named_section): Likewise.
2280         (default_pe_asm_named_section): Likewise.
2281         * target.h (gcc_target): Adjust type of named_section.
2282         * varasm.c (named_section_flags): Rename to named_section_real.
2283         Add decl parameter.
2284         (default_no_named_section): Add decl parameter.
2285         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
2286         with the case that ASM_COMMENT_START is "@".
2287         (default_coff_asm_named_section): Add decl parameter.
2288         (default_pe_asm_named_section): Likewise.
2289         * config/alpha/alpha.c (vms_asm_named_section): Add decl
2290         parameter.
2291         (unicosmk_asm_named_section): Likewise.
2292         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
2293         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
2294         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
2295         * config/cris/cris-protos.h (cris_target_asm_named_section):
2296         Likewise.
2297         * config/cris/cris.c (cris_target_asm_named_section):
2298         Likewise.
2299         * config/darwin/darwin-protos.h (darwin_asm_named_section):
2300         Likewise.
2301         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
2302         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
2303         * config/i386/i386-protos.h (i386_pe_asm_named_section):
2304         Likewise.
2305         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
2306         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
2307         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
2308         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
2309         Likewise.
2310         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
2311         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
2312         * cp/cp-tree.h (cxx_comdat_group): Declare.
2313         * cp/decl.c (cxx_comdat_group): New function.
2314
2315 2004-09-15  Jan Hubicka  <jh@suse.cz>
2316
2317         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
2318         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
2319
2320         * tree-cfg.c (remove_bb): Release SSA defs.
2321
2322 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
2323
2324         * doc/tm.texi: Follow spelling conventions.
2325
2326 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
2327
2328         * tree-ssa-dom.c: Fix comment typos.
2329
2330 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
2331
2332         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
2333         include ccr.
2334         (ppc_fallback_frame_state): Save location of CR.
2335
2336 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
2337
2338         * expr.c (string_constant): Handle also read-only variables
2339         initialized to string literals.
2340
2341         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
2342         into memcpy (x, y, 1) if memcpy can be expanded inline.
2343
2344 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2345
2346         PR tree-optimization/17468
2347         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
2348         definition inside a block precede uses.
2349         * tree-tailcall.c (adjust_return_value): Emit statements in the
2350         correct order.
2351
2352 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
2353
2354         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
2355
2356 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
2357
2358         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
2359
2360 2004-09-14 Jeff Law  <law@redhat.com>
2361
2362         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
2363         (struct dom_walk_block_data): Remove avail_exprs member.
2364         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
2365         (lookup_avail_expr): No longer need to pass in address of
2366         the block local available exprs stack.  All callers changed.
2367         (simplify_cond_and_lookup_avail_expr): Similarly.
2368         (simplify_switch_and_lookup_avail_expr): Similarly.
2369         (get_eq_expr_value, record_cond): Likewise.
2370         (record_dominating_conditions): Likewise.
2371         (update_rhs_and_lookup_avail_expr): Likewise.
2372         (record_equivalences_from_stmt): Likewise.
2373         (dom_opt_initialize_block_local_data): No longer test state of
2374         block local avail_exprs.
2375         (dom_opt_initialize_block): Mark unwind point in the global
2376         avail_expr stack.
2377         (remove_expressions_from_table): Update to unwind to the
2378         most recent unwind marker in the global avail_expr stack.
2379         All callers changed.
2380         (dom_opt_finalize_block): Mark unwind point in the global
2381         avail_expr stack as needed.
2382         (record_cond): Push elements into the global avail_exprs stack.
2383
2384         * tree-dfa.c (free_df_for_stmt): No longer static.
2385         (free_df): Update comments.
2386         * tree-flow.h (free_df_for_stmt): Prototype.
2387         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
2388         call release_defs.
2389
2390 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
2391
2392         PR tree-optimization/17252
2393         * tree-ssa-alias.c (may_alias_p): Don't assume that a
2394         pointer may not point to itself when using relaxed
2395         aliasing rules.
2396
2397 2004-09-14  Richard Henderson  <rth@redhat.com>
2398
2399         PR middle-end/17397
2400         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
2401         while folding <ADDR_EXPR <INDIRECT_REF X>>.
2402
2403 2004-09-14  Andrew Pinski  <apinski@apple.com>
2404
2405         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
2406         sets of the pointers but the aliasing sets of what they point to.
2407
2408 2004-09-14  Roger Sayle  <roger@eyesopen.com>
2409
2410         PR rtl-optimization/9771
2411         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
2412         conditional compilation in init_reg_sets_1.
2413         (init_reg_sets_1): Let global_regs[i] take priority over the frame
2414         (but not stack) pointer exceptions to regs_invalidated_by_call.
2415         (globalize_reg): Globalizing a fixed register may need to update
2416         regs_invalidated_by_call.
2417
2418 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
2419
2420         PR tree-optimization/15262
2421         * tree-dfa.c (dump_variable): Also print the type of the
2422         variable.
2423         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
2424         memory tags are of conflicting alias sets but have no aliased
2425         symbols in common, add one tag to the alias set of the other.
2426         (setup_pointers_and_addressables): Remove hack to deal with
2427         programs with no aliased symbols.
2428         (may_alias_p): Don't special case aggregate types.
2429
2430 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
2431
2432         PR c/15498
2433         * doc/invoke.texi (Environment Variables): Correct example locale.
2434
2435 2004-09-14  Jan Hubicka  <jh@suse.cz>
2436
2437         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
2438
2439 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
2440
2441         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
2442
2443 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
2444
2445         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
2446         restrict_p.
2447         (struct c_declarator): Change u.array.quals and pointer_quals to
2448         int.  Add u.array.attrs.
2449         (quals_from_declspecs): New.
2450         * c-decl.c (quals_from_declspecs): New.
2451         (shadow_tag_warned): Give more specific message for useless type
2452         qualifiers.
2453         (build_array_declarator, set_array_declarator_inner,
2454         grokdeclarator, make_pointer_declarator, build_null_declspecs,
2455         declspecs_add_qual): Update for changed structures.
2456
2457 2004-09-14  Jeff Law  <law@redhat.com>
2458
2459         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
2460         to a global varray.
2461         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
2462         (dom_opt_initialize_block_local_data): No longer test state
2463         of stmts_to_rescan.
2464         (dom_opt_finalize_block): Update due to change in scope of
2465         stmts_to_rescan.
2466         (optimize_stmt): Similarly.
2467
2468 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
2469
2470         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
2471         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
2472         comment typos.  Follow spelling conventions.
2473
2474 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
2475
2476         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
2477         config/i386/predicates.md, config/sparc/sparc.c: Follow
2478         spelling conventions.
2479
2480 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2481             Steven Bosscher  <stevenb@suse.de>
2482
2483         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
2484         * basic-block.h (struct reorder_block_def): Add copy_number field.
2485         * cfgloop.h (biv_p): Declare.
2486         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
2487         * common.opt (fsplit-ivs-in-unroller): New flag.
2488         * loop-iv.c (biv_p): New function.
2489         * loop-unroll.c: Include hashtab.h and recog.h.
2490         (struct iv_to_split, struct split_ivs_info): New types.
2491         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
2492         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
2493         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
2494         insert_base_initialization, split_iv): New functions.
2495         (peel_loop_completely, unroll_loop_constant_iterations,
2496         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
2497         Use them.
2498         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
2499
2500 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2501
2502         * tree-cfg.c (thread_jumps): Update dominators correctly in
2503         case destination of threaded edge dominates its source.
2504
2505 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2506
2507         * unroll.c: Removed.
2508         * loop.h: Removed.
2509         * Makefile.in (LOOP_H, unroll.o): Removed.
2510         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
2511         dependency.
2512         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
2513         reference.
2514         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
2515         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
2516         * loop.c: Do not include loop.h.
2517         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
2518         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
2519         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
2520         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
2521         struct loop_regs, struct loop_movables, struct loop_info): Moved
2522         from loop.h.
2523         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
2524         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
2525         find_common_reg_term, loop_iterations, final_giv_value): Moved
2526         from unroll.c.
2527         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
2528         loop_dump_stream, for_each_insn_in_loop, express_from,
2529         extend_value_for_giv, loop_iv_add_mult_emit_before,
2530         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
2531         loop_insn_first_p, get_condition_for_loop,
2532         loop_insn_emit_before, loop_insn_hoist,
2533         loop_insn_sink): Made static.
2534         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
2535         reference.
2536         (strength_reduce): Do not call unroller.
2537         (record_giv): Do not initialize unrolled field.
2538         (prescan_loop): Do not set loop_info->preconditioned.
2539         * passes.c: Do not include loop.h.
2540         (rest_of_handle_loop_optimize): Do not call unroller.
2541         * predict.c: Do not include loop.h.
2542         * rtl.h (NOTE_PRECONDITIONED): Removed.
2543         * stmt.c: Do not include loop.h.
2544         * toplev.c: Do not include loop.h.
2545         (process_options): Do not handle flag_old_unroll_loops.
2546
2547         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
2548         Documentation removed.
2549         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
2550
2551 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
2552
2553         * Makefile.in (STAGE1_CHECKING): New variable.
2554         (stage1_build): Use it.
2555         * tree-ssa.c (verify_ssa): Preserve state of dominance
2556         information.
2557
2558 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
2559
2560         * config/i386/i386.c (output_fp_compare): Add generation
2561         of ftst instruction.
2562         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
2563         Use output_fp_compare () function.
2564         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
2565         (fix_truncdi_memory): Remove operands[5] copy.
2566
2567 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
2568
2569         * config/m32r/m32r.md, config/m68k/m68kelf.h,
2570         config/mcore/mcore.md, config/rs6000/linux64.h,
2571         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
2572         typos.
2573
2574 2004-09-13  James E Wilson  <wilson@specifixinc.com>
2575
2576         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
2577         * gen-protos.c: Include errors.h.
2578         (progname): Delete.
2579
2580 2004-09-14  Jan Hubicka  <jh@suse.cz>
2581
2582         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
2583         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
2584         (predict_loops): Use number_of_iterations_exit to predict
2585         number of iterations on trees.
2586
2587 2004-09-13  Dale Johannesen  <dalej@apple.com>
2588
2589         PR 17408
2590         PR 17409
2591         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
2592         objects declared extern.
2593
2594 2004-09-14  Paul Brook  <paul@codesourcery.com>
2595
2596         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
2597         HOST_WIDE_INT.
2598
2599 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
2600
2601         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
2602         Only use TYPE_BINFO for aggregates.
2603
2604 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
2605
2606         * expmed.c (synth_mult): Initialize latency.  Check cost before
2607         checking ops count.
2608
2609 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
2610
2611         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
2612         add_call_clobber_ops and add_call_read_ops.
2613         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
2614         the number of vdefs and vuses inserted based on analysis of global
2615         variables across calls.  * tree-dfa.c (find_referenced_vars):
2616         Needed to reset static var maps before each function is compiled.
2617         * cgraphunit.c:
2618         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
2619         static_vars_info,functions_to_static_vars_info,module_statics_escape,
2620         all_module_statics,searchc_env,dfs_info): New fields to support
2621         analysis of static global variables.
2622         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
2623         cgraph_reset_static_var_maps, get_global_static_vars_info,
2624         get_global_statics_not_read, get_global_statics_not_written,
2625         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
2626         check_rhs_var, check_lhs_var, get_asm_expr_operands,
2627         process_call_for_static_vars, scan_for_static_refs,
2628         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
2629         clear_static_vars_maps, cgraph_propagate_bits,
2630         cgraph_characterize_statics): New. Functions to support analysis
2631         of static global variables.
2632         (cgraph_mark_local_and_external_functions): Renamed from:
2633         (cgraph_mark_local_functions)
2634         (cgraph_expand_all_functions): Remove call to
2635         cgraph_mark_local_and_external_functions.
2636         (cgraph_optimize): Added driver to analyze static variables whose
2637         scope is within the compilation unit.  * cgraph.h (struct
2638         cgraph_local_info, GTY): Added statics_read, statics_written,
2639         local, calls_read_all, calls_write_all, for_functions_valid.
2640         (struct cgraph_node): Added next_cycle.  * cgraph.c
2641         (dump_cgraph_node): Added print routines for new fields.  *
2642         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
2643         list.
2644
2645 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
2646
2647         * c-decl.c (grokdeclarator): Correct comments about where storage
2648         class specifiers are rejected by grammar and add corresponding
2649         asserts.  Diagnose typedefs and parameters declared inline.
2650         Change warning for inline main to a pedwarn.  Only diagnose inline
2651         main if hosted.
2652         (declspecs_add_scspec): Allow duplicate "inline".
2653
2654 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
2655
2656         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
2657         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
2658
2659 2004-09-13  Richard Henderson  <rth@redhat.com>
2660
2661         PR 17436
2662         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
2663         (tree_type): Replace spare with contains_placeholder_bits.
2664         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
2665         make static.  Remove seen_types list.
2666         (type_contains_placeholder_p): New.
2667
2668 2004-09-13  James E Wilson  <wilson@specifixinc.com>
2669
2670         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
2671         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
2672         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
2673         bdesc_arrays instead of mips_bdesc.
2674         (mips_init_builtins): Likewise.
2675         * config/mips/mips.h (TARGET_SB1): New.
2676         (HAVE_SQRT_P): Delete.
2677         * config/mips/mips.md (divide_condition): Support V2SF.
2678         (sqrt_condition, recip_condition): New.
2679         (div<mode>3): Use ANYF instead of SCALARF.
2680         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
2681         MODE.
2682         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
2683         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
2684         instead of MODE.
2685         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
2686         instead of SCALARF.  Use UNITMODE instead of MODE.
2687
2688 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
2689
2690         * config.in: Regenerate after removal of libbanshee.
2691
2692 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
2693
2694         PR tree-optimization/17400
2695         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2696         coalesce partitions when one occurs in an abnormal PHI.
2697
2698 2004-09-13  Andrew Pinski  <apinski@apple.com>
2699
2700         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
2701         name to _new_size.
2702
2703 2004-09-13  Richard Henderson  <rth@redhat.com>
2704
2705         PR inline-asm/6806
2706         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
2707         (cselib_invalidate_rtx_note_stores): New.
2708         (cselib_record_sets, cselib_process_insn): Update to match.
2709         * cselib.h (cselib_invalidate_rtx): Declare.
2710         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
2711
2712 2004-09-13  Richard Henderson  <rth@redhat.com>
2713
2714         PR tree-opt/10528
2715         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
2716         after copying its argument.
2717
2718 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
2719
2720         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
2721         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
2722         in diagnostics.  Use %' for English apostrophes.
2723         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
2724         (pedwarn_c90, pedwarn_c99): Use it.
2725         * c-decl.c (lookup_label): Quote label name in diagnostic.
2726         * c-parse.in (yyprint): Use ' instead of ` for left quote.
2727         * c-typeck.c (warn_for_assignment): Likewise.
2728
2729 2004-09-13  Jan Hubicka  <jh@suse.cz>
2730
2731         * i386.c (x86_schedule): New global variable.
2732         (override_options): Disable scheduling when not supported.
2733         * i386.h (x86_schedule): Declare.
2734         (TARGET_SCHEDULE): New macro.
2735
2736 2004-09-12  Richard Henderson  <rth@redhat.com>
2737
2738         PR c++/16254
2739         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
2740         * tree.c, tree.h (has_cleanups): Remove.
2741
2742 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2743
2744         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
2745         arguments of the phi nodes correctly.
2746
2747 2004-09-12  Jan Hubicka  <jh@suse.cz>
2748
2749         * ggc-common.c (cmp_statistics): Fix sorting.
2750
2751 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
2752
2753         PR target/16795
2754         * expmed.c (expand_divmod): If cheap power of 2 divide is
2755         available, use it for negative constant as well.
2756
2757 2004-09-12  Andrew Pinski  <apinski@apple.com>
2758
2759         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
2760         size of 0.
2761
2762         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
2763
2764 2004-09-12  Richard Henderson  <rth@redhat.com>
2765
2766         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
2767         or minus one.
2768         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
2769         post-reload, and scratch NULL.
2770         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
2771         (x86_shift_adj_2): Use ix86_expand_clear.
2772         (ashldi3): Remove CMOVE expansion difference.
2773         (ashldi3_1): Remove.
2774         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
2775         add constraints for immediates.  New peephole for split-with-temp.
2776         Run splitter after peep2 pass.
2777         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
2778         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
2779         (setcc_2): Rename with *.
2780         * config/i386/predicates.md (reg_or_pm1_operand): New.
2781         (ashldi_input_operand): New.
2782
2783 2004-09-12  Richard Henderson  <rth@redhat.com
2784
2785         * print-rtl.c (print_decl_name): New.
2786         (print_mem_expr): Use it.
2787
2788 2004-09-12  Richard Henderson  <rth@redhat.com
2789
2790         PR 17186, part deux
2791         * except.c (sjlj_emit_function_exit): Fix logic locating
2792         sjlj_exit_after in final block.
2793
2794 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
2795
2796         * common.opt: Remove flags -fmove-all-movables and
2797         -freduce-all-givs.
2798         * loop-invariant.c (find_invariants_to_move):
2799         Remove all uses of flag_move_all_movables.
2800         * loop.c (move_movables): Remove all uses of
2801         flag_move_all_movables.
2802         (strength_reduce): Remove all uses of
2803         flag_reduce_all_givs.
2804         * doc/invoke.texi: Remove documentation of flags
2805         -fremove-all-movables and -freduce-all-givs.
2806
2807 2004-09-11  Roger Sayle  <roger@eyesopen.com>
2808
2809         PR middle-end/17411
2810         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
2811         change. elt->type may be a floating point type, so use fold_convert.
2812
2813 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
2814
2815         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
2816         the thing referenced as used, not the stub itself.
2817
2818 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
2819
2820         * c-tree.h (enum c_storage_class): New.
2821         (struct c_declspecs): Add storage_class, inline_p and thread_p.
2822         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
2823         declarations and "auto" or "register" in file scope empty
2824         declarations.  Give more specific warnings for other cases of
2825         storage class specifiers in empty declarations.
2826         (grokdeclarator): Update for new structures.  Don't check for
2827         multiple storage classes.  Diagnose file-scope "register" if
2828         pedantic.
2829         (build_null_declspecs): Update.
2830         (declspecs_add_scspec): Update.  Diagnose multiple storage class
2831         specifiers and invalid uses of "__thread".
2832
2833 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
2834
2835         * tree.c (tree_code_size): New function, bulk of code from tree_size.
2836         (tree_size, make_node): Use it.
2837         * tree-ssa-pre.c (init_pre): Use it.
2838         * tree.h: Prototype it.
2839
2840 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2841
2842         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
2843         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
2844         redirect_immediate_use): Use PHI_DF.
2845         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
2846         (bb_for_stmt): Use PHI_BB.
2847         (get_immediate_uses): Use PHI_DF.
2848         * tree-ssa-dse.c (max_stmt_uid): New variable.
2849         (get_stmt_uid): New function.
2850         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
2851         node annotations.
2852         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
2853         (max_uid): Renamed to max_stmt_uid.
2854         (get_stmt_uid): New function.
2855         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
2856         phi node annotations.
2857         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
2858         * tree.h (PHI_BB, PHI_DF): New accessor functions.
2859         (struct tree_phi_node): Add bb and df fields.
2860
2861 2004-09-11  Richard Henderson  <rth@redhat.com>
2862
2863         PR middle-end/17416
2864         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
2865         in conflict loop.
2866
2867 2004-09-11  Jan Hubicka  <jh@suse.cz>
2868
2869         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
2870         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
2871         * i386.md (i387_cw): Add 'uninitialized' mode.
2872
2873         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
2874         (output_location): Break out from ....
2875         (branch_prob): ... here; handle gcov output on trees.
2876         * toplev.c (process_options): No longer be sorry about coverage for
2877         trees.
2878
2879 2004-09-11  Steven Bosscher  <stevenb@suse.de>
2880
2881         PR c++/17412
2882         * fold-const.c (fold): Do not try to fold the operand of a
2883         CLEANUP_POINT_EXPR if that operand does itself not have any
2884         operands.
2885
2886         PR middle-end/17417
2887         * langhooks.c (lhd_decl_printable_name): Make sure that this
2888         function is called with is a decl node that has an identifier.
2889         * tree-pretty-print.c (dump_function_name): New function to
2890         wrap PRINT_FUNCTION_NAME and dump_decl_name.
2891         (print_call_name): Use it.
2892
2893 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
2894
2895         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
2896         "config.h" if not.
2897
2898 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
2899
2900         * tree-ssa-alias.c (collect_points_to_info_r): Handle
2901         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
2902         to OFFSET.
2903
2904 2004-09-11  Richard Henderson  <rth@redhat.com>
2905
2906         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
2907         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
2908         operand of the ADDR_EXPR.
2909         (expand_expr_real_1): Update to match.
2910
2911 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
2912
2913         PR target/17277
2914         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
2915         choose 64-bit version.
2916
2917 2004-09-11  Richard Henderson  <rth@redhat.com>
2918
2919         PR c/17396
2920         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
2921
2922 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
2923
2924         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
2925         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
2926         Insert @: after i.e. or e.g.
2927
2928 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
2929
2930         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
2931         D.xxx rather than <Dxxx>.
2932
2933 2004-09-10  Adam Nemet  <anemet@lnxw.com>
2934
2935         * configure.ac (AC_MSG_CHECKING(what linker to use)):
2936         in_tree_ld_is_elf should be true for LynxOS.
2937         * configure: Regenerate.
2938
2939 2004-09-10  Adam Nemet  <anemet@lnxw.com>
2940
2941         * Makefile.in (all.cross): Add srcextra.
2942
2943 2004-09-10  Roger Sayle  <roger@eyesopen.com>
2944
2945         PR middle-end/17024
2946         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
2947         floating point comparison operators.  Change aborts to gcc_asserts.
2948
2949 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
2950
2951         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
2952
2953 2004-09-10  James E Wilson  <wilson@specifixinc.com>
2954
2955         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
2956         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
2957
2958         * convert.c (convert_to_vector): Replace recursive call with
2959         error_mark_node.
2960
2961         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
2962         Add integer argument named constant.  Use const_tiny_rtx instead of
2963         CONST0_RTX.
2964         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
2965         and CONST1_RTX.
2966         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
2967         vector types.
2968         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
2969         of gen_rtx_raw_CONST_VECTOR.
2970
2971 2004-09-10  Eric Christopher  <echristo@redhat.com>
2972
2973         PR c/16046
2974         * c-parse.in (attribute): Add NULL_TREE for error case
2975         for error recovery.
2976
2977 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
2978
2979         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
2980         (extract_interface_info): Delete prototype.
2981         * c-decl.c (extract_interface_info): Delete stub.
2982         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
2983         it's not already been done ...
2984         (init_c_lex): ... not here.
2985         (fe_file_change): Don't call extract_interface_info.
2986
2987 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
2988
2989         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
2990         typedef_p and typedef_signed_p.
2991         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
2992         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
2993         Check typedef_p and typedef_signed_p, not typedef_decl.
2994         (grokfield): Check typedef_p, not typedef_decl.
2995         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
2996         not typedef_decl.
2997         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
2998         typedef_decl.
2999
3000 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
3001
3002         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
3003
3004 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
3005
3006         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
3007         temporary variables.
3008
3009         * dbxout.c (dbxout_block): Update for
3010         current_function_func_begin_label a string.
3011         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
3012         * except.c (dw2_output_call_site_table): Likewise.
3013         * toplev.c (current_function_func_begin_label): Likewise.
3014         * tree.h (current_function_func_begin_label): Likewise.
3015         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
3016
3017         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
3018         loop.
3019
3020         * config/darwin.c: Include target.h.
3021         (struct machopic_indirection): Make ptr_name a string.
3022         (machopic_indirection_hash): Update for ptr_name a string.
3023         (machopic_indirection_eq): Likewise.
3024         (machopic_indirection_name): Likewise.
3025         (machopic_output_indirection): Likewise.
3026         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
3027         string.  Don't expect stub names to be in the identifier hash table.
3028         Do call strip_name_encoding before looking up entry in ID hash table.
3029         * config/t-darwin (darwin.o): Add target.h to dependencies.
3030
3031         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
3032         of fprintf for register names.
3033
3034         * output.h (unlikely_section_label): Delete declaration.
3035         (unlikely_text_section_name): Likewise.
3036         * varasm.c (unlikely_section_label_printed): Make static.
3037         (unlikely_section_label): Likewise.
3038         (unlikely_text_section_name): Likewise.
3039         (assemble_start_function): Use reconcat.
3040
3041         * rtl.def (REG): Add comment to describe third field.
3042
3043 2004-09-10  Andrew Pinski  <apinski@apple.com>
3044
3045         * config/darwin.c (machopic_mcount_stub_name): Call
3046         machopic_indirection_name instead of making the string
3047         ourselves.
3048
3049 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
3050
3051         Revert
3052
3053         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
3054
3055             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
3056             memory tag is call clobbered, so are its aliases.
3057             (group_aliases): When two memory tags being grouped, if one is
3058             call clobbered, so are the other and its aliases.
3059             (add_may_alias): Remove call-clobbering stuff.
3060             (replace_may_alias): Likewise.
3061             (merge_pointed_to_info): Merge pt_global_mem
3062
3063 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
3064
3065         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
3066         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
3067         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
3068         tree-scalar-evolution.c, tree-ssa-copyrename.c,
3069         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
3070
3071 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
3072
3073         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
3074         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
3075         pair.  Remove match_dup from inputs.  Remove masaccs handling.
3076         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
3077         (masaccs, mdasaccs): Turn into define_insns.
3078
3079 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
3080
3081         * tree-tailcall.c (process_assignment): Only do accumulator transforms
3082         for floating-point types if flag_unsafe_math_optimizations.
3083
3084 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
3085
3086         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
3087         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
3088         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
3089         config/h8300/h8300.md, config/i386/gmm_malloc.h,
3090         config/ia64/ia64.md, config/ip2k/libgcc.S,
3091         config/mips/mips-ps-3d.md, config/mips/mips.c,
3092         config/rs6000/rs6000.c, config/s390/s390.c,
3093         config/sh/symbian.c: Fix comment typos.
3094
3095 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
3096
3097         * config/s390/s390.c (s390_emit_prologue): Added missing
3098         "{}" brackets.
3099
3100 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
3101
3102         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
3103         typos.  Follow spelling conventions.
3104
3105 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
3106
3107         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
3108         in diagnostic.  Don't dereference NULL TYPE_NAME.
3109
3110 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
3111
3112         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
3113         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
3114         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
3115         value-prof.c: Fix comment typos.  Follow spelling conventions.
3116
3117 2004-09-10  Jan Hubicka  <jh@suse.cz>
3118
3119         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
3120         * tree-split_edge.c (tree_split_edge): Likewise.
3121         (thread_jumps): Likewise.
3122
3123 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
3124
3125         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
3126         typos.
3127
3128 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
3129
3130         * cgraph.h (cgraph_dump_file): Do not declare.
3131         * cgraphunit.c (cgraph_dump_file): Declare as static.
3132         (init_cgraph): New.
3133         * toplev.c (cgraph_dump_file): Do not declare.
3134         (compile_file): Call init_cgraph.
3135         * tree-dump.c (dump_files): Add IPA dump file, remove
3136         XML dump of call graph.
3137         (get_dump_file_name): Support IPA dump file naming scheme.
3138         * tree.h (enum tree_dump_index): Add IPA dump file, remove
3139         XML dump of call graph.
3140         * doc/invoke.texi (Debugging Options): Document the new options.
3141
3142 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
3143
3144         * doc/extend.texi: Document the FR-V built-in functions.
3145
3146 2004-09-09  James E Wilson  <wilson@specifixinc.com>
3147
3148         * doc/sourcebuild.texi: Delete libbanshee reference.
3149
3150 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
3151
3152         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
3153
3154 2004-09-09  James E Wilson  <wilson@specifixinc.com>
3155
3156         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
3157         before calling vector_types_convertible_p.
3158         (digest_init): Check that inside_init has VECTOR_TYPE before calling
3159         vector_types_convertible_p.  Don't give another error if
3160         convert_for_assignment returns error_mark_node.
3161
3162 2004-09-09  Roger Sayle  <roger@eyesopen.com>
3163
3164         PR middle-end/17055
3165         * fold-const.c (build_zero_vector): New function to construct a
3166         vector (either floating point or integer) of zeros.
3167         (fold_convert): Internally, enable conversions of integer zero
3168         to arbitrary vector types, using the new build_zero_vector.
3169
3170 2004-09-09  Roger Sayle  <roger@eyesopen.com>
3171
3172         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
3173         expand a left shift by an immediate constant as either an ashl or
3174         a sequence of additions.
3175         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
3176         instead of calling gen_ashlsi3 with a constant directly.
3177
3178 2004-09-09  Roger Sayle  <roger@eyesopen.com>
3179
3180         * config/i386/i386.c (ix86_split_long_move): When optimizing for
3181         size, and the low and high parts of a DImode constant are equal,
3182         copy one register to another instead of loading the same immediate
3183         value twice.
3184
3185 2004-09-09  Richard Henderson  <rth@redhat.com>
3186
3187         PR middle-end/17367
3188         * function.c (assign_parm_setup_block): Only put PARALLELs into
3189         a register if use_register_for_decl.
3190
3191 2004-09-09  Eric Christopher  <echristo@redhat.com>
3192
3193         * ra-colorize.c (reset_lists): Move variable declaration inside
3194         ENABLE_CHECKING to avoid unused variable warnings when
3195         not --enable-checking.
3196         (check_colors): Ditto.
3197
3198 2004-09-09  Mike Stump  <mrs@apple.com>
3199
3200         * version.c (version_string): Bump to 4.0.0.
3201         * doc/include/gcc-common.texi (version-GCC): Likewise.
3202
3203 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
3204
3205         * doc/extend.texi (nothrow attribute): The attribute is not
3206         implemented in 3.2 and earlier.
3207
3208 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
3209
3210         * genrecog.c (compute_predicate_codes): Use op0_codes
3211         instead of codes.
3212
3213 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
3214
3215         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
3216         implementation changes.
3217
3218 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
3219
3220         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
3221         a PARALLEL instead of a SET due to added clobbers.
3222
3223 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
3224
3225         * reload.c (find_reloads_address): Pass correct operand to
3226         maybe_memory_address_p.
3227
3228 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
3229
3230         * Makefile.in: Remove libbanshee, tree-alias-*.
3231         Remove tree-alias-common.h dependencies.
3232         * common.opt: Remove -ftree-points-to.
3233         * configure.ac: Remove libbanshee.
3234         * flags.h: Remove pta_type, flag_tree_points_to.
3235         * gengtype.c (open_base_files): Remove tree-alias-type.h.
3236         * opts.c (OPT_ftree_points_to): Remove.
3237         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
3238         * tree-dfa.c: Remove tree-alias-common.h
3239         * tree-into-ssa.c: Ditto.
3240         * tree-outof-ssa.c: Ditto.
3241         * tree-ssa-copyrename.c: Ditto.
3242         * tree-ssa-live.c: Ditto.
3243         * tree-optimize.c: Ditto.
3244         * tree-ssa.c: Ditto.
3245         Remove pass_build_pta, pass_del_pta.
3246         * tree-pass.h: Ditto.
3247         * tree-ssa-alias.c: Remove tree-alias-common.h.
3248         (struct alias_stats_d): Remove pta_queries, pta_resolved.
3249         (pass_may_alias): Remove PROP_pta requirement.
3250         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
3251         (get_tmt_for): Ditto.
3252         (dump_alias_stats): Ditto.
3253         * doc/passes.texi: Remove blurb about points-to analysis.
3254         * fortran/Make-lang.in: Remove tree-alias-*.o.
3255
3256 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
3257
3258         * genattrtab.c (write_insn_cases): New function, split out from
3259         write_attr_case.  Correctly handle define_peepholes when printing
3260         the instruction name.
3261         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
3262
3263 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
3264
3265         PR target/17377
3266         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
3267         * config/cris/cris.c (cris_return_address_on_stack): New function.
3268         * config/cris/cris.md ("return"): For location of return address,
3269         also check cris_return_address_on_stack.
3270
3271 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
3272
3273         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
3274         calling phi_ssa_name_p.
3275
3276 2004-09-09  Richard Henderson  <rth@redhat.com>
3277
3278         PR c/17322
3279         * c-typeck.c (valid_compound_expr_initializer): Use only
3280         initializer_constant_valid_p, and not TREE_CONSTANT.
3281         (digest_init): Likewise.
3282         (output_init_element): Likewise.
3283
3284 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3285
3286         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
3287         live_out_1, prune_hardregs_for_mode, init_one_web_common,
3288         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
3289         record_conflict, compare_and_free_webs, init_webs_defs_uses,
3290         parts_to_webs_1, parts_to_webs, reset_conflicts,
3291         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
3292         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
3293         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
3294         put_move, remove_move, combine, select_spill, colorize_one_web,
3295         try_recolor_web, insert_coalesced_conflicts, check_colors,
3296         break_precolored_alias, restore_conflicts_from_coalesce,
3297         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
3298         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
3299         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
3300         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
3301         check_df): Likewise.
3302         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
3303         real_arithmetic, real_compare, real_exponent, real_ldexp,
3304         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
3305         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
3306         real_digit, real_nan, real_maxval, round_for_format, real_convert,
3307         real_to_target, real_from_target, real_hash, encode_ieee_single,
3308         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
3309         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
3310         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
3311         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
3312         extract_insn, peep2_next_insn, peep2_reg_dead_p,
3313         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
3314         if_test_bypass_p): Likewise.
3315         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
3316         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
3317         emit_swap_insn, swap_to_top, move_for_stack_reg,
3318         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
3319         compensate_edge, convert_regs_1): Likewise.
3320         * regclass.c (init_reg_sets, init_reg_sets_1,
3321         memory_move_secondary_cost): Likewise.
3322         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
3323         Likewise.
3324         * reload.c (push_secondary_reload, find_valid_class, push_reload,
3325         operands_match_p, decompose, immune_p, find_reloads,
3326         find_reloads_toplev, find_reloads_address_1, subst_reloads,
3327         copy_replacements, refers_to_regno_for_reload_p,
3328         reg_overlap_mentioned_for_reload_p): Likewise.
3329         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
3330         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
3331         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
3332         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
3333         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
3334         do_output_reload, fixup_abnormal_edges): Likewise.
3335         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
3336         fill_slots_from_thread, relax_delay_slots): Likewise.
3337         * resource.c (mark_referenced_resources, mark_set_resources):
3338         Likewise.
3339         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
3340         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
3341         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
3342         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
3343         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
3344         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
3345         * rtlhooks.c (gen_lowpart_general): Likewise.
3346         * sbitmap.c (sbitmap_difference): Likewise.
3347         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
3348         sched_analyze, add_forward_dependence): Likewise.
3349         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
3350         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
3351         schedule_insns): Likewise.
3352         * sched-vis.c (print_pattern): Likewise.
3353         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
3354         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
3355         simplify_const_relational_operation, simplify_ternary_operation,
3356         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
3357         Likewise.
3358         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
3359         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
3360         resolve_operand_name_1, expand_return, expand_decl,
3361         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
3362         * stor-layout.c (put_pending_size, smallest_mode_for_size,
3363         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
3364         set_sizetype, get_mode_bounds): Likewise.
3365
3366 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
3367
3368         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
3369         * config/arm/pecoff.h, config/i386/beos-elf.h
3370         * config/i386/cygming.h, config/i386/i386-interix.h:
3371         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
3372         comment cloned from manual.
3373         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
3374
3375 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
3376
3377         * builtins.c (build_va_arg_indirect_ref): New function.
3378         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
3379         build_fold_indirect_ref.
3380         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
3381         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
3382         * tree.h: Declare new function.
3383
3384 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3385
3386         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
3387         dumping for development builds.
3388         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
3389         development builds only.
3390         * genattrtab.c (write_eligible_delay): Fix typo in previous
3391         commit.
3392         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
3393         gcc_assert.
3394
3395 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3396
3397         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
3398         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
3399         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
3400         hoist_code, extract_mentioned_regs_helper, compute_store_table,
3401         insert_store): Use gcc_assert and gcc_unreachable.
3402         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
3403         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
3404         ggc_record_overhead): Likewise.
3405         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
3406         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
3407         ggc_pop_context, clear_marks, validate_free_objects,
3408         ggc_pch_read): Likewise.
3409         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
3410         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
3411         ggc_push_context, check_cookies, ggc_collect,
3412         ggc_print_statistics): Likewise.
3413         * gimple-low.c (lower_function_body, lower_stmt,
3414         lower_bind_expr): Likewise.
3415         * gimplify.c (gimple_tree_eq, push_gimplify_context,
3416         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
3417         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
3418         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
3419         gimplify_case_label_expr, gimplify_exit_block_expr,
3420         canonicalize_component_ref, gimplify_compound_lval,
3421         gimplify_self_mod_expr, gimplify_call_expr,
3422         gimplify_init_ctor_eval, gimplify_init_constructor,
3423         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
3424         gimplify_expr, check_pointer_types_r,
3425         force_gimple_operand): Likewise.
3426         * global.c (global_alloc, build_insn_chain): Likewise.
3427         * graph.c (clean_graph_dump_file,
3428         finish_graph_dump_file): Likewise.
3429         gcov-io.c (gcov_open): Use GCOV_CHECK.
3430
3431 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
3432
3433         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
3434
3435 2004-09-09  Jan Hubicka  <jh@suse.cz>
3436
3437         middle-end/17128
3438         * tree-inline.c (expand_call_inline): Make overactive sanity check
3439         happy.
3440
3441 2004-09-09  Jan Hubicka  <jh@suse.cz>
3442
3443         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
3444         VIEW_CONVERT_EXPR.
3445
3446 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3447
3448         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
3449         (gengtype.o): Depend on errors.h.
3450         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
3451         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
3452         attr_alt_subset_p, attr_alt_subset_of_compl_p,
3453         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
3454         write_test_expr, write_attr_value, write_eligible_delay,
3455         make_internal_attr, make_numeric_value): Likewise.
3456         * genautomata.c (regexp_name, get_str_vect,
3457         gen_presence_absence_set, automaton_decl_hash,
3458         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
3459         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
3460         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
3461         test_unit_reserv, it_is_empty_reserv_sets,
3462         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
3463         reserv_sets_and, output_cycle_reservs, get_free_state,
3464         intersected_state_reservs_p, states_union, remove_arc,
3465         copy_insn_regexp, transform_1, transform_2, transform_3,
3466         regexp_transform_func, store_alt_unit_usage,
3467         check_regexp_units_distribution, process_seq_for_forming_states,
3468         process_alts_for_forming_states, make_automaton,
3469         form_arcs_marked_by_insn, create_composed_state,
3470         set_out_arc_insns_equiv_num, partition_equiv_class,
3471         process_insn_equiv_class, set_insn_equiv_classes,
3472         units_to_automata_heuristic_distr, form_regexp,
3473         longest_path_length, output_dfa_max_issue_rate, add_vect,
3474         out_state_arcs_num, add_vect_el, output_trans_table,
3475         output_state_alts_table, output_dead_lock_vect,
3476         output_max_insn_queue_index_def,
3477         output_min_insn_conflict_delay_func,
3478         output_internal_insn_latency_func, output_print_reservation_func,
3479         output_cpu_unit_reservation_p, output_state_arcs,
3480         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
3481         make_default_insn_latency_attr,
3482         form_important_insn_automata_lists): Likewise.
3483         * genemit.c (gen_exp, output_add_clobbers,
3484         output_added_clobbers_hard_reg_p): Likewise.
3485         * genextract.c (print_path, main): Likewise.
3486         * genflags.c (gen_macro): Likewise.
3487         * gengenrtl.c: Include errors.h
3488         (type_from_format, accessor_from_format): Likewise.
3489         * gengtype.c (get_file_basename, output_mangled_typename,
3490         walk_type, write_types_process_field,
3491         write_types_local_process_field): Likewise.
3492         * genmodes.c (complete_mode): Likewise.
3493         * genopinit.c (gen_insn): Likewise.
3494         * genoutput.c (output_insn_data, check_constraint_len,
3495         constraint_len): Likewise.
3496         * genpreds.c (add_mode_tests):Likewise.
3497         * gen-protos.c (add_hash): Likewise.
3498         * genrecog.c (find_operand, find_matching_operand,
3499         validate_pattern, add_to_sequence, maybe_both_true,
3500         nodes_identical_1, merge_trees, write_switch, write_cond,
3501         write_action, is_unconditional, make_insn_sequence,
3502         debug_decision_2): Likewise.
3503         * gensupport.c (is_predicable, collect_insn_data,
3504         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
3505
3506 2004-09-09  Jan Hubicka  <jh@suse.cz>
3507
3508         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
3509         * cfgbuild.c (compute_outgoing_frequencies): When probability is
3510         missing, guess it.
3511         (find_many_sub_basic_blocks): Do update profile only when it is
3512         present.
3513         * predict.c (set_even_probabilities): Break out from ...
3514         (combine_predictions_for_insn): ... here; deal with
3515         !can_predict_insn_p insns.
3516         (combine_predictions_for_bb): Use set_even_probabilities.
3517         (bb_estimate_probability_locally): Break out from ....
3518         (estimate_probability): ... here.
3519         (guess_outgoing_edge_probabilities): New entry point.
3520
3521 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3522
3523         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
3524         handle_braces, process_brace_body, main, used_arg,
3525         set_multilib_dir, print_multilib_info): Use fatal, not abort.
3526
3527         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
3528
3529         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
3530         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
3531         Morgan's theorem in last checkin.
3532
3533 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3534             Nathan Sidwell  <nathan@codesourcery.com>
3535
3536         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
3537         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
3538         * timevar.c (timevar_push, timevar_pop, timevar_start,
3539         timevar_stop): Likewise.
3540         * toplev.c (default_pch_valid_p): Likewise.
3541         * tracer.c (tail_duplicate): Likewise.
3542         * tree-alias-common.c (get_alias_var_decl,
3543         get_values_from_constructor, create_alias_var, delete_alias_vars,
3544         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
3545         Likewise.
3546         * tree.c (tree_size, make_node_stat, copy_node_stat,
3547         build_int_cst_wide, integer_all_onesp, list_length, chainon,
3548         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
3549         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
3550         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
3551         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
3552         build_method_type_directly, decl_type_context, get_callee_fndecl,
3553         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
3554         tree_fold_gcd): Likewise.
3555         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
3556         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
3557         cleanup_control_expr_graph, find_taken_edge,
3558         find_taken_edge_switch_expr, phi_alternatives_equal,
3559         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
3560         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
3561         tree_split_edge, tree_verify_flow_info, thread_jumps,
3562         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
3563         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
3564         chrec_fold_multiply_poly_poly): Likewise.
3565         * tree-complex.c (extract_component, expand_complex_division,
3566         expand_complex_comparison, expand_complex_operations_1,
3567         build_replicated_const, expand_vector_operations_1): Likewise.
3568         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
3569         build_classic_dir_vector): Likewise.
3570         * tree-dfa.c (compute_immediate_uses_for_phi,
3571         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
3572         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
3573         * tree-dump.c (dequeue_and_dump): Likewise.
3574         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
3575         record_in_finally_tree, replace_goto_queue_1,
3576         maybe_record_in_goto_queue, verify_norecord_switch_expr,
3577         do_return_redirection): Likewise.
3578         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
3579         add_to_dst_predicate_list, find_phi_replacement_condition,
3580         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
3581         Likewise.
3582         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
3583         initialize_inlined_parameters, declare_return_variable,
3584         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
3585         optimize_inline_calls, copy_tree_r): Likewise.
3586         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
3587         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
3588         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
3589         tsi_split_statement_list_after, tsi_split_statement_list_before):
3590         Likewise.
3591         * tree-mudflap.c (mf_varname_tree): Likewise.
3592         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
3593         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
3594         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3595         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
3596         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
3597         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
3598         Likewise.
3599         * tree-phinodes.c (resize_phi_node, add_phi_arg,
3600         remove_all_phi_nodes_for): Likewise.
3601         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
3602         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
3603         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
3604         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
3605         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
3606         generate_one_element_ref, generate_element_copy,
3607         generate_element_zero, scalarize_copy, scalarize_init,
3608         scalarize_ldst): Likewise.
3609         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
3610         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
3611         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
3612         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
3613         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
3614         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
3615         widen_bitfield, ccp_fold_builtin): Likewise.
3616         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
3617         replace_exp_1, propagate_tree_value): Likewise.
3618         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
3619         * tree-ssa-dce.c (set_control_dependence_map_bit,
3620         find_control_dependence, find_pdom, mark_operand_necessary,
3621         mark_stmt_if_obviously_necessary,
3622         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
3623         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
3624         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
3625         eliminate_redundant_computations, avail_expr_eq): Likewise.
3626         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
3627         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
3628         duplicate_blocks): Likewise.
3629         * tree-ssa-loop-im.c (for_each_index, set_level,
3630         is_call_clobbered_ref): Likewise.
3631         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
3632         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
3633         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
3634         peel_address, ptr_difference_cost, may_replace_final_value,
3635         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
3636         rewrite_use, rewrite_uses): Likewise.
3637         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
3638         check_loop_closed_ssa_use): Likewise.
3639         * tree-ssanames.c (make_ssa_name): Likewise.
3640         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
3641         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
3642         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
3643         get_indirect_ref_operands, add_stmt_operand): Likewise.
3644         * tree-ssa-pre.c (value_exists_in_set_bitmap,
3645         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
3646         phi_translate, valid_in_set, compute_antic,
3647         find_or_generate_expression, create_expression_by_pieces, insert_aux,
3648         create_value_expr_from, eliminate): Likewise.
3649         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
3650         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
3651         Likewise.
3652         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
3653         eliminate_tail_call): Likewise.
3654         * tree-vectorizer.c (vect_create_index_for_array_ref,
3655         vect_align_data_ref, vect_create_data_ref,
3656         vect_create_destination_var, vect_get_vec_def_for_operand,
3657         vect_finish_stmt_generation, vect_transform_stmt,
3658         vect_transform_loop_bound, vect_transform_loop,
3659         vect_analyze_operations): Likewise.
3660         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
3661         Likewise.
3662         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
3663         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
3664         bsi_after_labels, bsi_last): Likewise.
3665         * tree-ssa-live.c (var_union, change_partition_var,
3666         create_ssa_var_map, calculate_live_on_entry, root_var_init,
3667         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
3668         Likewise.
3669         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
3670         tpa_find_tree): Likewise.
3671         (register_ssa_partition_check): Declare.
3672         (register_ssa_partition): use it.
3673         * tree-ssa-live.c: Include errors.h.
3674         (register_ssa_partition_check): New.
3675         * tree-ssa-operands.c: Include errors.h.
3676         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
3677
3678 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
3679             Catherine Moore  <clm@redhat.com>
3680
3681         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
3682         (FRV_CPU_FR405): New processor enums.
3683         (frv_issue_rate, frv_acc_group): Declare.
3684         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
3685         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
3686         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
3687         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
3688         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
3689         handled by CPP_SPEC.
3690         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
3691         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
3692         (ACC_MASK): New macro.
3693         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
3694         (TARGET_MEDIA_FR450): New macro.
3695         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
3696         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
3697         (LABEL_ALIGN_AFTER_BARRIER): Define.
3698         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
3699         (IACC_FIRST, IACC_LAST): New pair of SPRs.
3700         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
3701         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
3702         (REGISTER_NAMES): Add entries for new registers.
3703         (REG_CLASS_CONTENTS): Update for new register ranges.
3704         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
3705         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
3706         (PACKING_FLAG_USED_P): Delete.
3707         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
3708         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
3709         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
3710         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
3711         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
3712         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
3713         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
3714         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
3715         (CPU_UNITS_QUERY): Define to 1.
3716         * config/frv/frv.c: Include gt-frv.h
3717         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
3718         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
3719         (frv_insn_group): New enumeration.
3720         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
3721         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
3722         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
3723         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
3724         gap left by REGSTATE_LIVE.
3725         (regstate_t): New typedef.
3726         (TARGET_MACHINE_DEPENDENT_REORG): Define.
3727         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
3728         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
3729         Initialize frv_unit_codes[] and frv_type_to_unit[].
3730         (frv_conditional_register_usage): Remove redundant fixing of
3731         accumulator registers.
3732         (frv_insn_packing_flag): Update specification.
3733         (frv_function_prologue): Don't set frv_insn_packing_flag here.
3734         Zero out frv_nops[].
3735         (frv_expand_epilogue): Remove comments about the no-longer-present
3736         SIBCALL_P argument.
3737         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
3738         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
3739         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
3740         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
3741         packing is disabled and if INSN can only issue to M1.
3742         (call_operand): Check TARGET_LONG_CALLS.
3743         (acc_operand, even_acc_operand, quad_acc_operand)
3744         (accg_operand): Simplify.  Don't accept pseudo registers.
3745         (output_move_single): Handle SPR<-zero moves.
3746         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
3747         (frv_registers_update, frv_registers_used_p): Delete.
3748         (frv_registers_set_p): Delete.
3749         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
3750         (frv_issues_to_branch_unit_p): New function.
3751         (frv_packet): New structure.
3752         (frv_cond_flags, frv_regstate_conflict_p): New functions.
3753         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
3754         (frv_registers_update_1, frv_registers_update): New functions.
3755         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
3756         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
3757         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
3758         (frv_sort_insn_group, frv_reorder_packet): New functions.
3759         (frv_pack_insns): Use frv_reorder_packet.
3760         (frv_packet_address): New variable.
3761         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
3762         (frv_register_nop, frv_reorg): New functions.
3763         (bdesc_1arg): Add __SCUTSS.
3764         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
3765         __SUBSS, __SLASS and __SCAN.
3766         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
3767         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
3768         (frv_init_builtins): Register the above builtins.
3769         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
3770         registers.  Turn the referenced accumulators into global registers.
3771         (frv_read_iacc_argument): New function.
3772         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
3773         (frv_split_iacc_move): New function.
3774         (frv_expand_builtin): Handle the new builtins.
3775         * config/frv/frv.md: Replace old schedulers with new order-independent
3776         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
3777         packing algorithm.
3778         (cpu): Add fr550, fr450 and fr405.
3779         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
3780         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
3781         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
3782         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
3783         (fnop, mnop): New patterns.
3784         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
3785         New constants.
3786         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
3787         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
3788         registers.
3789         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
3790         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
3791         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
3792         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
3793         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
3794         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
3795         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
3796         (frv_prefetch0, frv_prefetch): New patterns.
3797         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
3798         -mcpu=simple.  Add -mcpu=fr550.
3799         (MULTILIB_DIRNAMES): Update accordingly.
3800         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
3801         -mcpu=fr450.
3802         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
3803         -mlong-calls and -malign-labels options for FR-V.
3804
3805 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
3806
3807         PR c/8420
3808         * c-tree.h (struct c_declspecs): New.
3809         (struct c_declarator, struct c_type_name, struct c_parm): Update
3810         element types.
3811         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
3812         start_function, start_decl, build_c_parm,
3813         make_pointer_declarator): Update prototypes.
3814         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
3815         declspecs_add_scspec, declspecs_add_attrs): New.
3816         (split_specs_attrs): Remove.
3817         * c-parse.in (%union): Add dsptype.
3818         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
3819         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
3820         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
3821         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
3822         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
3823         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
3824         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
3825         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
3826         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
3827         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
3828         maybe_type_quals_attrs): Change to dsptype.
3829         (struct c_declspec_stack): New.
3830         (current_declspecs, declspec_stack): Change type.
3831         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
3832         structures.
3833         (extdefs): Likewise.
3834         (setspecs): Likewise.
3835         (fndef): Use current_declspecs for empty declspecs list.
3836         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
3837         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
3838         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
3839         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
3840         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
3841         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
3842         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
3843         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
3844         structures and helper functions.  Update comments.
3845         (typespec_nonattr): Correct comment.
3846         (maybe_type_quals_attrs, typename): Update to new structures.
3847         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
3848         shadow_tag, shadow_tag_warned, start_function, start_decl,
3849         build_c_parm, make_pointer_declarator,
3850         set_array_declarator_inner, groktypename): Update to new
3851         structures.
3852         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
3853         declspecs_add_scspec, declspecs_add_attrs): New.
3854         (split_specs_attrs): Remove.
3855         (shadow_tag_warned): Make warning for useless type names a
3856         pedwarn.  Give hard error for long, short, signed, unsigned or
3857         _Complex used with struct, union or enum in empty declaration.
3858         Make found_tag a bool.
3859         (grokdeclarator): Remove checks now done at parse time.
3860
3861 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
3862
3863         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
3864         c_declarator, struct c_type_name, struct c_parm): New.
3865         (build_array_declarator, set_array_declarator_inner,
3866         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
3867         start_function, start_decl, build_c_parm, build_attrs_declarator,
3868         build_function_declarator, make_pointer_declarator, c_cast_expr,
3869         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
3870         (build_id_declarator): New.
3871         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
3872         structures.
3873         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
3874         ARG_INFO_OTHERS): Remove.
3875         (build_id_declarator): New.
3876         (build_array_declarator, set_array_declarator_inner, groktypename,
3877         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
3878         grokfield, start_function, store_parm_decls_newstyle,
3879         store_parm_decls_oldstyle, store_parm_decls,
3880         build_c_parm, build_attrs_declarator, build_function_declarator,
3881         make_pointer_declarator, grokdeclarator): Update to new
3882         structures.
3883         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
3884         parmtype.
3885         (declarator, notype_declarator, after_type_declarator,
3886         parm_declarator, parm_declarator_starttypename,
3887         parm_declarator_nostarttypename, array_declarator, typename,
3888         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
3889         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
3890         parmlist_1, parmlist_2, parmlist_or_identifiers,
3891         parmlist_or_identifiers_1): Use these types.
3892         (primary, after_type_declarator, parm_declarator_starttypename,
3893         notype_declarator, component_decl, component_declarator,
3894         component_notype_declarator, typename, absdcl,
3895         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
3896         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
3897
3898 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
3899
3900         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
3901         in_typeof, record_maybe_used_decl, pop_maybe_used,
3902         c_expr_sizeof_expr, c_expr_sizeof_type): New.
3903         * c-decl.c (parser_obstack): New.
3904         (c_init_decl_processing): Initialize parser_obstack.
3905         (c_write_global_declarations_1): Check for used but undefined
3906         static functions.
3907         * c-parse.in (%union): Add otype.
3908         (save_obstack_position): New.
3909         (extdefs): Use it.
3910         (unary_expr): Update in_sizeof and in_alignof.  Use
3911         c_expr_sizeof_expr and c_expr_sizeof_type.
3912         (sizeof): Update in_sizeof.
3913         (alignof): Update in_alignof.
3914         (typeof): Update in_typeof.
3915         (typespec_nonreserved_nonattr): Call pop_maybe_used.
3916         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
3917         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
3918         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
3919         (build_external_ref): Set C_DECL_USED or call
3920         record_maybe_used_decl if appropriate.
3921         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
3922
3923 2004-09-08  Eric Christopher  <echristo@redhat.com>
3924
3925         * builtins.c: Fix prototype for fold_builtin_atan.
3926
3927 2004-09-08  Eric Christopher  <echristo@redhat.com>
3928
3929         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
3930         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
3931         fold_builtin_atan): New functions. Migrate function bodies...
3932         (fold_builtin_1): ... from here.
3933
3934 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
3935
3936         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
3937         save_size.
3938
3939 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
3940
3941         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
3942         * config/rs6000/power5.md (power5-lmul): Same.
3943
3944 2004-09-08  Richard Henderson  <rth@redhat.com>
3945
3946         PR rtl-opt/17186
3947         * function.c (expand_function_end): Have fall-off-the-end
3948         return path jump around return register setup.
3949
3950 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
3951
3952         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
3953         (output_return): Do not test for the presence of the 'unimp' insn.
3954         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
3955         as predicates instead of custom ones.  Return raw strings when
3956         possible.
3957         (output_sibcall): Likewise.  Concatenate strings.
3958         (output_ubranch): Remove kludge for TurboSPARC.
3959         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
3960         (output_v9branch): Likewise.
3961         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
3962         <#>: Set sparc_indent_opcode if the delay slot is filled.
3963         <(>: Likewise.
3964         <)>: New operand to emit the displacement from the saved PC on return.
3965         <@>: Remove.
3966         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
3967         (ASM_OUTPUT_OPCODE): New macro.
3968         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
3969         * config/sparc/sparc.md (normal_branch, inverted_branch,
3970         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3971         inverted_fpe_branch): Adjust call to output_cbranch.
3972         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
3973         call to output_v9branch.
3974         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
3975         (output_v9branch): Likewise.
3976
3977 2004-09-08  Devang Patel  <dpatel@apple.com>
3978
3979         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
3980         -segs_read_only_addr and -segs_read_write_addr.
3981         (WORD_SWITCH_TAKES_ARG): Same.
3982         (LINK_SPEC): Same.
3983         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
3984         -segs_read_write_addr.
3985
3986 2004-09-08  Richard Henderson  <rth@redhat.com>
3987
3988         * function.c (reference_callee_copied): New.
3989         (assign_parm_setup_reg): Use it.
3990         * calls.c (initialize_argument_information): Likewise.
3991         (emit_library_call_value_1): Likewise.
3992         * function.h (reference_callee_copied): Declare.
3993
3994         * target.h (struct gcc_target): Add callee_copies.
3995         * target-def.h (TARGET_CALLEE_COPIES): New.
3996         (TARGET_PASS_BY_REFERENCE): Update default.
3997         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3998         * targhooks.c (hook_callee_copies_named): New.
3999         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
4000         hook_pass_by_reference_false.
4001         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
4002         * targhooks.h: Update decls.
4003         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
4004         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4005         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
4006         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
4007         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4008         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
4009         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4010         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
4011         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4012         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
4013         (mips_callee_copies): New.
4014         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4015         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
4016         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4017         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
4018         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4019         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
4020         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4021         * config/sh/sh.c (sh_callee_copies): New.
4022         (TARGET_CALLEE_COPIES): New.
4023         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4024         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
4025         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
4026         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
4027         for FUNCTION_ARG_CALLEE_COPIES.
4028         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
4029
4030 2004-09-08  Devang Patel  <dpatel@apple.com>
4031
4032         * tree-if-conv.c (find_phi_replacement_condition): Return true
4033         edge block.
4034         (replace_phi_with_cond_modify_expr): Select conditional expr args
4035         based on true edge basic block.
4036
4037 2004-09-08  Jan Hubicka  <jh@suse.cz>
4038
4039         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
4040         variables being alias set.
4041
4042 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
4043
4044         * final.c (shorten_branches, final, get_insn_template,
4045         output_alternate_entry_point, final_scan_insn, alter_subreg,
4046         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
4047         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
4048         * fix-header.c (lookup_std_proto): Likewise.
4049         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
4050         verify_local_live_at_start, update_life_info, mark_reg,
4051         calculate_global_regs_live, allocate_reg_life_data,
4052         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
4053         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
4054         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
4055         * fold-const.c (force_fit_type, div_and_round_double,
4056         may_negate_without_overflow_p, int_const_binop, const_binop,
4057         size_binop, size_diffop, fold_convert_const, fold_convert,
4058         invert_tree_comparison, swap_tree_comparison,
4059         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
4060         range_binop, make_range, fold_cond_expr_with_comparison,
4061         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
4062         fold_abs_const, fold_not_const, fold_relational_const, round_up,
4063         round_down): Likewise.
4064         * function.c (find_function_data, assign_stack_temp_for_type,
4065         instantiate_virtual_regs_lossage, aggregate_value_p,
4066         assign_parm_find_entry_rtl, assign_parm_setup_block,
4067         expand_function_start, expand_function_end, keep_stack_depressed,
4068         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
4069
4070 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
4071
4072         * Makefile.in (tree-loop-linear.o): Added.
4073         (OBJS-common): Add tree-loop-linear.o
4074         * common.opt: New flag, ftree-loop-linear.
4075         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
4076         * tree-flow.h: Add prototype for linear_transform_loops.
4077         * tree-optimize.c: Add linear transform after vectorization.
4078         * tree-pass.h: Add struct pass_linear_transform.
4079         * tree-ssa-loop.c: Add pass_linear_transform.
4080         * tree-loop-linear.c: New file.
4081         * lambda-code.c: gcc_assertify.
4082         (gcc_loop_to_lambda_loop): Handle all exit tests.
4083         Handle case where we have (invariant >= induction var).
4084         (find_induction_var_from_exit_cond): Ditto.
4085
4086 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
4087
4088         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
4089         memory tag is call clobbered, so are its aliases.
4090         (group_aliases): When two memory tags being grouped, if one is
4091         call clobbered, so are the other and its aliases.
4092         (add_may_alias): Remove call-clobbering stuff.
4093         (replace_may_alias): Likewise.
4094         (merge_pointed_to_info): Merge pt_global_mem
4095
4096 2004-09-08  Jan Hubicka  <jh@suse.cz>
4097
4098         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
4099         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
4100         (cgraph_expand_function): Remove stale cgraph edges of currently
4101         compiled function; fix non-unit-at-a-time code copying function
4102         node for later reuse.
4103
4104 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
4105
4106         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
4107         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
4108         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
4109         (vec_gc_free, vec_heap_free): New.
4110         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
4111         (DEF_VEC_P): Add allocator argument. Adjust.
4112         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
4113         (DEF_VEC_O): Add allocator argument. Adjust.
4114         (VEC(free)): New.
4115
4116         * tree.h (tree): Define a GC'd vector.
4117         * lamba-code.c (lambda_loop): Likewise.
4118         * value-prof.h (histogram_value): Likewise.
4119
4120 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
4121
4122         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
4123         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
4124         gen_lowpart_common, gen_highpart, gen_highpart_mode,
4125         subreg_highpart_offset, operand_subword, operand_subword_force,
4126         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
4127         set_mem_alias_set, change_address_1, verify_rtx_sharing,
4128         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
4129         try_split, add_insn_after, add_insn_before, remove_insn,
4130         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
4131         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
4132         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
4133         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
4134         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
4135         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
4136         record_path_before_1, check_path_after_1, check_path_after): Likewise.
4137         * except.c (gen_eh_region, resolve_one_fixup_region,
4138         remove_unreachable_regions, convert_from_eh_region_ranges_1,
4139         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
4140         connect_post_landing_pads, sjlj_emit_function_exit,
4141         remove_exception_handler_label, remove_eh_handler,
4142         reachable_next_level, collect_one_action_chain,
4143         output_function_exception_table): Likewise.
4144         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
4145         optimize_save_area_alloca, allocate_dynamic_stack_space,
4146         probe_stack_range, hard_function_value): Likewise.
4147         * expmed.c (mode_for_extraction, store_bit_field,
4148         store_fixed_bit_field, extract_bit_field, expand_shift,
4149         expand_mult_const, expand_mult, choose_multiplier,
4150         expand_mult_highpart, expand_divmod, emit_store_flag,
4151         do_cmp_and_jump): Likewise.
4152         * expr.c (convert_move, convert_modes, move_by_pieces,
4153         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
4154         move_block_from_reg, gen_group_rtx, emit_group_load,
4155         emit_group_move, emit_group_store, use_reg, use_regs,
4156         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
4157         emit_move_insn, emit_move_insn_1, emit_push_insn,
4158         expand_assignment, store_expr, count_type_elements,
4159         store_constructor, store_field, safe_from_p, expand_var,
4160         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
4161
4162 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
4163
4164         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
4165         gcc_assert and gcc_unreachable.
4166         * ddg.c (create_ddg_dependence, add_deps_for_def,
4167         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
4168         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
4169         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
4170         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
4171         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
4172         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
4173         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
4174         dataflow_set_copy, hybrid_search, diagnostic.c,
4175         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
4176         * dojump.c (do_jump): Likewise.
4177         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
4178         compute_dom_fast_query, calculate_dominance_info,
4179         free_dominance_info, get_immediate_dominator,
4180         set_immediate_dominator, get_dominated_by,
4181         redirect_immediate_dominators, nearest_common_dominator,
4182         dominated_by_p, verify_dominators, recount_dominator,
4183         iterate_fix_dominators, add_to_dominance_info,
4184         delete_from_dominance_info): Likewise.
4185         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
4186         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
4187         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
4188         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
4189         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
4190         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
4191         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
4192         output_call_frame_info, output_loc_operands, build_cfa_loc,
4193         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
4194         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
4195         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
4196         splice_child_die, attr_checksum, same_dw_val_p,
4197         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
4198         unmark_dies, value_format, output_loc_list, output_die,
4199         output_pubnames, output_aranges, base_type_die, is_base_type,
4200         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
4201         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
4202         field_byte_offset, add_data_member_location_attribute,
4203         add_const_value_attribute, rtl_for_decl_location,
4204         add_location_or_const_value_attribute, add_byte_size_attribute,
4205         add_bit_offset_attribute, add_bit_size_attribute,
4206         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
4207         decl_start_label, gen_formal_parameter_die,
4208         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
4209         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
4210         force_decl_die, force_type_die, gen_decl_die,
4211         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
4212         dwarf2out_finish): Likewise.
4213
4214 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
4215
4216         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
4217         * builtins.c: Include tree-mudflap.h.
4218
4219 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
4220
4221         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
4222         force operand 0.0 into register in XFmode. Also do not force
4223         operand 0.0 into register if !TARGET_CMOVE.
4224         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
4225         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
4226         implement ftst x87 instruction.
4227         (*fp_jcc_7): New insn pattern. Change corresponding split
4228         pattern to handle "general_operand" instead of
4229         "nonimmediate_operand".
4230
4231 2004-09-08  Ben Elliston  <bje@au.ibm.com>
4232
4233         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
4234
4235 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
4236
4237         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
4238         generated from standard va_arg expansion.
4239         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
4240         marked nodes.
4241         (mf_varname_tree, mf_file_function_line_tree): Add some support
4242         for column numbers if compiled with USE_MAPPED_LOCATION.
4243
4244 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
4245
4246         * c-decl.c (groktypename_in_parm_context): Remove function.
4247         * c-tree.h (groktypename_in_parm_context): Remove prototype.
4248
4249 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
4250
4251         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
4252         * c-parse.in: Include c-common.h instead of objc-act.h.
4253         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
4254         myparms, myparm): Remove %type declarations.
4255         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
4256         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
4257         declarations.
4258         (objc_inherit_code, objc_public_flag): Remove.
4259         (typespec_nonreserved_nonattr): Call
4260         objc_get_protocol_qualified_type() instead of get_static_reference()
4261         and get_protocol_reference().
4262         (stmt_nocomp): Call grokparm() on @catch parameter.
4263         (objcdef): Move semantic action to objc_finish_implementation().
4264         (classdef): Move semantic action to objc_start_class_interface(),
4265         objc_continue_interface(), objc_finish_interface(),
4266         objc_start_class_implementation(), objc_continue_implementation(),
4267         objc_start_category_interface() and
4268         objc_start_category_implementation().
4269         (protocoldef): Move semantic actions to objc_start_protocol() and
4270         objc_finish_interface().
4271         (ivar_decl_list): Remove nonterminal.
4272         (visibility_spec): Move semantic actions to objc_set_visibility().
4273         (ivar_decls): Remove assignment to $$.
4274         (ivar_decl): Rephrase in terms of component_decl; call
4275         objc_add_instance_variable().
4276         (ivars, ivar_declarator): Remove nonterminals.
4277         (opt_semi): New nonterminal.
4278         (methodtype): Remove semantic actions.
4279         (methoddef): Move semantic actions to objc_set_method_type(),
4280         objc_start_method_definition() and objc_finish_method_definition().
4281         (methodproto): Move semantic actions to objc_set_method_type() and
4282         objc_add_method_declaration().
4283         (methoddecl): Use objc_typename instead of typename; move semantic
4284         actions to objc_build_method_signature().
4285         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
4286         (optparmlist): Express in terms of optparms and optellipsis.
4287         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
4288         nonterminals.
4289         (keyworddecl): Use objc_typename instead of typename.
4290         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
4291         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
4292
4293 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
4294
4295         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
4296         (MD_FALLBACK_FRAME_STATE_FOR): Update.
4297         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
4298         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
4299         (MD_FROB_UPDATE_CONTEXT): Remove default.
4300         (uw_update_context_1): Instead #ifdef invocation.
4301         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
4302         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
4303         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
4304         (MD_UNWIND_SUPPORT): Undefine this instead.
4305         * config/i386/gnu.h: Likewise.
4306         * config/alpha/linux-unwind.h: New file, macro converted to
4307         function, extracted from..
4308         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
4309         (MD_UNWIND_SUPPORT): Define.
4310         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
4311         * config/i386/linux-unwind.h, config/i386/linux.h,
4312         config/i386/linux64.h: Likewise.
4313         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
4314         MD_HANDLE_UNWABI too.
4315         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
4316         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
4317         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
4318         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
4319         * config/sparc/linux-unwind.h, config/sparc/linux.h,
4320         config/sparc/linux64.h: Likewise.
4321         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
4322         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
4323         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
4324         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
4325         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
4326
4327 2004-09-07  Jan Hubicka  <jh@suse.cz>
4328
4329         * cse.c (fold_rtx):  Avoid building of
4330         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
4331
4332         * tree-ssa-pre.c (grand_bitmap_obstack): New.
4333         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
4334         (init_pre): Initialize obstack.
4335         (fini_pre): Free obstack.
4336
4337 2004-09-07  David Daney  <ddaney@avtrex.com>
4338
4339         * config.gcc: Added support for --with-divide=[breaks|traps] for
4340         mips targets.
4341         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
4342         (TARGET_DIVIDE_TRAPS): New macro.
4343         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
4344         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
4345         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
4346         GENERATE_DIVIDE_TRAPS.
4347         (mips_output_division): Emit conditional trap if
4348         GENERATE_DIVIDE_TRAPS is set.
4349         * doc/install.texi: Document --with-divide.
4350         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
4351
4352 2004-09-07  Caroline Tice  <ctice@apple.com>
4353
4354         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
4355         EDGE_CROSSING, to flags test case.
4356
4357 2004-09-07  Jan Hubicka  <jh@suse.cz>
4358
4359         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
4360         class too.
4361
4362 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
4363
4364         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
4365         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
4366         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
4367         or gcc_unreachable.
4368         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
4369         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
4370         alloc_aux_for_edges, free_aux_for_edges): Likewise.
4371         * cfgcleanup.c (try_forward_edges,
4372         merge_blocks_move_predecessor_nojumps,
4373         merge_blocks_move_successor_nojumps): Likewise.
4374         * cfgexpand.c (expand_gimple_cond_expr,
4375         expand_gimple_tailcall): Likewise.
4376         * cfghooks.c (duplicate_block): Likewise.
4377         * cfglayout.c (record_effective_endpoints,
4378         insn_locators_initialize, change_scope, fixup_reorder_chain,
4379         verify_insn_chain, fixup_fallthru_exit_predecessor,
4380         duplicate_insn_chain, cfg_layout_finalize): Likewise.
4381         * cfgloopanal.c (check_irred): Likewise.
4382         * cfgloop.c (superloop_at_depth, flow_loops_free,
4383         flow_loop_entry_edges_find, flow_loops_find,
4384         flow_loop_outside_edge_p, get_loop_body,
4385         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
4386         get_loop_exit_edges, num_loop_branches, cancel_loop,
4387         verify_loop_structure): Likewise.
4388         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
4389         duplicate_loop_to_header_edge, create_preheader,
4390         create_loop_notes): Likewise.
4391         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
4392         edirect_branch_edge, force_nonfallthru_and_redirect,
4393         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
4394         commit_edge_insertions, commit_edge_insertions_watch_calls,
4395         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
4396         cfg_layout_redirect_edge_and_branch_force,
4397         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
4398         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
4399         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
4400         cgraph_varpool_node): Likewise.
4401         * cgraphunit.c (cgraph_finalize_function,
4402         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
4403         cgraph_expand_function, cgraph_remove_unreachable_nodes,
4404         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4405         cgraph_mark_inline, cgraph_expand_all_functions,
4406         cgraph_build_static_cdtor): Likewise.
4407         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
4408         simplify_logical, distribute_notes, insn_cuid): Likewise.
4409         * conflict.c (conflict_graph_add, print_conflict): Likewise.
4410         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
4411         coverage_checksum_string): Likewise.
4412         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
4413         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
4414         cse_cc_succs, cse_condition_code_reg): Likewise.
4415         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
4416         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
4417         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
4418         cselib_record_set): Likewise.
4419
4420 2004-09-07  Jan Hubicka  <jh@suse.cz>
4421
4422         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
4423
4424 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
4425
4426         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
4427         fold_convert.
4428         (fold_builtin_strpbrk): Likewise.
4429         * expr.c (array_ref_low_bound): Likewise.
4430         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
4431         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
4432         * tree-sra.c (generate_element_zero): Likewise.
4433         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
4434         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
4435         add_old_iv_candidates, add_iv_candidates): Likewise.
4436         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
4437
4438 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
4439
4440         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
4441         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
4442         c_expand_expr, boolean_increment, nonnull_check_p,
4443         check_function_arguments_recurse, fold_offsetof_1): Likewise.
4444         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
4445         builtin_define_type_max): Likewise.
4446         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
4447         implicit_decl_warning, builtin_function, build_compound_literal,
4448         complete_array_type, grokdeclarator, get_parm_info,
4449         start_function, store_parm_decls_oldstyle,
4450         c_write_global_declarations): Likewise.
4451         * c-format.c (get_constant, decode_format_attr,
4452         maybe_read_dollar_number, get_flag_spec, check_format_arg,
4453         check_format_types, format_type_warning,
4454         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
4455         init_dynamic_diag_info, handle_format_attribute): Likewise.
4456         * c-gimplify.c (push_context, pop_context, finish_bc_block):
4457         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
4458         * c-objc-common.c (c_tree_printer): Likewise.
4459         * c-pch.c (pch_init): Likewise.
4460         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
4461         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
4462         * c-typeck.c (c_incomplete_type_error, composite_type,
4463         common_pointer_type, common_type, same_translation_unit_p,
4464         tagged_types_tu_compatible_p, finish_init, pop_init_level,
4465         set_designator, set_nonincremental_init_from_string,
4466         process_init_element, c_finish_if_stmt): Likewise.
4467         * caller-save.c (init_caller_save, save_call_clobbered_regs,
4468         insert_restore, insert_save, insert_one_insn): Likewise.
4469         * calls.c (emit_call_1, compute_argument_block_size,
4470         precompute_arguments, expand_call, emit_library_call_value_1,
4471         store_one_arg): Likewise.
4472
4473 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
4474
4475         * configure.ac (enable-checking): Add release option. Reorganize
4476         to avoid repetition.
4477         * configure: Rebuilt.
4478         * doc/install.texi (enable-checking): Amend documentation.
4479
4480 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4481
4482         PR bootstrap/17313
4483         * Makefile.in (specs.ready): Depend on cc1$(exeext).
4484
4485 2004-09-06  James E Wilson  <wilson@specifixinc.com>
4486
4487         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
4488         movdf_hardfloat_32bit): Split fG into two alternatives.
4489         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
4490
4491         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
4492
4493 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4494
4495         * final.c (output_in_slot): Delete.
4496         (final_scan_insn): Revert 2004-09-03 change.
4497         (output_asm_insn): Likewise.
4498         * config/sparc/sparc.c (output_return): Likewise.
4499         (output_sibcall): Likewise.
4500
4501 2004-09-06  Jan Hubicka  <jh@suse.cz>
4502
4503         * loop.c (loop_dump_aux): Do not print RTL when not available.
4504         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
4505         frontend specific type nodes.
4506         (produce_memory_decl_rtl): Break out from ...
4507         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
4508         (get_computation_at): Avoid random tree sharing.
4509         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
4510
4511 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
4512
4513         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
4514         unnecessary commands.
4515
4516 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
4517
4518         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
4519         (bitmap.o): Likewise.
4520
4521 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
4522
4523         Unify the management of RTL and tree-level dump files.
4524
4525         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
4526         Don't print function name to the dump file, the pass manager
4527         would do this for us. Add code from the top of
4528         rest_of_compilation, up to the initial RTL dump.
4529         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
4530         close the DFI_sibling dump file.
4531         (rest_of_compilation): Don't do that here.  Remove code up to the
4532         initial RTL dump.
4533         (init_optimization_passes): Remove.
4534         (pass_rest_of_compilation): Change pass name to NULL.
4535         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
4536         Do not call init_optimization_passes.
4537         * toplev.h (init_optimization_passes): Remove.
4538
4539         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4540         finish_graph_dump_file): Remove SUFFIX parameter.
4541         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
4542         finish_graph_dump_file): Likewise.
4543
4544         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
4545         * cfgexpand.c (pass_expand): Adjust.
4546         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
4547         * passes.c (pass_rest_of_compilation): Adjust.
4548         * predict.c (pass_profile): Adjust.
4549         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
4550         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
4551         pass_split_crit_edges, pass_warn_function_return): Adjust.
4552         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
4553         * tree-dfa.c (pass_referenced_vars): Adjust.
4554         * tree-eh.c (pass_lower_eh): Adjust.
4555         * tree-if-conv.c (pass_build_ssa): Adjust.
4556         * tree-into-ssa.c (pass_build_ssa): Adjust.
4557         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
4558         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
4559         * tree-nrv.c (pass_nrv): Adjust.
4560         * tree-optimize.c (pass_gimple, pass_all_optimizations,
4561         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
4562         pass_init_datastructures): Adjust.
4563         * tree-outof-ssa.c (pass_del_ssa): Adjust.
4564         * tree-profile.c (pass_tree_profile): Adjust.
4565         * tree-sra.c (pass_sra): Adjust.
4566         * tree-ssa-alias.c (pass_may_alias): Adjust.
4567         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
4568         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
4569         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
4570         * tree-ssa-dom.c (pass_dominator): Adjust.
4571         * tree-ssa-dse.c (pass_dse): Adjust.
4572         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
4573         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
4574         * tree-ssa-loop-ch.c (pass_ch): Adjust.
4575         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
4576         pass_loop_done, pass_complete_unroll, pass_iv_canon,
4577         pass_iv_optimize, pass_vectorize): Adjust.
4578         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
4579         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
4580         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
4581         pass_late_warn_uninnitialized): Adjust.
4582         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
4583
4584         * Makefile.in (tree-dump.o): Add new dependencies.
4585         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
4586         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
4587         Likewise.
4588         * toplev.c (dump_file_name): New.
4589         * tree-dump.c (dump_enable_all): Add LETTER parameter.
4590         (struct dump_file_info): Add NUM and LETTER fields.
4591         (dump_files): Adjust and add RTL dump files.
4592         (dump_register): Add NUM and LETTER fields.
4593         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
4594         (dump_begin): Use get_dump_file_name.
4595         (dump_switch_p_1): Adjust call to dump_enable_all.
4596         * tree-dump.h (dump_register): Adjust prototype.
4597         * tree-optimize.c (register_one_dump_file): Take dump file index.
4598         Support flags for RTL dumps.
4599         (register_dump_files): Fill in NUM field of struct dump_file_info.
4600         Track properties both when the gate is executed and when it is not.
4601         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
4602         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
4603         dumps of RTL.
4604         * tree-pass.h (dump_file_name): New.
4605         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
4606         New.
4607
4608         * Makefile.in (passes.o): Add new dependencies.
4609         * passes.c (struct dump_file_info, enum dump_file_index,
4610         dump_file_tbl, init_optimization_passes): Remove.
4611         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
4612         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
4613         dump_enabled_p.
4614         (finish_optimization_passes): Update finish_graph_dump_file loop.
4615         (enable_rtl_dump_file): Remove.
4616         * tree-dump.c (dump_files): Adjust and add RTL dump files.
4617         (enable_rtl_dump_file): Add here.
4618         * tree.h (enum tree_dump_index): Add RTL dump file indices.
4619         * doc/invoke.texi (Debugging options): Document new RTL debugging
4620         options.  Update.
4621
4622 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
4623
4624         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
4625         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
4626         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
4627         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
4628         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
4629         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
4630         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
4631         vec.h: Fix comment formatting.
4632
4633 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
4634
4635         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
4636         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
4637         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
4638         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
4639         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
4640         tree-ssa-loop-niter.c, tree-ssa-operands.c,
4641         tree-ssa-operands.h, tree-ssa-propagate.c,
4642         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
4643         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
4644
4645 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
4646
4647         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
4648         vectorizer is enabled.
4649
4650 2004-09-05  Andreas Jaeger  <aj@suse.de>
4651
4652         * tree-if-conv.c: Spell check comments and clean up whitespace.
4653
4654 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4655
4656         * tree-ssa-loop-ivopts.c: New file.
4657         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
4658         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
4659         target_pres_cost, target_spill_cost): Declare.
4660         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
4661         spill_cost): Renamed to ...
4662         (target_avail_regs, target_res_regs, target_small_cost,
4663         target_pres_cost, target_spill_cost): ... and exported.
4664         (init_set_costs, global_cost_for_size): Work with renamed variables.
4665         * common.opt (flag_ivopts): New flag.
4666         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
4667         REF_ORIGINAL.
4668         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
4669         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
4670         generating SSA form.
4671         (force_gimple_operand): New function.
4672         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
4673         * tree-cfg.c (stmt_bsi): New function.
4674         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
4675         PARAM_IV_MAX_CONSIDERED_USES): New.
4676         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
4677         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
4678         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
4679         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
4680         * tree-nested.c (build_addr): Export.
4681         * tree-optimize.c (init_tree_optimization_passes): Add
4682         pass_iv_optimize.
4683         * tree-pass.h (pass_iv_optimize): Declare.
4684         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
4685         IMAGPART_EXPR.
4686         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
4687         as a phi node argument.
4688         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
4689         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
4690         functions.
4691         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
4692         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
4693         pass_iv_optimize): New pass.
4694         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
4695         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
4696         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
4697         * tree.h (REF_ORIGINAL): New macro.
4698         (build_int_cst_type, unsigned_type_for, zero_p,
4699         cst_and_fits_in_hwi, build_addr): Declare.
4700         * doc/invoke.texi (-fivopts): Document.
4701         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
4702         PARAM_IV_MAX_CONSIDERED_USES): Document.
4703         * doc/passes.texi: Document induction variable optimizations pass.
4704
4705 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4706
4707         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
4708         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
4709         * c-common.c (c_common_attribute_table): Accept parameters to
4710         sentinel attribute.
4711         (check_function_sentinel, handle_sentinel_attribute): Likewise.
4712         * doc/extend.texi: Update accordingly.
4713
4714 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4715
4716         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
4717         New.
4718         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
4719         attribute.
4720         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
4721         New functions.
4722         (c_common_attribute_table): Add `sentinel' attribute.
4723         (check_function_arguments): Handle `sentinel' attribute.
4724         * doc/extend.texi: Document `sentinel' attribute.
4725
4726 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
4727
4728         * configure: Regenerated.
4729
4730 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4731
4732         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
4733
4734         * tree.c (save_expr): No longer TREE_READONLY.
4735
4736 2004-09-04  Jan Hubicka  <jh@suse.cz>
4737
4738         * passes.c (rest_of_clean_state):  Fix merge conflict made during
4739         commiting the patch.
4740
4741 2004-09-04  Jan Hubicka  <jh@suse.cz>
4742
4743         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
4744
4745 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
4746
4747         * doc/md.texi (shift patterns): New anchor.  Add reference to
4748         TARGET_SHIFT_TRUNCATION_MASK.
4749         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
4750         * target.h (shift_truncation_mask): New target hook.
4751         * targhook.h (default_shift_truncation_mask): Declare.
4752         * targhook.c (default_shift_truncation_mask): Define.
4753         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
4754         (TARGET_INITIALIZER): Include it.
4755         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
4756         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
4757         reject all out-of-range values.  Fix sign-extension code for modes
4758         whose width is smaller than HOST_BITS_PER_WIDE_INT.
4759         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
4760         (expand_superword_shift, expand_subword_shift): Likewise.
4761         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
4762         (expand_binop): Use them to implement double-word shifts.
4763         * config/arm/arm.c (arm_shift_truncation_mask): New function.
4764         (TARGET_SHIFT_TRUNCATION_MASK): Define.
4765
4766 2004-09-04  Jan Hubicka  <jh@suse.cz>
4767
4768         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
4769         (mix): New macro copied from hashtab.c
4770         (iterative_hash_hashval_t, iterative_hash_pointer,
4771         iterative_hash_host_wide_int): New functions based on hashtab.c
4772         implementation.
4773
4774 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
4775
4776         * config/mips/mips.md (mask): New mode attribute.
4777         (zero_extendsidi2): Add memory alternative.
4778         (*zero_extendsidi2_mem): Delete.
4779         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
4780         memory_operand in the TARGET_MIPS16 check.
4781         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
4782         Redefine using :GPR and :SHORT.
4783         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
4784
4785 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
4786
4787         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
4788         using rint_optab.
4789         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
4790         expand_builtin_mathfn.
4791         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
4792         btrunc?f patterns for btrunc_optab. Implement rint_optab using
4793         rint?f patterns.
4794         * optabs.c (init_optabs): Initialize rint_optab.
4795         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
4796         Add new OTI_rint.
4797         (btrunc_optab): Rename macro from trunc_optab.
4798         (rint_optab): Define corresponding macro.
4799
4800         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
4801         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
4802
4803         * config/i386/i386-protos.h (emit_i387_cw_initialization):
4804         Change prototype. Add new int parameter.
4805         * config/i386/i386.c (emit_i387_cw_initialization):
4806         Handle new rounding modes.
4807
4808         * config/i386/i386.h (enum fp_cw_mode): Delete.
4809         (MODE_NEEDED): Handle new rounding modes.
4810         (EMIT_MODE_SET): Change condition to handle new rounding modes.
4811
4812         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
4813         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
4814         represent different rounding modes of frndint insn.
4815         (type): Add frndint type.
4816         (i387, length, memory): Handle this type.
4817         (i387_cw): New attribute definition.
4818         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
4819         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
4820         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
4821         Add "i387_cw" attribute defined to "trunc".
4822         (x86_fnstcw_1): Remove comment.
4823         (*frndintxf2): Rename insn definition to frndintxf2. Move
4824         insn definition near rint?f2 expanders.
4825         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
4826         rintf and rintl built-ins as inline x87 intrinsics.
4827         (frndintxf2_floor): New pattern to implement floor rounding
4828         mode with frndint x87 instruction.
4829         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
4830         floorf and floorl built-ins as inline x87 intrinsics.
4831         (frndintxf2_ceil): New pattern to implement ceil rounding
4832         mode with frndint x87 instruction.
4833         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
4834         ceilf and ceill built-ins as inline x87 intrinsics.
4835         (frndintxf2_trunc): New pattern to implement trunc rounding
4836         mode with frndint x87 instruction.
4837         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
4838         truncf and truncl built-ins as inline x87 intrinsics.
4839         (frndintxf2_mask_pm): New pattern to implement rounding
4840         mode with exceptions with frndint x87 instruction.
4841         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
4842         implement nearbyint, nearbyintf and nearbyintl built-ins as
4843         inline x87 intrinsics.
4844
4845 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
4846
4847         * config/mips/mips.md (SHORT): New mode macro.
4848         (size): New mode attribute.
4849         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
4850         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
4851         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
4852         !ISA_HAS_SEB_SEH.
4853         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
4854         *extend[qh]isi2_hw patterns and extending them to di.
4855         (extendqihi2): Implement as define_insn_and_split that produces
4856         extendqisi2 after reload.
4857
4858 2004-09-03  Devang Patel  <dpatel@apple.com>
4859
4860         * Makefile.in (OBJS-common): Add tree-if-conv.o
4861         (tree-if-conv.o): New rule.
4862         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
4863         (get_loop_body_in_bfs_order): New.
4864         * cfgloop.h (get_loop_body_in_bfs_order): New.
4865         * tree-flow.h (enum move_pos): Move here from ..
4866         * tree-ssa-loop-im.c (enum move_pos): here.
4867         (movement_possibility): Make externally visible.
4868         * tree-optimize.c (init_tree_optimization_passes): New entry for
4869         if conversion pass.
4870         * tree-pass.h (pass_if_conversion): New.
4871         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
4872         * tree-if-conv.c: New file.
4873         * doc/passes.texi: Document tree if-conversion pass.
4874         * doc/tree-ssa.texi: Same.
4875
4876 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4877
4878         PR target/14925:
4879         Makefile.in (LIB2ADDEHSTATIC): New.
4880         (LIB2ADDEHSHARED): New.
4881         (LIBUNWIND): New.
4882         (LIBUNWINDDEP): New.
4883         (SHLIBUNWIND_LINK): New.
4884         (SHLIBUNWIND_INSTALL): New.
4885         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
4886         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
4887         (clean): Remove libunwind*
4888         (stage1-start): Remove and copy stage1/libunwind*.
4889         (stage2-start): Remove and copy stage2/libunwind*.
4890         (stage3-start): Remove and copy stage3/libunwind*.
4891         (stage4-start): Remove and copy stage4/libunwind*.
4892         (stageprofile-start): Remove and copy stageprofile/libunwind*.
4893         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
4894
4895         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
4896         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
4897         tmake_file if --with-system-libunwind isn't used.
4898
4899         * config/ia64/t-glibc-libunwind: New file.
4900         * config/t-libunwind-elf: Likewise.
4901         * unwind-compat.c: Likewise.
4902         * unwind-compat.h: Likewise.
4903         * unwind-dw2-fde-compat.c: Likewise.
4904
4905         * config/ia64/t-glibc (LIB2ADDEH): Updated.
4906         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
4907
4908         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
4909         aliases if needed.
4910         * unwind-dw2-fde-glibc.c: Likewise.
4911         * unwind-dw2.c: Likewise.
4912
4913         * config/t-libunwind (LIB2ADDEH): Updated.
4914         (LIB2ADDEHSTATIC): New.
4915         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
4916         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
4917
4918         * configure.ac: Change --enable-libunwind-exceptions to
4919         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
4920         * configure: Regenerated.
4921         * config.in: Updated.
4922
4923         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
4924         above and mention --with-system-libunwind.
4925         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
4926         removed in gcc 3.4.3 and later.
4927
4928         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
4929         USE_LIBUNWIND_EXCEPTIONS is defined.
4930
4931         * mklibgcc.in: Support libunwind.
4932
4933 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4934
4935         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
4936         m_NOCONA.
4937
4938 2004-09-03  Richard Henderson  <rth@redhat.com>
4939
4940         PR middle-end/9997
4941         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
4942         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
4943         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
4944         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
4945         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
4946         resize_stack_vars_conflict, add_stack_var_conflict,
4947         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
4948         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
4949         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
4950         expand_one_static_var, expand_one_hard_reg_var,
4951         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
4952         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
4953         (expand_used_vars): Rewrite.
4954         * Makefile.in (cfgexpand.o): Update dependencies.
4955
4956 2004-09-04  Jan Hubicka  <jh@suse.cz>
4957
4958         * cfg.c (free_edge): Use ggc_free.
4959         (expunge_block): Use ggc_free.
4960         * passes.c (rest_of_clean_state): Free after compilation.
4961         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
4962         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
4963
4964 2004-09-03  James E Wilson  <wilson@specifixinc.com>
4965
4966         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
4967         DECL_EXTERNAL check.
4968
4969 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4970
4971         * final.c (output_in_slot): New global variable.
4972         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
4973         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
4974         'output_in_slot' before invoking output_asm_insn.
4975         (output_asm_insn): Add a space after the tab if 'output_in_slot'
4976         is set.
4977         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
4978         final_scan_insn.
4979         (output_sibcall): Likewise.
4980
4981 2004-09-03  Jan Hubicka  <jh@suse.cz>
4982
4983         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
4984         * tree-ssanames (init_ssanames): Likewise.
4985
4986 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
4987
4988         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
4989         objc_declare_protocols, objc_start_protocol,
4990         objc_start_class_interface, objc_start_category_interface,
4991         objc_continue_interface, objc_finish_interface,
4992         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
4993         objc_start_class_implementation, objc_start_category_implementation,
4994         objc_continue_implementation, objc_finish_implementation,
4995         objc_add_method_declaration, objc_start_method_definition,
4996         objc_finish_method_definition, objc_build_keyword_decl,
4997         objc_build_method_signature, objc_build_encode_expr,
4998         objc_build_protocol_expr, objc_build_selector_expr,
4999         objc_build_message_expr, objc_build_string_object,
5000         objc_get_class_reference, objc_get_protocol_qualified_type,
5001         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
5002
5003 2004-09-03  James E Wilson  <wilson@specifixinc.com>
5004
5005         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
5006
5007         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
5008         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
5009         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
5010         (mips_recip1_<fmt>): Use frdiv1 type.
5011         (mips_recip2_<fmt>): Use frdiv2 type.
5012         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
5013         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
5014         and frsqrt1.
5015         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
5016
5017 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
5018
5019         * reload.c (find_reloads): Swap operand_loc pointers for
5020         find_dummy_reload if we have swapped two operands.
5021
5022 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
5023
5024         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
5025         to get the tablejump-insn before the jump-table label.
5026
5027 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
5028
5029         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
5030         objc_declare_protocols, objc_build_message_expr,
5031         objc_finish_message_expr, objc_build_selector_expr,
5032         objc_build_protocol_expr, objc_build_encode_expr,
5033         objc_build_string_object, objc_get_protocol_qualified_type,
5034         objc_get_class_reference, objc_get_class_ivars,
5035         objc_start_class_interface, objc_start_category_interface,
5036         objc_start_protocol, objc_continue_interface, objc_finish_interface,
5037         objc_start_class_implementation, objc_start_category_implementation,
5038         objc_continue_implementation, objc_finish_implementation,
5039         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
5040         objc_add_method_declaration, objc_start_method_definition,
5041         objc_finish_method_definition, objc_add_instance_variable,
5042         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
5043         objc_finish_try_stmt, objc_begin_catch_clause,
5044         objc_finish_catch_clause, objc_build_finally_clause,
5045         objc_build_synchronized, objc_static_init_needed_p,
5046         objc_generate_static_init_call): New prototypes.
5047
5048 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
5049
5050         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
5051         is only one reg.
5052         (ia64_function_value): Ditto.
5053
5054 2004-09-03  Jan Beulich  <jbeulich@novell.com>
5055
5056         * config.gcc: Resurrect NetWare as a target. Handle special case of
5057         Novell linker to be used (specified through --with-ld=) and threading
5058         model of either Posix (default) or NKS.
5059         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
5060         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
5061         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
5062         * config/i386/netware.c, config/i386/netware.h: New.
5063         * config/i386/nwld.c, config/i386/nwld.h: New.
5064         * config/i386/netware-crt0.c: New.
5065         * config/i386/netware-libgcc.c: New.
5066         * config/i386/netware-libgcc.def: New.
5067         * config/i386/netware-libgcc.exp: New.
5068         * config/i386/t-netware, config/i386/t-nwld: New.
5069         * gthr-nks.h: New.
5070         * doc/install.texi: Document NKS threading model.
5071
5072 2004-09-03  Jan Beulich  <jbeulich@novell.com>
5073
5074         PR c/7054
5075         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
5076         * tree.h (initial_max_fld_align): Declare
5077         * stor-layout.c (initial_max_fld_align): Define and initialize.
5078         (maximum_field_alignment): Initialize to the same value.
5079         * common.opt: Add -fpack-struct= variant of switch.
5080         * opts.c: Handle -fpack-struct= variant of switch.
5081         * c-pragma.c: Change #pragma pack() handling so that it becomes
5082         compatible to other compilers: accept individual 'push' argument,
5083         make final pop restore (command line) default, correct interaction
5084         of push/pop and sole specification of a new alignment (so that the
5085         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
5086         to #pragma pack(push, <n>).
5087         * doc/extend.texi: New node "Structure-Packing Pragmas" under
5088         "Pragmas", describing #pragma pack.
5089         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
5090         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
5091         Document new TARGET_DEFAULT_PACK_STRUCT.
5092
5093 2004-09-03  Devang Patel  <dpatel@apple.com>
5094
5095         * dwarf2out.c (gen_field_die). Equate decl number to die.
5096
5097 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
5098
5099         PR target/15832
5100         * global.c (modify_reg_pav): New function.
5101         (make_accurate_live_analysis): Call the new function.  Move pavin
5102         modification by earlyclobber set into the new function.
5103
5104 2004-09-03  Andreas Schwab  <schwab@suse.de>
5105
5106         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
5107         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
5108         extended.
5109
5110 2004-09-02  Jan Beulich  <jbeulich@novell.com>
5111
5112         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
5113         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
5114         not unwind code specific ones.
5115         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
5116         Remove unwind code specific dependencies.
5117         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
5118         Remove gbl-ctors.h.
5119         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
5120         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
5121         * tsystem.h: Declare memcpy and memset when inhibit_libc.
5122
5123 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
5124
5125         * combine.c (try_combine): Delay modifying of insns which cannot
5126         be easily undone.
5127
5128 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
5129
5130         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
5131         tree-loop-im.
5132         * gcc/tree-ssa-loop.c: Ditto
5133         * gcc/tree-ssa-loop-ivcanon.c: Ditto
5134         * gcc/doc/invoke.texi: Ditto.
5135
5136 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
5137
5138         * c-decl.c (store_parm_decls_newstyle): Make static.
5139         (store_parm_decls_from): New function.
5140         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
5141         (store_parm_decls_from): New prototype.
5142
5143 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
5144
5145         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
5146         HImode with STRICT_ALIGNMENT.
5147
5148 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
5149
5150         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
5151         (TARGET_OS_CPP_BUILTINS): Likewise.
5152         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
5153         TARGET_BPABI_CPP_BUILTINS.
5154
5155 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
5156
5157         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
5158
5159 2004-09-02  Eric Christopher  <echristo@redhat.com>
5160
5161         * builtins.c (expand_builtin_cabs): Delete.
5162         (expand_builtin): If unable to fold the values do a normal
5163         library call for builtin_cab*.
5164         (fold_builtin_cabs): Depend on optimize and optimize_size.
5165         * optabs.c (expand_cmplxdiv_straight): Delete.
5166         (expand_cmplxdiv_wide): Ditto.
5167         (expand_vector_binop): Ditto.
5168         (expand_vector_unop): Ditto.
5169         (expand_complex_abs): Delete.
5170         (expand_binop): Remove calls to above functions.
5171         Remove open coding of complex arithmetic.
5172         (expand_unop): Ditto.
5173         * optabs.h: Remove prototypes.
5174
5175 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
5176
5177         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
5178         * c-tree.h (store_parm_decls_newstyle): New prototype.
5179
5180 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
5181
5182         * config/rs6000/rs6000.c (expand_block_clear): Use vector
5183         instructions if available.
5184         (expand_block_move): Likewise.
5185
5186 2004-09-03  Jan Hubicka  <jh@suse.cz>
5187
5188         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
5189
5190 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
5191
5192         * config/arm/symbian.h (LIB_SPEC): Define to empty.
5193         * config/arm/t-symbian (SHLIB_LC): Likewise.
5194
5195 2004-09-02  Paul Brook  <paul@codesourcery.com>
5196
5197         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
5198
5199 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
5200
5201         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
5202         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
5203         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
5204         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
5205         (mips_issue_rate): Remove unreachable abort.
5206         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
5207         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
5208         (mips_block_move_straight, print_operand_address, mips_file_start)
5209         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
5210         (mips_output_conditional_branch, mips_expand_builtin_direct)
5211         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
5212         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
5213         with gcc_assert.
5214
5215 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
5216
5217         * config/mips/mips.md (*lea_high64): Change split condition to
5218         flow2_completed.  Add a peephole2 to generate a more parallel version.
5219
5220 2004-09-02  Jan Hubicka  <jh@suse.cz>
5221
5222         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
5223         GGC.
5224
5225         * ggc-page.c: include tree-flow.h.
5226         (extra_order_size_table): Add stmt_ann_d.
5227         (STAT_LABEL): Rename from ....
5228         (LABEL): ... this one.
5229         * Makefile.in (ggc-page.o): Add dependency.
5230
5231         * ggc-common.c (ggc_force_collect): New global variable.
5232         (loc_description): Add fields "freed", "collected"
5233         (ptr_hash): New static hash
5234         (ptr_hash_entry): New structure.
5235         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
5236         (ggc_record_overhead): Take ptr argument, record it
5237         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
5238         (cmp_statistics): Imrove sorting.
5239         (dump_ggc_loc_statistics): Output newly collected statistics
5240         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
5241         (ggc_free): Call ggc_free_overhead.
5242         (ggc_collect): Force collection when asked to be forced.
5243         (ggc_collect): Call ggc_prune_overhead_list.
5244         * ggc.h (ggc_force_collect): Declare
5245         (ggc_record_overhead): Update prototype.
5246         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
5247
5248 2004-09-02  James E Wilson  <wilson@specifixinc.com>
5249
5250         * common.opt (ftrapping-math): Default to on.
5251
5252 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
5253
5254         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
5255
5256 2004-09-02  Denis Chertykov  <denisc@overta.ru>
5257
5258         PR target/16884
5259         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
5260         match_scratch.
5261         (*movmemqi_insn): Likewise.
5262         (*movmemhi): Likewise.
5263         (clrmemhi): Likewise.
5264         (*clrmemqi): Likewise.
5265         (*clrmemhi): Likewise.
5266
5267 2004-09-02  Paul Brook  <paul@codesourcery.com>
5268
5269         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
5270         default_use_cxa_atexit=yes.
5271
5272 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
5273
5274         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
5275         (struct kernel_old_ucontext): Delete.
5276         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
5277         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
5278         when IN_LIGGCC2.
5279
5280 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
5281
5282         * toplev.c (process_options): Fix typo.
5283
5284 2004-09-01  Richard Henderson  <rth@redhat.com>
5285
5286         PR middle-end/17258
5287         * calls.c (initialize_argument_information): Tighten pass-through
5288         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
5289         Use build_fold_addr_expr.
5290         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
5291         that assumes ADDR_EXPR allocates stack space.
5292         * fold-const.c (build_fold_addr_expr_with_type): Look through
5293         WITH_SIZE_EXPR.
5294
5295 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
5296
5297         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
5298         * ggc.h (ggc_alloc_rtx): Delete.
5299
5300 2004-09-01  Roger Sayle  <roger@eyesopen.com>
5301
5302         * expmed.c (enum alg_code): Remove long unused enumeration values.
5303         (struct mult_cost): New structure to hold the "score" of a synthetic
5304         multiply sequence, including both a rtx_cost and a latency field.
5305         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
5306         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
5307         (struct algorithm): Change type of cost field to be mult_cost.
5308         (synth_mult): Change type of cost_limit argument to be a
5309         pointer to a mult_cost.  Update all cost comparisons to use the
5310         new mult_cost infrastructure.  For alg_add_factor and
5311         alg_sub_factor operations, latency is lower than the rtx_cost.
5312         (choose_mult_variant):  Update calls to synth_mult.  Perform
5313         cost comparisons using the new mult_cost infrastructure.
5314         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
5315         to optain the total rtx_cost of a synth_mult "algorithm".
5316
5317 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
5318
5319         * config/rs6000/power4.md: Increase store latency to 12.
5320         * config/rs6000/power5.md: Same.
5321
5322 2004-09-01  James E Wilson  <wilson@specifixinc.com>
5323
5324         PR target/14064
5325         * config/avr/avr.c (avr_unique_section): Delete prototype and
5326         definition.
5327         (TARGET_ASM_UNIQUE_SECTION): Delete.
5328
5329 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
5330
5331         * c-parse.in (primary): Call objc_build_message_expr(),
5332         objc_build_selector_expr(), objc_build_protocol_expr(),
5333         objc_build_encode_expr() and objc_build_string_object() instead of
5334         build_message_expr(), build_selector_expr(), build_protocol_expr(),
5335         build_encode_expr() and build_objc_string_object(), respectively.
5336         (component_decl_list2): Call objc_get_class_ivars() instead of
5337         get_class_ivars_from_name().
5338         (keyworddecl): Call objc_build_keyword_decl() instead of
5339         build_keyword_decl().
5340         (receiver): Call objc_get_class_reference() instead of
5341         get_class_reference().
5342         (reswords): Add blank line before @@ifobjc section, for clarity.
5343
5344 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
5345
5346         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
5347         to Altivec vetors.
5348
5349 2004-09-01  Wu Yongwei  <adah@sh163.net>
5350             Danny Smith  <dannysmith@users.sourceforge.net>
5351
5352         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
5353         not Windows 'DWORD'.
5354         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
5355         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
5356         (__gthr_win32_recursive_mutex_init_function): Add prototype for
5357         __GTHREAD_HIDE_WIN32API case..
5358         (__gthr_win32_recursive_mutex_lock): Likewise.
5359         (__gthr_win32_recursive_mutex_trylock): Likewise.
5360         (__gthr_win32_recursive_mutex_unlock): Likewise.
5361         (__gthread_recursive_mutex_init_function); Add definition for
5362         __GTHREAD_HIDE_WIN32API case.
5363         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
5364         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
5365         call to InterlockedDecrement.
5366
5367 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5368
5369         * tree-tailcall.c (find_tail_calls): Also fail is statement has
5370         volatile operands.
5371
5372         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
5373
5374         * doc/c-tree.texi: Document new operands for ARRAY_REF and
5375         COMPONENT_REF.
5376
5377 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5378
5379         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
5380         * common.opt (fspeculative-prefetching): New.
5381         * flags.h (flag_speculative_prefetching_set): Declare.
5382         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
5383         values.
5384         * opts.c (flag_sepculative_prefetching_set): New variable.
5385         (common_handle_option): Handle -fspeculative-prefetching.
5386         * passes.c (rest_of_compilation): Ditto.
5387         * profile.c (instrument_values, compute_value_histograms, branch_prob):
5388         Use vectors instead of arrays.
5389         * toplev.c (process_options): Handle -fspeculative-prefetching.
5390         * rtl-profile.c: Include ggc.h.
5391         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
5392         rtl_gen_one_value_profiler_no_edge_manipulation,
5393         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
5394         argument changed.
5395         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
5396         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
5397         argument changed.
5398         * value-prof.c: Include ggc.h.
5399         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
5400         macros.
5401         (insn_prefetch_values_to_profile, find_mem_reference_1,
5402         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
5403         speculative_prefetching_transform): New.
5404         (value_profile_transformations): Call speculative_prefetching_transform.
5405         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
5406         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
5407         tree_find_values_to_profile, find_values to profile): Use vectors
5408         instead of arrays.
5409         (free_profiled_values): Removed.
5410         * value-prof.h (struct histogram_value): Renamed to
5411         struct histogram_value_t.
5412         (histogram_value, histogram_values): New types.
5413         (find_values_to_profile): Declaration changed.
5414         (free_profiled_values): Removed.
5415         (struct profile_hooks): Type of argument of the hooks changed to
5416         histogram_value.
5417         * doc/invoke.texi (-fspeculative-prefetching): Document.
5418
5419 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5420
5421         PR rtl-optimization/16408
5422         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
5423
5424 2004-09-01  Richard Henderson  <rth@redhat.com>
5425
5426         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
5427         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
5428
5429 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
5430
5431         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
5432
5433 2004-09-01  Mike Stump  <mrs@apple.com>
5434
5435         * config/darwin.c (machopic_symbol_defined_p): In addition to
5436         being SYMBOL_REF_LOCAL_P, a symbol must also be
5437         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
5438         defined in this output file, or translation unit in the case
5439         of IMA not being used.
5440         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
5441         never need .indirect_symbol when indirecting.
5442
5443 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
5444
5445         * Makefile.in (bb-reorder.o): Add several dependencies.
5446
5447 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
5448
5449         * fold-const.c (operand_equal_p): Require equal sign also for
5450         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
5451
5452 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
5453
5454         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
5455         for use in configargs.h.  Put the cname in a separate variable.  Use
5456         that to set target_cpu_default2.
5457
5458 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
5459             Nick Clifton  <nickc@redhat.com>
5460
5461         * config/sh/sh.md ("length"): Increase branch length when
5462         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
5463         constant, 2 byte for aligning the constant.
5464
5465 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
5466
5467         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
5468         CPU.
5469         (arm7tdmi-s): New CPU name.
5470         * arm/arm.c (ARM_CORE): Update for new format.
5471         * arm/arm.h (ARM_CORE): Likewise.
5472         * arm/gentune.sh: Update for extra field.
5473         * config.gcc: Likewise.
5474         * arm/arm-tune.md: Regenerate.
5475         * doc/invoke.texi: Document the real processor names for ARM cpus.
5476
5477 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
5478
5479         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
5480         (floatdidf): New functions.
5481         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
5482         (floatdisf): New functions.
5483         * t-arm-elf: Use them.
5484
5485 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
5486
5487         * c-common.h (lookup_interface): Remove prototype.
5488         (is_class_name): Rename to objc_is_class_name.
5489         (lookup_objc_ivar): Rename to objc_lookup_ivar.
5490         (get_current_scope): Rename to objc_get_current_scope.
5491         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
5492         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
5493         (yylexname): Call objc_is_class_name() instead of is_class_name().
5494         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
5495         instead of lookup_objc_ivar().
5496         * stub-objc.c (lookup_interface): Remove stub.
5497         (is_class_name): Rename to objc_is_class_name.
5498         (lookup_objc_ivar): Rename to objc_lookup_ivar.
5499
5500 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
5501
5502         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
5503         * config/arm/lib1funcs.asm: Do not include supplemental .S files
5504         when compiling for Symbian.
5505         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
5506         (TARGET_OS_CPP_BUILTINS): Likewise.
5507         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
5508
5509 2004-08-31  Stan Shebs  <shebs@apple.com>
5510
5511         * toplev.c (process_options): Ensure debug_hooks is initialized.
5512
5513 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
5514
5515         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
5516         * target.h (cxx): Add export_class_data.
5517         * config/arm/arm.c (arm_cxx_export_class_data): New function.
5518         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
5519         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
5520
5521 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5522
5523         * config/sh/sh.c (output_branch): Check the insn length possibly
5524         in the delayed slot.
5525
5526 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5527
5528         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
5529         blank after ')'.
5530         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
5531
5532         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
5533         (c_sizeof_of_alignof_type): Likewise.
5534         * expr.c (array_ref_element_size): Likewise.
5535         (highest_pow2_factor_for_target): Likewise.
5536         * gimplify.c (canonicalize_addr_expr): Likewise.
5537         (gimplify_compound_lval): Likewise.
5538         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
5539         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
5540         * varasm.c (assemble_variable): Likewise.
5541         (output_constant_def_contents): Alignments are unsigned.
5542
5543 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5544             Jeff Law  <law@redhat.com>
5545
5546         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
5547         gets modified.
5548
5549 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
5550
5551         * hooks.c (hook_bool_void_true): New function.
5552         * hooks.h (hook_bool_void_true): Declare.
5553         * target-def.h (TARGET_CXX): Add
5554         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
5555         * target.h (struct cxx): Add key_method_may_be_inline.
5556         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
5557         function.
5558         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
5559         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
5560         __THUMB_INTERWORK.
5561
5562 2004-08-31  Denis Chertykov  <denisc@overta.ru>
5563
5564         PR target/15417
5565         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
5566         frame pointer register only in Pmode while reload in progress.
5567
5568 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
5569
5570         PR target/15334
5571         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
5572         because it breaks the 32-bit shift patterns that rely on a match_dup.
5573
5574 2004-08-31  Matt Austern  <austern@apple.com>
5575
5576         * config/darwin.c (darwin_make_decl_one_only): Allocate section
5577         names once per compilation, instead of once per symbol.
5578
5579 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
5580
5581         * Makefile.in (build_subdir): New substitution.
5582         (fixinc.sh): Simplify heavily since fixincludes is already built.
5583         (stmp-fixinc): Depend on specs.ready.
5584         (install-mkheaders): Use new location of fixincludes.
5585         (clean): Do not descend into fixinc.
5586         (FORBUILD): Replace with ../$(build_subdir).
5587         * configure.ac (build_subdir): Substitute.
5588         (FORBUILD): Do not set.
5589         (all_outputs): Remove fixinc/Makefile.
5590         (default commands): Do not create links in fixinc.
5591         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
5592         the fixincludes configuration steps and substituting
5593         @FIXINCL@ in fixinc.in.
5594         * fixinc.in: New, from fixinc/fixincl.sh.
5595
5596         * fixinc/*: Removed.
5597
5598 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
5599
5600         * attribs.c (strip_attrs): Remove.
5601         (split_specs_attrs): Move ...
5602         * c-decl.c: ... to here.
5603         * tree.h (split_specs_attrs, strip_attrs): Remove.
5604         * c-tree.h (split_specs_attrs): Declare.
5605
5606 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
5607
5608         * read-rtl.c: Disable RTL checking.
5609         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
5610
5611 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
5612
5613         * config/mips/mips.md (fcond): New code macro and attribute.
5614         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
5615         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
5616         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
5617
5618 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
5619
5620         Revert:
5621         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
5622         PR rtl-optimization/16590
5623         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
5624
5625 2004-08-30  Andrew Pinski  <apinski@apple.com>
5626
5627         * hard-reg-set.h:
5628         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
5629         * ChangeLog: Fix previous ChangeLog entry.
5630
5631         PR rtl-opt/13987
5632         * config.host (use_long_long_for_widest_fast_int): New, default is
5633         off.
5634         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
5635         * configure.ac: If use_long_long_for_widest_fast_int, then
5636         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
5637         * configure: Regenerate.
5638         * config.in: Regenerate.
5639         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
5640         New: widest integer type supported efficiently in hardware for the
5641         host.
5642         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
5643         HOST_BITS_PER_WIDEST_FAST_INT.
5644         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
5645         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
5646         HOST_WIDEST_FAST_INT
5647         instead of HOST_WIDE_INT.
5648         (HARD_REG_SET_LONGS): Likewise.
5649         (UHOST_BITS_PER_WIDE_INT): Likewise.
5650         Change the checks for the fast cases to be based on
5651         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
5652
5653 2004-08-30  Steven Bosscher  <stevenb@suse.de>
5654
5655         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
5656         not the pointers.
5657
5658 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
5659
5660         PR 12738
5661         PR 17205
5662         Radar 3460526
5663         Radar 3775729
5664         * c-decl.c (grokdeclarator): Produce error for 'static' on local
5665         function declaration.
5666
5667 2004-08-30  Richard Henderson  <rth@redhat.com>
5668
5669         * expr.c (array_ref_element_size): Force aligned_size back to
5670         sizetype.
5671         (component_ref_field_offset): Similarly for aligned_offset.
5672         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
5673         low-bound, element-size, field-offset fields rather than
5674         computed values.
5675
5676 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
5677
5678         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
5679         redundant code.
5680
5681 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
5682
5683         * c-tree.h (struct language_function): Add arg_info element.
5684         * c-decl.c (current_function_arg_info): New.
5685         (grokdeclarator, store_parm_decls): Use it instead of
5686         DECL_ARGUMENTS.
5687         (c_push_function_context, c_pop_function_context): Save and
5688         restore it.
5689
5690 2004-08-30  Richard Henderson  <rth@redhat.com>
5691
5692         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
5693         COMPONENT_REF to pointer arithmetic.
5694         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
5695         constant "c" as a valid constant initializer.  Allow narrowing of
5696         differences against the same base object, for any base object.
5697
5698 2004-08-30  Richard Henderson  <rth@redhat.com>
5699
5700         * expr.c (expand_expr_addr_expr): New.
5701         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
5702
5703 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
5704
5705         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
5706         (mips_fp_condition): New enum.
5707         (mips_fp_conditions): New array.
5708         (print_fcc_operand): Delete.
5709         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
5710         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
5711         (builtin_description): Add "cond" field.
5712         (DIRECT_BUILTIN): Initialize it.
5713         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
5714         into INSN and CODE.  Initialize the "cond" field.
5715         (CMP_BUILTINS): Update accordingly.
5716         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
5717         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
5718         mips_fp_condition as argument.  Make it the final operand of the
5719         comparison instruction.
5720         (mips_expand_builtin): Update accordingly.
5721         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
5722         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
5723         the gaps.
5724         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
5725         Don't use the 'Q' operand prefix; just print the operand normally.
5726         (mips_cabs_*, mips_c_*): Delete, replacing with...
5727         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
5728         patterns.  Split the 4s versions into 2 ps patterns after reload.
5729
5730 2004-08-30  Richard Henderson  <rth@redhat.com>
5731
5732         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
5733         assuming an ADDR_EXPR is non-null.
5734
5735 2004-08-30  Jason Merrill  <jason@redhat.com>
5736
5737         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
5738
5739 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
5740
5741         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
5742         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
5743         gcc_assert and gcc_unreachable instead of abort.
5744         * alloc-pool.c (abort, fancy_abort): Remove.
5745         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
5746         gcc_assert or gcc_unreachable.
5747         * attribs.c (init_attributes, decl_attributes): Likewise.
5748         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
5749         mark_bb_for_unlikely_executed_section,
5750         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
5751         fix_crossing_unconditional_branches):  Likewise.
5752         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
5753         bitmap_operation):  Likewise.
5754         * bt-load.c (insn_sets_btr_p, augment_live_range,
5755         move_btr_def):  Likewise.
5756         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
5757         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
5758         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
5759         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
5760         expand_builtin_memcmp, expand_builtin_args_info,
5761         std_gimplify_va_arg_expr, expand_builtin_unop,
5762         expand_builtin_fputs, expand_builtin_profile_func,
5763         expand_builtin_fork_or_exec, fold_builtin_bitop,
5764         fold_builtin_classify, fold_builtin_fputs): Likewise.
5765
5766 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
5767
5768         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
5769         * gcov.c (abort): Remove undef.
5770
5771         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
5772         (struct tree_binfo): Remove primary field.
5773
5774 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
5775
5776         * fixinc/Makefile.in (machname.h): Remove.
5777         (fixincl.x): Do not pass $@ to genfixes.
5778         * fixinc/genfixes: Remove code to produce machname.h.
5779         * fixinc/fixincl.sh: Move it here instead.
5780         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
5781         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
5782         return a bool indicating whether pz_mn_name_pat is NULL.
5783         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
5784         Declare extern C variables for the ENV_TABLE.
5785         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
5786         instead use the result of mn_get_regexps.
5787         * fixinc/fixtests.c: Likewise.
5788
5789 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
5790
5791         * configure.ac: Do not run fixincludes after stage1 during
5792         toplevel bootstrap.
5793         * configure: Regenerate.
5794
5795 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
5796
5797         * sched-deps.c (get_condition): Partially revert previous, by never
5798         trying to extract the condition from a condjump.
5799
5800 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
5801
5802         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
5803         (handle_visibility_attribute, c_determine_visibility): Likewise.
5804         * c-common.h (my_friendly_assert): Remove.
5805
5806 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
5807
5808         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
5809         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
5810         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
5811         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
5812         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
5813
5814 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
5815
5816         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
5817         in COMPONENT_REF nodes.
5818
5819 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5820
5821         PR c++/15378
5822         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
5823         global_dc->warning_as_error_requested.
5824         * diagnostic.c (diagnostic_initialize): Tidy.
5825         * diagnostic.h (diagnostic_context::x_data): Remove
5826         (diagnostic_context::issue_warnings_are_errors_message): Rename
5827         from warnings_are_errors_message.
5828         (diagnostic_context::warning_as_error_requested): New.
5829
5830 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
5831
5832         * sched-deps.c (get_condition): Fix breakage in previous patch.
5833
5834 2004-08-30  Paul Brook  <paul@codesourcery.com>
5835
5836         * doc/install.texi: Fix broken mpfr link.
5837
5838 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
5839
5840         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
5841         other FreeBSD platforms.
5842
5843 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
5844
5845         * arm.h (REVERSE_CONDITION): Define.
5846         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
5847
5848 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
5849
5850         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
5851         just the codes, call reversed_comparison_code ().
5852         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
5853         (not_reg_cond): Use reversed_comparison_code.
5854         (and_reg_cond): Likewise.
5855         * ifcvt.c (cond_exec_process_if_block): Likewise.
5856         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
5857
5858 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
5859
5860         * sched-deps.c (get_condition): Rewrite using jump support functions.
5861         Use reversed_comparison_code.
5862         (conditions_mutex_p): Use reversed_comparison_code.
5863
5864 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5865
5866         * config/mips/mips.c (override_options): Disable hot/cold partitioning
5867         for MIPS16.
5868
5869 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5870
5871         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
5872         (mips_function_type): Move to mips.c.
5873         * config/mips/mips.c (mips_builtin_type): New enum.
5874         (builtin_description): Replace code and ftype with builtin_type
5875         and function_type.
5876         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
5877         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
5878         (CODE_FOR_mips_abs_ps): Define.
5879         (mips_bdesc): Use new macros.
5880         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
5881         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
5882         (mips_expand_builtin_direct): New function.
5883         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
5884         builtin.  Replace boolean parameter with builtin_type.
5885         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
5886         (mips_expand_4s_compare_builtin): Delete, replacing with...
5887         (mips_expand_builtin_compare): ...this new function.
5888
5889 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
5890
5891         PR rtl-optimization/16590
5892         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
5893
5894 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
5895
5896         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
5897         * tree-ssa-propagate.c: Fix documentation.
5898
5899 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5900
5901         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
5902         (mov[sd]fcc): Likewise.
5903
5904 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5905
5906         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
5907
5908 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5909
5910         * config/mips/mips.md (divide_condition): New mode attribute.
5911         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
5912         (sqrt[sd]f3): Redefine using SCALARF.
5913         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
5914         patterns.
5915
5916 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5917
5918         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
5919         (loadx, storex, fmt, UNITMODE): New mode attributes.
5920         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
5921         (mul[sd]f3): Redefine using :SCALARF.
5922         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
5923         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
5924         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
5925         Check TARGET_FUSED_MADD for V2SF too.
5926         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
5927         were already named.
5928         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
5929         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
5930
5931 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5932
5933         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
5934         V2SF_type_node if it will be needed.
5935
5936 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5937
5938         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
5939         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
5940         (mips_prepare_builtin_target): New function.
5941         (mips_expand_builtin): Use them.  Update calls to subroutines.
5942         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
5943         cmp_choice with a boolean argument to select between movt and movf.
5944         Take the comparison's icode as an argument, not the function's fcode.
5945         (mips_expand_compare_builtin): New function.  Rename existing function
5946         to mips_expand_scalar_compare_builtin.
5947         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
5948         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
5949         comparison's icode as an argument, not the builtin's fcode.
5950
5951 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5952
5953         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
5954         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
5955         registers are false and -1 if all registers are true.
5956         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
5957         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
5958         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
5959         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
5960         (bc1any2t, bc1any2f): Likewise CCV2.
5961         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
5962
5963 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5964
5965         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
5966         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
5967         UNSPEC rather than an IF_THEN_ELSE.
5968         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
5969         mips_cond_move_tf_ps by name.
5970
5971 2004-08-29  Chao-ying Fu  <fu@mips.com>
5972             James E Wilson  <wilson@specifixinc.com>
5973
5974         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
5975         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
5976         * config/mips/mips-ps-3d.md: New file.
5977         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
5978         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5979         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
5980         (mips_output_move): Emit "mov.ps" for V2SFmode.
5981         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
5982         MODE_VECTOR_FLOAT.
5983         (override_options): Check if TARGET_MIPS3D and there was an explicit
5984         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
5985         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
5986         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
5987         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
5988         and allow CCV2 and CCV4 to occupy two and four CC registers.
5989         (print_fcc_operand): New function.
5990         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
5991         %Z to call print_fcc_operand.
5992         (mips_function_value): Handle MODE_VECTOR_FLOAT.
5993         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
5994         (mips_vector_mode_supported_p): New function.
5995         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
5996         (builtin_description): New struct.
5997         (mips_bdesc): New array of struct builtin_description.
5998         (mips_expand_builtin, mips_init_builtins,
5999         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
6000         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
6001         functions.
6002         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
6003         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
6004         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
6005         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
6006         "-mips3d", and "-mno-mips3d".
6007         (ASM_SPEC): Map -mips3d to -mips3d in gas.
6008         (EXTRA_CONSTRAINT_Y): New macro.
6009         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
6010         multi-letter constraint 'Y'.
6011         (CONSTRAINT_LEN): New macro.
6012         (enum mips_builtins): New for MIPS builtin functions.
6013         (enum mips_function_type): New for the types of MIPS builtin functions.
6014         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
6015         * config/mips/mips.md: New constants for paired single and MIPS-3D
6016         instructions.  Include the new mips-ps-3d.md file.
6017         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
6018         movv2sf_hardfloat_64bit): New named patterns.
6019         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
6020         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
6021         sdxc1_v2sf_di): New unnamed patterns.
6022         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
6023         const_vector support.
6024         (const_0_or_1_operand): New predicate.
6025         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
6026
6027 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
6028
6029         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
6030         (tree-ssa-propagate.o): New rule.
6031         (GTFILES): Add tree-ssa-propagate.c.
6032         * tree-flow.h (struct stmt_ann_d): Remove field
6033         in_ccp_worklist.
6034         * tree-ssa-propagate.c: New file.
6035         * tree-ssa-propagate.h: New file.
6036         * tree-ssa-ccp.c: Re-write to use the routines from
6037         tree-ssa-propagate.c.
6038
6039 2004-08-28  Andrew Pinski  <apinski@apple.com>
6040
6041         * tree-ssa-loop.c: Remove extra include of basic-block.h.
6042
6043 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
6044
6045         * c-common.h: Update comments about ObjC/ObjC++ entry points.
6046         (objc_is_reserved_word): New prototype.
6047         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
6048         separate section; these are call-backs.
6049         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
6050         ObjC/ObjC++ "@" keywords.
6051         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
6052         prototypes; they already live in c-common.h.
6053         * stub-objc.c: Update copyright notice.
6054         (objc_is_reserved_word): New stub.
6055
6056 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
6057
6058         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
6059         even when not checking.
6060
6061 2004-08-27  Jason Merrill  <jason@redhat.com>
6062
6063         PR c++/13684
6064         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
6065         (gimple_push_cleanup): Add eh_only parm.
6066         (gimplify_target_expr): Pass it.
6067         * c.opt (-fno-threadsafe-statics): New option.
6068         * c-opts.c (c_common_handle_option): Handle it.
6069         * c-common.h (flag_threadsafe_statics): Declare it.
6070         * c-common.c (flag_threadsafe_statics): Record it.
6071         * doc/invoke.texi: Document it.
6072         * tsystem.h (_GNU_SOURCE): Define.
6073         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
6074         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
6075         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
6076         (__gthread_recursive_mutex_init_function): New fn.
6077         (__gthread_recursive_mutex_lock): New fn.
6078         (__gthread_recursive_mutex_trylock): New fn.
6079         (__gthread_recursive_mutex_unlock): New fn.
6080         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
6081         * gthr-win32.h, gthr-vxworks.h: Likewise.
6082         * gthr.h: Document.
6083
6084 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
6085
6086         * config/rs6000/rs6000.c (rs6000_override_options): Increase
6087         maximum skip to 15.  Set function alignment, jump alignment, and
6088         loop alignment to 16 for processors that form dispatch groups.
6089         (rs6000_rtx_costs): outer_code is used.
6090
6091 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
6092
6093         * stor-layout.c (sizetype_set): Remove.
6094         (set_sizetype): Don't test or set it.
6095
6096         * tree.h (size_int_type): Remove.
6097         * fold-const.c: Do not #include gt-fold-const.h.
6098         (size_htab_hash, size_htab_eq): Remove.
6099         (size_int_kind): Use build_int_cst.
6100         (new_const, size_htab): Remove.
6101         (size_int_type): Remove.
6102         (round_up): Use build_int_cst.
6103         (round_down): Likewise. Remove spurious constant build.
6104
6105 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
6106
6107         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
6108         Add is_release variable, use it for --enable-werror and
6109         --enable-checking defaults.
6110         * system.h (gcc_assert, gcc_unreachable): New.
6111         * doc/install.texi (--enable-checking): Update.
6112         * configure, config.in: Rebuilt.
6113
6114 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
6115
6116         * rtl.h (read_rtx): Change prototype.
6117         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
6118         line number.  Return true on success.
6119         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
6120         callers accordingly.
6121
6122 2004-08-26  Richard Henderson  <rth@redhat.com>
6123
6124         * c-typeck.c (build_offsetof): Remove.
6125         * c-tree.h (build_offsetof): Remove.
6126         * c-common.c (fold_offsetof_1, fold_offsetof): New.
6127         * c-common.h (fold_offsetof): Declare.
6128         * c-parse.in (offsetof_base): New.
6129         (offsetof_member_designator): Use it.  Build references, not just
6130         a tree list.
6131         (primary): Use fold_offsetof, not build_offsetof.
6132
6133 2004-08-26  Richard Henderson  <rth@redhat.com>
6134
6135         * tree.c (staticp): Return the static object.
6136         * tree.h (staticp): Update decl.
6137         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
6138         * langhooks.c (lhd_staticp): Return NULL_TREE.
6139         * langhooks-def.h (lhd_staticp): Update decl.
6140         * c-common.c (c_staticp): Return the static object.
6141         * c-common.h (c_staticp): Update decl.
6142
6143 2004-08-26  Richard Henderson  <rth@redhat.com>
6144
6145         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
6146         modes.
6147
6148 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
6149
6150         PR c/13801
6151         * c-decl.c (struct c_binding): Add type and inner_comp fields.
6152         (bind): Set type and inner_comp fields.
6153         (pop_scope): Restore type of decl to the correct type from an
6154         outer scope.  Give error when popping file scope for incomplete
6155         arrays completed incompatibly with default initialization in an
6156         inner scope.
6157         (diagnose_mismatched_decls): Handle externs with initializers at
6158         block scope.
6159         (pushdecl): Set type of external declaration at block scope based
6160         only on the visible declarations.  Save type when changing the
6161         type of a declaration.  Merge an external declaration at block
6162         scope with a visible static declaration at file scope.
6163         (implicitly_declare): Give recycled old declaration the new type
6164         except for incompatible declarations of built-in functions, saving
6165         the old type.
6166
6167 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
6168
6169         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
6170
6171 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
6172
6173         * tree-alias-common.c (gate_pta): New function.
6174         (pass_build_pta): Use it.
6175         (pass_del_pta): Use it.
6176         (delete_alias_vars): Don't check flag_tree_points_to.
6177
6178 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
6179
6180         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
6181         TFmode as additional register mode cloberred by call.
6182
6183 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
6184
6185         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
6186         parallel pattern for library call returning DImode in
6187         mixed mode.
6188
6189 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
6190
6191         * config/rs6000/rs6000.c (function_arg): Generate parallel
6192         pattern for more split args.
6193
6194 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
6195
6196         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
6197         either gen_movdi_di_update or gen_movdi_si_update depending on
6198         target mode.
6199         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
6200         to generate two versions.
6201
6202 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
6203
6204         * Makefile.in (lambda-code.o): New.
6205         (lambda-trans.o): Ditto.
6206         (TREE_DATA_REF_H): Ditto.
6207         (LAMBDA_H): Ditto.
6208         (lambda-mat.o): Use LAMBDA_H.
6209         (tree-data-ref.o): Ditto.
6210         * lambda-code.c: New file.  Lambda code generation algorithm.
6211         * lambda-trans.c: Ditto. Lambda transformation matrix support.
6212         * lambda.h: Add lambda loop structures.
6213         Add lambda loopnest structures.
6214         Add lambda body vector structure.
6215         Add lambda linear expression structures.
6216         Add prototypes for functions in new files.
6217         * lambda-mat.c: Include tree.h
6218
6219 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
6220             Sebastian Pop  <pop@cri.ensmp.fr>
6221
6222         * tree-data-ref.h: Include lambda.h
6223         (free_dependence_relation): Declared here.
6224         (free_dependence_relations): Ditto.
6225         (free_data_refs): Ditto.
6226         * tree-data-ref.c (free_dependence_relation): New function.
6227         (free_dependence_relations): Ditto.
6228         (free_data_refs): Ditot.
6229         (analyze_all_data_dependences): Free datarefs and dependence_relations.
6230         (build_classic_dist_vector): Store in the dependence_relations the
6231         information. Each arc in the dependence_relations graph is labelled
6232         with the distance and direction vectors.
6233         (build_classic_dir_vector): Ditto.
6234         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
6235         Now computes again the whole dependence graph including read-read
6236         relations.
6237         (compute_data_dependences_for_loop): Now dependence_relations contains
6238         all the data, and thus it doesn't need to initialize the classic_dir
6239         and classic_dist vectors.
6240         (analyze_all_data_dependences): Adjusted for using the new interface of
6241         compute_data_dependences_for_loop.  Remove the statistics dump.
6242
6243 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
6244
6245         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
6246         (xtensa_expand_block_move): Update comment.
6247         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
6248
6249 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
6250
6251         PR target/13506
6252         * toplev.c (crash_signal): If we crashed while emitting
6253         a user asm, then die more gracefully.
6254
6255 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6256
6257         PR target/17119.
6258         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
6259         checking for a valid constant, regardless of sign.
6260
6261 2004-08-25  Richard Henderson  <rth@redhat.com>
6262
6263         PR target/16974
6264         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
6265         if the constant satisfies add_operand.
6266
6267 2004-08-25  Richard Henderson  <rth@redhat.com>
6268
6269         PR debug/10695
6270         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
6271         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
6272         unwind info for >16-bit frames.
6273
6274 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
6275
6276         PR target/17171
6277         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
6278
6279 2004-08-25  Richard Henderson  <rth@redhat.com>
6280
6281         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
6282         (TARGET_CANNOT_FORCE_CONST_MEM): New.
6283
6284 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
6285
6286         * doc/tree-ssa.texi: Document new operand iterator.
6287
6288 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
6289
6290         PR target/16480
6291         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
6292         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
6293         as PLUS base regs.
6294
6295 2005-08-28  Paul Brook  <paul@codesourcery.com>
6296
6297         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
6298         -mfpu=vfp -march=armv5t
6299         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
6300
6301 2004-08-25  Richard Henderson  <rth@redhat.com>
6302
6303         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
6304         * target.h (struct gcc_target): Add scalar_mode_supported_p.
6305         * targhooks.c (default_scalar_mode_supported_p): New.
6306         * targhooks.h (default_scalar_mode_supported_p): Declare.
6307         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
6308
6309         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
6310         before attempting to create types.  Tidy.
6311         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
6312
6313         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
6314         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
6315
6316 2004-08-25  Richard Henderson  <rth@redhat.com>
6317
6318         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
6319         set REAL_MODE_FORMAT for TFmode.
6320
6321 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
6322
6323         * c-decl.c (grokparm): New function.
6324         * c-tree.h (grokparm): New prototype.
6325
6326 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
6327
6328         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
6329         iterator controlling structure.
6330         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
6331         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
6332         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
6333         iterator flags.
6334         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
6335         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
6336         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
6337         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
6338         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
6339         Empty operand pointers.
6340         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
6341         (op_iter_next_use): New.  Return next use_operand_p.
6342         (op_iter_next_def): New.  Return next def_operand_p.
6343         (op_iter_next_tree): New.  Return next operands as a tree.
6344         (op_iter_init): New.  Initialize an iterator structure.
6345         (op_iter_init_use): New.  Initialize structure and get the first use.
6346         (op_iter_init_def): New.  Initialize structure and get the first def.
6347         (op_iter_init_tree): New.  Initialize structure and get the first tree.
6348         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
6349         (op_iter_init_maydef): New.  Initialize structure and get the first
6350         V_MAY_DEF operands.
6351         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
6352         * tree-dfa.c (compute_immediate_uses_for_stmt,
6353         redirect_immediate_uses): Use new operand iterator.
6354         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
6355         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
6356         operands instead of using *_disappeared_p routines.
6357         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
6358         ssa_rewrite_stmt): Use new operand iterator.
6359         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
6360         rewrite_trees): Use new operand iterator.
6361         * tree-pretty-print.c (dump_vops): Use new operand iterator.
6362         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
6363         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
6364         dump_points_to_info): Use new operand iterator.
6365         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
6366         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
6367         operand iterator.
6368         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
6369         propagate_necessity): Use new operand iterator.
6370         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
6371         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
6372         a parameter instead of a stmt_ann_t.
6373         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
6374         build_tree_conflict_graph): Use new operand iterator.
6375         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
6376         rewrite_mem_refs): Use new operand iterator.
6377         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
6378         check_loop_closed_ssa_use): Use new operand iterator.
6379         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
6380         * tree-ssanames.c (release_defs): Use new operand iterator.
6381         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
6382
6383 2004-08-25  Adam Nemet  <anemet@lnxw.com>
6384
6385         * tlink.c (initial_cwd): New variable.
6386         (tlink_init): Initialize it.
6387         (recompile_files): Use tlink_execute() instead of system().  Don't
6388         duplicate verbose output of collect_execute.  Restore initial_cwd.
6389         Update comment before the function.
6390
6391 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
6392
6393         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
6394         accept) a cast from one Objective-C pointer type to another.
6395
6396 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
6397
6398         * doc/install.texi: Document that libstdc++-v3 requires
6399         now automake 1.9.1.
6400
6401 2004-08-25  Caroline Tice  <ctice@apple.com>
6402
6403         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
6404         to comments at start of function.
6405         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
6406         comment.
6407         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6408         merge_blocks_move_predecessor_nojumps,
6409         merge_blocks_move_successor_nojumps, merge_blocks_move,
6410         try_crossjump_to_edge, try_crossjump_bb): Likewise.
6411         * cfglayout.c (fixup_reorder_chain): Likewise.
6412         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
6413         cfg_layout_can_merge_blocks_p):  Likewise.
6414         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
6415         * passes.c (rest_of_compilation): Update comments for calling
6416         optimization that partitions hot/cold basic blocks.
6417         * doc/invoke.texi:  Update documentation of
6418         freorder-blocks-and-partition flag.
6419
6420 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
6421
6422         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
6423         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
6424
6425 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
6426
6427         * config/mips/mips.md (any_shift): New code macro.
6428         (optab, insn): New code attributes.
6429         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
6430         Use the standard rather than internal patterns for the MIPS16
6431         double-shift optimization.
6432         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
6433         Redefine using :GPR and any_shift.
6434         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
6435         to cover all three shifts.
6436         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
6437         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
6438         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
6439
6440 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
6441
6442         * gimplify.c (lookup_tmp_var): Separate temporaries when not
6443         optimizing.
6444
6445 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6446
6447         PR libstdc++/17005 (fix for HP-UX 11.11)
6448         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
6449         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
6450         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
6451         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
6452         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
6453         (LINK_SPEC): Handle march=1.0 option.
6454         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
6455         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
6456         (SUBTARGET_OPTIONS): New define.
6457         (LINK_SPEC): Handle march=1.0 option.
6458         (STARTFILE_SPEC): New define.
6459         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
6460         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
6461         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
6462         (SUBTARGET_OPTIONS): New define.
6463         (LINK_SPEC): Handle march=1.0 option.
6464         (STARTFILE_SPEC): New define.
6465         * config/pa/pa.c (override_options): Add code to process -munix= option.
6466         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
6467         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
6468         defines.
6469         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
6470         (SUBTARGET_OPTIONS): Provide default define.
6471         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
6472         STANDARD_STARTFILE_PREFIX_2): New defines.
6473         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
6474         (ENDFILE_SPEC): Use %O.
6475         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
6476         Mention issue caused by changing namespace and runtime to UNIX 95/98.
6477         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
6478         Document -munix=std option.
6479
6480 2004-08-25  Steven Bosscher  <stevenb@suse.de>
6481
6482         * cse.c (cse_around_loop, cse_check_loop_start,
6483         cse_set_around_loop): Remove.
6484         (cse_basic_block): Remove the around_loop argument.
6485         (cse_end_of_basic_block): Remove the after_loop argument.
6486         (cse_main): Likewise.
6487         * rtl.h (cse_main): Update prototype.
6488         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
6489         rest_of_handle_gcse): Update cse_main calls.
6490
6491 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
6492
6493         * tree.h  (build_int_cst): New, sign extended constant.
6494         (build_int_cstu): New, zero extended constant.
6495         (build_int_cst_wide): Renamed from build_int_cst.
6496         * tree.c (build_int_cst, build_int_cstu): New.
6497         (build_int_cst_wide): Renamed from build_int_cst.
6498         (make_vector_type, build_common_tree_nodes,
6499         build_common_tree_nodes_2): Adjust build_int_cst calls.
6500         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
6501         expand_builtin_strpbrk, expand_builtin_fputs,
6502         build_string_literal, expand_builtin_printf,
6503         expand_builtin_sprintf, fold_builtin_classify_type,
6504         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
6505         fold_builtin_toascii, fold_builtin_isdigit,
6506         simplify_builtin_strstr, simplify_builtin_strpbrk,
6507         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
6508         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
6509         DEF_ATTR_INT): Likewise.
6510         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
6511         Likewise.
6512         * c-lex.c (interpret_integer, lex_charconst): Likewise.
6513         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
6514         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6515         * c-typeck.c (really_start_incremental_init, push_init_level,
6516         set_nonincremental_init_from_string): Likewise.
6517         * calls.c (load_register_parameters): Likewise.
6518         convert.c (convert_to_pointer): Likewise.
6519         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
6520         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
6521         build_gcov_info): Likewise.
6522         * except.c (init_eh, assign_filter_values): Likewise.
6523         * expmed.c (store_fixed_bit_field, extract_bit_field,
6524         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
6525         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
6526         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
6527         * expr.c (convert_move, emit_group_load, emit_group_store,
6528         expand_assignment, store_constructor, store_field,
6529         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6530         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
6531         invert_truthvalue, optimize_bit_field_compare,
6532         decode_field_reference, all_ones_mask_p, constant_boolean_node,
6533         fold_div_compare, fold, fold_read_from_constant_string,
6534         fold_negate_const, fold_abs_const, fold_not_const, round_up,
6535         round_down): Likewise.
6536         * function.c (assign_parm_setup_block): Likewise.
6537         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
6538         Likewise.
6539         * stor-layout.c (layout_type, initialize_sizetypes,
6540         set_min_and_max_values_for_integral_type): Likewise.
6541         * tree-chrec.c (chrec_fold_multiply_poly_poly,
6542         reset_evolution_in_loop): Likewise.
6543         * tree-chrec.h (build_polynomial_chrec): Likewise.
6544         * tree-complex.c (build_replicated_const): Likewise.
6545         * tree-eh.c (honor_protect_cleanup_actions,
6546         lower_try_finally_onedest, lower_try_finally_copy,
6547         lower_try_finally_switch): Likewise.
6548         * tree-mudflap.c (mf_build_string, mx_register_decls,
6549         mudflap_register_call, mudflap_enqueue_constant): Likewise.
6550         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
6551         * tree-pretty-print.c (dump_generic_node): Likewise.
6552         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
6553         Likewise.
6554         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
6555         * tree-ssa-loop-niter.c (number_of_iterations_cond,
6556         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
6557         Likewise.
6558         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
6559         canonicalize_loop_induction_variables): Likewise.
6560         * tree-vectorizer.c (vect_create_index_for_array_ref,
6561         vect_transform_loop_bound, vect_compute_data_ref_alignment):
6562         Likewise.
6563
6564         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
6565         alpha_gimplify_va_arg_1): Likewise.
6566         * config/arm/arm.c (arm_get_cookie_size): Likewise.
6567         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
6568         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
6569         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6570         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
6571         mips_gimplify_va_arg_expr): Likewise.
6572         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6573         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
6574         add_compiler_branch_island): Likewise.
6575         * config/s390/s390.c (s390_va_start): Likewise.
6576         * config/sh/sh.c (sh_va_start): Likewise.
6577         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6578         Likewise.
6579         * config/xtensa/xtensa.c (xtensa_va_start,
6580         xtensa_gimplify_va_arg_expr): Likewise.
6581
6582         * objc/objc-act.c (build_objc_string_object,
6583         build_objc_symtab_template, init_def_list, init_objc_symtab,
6584         init_module_descriptor, generate_static_references,
6585         build_selector_translation_table, get_proto_encoding,
6586         build_typed_selector_reference, build_selector_reference,
6587         build_next_objc_exception_stuff,
6588         build_method_prototype_list_template, generate_descriptor_table,
6589         generate_protocols, build_protocol_initializer,
6590         build_ivar_list_template, build_method_list_template,
6591         build_ivar_list_initializer, generate_ivars_list,
6592         generate_dispatch_table, generate_protocol_list,
6593         build_category_initializer, build_shared_structure_initializer,
6594         generate_shared_structures, handle_impent,
6595         generate_objc_image_info): Likewise.
6596
6597 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
6598
6599         * cfglayout.c (duplicate_insn_chain): Remove references to
6600         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
6601         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
6602         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
6603         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
6604         and NOTE_INSN_LOOP_CONT.
6605         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
6606         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
6607         and NOTE_INSN_LOOP_CONT.
6608         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
6609         check_dbra_loop, loop_dump_aux): Remove references to removed notes
6610         and fields.
6611         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
6612         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
6613         references to removed notes and fields.
6614         (subtract_reg_term, ujump_to_loop_cont): Remove.
6615
6616 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
6617
6618         * doc/install.texi: Document that libcpp does not require
6619         Automake any longer.  Document that Automake 1.9.1 should
6620         work everywhere.
6621
6622 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
6623
6624         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
6625         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
6626         DWARF_DEBUGGING_INFO from choice-of-definition chain;
6627         restructure using C89 features (#elif, #error).
6628         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
6629         * config/sh/sh.h: Remove references to DWARF_DEBUG.
6630         * doc/invoke.texi: Remove references to DWARF version 1;
6631         clarify why -gdwarf-2<n> doesn't work.
6632
6633 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
6634
6635         * basic-block.h (BB_SET_PARTITION): Clear old value first.
6636         * cfg.c (clear_bb_flags): Don't clear partition setting.
6637         * ifcvt.c (find_if_case_1): Remove ??? comment.
6638
6639 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
6640
6641         PR target/17052
6642         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
6643         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
6644         current_function_stdarg in place of sysv_varargs_p.
6645         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
6646         sysv_varargs_p.
6647
6648 2004-08-24  Richard Henderson  <rth@redhat.com>
6649
6650         PR target/16298
6651         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
6652         random codes within CONST.
6653
6654 2004-08-24  James E Wilson  <wilson@specifixinc.com>
6655
6656         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
6657         -freorder-blocks-and-partition.
6658
6659 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6660
6661         PR middle-end/17044
6662         * tree-ssa-threadupdate.c (redirection_data): Make static.
6663         (thread_block): Use ggc_alloc_cleared to allocate struct
6664         redirection_data.  Don't free elements in redirection_data.
6665
6666 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6667
6668         * config/mips/predicates.md (small_data_pattern): Match prefetches.
6669
6670 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6671
6672         PR tree-optimization/17016
6673         * tree-ssa-loop-niter.c (number_of_iterations_cond,
6674         number_of_iterations_exit): Use POINTER_TYPE_P instead
6675         of testing for POINTER_TYPE.
6676
6677 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6678
6679         * tree-ssa-loop-ivcanon.c: New file.
6680         * tree-ssa-loop-manip.c (create_iv): New function.
6681         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
6682         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
6683         * cfgloop.c (mark_single_exit_loops): New function.
6684         (verify_loop_structure): Verify single-exit loops.
6685         * cfgloop.h (struct loop): Add single_exit field.
6686         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
6687         (mark_single_exit_loops): Declare.
6688         (tree_num_loop_insns): Declare.
6689         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
6690         (duplicate_loop_to_header_edge): Use it.
6691         * common.opt (fivcanon): New flag.
6692         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
6693         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
6694         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
6695         (bsi_insert_on_edge_immediate): New function.
6696         * tree-flow.h (bsi_insert_on_edge_immediate,
6697         canonicalize_induction_variables, tree_unroll_loops_completely,
6698         create_iv): Declare.
6699         * tree-optimize.c (init_tree_optimization_passes): Add
6700         pass_iv_canon and pass_complete_unroll.
6701         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
6702         * tree-scalar-evolution.c (get_loop_exit_condition,
6703         get_exit_conditions_rec, number_of_iterations_in_loop,
6704         scev_initialize): Use single_exit information.
6705         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
6706         missing assumptions.
6707         (loop_niter_by_eval):  Return number of iterations as unsigned
6708         int.
6709         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
6710         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
6711         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
6712         New passes.
6713         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
6714         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
6715         the defining statement is ready.
6716         * tree-vectorizer.c (vect_create_iv_simple): Removed.
6717         (vect_create_index_for_array_ref, vect_transform_loop_bound):
6718         Use create_iv.
6719         (vect_transform_loop_bound): Use single_exit information.
6720         (vect_analyze_loop_form): Cleanup bogus tests.
6721         (vectorize_loops): Do not call flow_loop_scan.
6722         * tree.h (may_negate_without_overflow_p): Declare.
6723         * fold-const.c (may_negate_without_overflow_p): Split out from ...
6724         (negate_expr_p): ... this function.
6725         (tree_expr_nonzero_p): Handle overflowed constants correctly.
6726         * doc/invoke.texi (-fivcanon): Document.
6727         * doc/passes.texi: Document canonical induction variable creation.
6728
6729 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6730
6731         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
6732         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
6733         using the mode of the operand to decide between them.
6734         * config/mips/mips.md (MOVECC): New mode macro.
6735         (ccreg): New mode attribute.
6736         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
6737         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
6738         (mov[sd]icc): Redefine using :GPR.
6739
6740 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6741
6742         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
6743         (mips_prefetch_cookie): New function.
6744         * config/mips/mips.c (print_operand_address): Fix handling of
6745         ADDRESS_CONST_INT.
6746         (mips_emit_prefetch): Delete.
6747         (mips_prefetch_cookie): New function.
6748         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
6749         mode of QImode for the address_operand.  Use mips_prefetch_cookie
6750         to calculate the first "pref" operand.
6751         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
6752         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
6753
6754 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
6755
6756         * arm.md: Include predicates.md.
6757         * predicates.md: New file.
6758         * arm.c (s_register_operand, arm_hard_register_operand)
6759         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
6760         (arm_immediate_operand, arm_neg_immediate_operand)
6761         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
6762         (arm_add_operand, arm_addimm_operand, arm_not_operand)
6763         (offsettable_memory_operand, alignable_memory_operand)
6764         (arm_reload_memory_operand, arm_float_rhs_operand)
6765         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
6766         (index_operand, shiftable_operator, logical_binary_operator)
6767         (shift_operator, equality_operator, arm_comparison_operator)
6768         (minmax_operator, cc_register, dominant_cc_register)
6769         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
6770         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
6771         (const_shift_operand, load_multiple_operation)
6772         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
6773         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
6774         (cirrus_register_operand, cirrus_fp_register)
6775         (cirrus_shift_const): Delete, replaced with equivalents in
6776         predicates.md.
6777         (shift_op): Handle ROTATE.
6778         * arm-protos.h: Delete declarations for above.
6779         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
6780         * t-arm (MD_INCLUDES): Add predicates.md.
6781         (s-preds): Depends on MD_INCLUDES.
6782
6783 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6784
6785         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
6786         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
6787         patterns.  Redefine using :GPR.  Give the match_operator a mode.
6788         Use '%2' rather than '%z2' for operand 2.
6789
6790 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6791
6792         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
6793         attribute.
6794
6795 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6796
6797         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
6798         of internal patterns.
6799         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
6800         Redefine using :P.
6801         (tablejump): Use expand_binop to calculate address.  Adjust names
6802         of internal patterns.
6803         (tablejump[sd]i): Renamed from tablejump_internal[12].
6804         Redefine using :P.
6805         (tablejump_mips16[12]): Delete.
6806
6807 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6808
6809         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
6810         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
6811         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
6812         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
6813         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
6814
6815 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
6816
6817         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
6818         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
6819         using :GPR.
6820         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
6821         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
6822         (*branch_equality[sd]i_inverted): Likewise
6823         branch_equality{,_di}_inverted.
6824         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
6825         Redefine using :GPR.
6826
6827 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
6828
6829         * rtl.def: Reorganize, placing all codes used only in machine
6830         descriptions at the end.
6831
6832         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
6833         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
6834         rtx_name, rtx_format arrays by direct reference to rtl.def,
6835         first undefining GENERATOR_FILE.  Define enum insn_note and
6836         note_insn_name array by direct reference to insn-notes.def.
6837         (adjust_field_rtx_def): Remove local definition of rtx_name.
6838         Use symbolic names for insn notes.
6839         * Makefile.in (gengtype.o): Update dependencies.
6840
6841 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
6842
6843         * basic-block.h (struct basic_block_def): Reorder fields to
6844         eliminate interior padding.  Remove 'partition' field.
6845         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
6846         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
6847         (BB_COPY_PARTITION): New macros.
6848         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
6849         Replace all references to the 'partition' field of a basic
6850         block with new macros.
6851
6852         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
6853         * final.c (final_scan_insn): Don't handle it.
6854         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
6855         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
6856         * sched-rgn.c (sched_is_disabled_for_current_region_p):
6857         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
6858
6859 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
6860
6861         * c-decl.c (c_init_decl_processing): Adjust
6862         build_common_tree_nodes call.
6863         * expmed.c (const_mult_add_overflow_p): Use
6864         build_distinct_type_copy.
6865         * stor-layout.c (early_type_list): Remove.
6866         (layout_type): Don't append to early_type_list.
6867         (initialize_sizetypes): Add signed_p argument.
6868         (set_sizetype): Overwrite the stub type nodes directly.
6869         * tree.c (copy_node_stat): Clear a type's value cache here ...
6870         (build_distinct_type): ... not here.
6871         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
6872         * tree.h (initialize_sizetypes): Add signed_p argument.
6873         (build_common_tree_nodes): Likewise.
6874
6875         * objc/objc-act.c (get_static_reference): Use
6876         build_variant_type_copy.
6877         (get_protocol_reference): Likewise.
6878         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
6879
6880 2004-08-24  Richard Henderson  <rth@redhat.com>
6881             Andrew Pinski  <apinski@apple.com>
6882
6883         * gimplify.c (gimplify_array_ref_to_plus): Delete.
6884         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
6885         for ARRAY_REF.
6886
6887         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
6888         ARRAY_REF also to get to the STRING_CST.
6889
6890 2004-08-24  Paul Brook  <paul@codesourcery.com>
6891
6892         * config/arm/arm.c (arm_override_options): Update error message.
6893         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
6894         TARGET_HARD_FLOAT_ABI.
6895         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
6896         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
6897
6898 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6899
6900         PR target/17093
6901         * config/m32r.md (movsi_sda): Add SI mode specification to
6902         UNSPEC.
6903
6904 2004-08-24  Nick Clifton  <nickc@redhat.com>
6905
6906         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
6907         of seth_add3_operand.
6908
6909 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
6910
6911         * Makefile.in (PROTO_OBJS): Add errors.o.
6912         * protoize.c (fancy_abort): Remove.
6913         * mips-tfile.c (fancy_abort): Add parameters.
6914
6915 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
6916
6917         * doc/trouble.texi (C++ misunderstandings): Fix example code.
6918
6919 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
6920
6921         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
6922         (host-default.o): Add dependency on HOOKS_H.
6923         * config/x-linux: Likewise.
6924         * config/x-solaris: Likewise.
6925         * config/i386/x-mingw32: Likewise.
6926         * config/rs6000/x-darwin: Likewise.
6927
6928 2004-08-23  James E Wilson  <wilson@specifixinc.com>
6929
6930         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
6931         DEF_REG_NOTE.
6932
6933 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
6934
6935         PR c/14492
6936         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
6937
6938 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
6939
6940         * cfg.c (check_bb_profile): Fix typos.
6941         * function.c (assign_parm_is_stack_parm): Likewise.
6942         * tree-nested.c: Likewise.
6943
6944 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
6945
6946         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
6947         Remove TYPECODE.
6948         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
6949
6950 2004-08-23  Eric Christopher  <echristo@redhat.com>
6951
6952         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
6953         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
6954         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
6955         * target.h: Ditto.
6956         * hooks.h: Include machmode.h.
6957         (hook_bool_mode_false): Declare.
6958         * hooks.c (hook_bool_mode_false): Define.
6959         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
6960         * stor-layout.c (layout_type): Ditto.
6961         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
6962         Define to target macro.
6963         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
6964         * config/arm/arm.c: Ditto. Use.
6965         * config/arm/arm.h: Ditto.
6966         * config/arm/arm-protos.h: Ditto.
6967         * config/i386/i386.c: Ditto.
6968         * config/i386/i386.h: Ditto.
6969         * config/rs6000/rs6000.c: Ditto.
6970         * config/rs6000/rs6000.h: Ditto.
6971         * config/sh/sh.c: Ditto.
6972         * config/sh/sh.h: Ditto.
6973         * config/sh/sh-protos.h: Ditto.
6974         * config/sh/sh.md: Use.
6975         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
6976         to TARGET_VECTOR_MODE_SUPPORTED_P.
6977
6978 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
6979
6980         * Makefile.in (BUILD_ERRORS): Set to build-errors.
6981         (errors.o): New target for host.
6982         (build-errors.o): New target for build.
6983         (genobjs): Replace errors.o with build-errors.
6984         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
6985         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
6986         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
6987         (fix-header.o): Add errors.h
6988         * collect2.c (fancy_abort): Add parameters.
6989         * collect2.h (fancy_abort): Don't declare.
6990         * errors.h (fancy_abort): Don't declare.
6991         * errors.c: Include either bconfig.h or config.h.
6992         (fancy_abort): Trim filename.
6993         * fix-header.c (v_fatal, fatal): Remove.
6994         (progname): Remove definition.
6995         (main): Set progname here.
6996         * gcc.c (fancy_abort): Add parameters.
6997         * gcc.h (fancy_abort): Remove declaration.
6998         * gcov.c (fancy_abort): Remove.
6999         * rtl.h (fancy_abort): Don't declare.
7000         (abort): Don't define.
7001         * tree.h (fancy_abort): Don't declare.
7002         (abort): Don't define.
7003         * system.h (fancy_abort): Declare.
7004         (abort): Define to fancy_abort.
7005         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
7006
7007         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
7008         (usize_type, ubitsizetype): Remove.
7009         * stor-layout.c (set_sizetype): Don't initialize usizetype,
7010         ubitsizetype.
7011         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
7012
7013         * tree.h (build_distinct_type_copy): New.
7014         (build_type_copy): ... here.  Rename to ...
7015         (build_variant_type_copy): ... here.
7016         * tree.c (build_qualified_type): Rename build_type_copy call.
7017         (build_distinct_type_copy): New, broken out of ...
7018         (build_type_copy): ... here.  Rename to ...
7019         (build_variant_type_copy): ... here.  Use
7020         build_distinct_type_copy.
7021         (build_common_tree_nodes_2): Rename build_type_copy call.
7022         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
7023         call.
7024         (handle_packed_attribute, handle_unused_attribute,
7025         handle_transparanet_union_attribute, handle_aligned_attribute,
7026         handle_deprecated_attribute): Likewise.
7027         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
7028         Likewise.
7029         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
7030         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
7031         build_distinct_type_copy.
7032
7033 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7034
7035         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
7036         attribute.
7037
7038 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7039
7040         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
7041         loads and stores.
7042         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
7043         formerly unnamed patterns.  Redefine using :P for the address.  Remove
7044         explicit length attributes.
7045
7046 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7047
7048         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
7049         New functions.
7050         (single_reachable_address): Use them.
7051         (schedule_sm): Add dump.
7052         (is_call_clobbered_ref): New function.
7053         (determine_lsm_reg): Check whether the reference is call clobbered.
7054         Only work for gimple_reg_type values.
7055
7056 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7057
7058         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
7059         $31 store insns.  Redefine using :GPR.
7060
7061 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7062
7063         * config/mips/mips.md (P): New mode macro.
7064         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
7065         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
7066         Add mode attributes.
7067
7068 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7069
7070         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
7071         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
7072         later constants to cover the gap.
7073         (load, store): New mode attributes.
7074         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
7075         Use new unspec constants.
7076
7077 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7078
7079         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
7080         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
7081         to use register_operand rather than uns_arith_operand as the predicate
7082         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
7083         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
7084         Redefine using :GPR.  Make same predicate change here.  Extend the
7085         commutativity of operands 1 and 2 from the SImode version to the
7086         DImode one.
7087         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
7088         but with no predicate changes.
7089         (*nor[sd]i3): Redefine using :GPR.
7090
7091 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7092
7093         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
7094         noreturn functions.
7095
7096 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7097
7098         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
7099         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
7100         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
7101         rather than "%z2" (with a fake const0_rtx for operand 2).
7102         (ffs[sd]i2): Redefine using :GPR.
7103         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
7104
7105 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7106
7107         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
7108
7109 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7110
7111         * config/mips/mips.md (any_extend): New code macro.
7112         (u, su): New code attributes.
7113         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
7114         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
7115         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
7116         (*{s,u}mul_acc_di): Redefine using any_extend.
7117         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
7118         to reflect real insn names.
7119         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
7120         with an any_extend template.
7121         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
7122         Add '*' to name.
7123
7124 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7125
7126         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
7127         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
7128         (mul[sd]i3_r4000): Redefine using :GPR.
7129         (mulsi3_mult3): Don't check TARGET_MAD separately.
7130         (muldi3_mult3): Moved after mulsi_mult3.
7131
7132 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7133
7134         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
7135         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
7136         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
7137         (TARGET_GAS, TARGET_MIPS_AS): Delete.
7138         (TARGET_GPWORD): Define to true for n32 on IRIX.
7139         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
7140         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
7141         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
7142         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
7143         (MDEBUG_ASM_SPEC): Delete, folding into...
7144         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
7145         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
7146         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
7147         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
7148         to define asm_abi_default_spec.
7149         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
7150         (TARGET_ASM_SELECT_SECTION): Delete.
7151         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
7152         for non-mips16 code, removing previous workaround for SGI assemblers.
7153         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
7154         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
7155         (override_options): Remove !TARGET_GAS and !have_named_sections code.
7156         (print_operand): Fold TARGET_GAS conditionals into asm strings.
7157         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
7158         ASM_STABS_OP and ASM_STABN_OP.
7159         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
7160         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
7161         (mips_output_function_prologue): Remove !TARGET_GAS code.
7162         (mips_select_rtx_section): Remove !have_named_sections code.
7163         (mips_select_section): Delete.
7164         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
7165         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
7166         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
7167         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
7168         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
7169         * config/mips/windiss.h (ASM_SPEC): Likewise.
7170
7171 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7172
7173         * read-rtl.c (map_value, mapping, macro_group): New structures.
7174         (BELLWETHER_CODE): New macro.
7175         (modes, codes, bellwether_codes): New variables.
7176         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
7177         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
7178         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
7179         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
7180         (add_map_value, initialize_macros): New functions.
7181         (def_hash, def_hash_eq_p): Generalize to anything that points to,
7182         or starts with, a char * field.
7183         (find_macro, read_mapping, check_code_macro): New functions.
7184         (read_rtx_1): New, split out from read_rtx.  Handle the new
7185         define_{mode,code}_{macro,attr} constructs.  Use find_macro
7186         to parse the name of a code or mode.  Use BELLWETHER_CODE to
7187         extract the format and to choose a suitable code for rtx_alloc.
7188         Modify recursive invocations to use read_rtx_1.
7189         (read_rtx): Call initialize_macros.  Apply code and mode macros
7190         to the rtx returned by read_rtx_1.  Cache everything after the
7191         first macro expansion for subsequent read_rtx calls.
7192         * doc/md.texi: Document new .md constructs.
7193         * config/mips/mips.md (GPR): New mode macro.
7194         (d, si8_di5): New mode attributes.
7195         (any_cond): New code macro.
7196         (add[sd]i3): Redefine using :GPR.
7197         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
7198         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
7199         previously unnamed MIPS16 patterns.
7200         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
7201         lines.  Don't match (plus (const_int 0) ...).
7202         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
7203         Use a define_split to generate the addition.
7204         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
7205         (subsi3_internal): Delete.
7206         (*subsi3_extended): Renamed from subsi3_internal_2.
7207         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
7208         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
7209         using an any_cond template.
7210
7211 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7212
7213         * read-rtl.c (read_rtx): Tidy use of format_ptr.
7214
7215 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
7216
7217         * read-rtl.c (string_obstack): New file-scope variable.
7218         (read_string, read_quoted_string, read_braced_string)
7219         (read_escape): Remove obstack parameter and use string_obstack instead.
7220         (read_rtx): Remove function-local rtl_obstack and initialize
7221         string_obstack instead.  Update call to read_string.
7222
7223 2004-08-22  Andrew Pinski  <apinski@apple.com>
7224
7225         PR c/15262
7226         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
7227         expression is not constant.
7228         (c_finish_return): Do not go through INDIRECT_REF when looking
7229         for the inner expression of an ADDR_EXPR for warning about.
7230
7231 2004-08-22  Richard Henderson  <rth@redhat.com>
7232
7233         PR 17075
7234         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
7235         create new blocks and fall through.
7236         (expand_gimple_basic_block): Update to match.
7237
7238 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
7239
7240         * reload.c (find_reloads_address): Make return value tri-state.
7241         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
7242         (find_reloads): Assume that reloaded addresses match 'o' or
7243         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
7244         returned 1 (not -1).  Omit optional reloads for address operands
7245         only if find_reloads_address returned 1 (not -1).
7246
7247         * config/s390/s390.c (legitimize_reload_address): New function.
7248         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
7249         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
7250         legitimize_reload_address.
7251
7252 2004-08-22  Richard Hendersion  <rth@redhat.com>
7253
7254         * tree.h (SAVE_EXPR_RESOLVED_P): New.
7255         * gimplify.c (gimplify_save_expr): Use it.
7256         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
7257         on the temporary variable.
7258
7259 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
7260
7261         * fold-const.c (rtl_expr_nonnegative_p): Delete.
7262         * tree.h (rtl_expr_nonnegative_p): Remove.
7263
7264 2004-08-22  Steven Bosscher  <stevenb@suse.de>
7265
7266         * config/i386/ppro.md (ppro_complex_insn): Add missing check
7267         for cpu==pentiumpro.
7268
7269         * combine.c (struct reg_stat): Fix comment typo.
7270
7271 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
7272
7273         * c-tree.h (c_sizeof_nowarn): Remove.
7274
7275 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
7276
7277         * c-decl.c (set_array_declarator_type): Rename to
7278         set_array_declarator_inner.
7279         (build_c_parm, build_attrs_declarator, build_function_declarator):
7280         New functions.
7281         (make_pointer_declarator): Call build_attrs_declarator.
7282         * c-tree.h (set_array_declarator_type): Rename to
7283         set_array_declarator_inner.
7284         (build_c_parm, build_attrs_declarator, build_function_declarator):
7285         New prototypes.
7286         * c-parse.in (after_type_declarator,
7287         parm_declarator_starttypename, parm_declarator_nostarttypename,
7288         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
7289         firstparm): Use these functions
7290
7291 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
7292
7293         * c-decl.c (build_array_declarator, set_array_declarator_type,
7294         start_decl, grokdeclarator, grokparms): Change boolean parameters
7295         to type bool.
7296         * c-tree.h (build_array_declarator, set_array_declarator_type,
7297         start_decl): Update prototypes.
7298         * c-decl.c, c-parse.in: All callers changed.
7299
7300 2004-08-21  Mike Stump  <mrs@apple.com>
7301
7302         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
7303         (darwin_fix_and_continue): Likewise.
7304         (darwin_fix_and_continue_switch): Likewise.
7305         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
7306         (darwin_fix_and_continue): Likewise.
7307         (darwin_fix_and_continue_switch): Likewise.
7308
7309 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
7310
7311         PR  c++/16030
7312         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
7313         Remove, merging into ...
7314         (gen_stdcall_or_fastcall_suffix): New function, returning tree
7315         rather than const char*, and accepting additional parameter.
7316         Don't add suffix to '*'-prefixed symbols or variadic functions.
7317         (i386_pe_encode_section_info): Adjust for call to new function.
7318         Call change_decl_assembler_name.
7319
7320 2004-08-20  Mike Stump  <mrs@apple.com>
7321
7322         * config/darwin.c (machopic_indirect_data_reference): Mark
7323         stubs as defined.
7324         * config/386/386.c (darwin_local_data_pic): Add.
7325         (legitimate_constant_p): Reorder so that PLUS handling runs
7326         before darwin_local_data_pic to match the ordering in
7327         legitimate_pic_address_disp_p and so that MINUS runs after
7328         darwin_local_data_pic as otherwise the darwin_local_data_pic
7329         logic can be skipped, which would be very bad.
7330         (legitimate_pic_address_disp_p): Move from from here to
7331         darwin_local_data_pic so it can be reused.
7332
7333 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
7334
7335         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
7336         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
7337         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
7338         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
7339         (RS6000_ABI_NAME): Define as "linux".
7340         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
7341         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
7342         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
7343         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
7344         * config/rs6000/rs6000.c (dot_symbols): New global var.
7345         (rs6000_output_function_entry): New function, modified for
7346         !DOT_SYMBOLS..
7347         (print_operand <case 'z'>): ..extracted from here.
7348         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
7349         (rs6000_output_function_epilogue): Likewise.
7350         (rs6000_elf_declare_function_name): Likewise.
7351         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
7352         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
7353         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
7354         * configure: Regenerate.
7355         * config.in: Regenerate.
7356
7357 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
7358
7359         * reload.c (find_reloads_address): Fix thinko in previous change.
7360
7361         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
7362         a CONST_INT.
7363
7364 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
7365
7366         PR rtl-optimization/17099
7367         * combine.c (force_to_mode): Check if inner_mask has any bits set
7368         outside of GET_MODE (x) instead of op_mode.
7369
7370 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
7371
7372         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
7373         fragment.
7374         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
7375         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
7376         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
7377         architecture.
7378         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
7379         configurations.
7380         * config/arm/t-symbian: New file.
7381
7382 2004-08-20  Andrew Pinski  <apinski@apple.com>
7383
7384         * regrename.c (kill_value_regno): ANSIfy.
7385
7386 2004-08-20  Dale Johannesen  <dalej@apple.com>
7387
7388         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
7389
7390 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
7391
7392         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
7393         (kill_value_regno): New function, derived from kill_value.
7394         (kill_value): Update.
7395         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
7396
7397 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
7398
7399         Fix PR tree-optimization/17111
7400         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
7401         of non-value_handles.
7402         (bitmap_set_contains): All constants are in every set.
7403
7404 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
7405
7406         * fold-const.c (round_up, round_down): Use build_int_cst.
7407         Optimize common case.
7408
7409 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
7410             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7411
7412         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
7413         one_only_data_section): Rename to som_readonly_data_section,
7414         som_one_only_readonly_data_section and som_one_only_data_section.
7415         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
7416         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
7417         conditional defines.
7418         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
7419         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
7420         string values.
7421         (pa_select_section): Use renamed section functions.
7422         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
7423         SOM_READONLY_DATA_SECTION_FUNCTION,
7424         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
7425         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
7426         Define here ...
7427         * config/pa/som.h: ... not here.
7428         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
7429         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
7430         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
7431         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
7432         (READONLY_DATA_SECTION): Use som_readonly_data_section.
7433
7434 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
7435
7436         * fold-const.c (int_const_binop): Don't generate non-overflowing
7437         size-types specially.
7438         (fold_convert_const): Likewise.
7439
7440         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
7441         clear cache on copied sizetype.
7442
7443 2004-08-20  Ben Elliston  <bje@au.ibm.com>
7444
7445         * configure.ac: Don't escape apostrophe in --enable-coverage help.
7446         * configure: Regenerate.
7447
7448 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
7449
7450         PR 5620
7451         * gcc.c (struct stat input_stat): Don't define if
7452         HOST_LACKS_INODE_NUMBERS
7453         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
7454         than stat to determine if temp file is same as input file.
7455         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
7456         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
7457
7458 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
7459
7460         * configure.ac (mips*-*-*): Print an error if not using GAS.
7461         * configure: Regenerated.
7462         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
7463         comments about buggy MIPSpro assemblers.
7464         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
7465         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
7466         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
7467         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
7468         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
7469         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
7470         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
7471         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
7472         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
7473         of more general IRIX 6 definitions.
7474         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
7475         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
7476         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
7477         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
7478         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
7479         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
7480         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
7481         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
7482         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
7483         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
7484         (LINK_SPEC): Move most of definition to iris.h.
7485         (SUBTARGET_LINK_SPEC): New macro.
7486         (IRIX_STARTFILE_SPEC): Fold into...
7487         (STARTFILE_SPEC): ...here.
7488         (IRIX_ENDFILE_SPEC): Fold into...
7489         (ENDFILE_SPEC): ...here.
7490         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
7491         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
7492         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
7493         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
7494         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
7495         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
7496         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
7497         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
7498         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
7499         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
7500         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
7501         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
7502         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
7503         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
7504         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
7505         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
7506         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
7507         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
7508         (TARGET_IRIX6): Define to 1.
7509         (DRIVER_SELF_SPECS): Define.
7510         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
7511         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
7512         (SUBTARGET_LINK_SPEC): New macro.
7513         (IRIX_STARTFILE_SPEC): Fold into...
7514         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
7515         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
7516         (LIB_SPEC, LIBGCC_SPEC): Use them.
7517         (LIB_SPEC): Remove !mabi=* case.
7518         (IRIX_ENDFILE_SPEC): Fold into...
7519         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
7520         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
7521         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
7522         (TARGET_IRIX6): New macro.
7523         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
7524         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
7525         (LABEL_AFTER_LOC): Delete.
7526         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
7527         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
7528         (mips_build_builtin_va_list): Check TARGET_IRIX6.
7529         (override_options): Remove TARGET_SGI_O32_AS-related code.
7530         (irix_output_external_libcall): Make static.
7531         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
7532         LABEL_AFTER_LOC.
7533         (mips_file_start): Tidy guard for ABI sections.  Remove use of
7534         ABICALLS_ASM_OP; use .abicalls instead.
7535         (mips_output_aligned_decl_common, mips_declare_object_name)
7536         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
7537         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
7538         .globl foo .text directives.
7539         (irix_asm_named_section_1, irix_asm_named_section)
7540         (irix_section_align_entry, irix_section_align_htab)
7541         (irix_orig_asm_out_file, irix_section_align_entry_eq)
7542         (irix_section_align_entry_hash, irix_asm_output_align)
7543         (irix_file_start, irix_section_align_1, copy_file_data)
7544         (irix_file_end, irix_section_type_flags): Delete.
7545         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
7546         Use standard section syntax.  Remove protective "jr $31".
7547         (__gcc_fini): Likewise .gcc_fini.
7548         * config/mips/irix-crtn.asm: Adjust sections accordingly.
7549         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
7550         iris5gas.h.
7551         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
7552         from t-irix-gld.
7553         (EXTRA_MULTILIB_PARTS): Define.
7554         * config/mips/t-iris6: Remove bogus comment.
7555         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
7556         * config/mips/iris5gas.h, config/mips/iris5gld.h,
7557         config/mips/iris6gas.h, config/mips/iris6gld.h,
7558         config/mips/t-iris5-as, config/mips/t-iris5-gas
7559         config/mips/t-irix-gld: Delete.
7560         * config/mips/iris.h: New file.
7561         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
7562
7563 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
7564
7565         * postreload.c (reload_cse_move2add): Allow any condjump, but check
7566         that the implicit set isn't clobbered in the jump insn.
7567
7568 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
7569
7570         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
7571         * optabs.c (init_optabs): Don't check it.
7572         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
7573         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
7574
7575 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
7576
7577         * config/s390/s390.md (s390_warn_framesize_string)
7578         (s390_warn_dynamic_string, s390_stack_size_string)
7579         (s390_stack_guard_string): New global string variables.
7580         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
7581         (s390_stack_guard): New global variables.
7582         (override_options): Added checks for the new options.
7583         (s390_emit_prologue): Emit stack check and trap code and perform
7584         compile time stack size checking.
7585
7586         * config/s390/s390.h (TARGET_OPTIONS): Added new options
7587         "warn-framesize", "warn-dynamicstack", "stack-size" and
7588         "stack-guard".
7589
7590         * doc/invoke.texi: Added documentation for the new options.
7591
7592 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
7593
7594         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
7595         to eliminate warning.
7596         (linear_search_fdes): Declare p as unsigned.
7597         (binary_search_mixed_encoding_fdes): Likewise.
7598         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
7599         to eliminate warning.
7600         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
7601         type cast.
7602
7603 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
7604
7605         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
7606         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
7607         instead of one.  Check for strictly legitimate address.
7608         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
7609         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
7610
7611 2004-08-19  Eric Christopher  <echristo@redhat.com>
7612
7613         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
7614         * langhooks.h (unsave_expr_now): Ditto.
7615         * tree.h (unsave_expr_1): Remove prototype.
7616         (lhd_unsave_expr_now): Rename to unsave_expr_now.
7617         * tree-inline.c (unsave_expr_1): Move here
7618         from tree.c. Make static.
7619         (unsave_expr_now): Rename from lhd_unsave_expr_now.
7620         * tree-sra.c: Fix up for rename.
7621         * tree-ssa-copy.c: Ditto.
7622         * tree-eh.c: Ditto.
7623         * tree.c (unsave_expr_1): Move to tree-inline.c.
7624
7625 2004-08-19  Caroline Tice  <ctice@apple.com>
7626
7627         * config/i386/cygming.h (switch_to_section):  Fix typo (change
7628         in_unlikely_text_section to in_unlikely_executed_text).
7629
7630 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
7631
7632         * vec.h (VEC_lower_bound): New macro.
7633
7634 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
7635
7636         PR target/16446
7637         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
7638         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
7639         treat each ABI separately.  Deal with n32/n64 complex float arguments.
7640         (function_arg): Add associated complex handling here.
7641
7642 2004-08-19  Richard Henderson  <rth@redhat.com>
7643
7644         * config/arm/arm.c (arm_gen_load_multiple): Use
7645         adjust_automodify_address.  Take base memory and offset instead
7646         of unchanging/struct/scalar bits.
7647         (arm_gen_store_multiple): Likewise.
7648         (arm_gen_movmemqi): Use adjust_automodify_address.
7649         * config/arm/arm-protos.h: Update decls.
7650         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
7651         (store_multiple): Similarly.
7652
7653 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
7654
7655         * regclass.c (globalize_reg): Update call_really_used_regs.
7656
7657 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
7658
7659         * doc/invoke.texi (integer-share-limit): Document.
7660
7661         * tree.h (TYPE_CACHED_VALUES_P): New.
7662         (TYPE_CACHED_VALUES): New.
7663         (TYPE_ORIG_SIZE_TYPE): Adjust.
7664         * tree.def (INTEGER_CST): Update documentation.
7665         * tree.c: Inlcude params.h.
7666         (build_int_cst): Cache small values.
7667         (build_type_copy): Do not copy the value cache.
7668         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
7669         unneeded zeroing.
7670         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
7671         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
7672         cache.
7673         * fold-const.c (force_fit_type): Copy value when setting
7674         overflows.
7675         (int_const_binop): Likewise.
7676         * stor-layout.c: Include params.h
7677         (set_sizetype): Create values cache.
7678         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
7679         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
7680         * params.h (INTEGER_SHARE_LIMIT): New.
7681         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
7682
7683 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
7684
7685         * gimplify.c (gimplify_minimax_expr): Remove.
7686         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
7687
7688 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
7689
7690         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7691         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
7692
7693 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
7694
7695         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
7696
7697 2004-08-18  Andrew Pinski  <apinski@apple.com>
7698
7699         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
7700
7701 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
7702
7703         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
7704         (__aeabi_ul2f): Likewise.
7705
7706 2004-08-18  Richard Henderson  <rth@redhat.com>
7707
7708         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
7709         move to rtl completely.
7710         (struct meminsnbuf, xtensa_emit_block_move): Remove.
7711         (xtensa_find_mode_for_size): Remove.
7712         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
7713         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
7714
7715 2004-08-18  Richard Henderson  <rth@redhat.com>
7716
7717         * config/mcore/mcore.c (mode_from_align): Remove DImode.
7718         (block_move_sequence): Rewrite to use adjust_address.
7719         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
7720         Return boolean indicating success/failure.
7721         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
7722         * config/mcore/mcore.md (movmemsi): Update to match.
7723
7724 2004-08-18  Mike Stump  <mrs@apple.com>
7725
7726         * doc/invoke.texi (-mfix-and-continue): Add support for
7727         fast turn around debugging.
7728         (-ffix-and-continue): Likewise.
7729         (-mindirect-data): Likewise.
7730         (-findirect-data): Likewise.
7731         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
7732         (indirect_data): Likewise.
7733         (machopic_data_defined_p): Likewise.
7734         (machopic_output_indirection): Likewise.
7735         (darwin_encode_section_info): Likewise.
7736         (darwin_fix_and_continue): Likewise.
7737         (darwin_fix_and_continue_switch): Likewise.
7738         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
7739         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7740         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
7741         (SUBTARGET_OPTIONS): Likewise.
7742         (darwin_fix_and_continue): Likewise.
7743         (darwin_fix_and_continue_switch): Likewise.
7744         (TARGET_FIX_AND_CONTINUE): Likewise.
7745         * config/rs6000.c (rs6000_emit_prologue): Likewise.
7746
7747 2004-08-19  Steven Bosscher  <stevenb@suse.de>
7748
7749         * basic-block.h (struct edge_def): Remove crossing_edge.
7750         (EDGE_CROSSING): New define.
7751         (EDGE_ALL_FLAGS): Update.
7752         * bb-reorder.c (find_traces_1_round, better_edge_p,
7753         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
7754         find_jump_block, fix_crossing_conditional_branches,
7755         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
7756         Replace all occurences of crossing_edge with an edge flag check
7757         or set/reset.
7758         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7759         try_crossjump_bb): Likewise.
7760         * cfglayout.c (fixup_reorder_chain): Likewise.
7761         * cfgrtl.c (force_nonfallthru_and_redirect,
7762         commit_one_edge_insertion): Likewise.
7763
7764         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
7765         * tree-flow.h (compute_dominance_frontiers): Move prototype...
7766         * basic-block.h:  ...here.
7767         * tree-cfg.c (compute_dominance_frontiers_1,
7768         compute_dominance_frontiers): Move from here...
7769         * cfganal.c: ...to here.  Include timevar.h.
7770
7771 2004-08-18  James E Wilson  <wilson@specifixinc.com>
7772
7773         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
7774         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
7775
7776         * config/mips/mips.md (type): Add frdiv.
7777         (divsf3+1, divsf3+2): Change type to frdiv.
7778         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
7779         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
7780
7781         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
7782         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
7783         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
7784         * config/mips/5000.md (r5k_fdiv_single): Likewise.
7785         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
7786         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
7787         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
7788         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
7789         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
7790         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
7791         Likewise.
7792         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
7793
7794 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
7795
7796         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
7797         get regression tester working again.
7798
7799 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
7800
7801         * insn-notes.def, reg-notes.def: New files.
7802         * rtl.h: Use them to define enum insn_note and enum reg_note.
7803         * rtl.c: Use them to define note_insn_name and reg_note_name.
7804         * Makefile.in (RTL_BASE_H): Update.
7805
7806         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
7807         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
7808
7809 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
7810
7811         * arm.c (arm_size_rtx_costs): New function.
7812         (arm_override_options): Use it if optimizing for space.
7813
7814 2004-08-18  Richard Henderson  <rth@redhat.com>
7815
7816         * emit-rtl.c (gen_const_mem): New.
7817         * rtl.h (gen_const_mem): Declare.
7818         * expr.c (do_tablejump): Use it.
7819         * varasm.c (force_const_mem): Likewise.
7820         * config/darwin.c (machopic_indirect_data_reference): Likewise.
7821         (machopic_legitimize_pic_address): Likewise.
7822         * config/arm/arm.c (legitimize_pic_address): Likewise.
7823         * config/i386/i386.c (legitimize_pic_address): Likewise.
7824         (legitimize_tls_address): Likewise.
7825         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
7826         * config/ia64/ia64.md (load_fptr): Likewise.
7827         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
7828         * config/pa/pa.c (legitimize_pic_address): Likewise.
7829         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
7830         (rs6000_emit_move): Likewise.
7831         * config/s390/s390.c (legitimize_pic_address): Likewise.
7832         (legitimize_tls_address): Likewise.
7833         * config/s390/s390.md (casesi): Likewise.
7834         * config/sh/sh.c (sh_reorg): Likewise.
7835         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
7836         * config/v850/v850.md (casesi): Likewise.
7837
7838         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
7839         * config/sh/sh.c (prepare_move_operands): Remove incorrect
7840         use of MEM_READONLY_P.
7841
7842 2004-08-18  Steven Bosscher  <stevenb@suse.de>
7843
7844         * Makefile.in (OBJS-common): Add postreload-gcse.c.
7845         Add new postreload-gcse.o.
7846         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
7847         (lookup_as_function, insert, rehash_using_reg, use_related_value,
7848         equiv_constant): Use SAFE_HASH instead of safe_hash.
7849         (exp_equiv_p): Export.  Add for_gcse argument when comparing
7850         for GCSE.
7851         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
7852         find_comparison_args, fold_rtx, cse_insn): Update callers.
7853         (hash_rtx): New function derived from old canon_hash and bits
7854         from gcse.c hash_expr_1.
7855         (canon_hash_string): Rename to hash_rtx_string.
7856         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
7857         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
7858         (cselib_lookup): Update this caller.
7859         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
7860         Make static.
7861         (hash_expr): Call hash_rtx.
7862         (ldst_entry): Likewise.
7863         (expr_equiv_p): Call exp_equiv_p.
7864         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
7865         reg_used_on_edge, reg_set_between_after_reload_p,
7866         reg_used_between_after_reload_p, get_avail_load_store_reg,
7867         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
7868         get_bb_avail_insn, hash_scan_set_after_reload,
7869         compute_hash_table_after_reload,
7870         eliminate_partially_redundant_loads, gcse_after_reload,
7871         get_bb_avail_insn, gcse_after_reload_main): Remove.
7872         * postreload-gcse.c: New file, reincarnating most of the above.
7873         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
7874         (gcse_after_reload_main): Update prototype.
7875         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
7876         * passes.c (rest_of_handle_gcse2): Use it.
7877
7878 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
7879
7880         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
7881         (pass_loop_done): Likewise.
7882
7883 2004-08-18  Andrew Pinski  <apinski@apple.com>
7884
7885         * config/rs6000/darwin.md: Delete the altivec patterns which are
7886         handled differently now.
7887         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
7888         (macho_correct_pic_di): Likewise.
7889         (call_indirect_nonlocal_darwin64): Likewise.
7890         Delete the save world/saveFP/saveVec patterns.
7891
7892         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
7893         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
7894         * config/rs6000/rs6000.md: Include darwin.md.
7895         (builtin_setjmp_receiver): Add DImode case.
7896         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
7897         Darwin bits.
7898
7899 2004-08-18  Matt Austern  <austern@apple.com>
7900
7901         Dead code stripping
7902         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
7903         * darwin.c (darwin_file_end): Mark file as potentially strippable.
7904
7905 2004-08-18  Richard Henderson  <rth@redhat.com>
7906
7907         * alias.c (readonly_fields_p): Remove.
7908         (objects_must_conflict_p): Don't call it.
7909         * tree.h (readonly_fields_p): Remove.
7910         * langhooks.h (struct lang_hooks): Remove honor_readonly.
7911         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
7912
7913 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
7914
7915         * tree-dfa.c (add_referenced_var): Only global variables are
7916         call-clobbered.
7917         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
7918         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
7919         all pointers dereferenced if the statement dereferences them.
7920         (create_name_tags): Do not create memory tags for pointers
7921         that have PT_ANYTHING set.
7922         Also check if PT_VARS is not empty before creating a name tag.
7923         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
7924         variables that share the same alias set with a pointer that
7925         may point anywhere.
7926         (add_may_alias): Add FIXME comment to remove clobbering
7927         aliased variables and tags.
7928         (replace_may_alias): Likewise.
7929         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
7930         (merge_pointed_to_info): If the original variable has not
7931         points-to information, call set_pt_anything.
7932         (add_pointed_to_var): Do not prevent adding a pointed-to
7933         variable if the pointers is PT_ANYTHING.
7934         If the variable is a global, set PT_GLOBAL_MEM.
7935         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
7936         pointer type only come in PTR+OFFSET flavours.
7937         Always call merge_pointed_to_info on PHI arguments that are
7938         SSA_NAMEs.
7939         (get_nmt_for): Mark call-clobbered tags whose pointer points
7940         to global memory.
7941         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
7942         values.
7943         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
7944         FLAGS.
7945         (add_stmt_operand): Abort if the caller tried to add a killing
7946         definition for a memory tag.
7947         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
7948         unnecessary checks.
7949
7950 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
7951
7952         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
7953         from call_used_regs.  Update call_really_used_regs.
7954         (CALL_REALLY_USED_REGISTERS): Define.
7955         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
7956         Replace call_used_regs with call_really_used_regs.
7957         (calc_live_regs, sh_media_register_for_return): Likewise.
7958         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
7959         * sh.md (return_media): Likewise.
7960
7961 2004-08-18  Andrew Pinski  <apinski@apple.com>
7962
7963         * config/darwin.c (machopic_legitimize_pic_address): Only set
7964         MEM_READONLY_P in the non TARGET_TOC case.
7965
7966 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
7967
7968         * rtl.def (NIL): Delete.
7969         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
7970         Tighten the syntax a little.
7971
7972         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
7973         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
7974         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
7975         * config/i386/predicates.md, config/m32r/m32r.h
7976         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
7977         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
7978         * config/sparc/sparc.h, doc/tm.texi:
7979         Replace all occurrences of NIL with UNKNOWN.
7980
7981 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
7982
7983         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
7984         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
7985         sequence inline.  Move drop_through_label code into this
7986         block, being the only place it is used.  Adjust comments.
7987
7988 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
7989
7990         * config/rs6000/altivec.md: Add new patterns for calls to
7991         save_world/rest_world functions.
7992
7993         * config/rs6000/rs6000-protos.h: (save_world_operation,
7994         restore_world_operation) new declarations.
7995
7996         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
7997         field added.
7998         (rs6000_stack_info): Set world_save_p field.
7999         (save_world_operation): New function.
8000         (restore_world_operation): New function.
8001         (compute_save_world_info): New function.
8002         (rs6000_stack_info): Call compute_save_world_info.
8003         (rs6000_emit_prologue): Check for world_save_p and generate
8004         pattern to call save_world for saving all non-volatile and
8005         special registers.
8006         (rs6000_emit_epilogue): Check for world_save_p and generate
8007         pattern to call rest_world to restore saved registers.
8008
8009         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
8010         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
8011         (rs6000_reg_names): New entries added for save_world_operation and
8012         restore_world_operation.
8013
8014 2004-08-18  Caroline Tice  <ctice@apple.com>
8015
8016         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
8017         "-freorder-blocks-and-partition" to the flags used in second
8018         stage of profiledbootstrap.
8019         * bb-reorder.c (push_to_next_round_p): Add new variable,
8020         next_round_is_last; set and use variable to make sure, when
8021         partitioning, that the last trace construction round consists
8022         of all (and only) cold basic blocks.
8023         (rotate_loop): Don't copy blocks that end in a section
8024         crossing jump.
8025         (copy_bb): Correctly initialize "partition" of duplicated bb.
8026         (add_unlikely_executed_notes): Add a comment.
8027         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
8028         to make sure, if function contains hot blocks, that the
8029         successors of ENTRY_BLOCK_PTR are hot; also, only look for
8030         crossing edges if the architecture supports named sections.
8031         (mark_bb_for_unlikely_executed_section): Modify to always
8032         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
8033         the basic block note insn.
8034         (fix_crossing_unconditional_branches): Remove extra space.
8035         (fix_edges_for_rarely_executed_code): Modify to only do
8036         partitioning work if the architecture supports named sections.
8037         (reorder_basic_blocks): Modify to only add
8038         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
8039         supports named sections.
8040         * c-common.c (handle_section_attribute): Initialize new global
8041         variable, user_defined_section_attribute, to true if user has
8042         specified one.
8043         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
8044         forward edges that cross section boundaries.
8045         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
8046         partitioning information if the architecture supports named
8047         sections.
8048         * cfgrtl.c (target.h): Add statement to include this.
8049         (rtl_split_block): Make sure newly created bb gets correct
8050         partition.
8051         (try_redirect_by_replacing_jump): Make sure redirection isn't
8052         attempting to cross section boundaries.
8053         (force_nonfallthru_and_redirect): Only do partition fix up if
8054         architecture supports named sections.
8055         (rtl_split_edge): Make sure newly created bb ends up in
8056         correct partition.
8057         (commit_one_edge_insertion): Remove code that incorrectly
8058         updated basic block partition; Make sure partition fix up only
8059         happens if architecture supports named sections and it's not
8060         already done.
8061         (rtl_verify_flow_info_1): Fix if-condition on test/error
8062         condition that fallthru edges are not allowed to cross section
8063         boundaries.
8064         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
8065         * final.c (final_scan_insn): Remove redundant test from if-statement;
8066         change calls to text_section into calls to function_section; add code
8067         to only to partitioning fix up if architecture supports named
8068         sections.
8069         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
8070         partition.
8071         (if_convert): Add targetm.have_named_sections to test.
8072         * output.h (unlikely_section_label): Extern declaration for new global
8073         variable.
8074         (unlikely_text_section_name): Likewise.
8075         * opts.c (decode_options): If both partitioning and DWARF debugging
8076         are turned on, issue a warning that this doesn't work, and change
8077         partitiong to basic block reordering (without hot/cold partitions).
8078         * passes.c (rest_of_handle_final): Re-set new global variable,
8079         user_defined_section_attribute, to false.
8080         (rest_of_compilation): Change options for calling partitioning
8081         function: Don't call if the user defined the section attribute, and
8082         don't call if DECL_ONE_ONLY is true for the current function.
8083         * predict.c (choose_function_section): Return immediately if we
8084         are doing hot/cold partitioning (i.e. let the basic block partitioning
8085         determine where the function belongs).
8086         * reg-stack.c (emit_swap_insn): Add condition to step over
8087         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
8088         * toplev.c (user_defined_section_attribute): New global variable.
8089         * toplev.h (user_defined_section_attribute): Extern declaration
8090         for new global variable.
8091         * varasm.c (unlikely_section_label): New global variable.
8092         (unlikely_text_section_name): New global variable.
8093         (unlikely_text_section): Add code to initialize
8094         unlikely_text_section_name if necessary; modify to use
8095         unlikely_text_section_name and unlikely_section_label; also to use
8096         named_section properly.
8097         (in_unlikely_text_section):  Modify to work correctly with
8098         named_section and to use unlikely_text_section_name.
8099         (named_section):  Add code to work properly with cold section.
8100         (function_section): Clean up if-statement.
8101         * config/darwin.c (darwin_asm_named_section): Return to original
8102         code, removing use of SECTION_FORMAT_STRING.
8103         * config/arm/pe.h (switch_to_section):  Add case for
8104         in_unlikely_executed_text to switch statement.
8105         * config/i386/cygming.h (switch_to_section): Likewise.
8106         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
8107         (SECTION_FORMAT_STRING): Likewise.
8108         * config/mcore/mcore.h (switch_to_section): Likewise.
8109         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
8110         (SECTION_FORMAT_STRING): Remove.
8111
8112 2004-08-18  Roger Sayle  <roger@eyesopen.com>
8113
8114         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
8115         -ffixed-reg safe, by preserving the meanings of zero and one.
8116         (CALL_USED_REGISTERS): Likewise.
8117         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
8118
8119 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8120
8121         * config/sh/sh.c (split_branches): Check the result of
8122         next_active_insn.
8123         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
8124         Call rtl_register_cfg_hooks.
8125
8126 2004-08-18  Richard Henderson  <rth@redhat.com>
8127
8128         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
8129         * alias.c (true_dependence): Update to match new semantics.
8130         (canon_true_dependence, write_dependence_p): Likewise.
8131         (anti_dependence, output_dependence): Update write_dependence_p args.
8132         (unchanging_anti_dependence): Remove.
8133         * calls.c (purge_mem_unchanging_flag): Remove.
8134         (fixup_tail_calls): Don't call it.
8135         (expand_call): Don't add unchanging memory to function usage.
8136         * expr.c (emit_block_move_via_libcall): Likewise.
8137         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
8138         (get_subtarget): Don't use RTX_UNCHANGING_P.
8139         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
8140         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
8141         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
8142         * cse.c (insert): Don't use RTX_UNCHANGING_P.
8143         (cse_insn, canon_hash): Use MEM_READONLY_P.
8144         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
8145         instead of RTX_UNCHANGING_P.
8146         * explow.c (maybe_set_unchanging): Remove.
8147         * expr.h (maybe_set_unchanging): Remove.
8148         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
8149         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
8150         (assign_parm_setup_reg, expand_function_start): Likewise.
8151         * integrate.c (copy_rtx_and_substitute): Likewise.
8152         * ra-rewrite.c (emit_colors): Likewise.
8153         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
8154         (fixup_match_1): Likewise.
8155         * reload1.c (reload, alter_reg): Likewise.
8156         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
8157         not RTX_UNCHANGING_P.
8158         (equiv_init_varies_p): Likewise.
8159         * loop-invariant.c (check_maybe_invariant): Likewise.
8160         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
8161         * loop.c (note_addr_stored): Likewise.
8162         (prescan_loop): Likewise. Don't check function usage for clobbered
8163         unchanging memory.
8164         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
8165         not RTX_UNCHANGING_P.
8166         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
8167         * varasm.c (force_const_mem): Likewise.
8168         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
8169         * web.c (entry_register): Likewise.
8170         * tree-gimple.h (get_base_address): Move decl ...
8171         * tree.h: ... here.
8172         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
8173
8174         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
8175         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
8176         (alpha_set_memflags): Update to match.
8177
8178         * config/darwin.c (machopic_indirect_data_reference): Set
8179         MEM_READONLY_P instead of RTX_UNCHANGING_P.
8180         (machopic_indirect_call_target): Likewise.
8181         (machopic_legitimize_pic_address): Likewise.
8182         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
8183         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
8184         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
8185         * config/frv/frv.md (symGOT2reg): Likewise.
8186         * config/i386/i386.c (legitimize_pic_address,
8187         legitimize_tls_address, ix86_split_to_parts): Likewise.
8188         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
8189         * config/ia64/ia64.md (load_fptr): Likewise.
8190         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
8191         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
8192         * config/mcore/mcore.c (block_move_sequence): Likewise.
8193         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
8194         * config/pa/pa.c (legitimize_pic_address): Likewise.
8195         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
8196         (rs6000_emit_move): Likewise.
8197         * config/s390/s390.c (legitimize_pic_address): Likewise.
8198         (legitimize_tls_address): Likewise.
8199         * config/s390/s390.md (casesi): Likewise.
8200         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
8201         * config/sh/sh.md (symGOT2reg): Likewise.
8202         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
8203         * config/v850/v850.md (casesi): Likewise.
8204
8205         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
8206         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
8207         * config/mips/mips.c (mips_restore_gp): Likewise.
8208         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
8209         * config/sh/sh.c (sh_reorg): Likewise.
8210
8211 2004-08-18  Richard Henderson  <rth@redhat.com>
8212
8213         * tree.h (struct tree_decl): Add gimple_formal_temp.
8214         (DECL_GIMPLE_FORMAL_TEMP_P): New.
8215         * gimplify.c (pop_gimplify_context): Clear it.
8216         (lookup_tmp_var): Set it, if is_formal.
8217         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
8218         Use is_gimple_val for VECTOR.  Simplify return value.
8219         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
8220         (gimplify_expr): Likewise.
8221         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
8222         is_gimple_tmp_rhs for clarity.  Update all callers.
8223         (is_gimple_reg_rhs): Simplify logic.
8224         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
8225         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
8226         (is_gimple_formal_tmp_reg): Similarly.
8227         * tree-gimple.h: Update decls.
8228         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
8229         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
8230         * tree-ssa-live.c (var_union, type_var_init): Likewise.
8231
8232 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
8233
8234         * c4x.c (legitimize_operands): Remove calls to
8235         preserve_subexpressions_p.
8236
8237 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
8238
8239         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
8240         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
8241
8242 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
8243
8244         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
8245         Objective-C++ extensions.
8246         * gengtype.c (get_file_basename): Match entire subdirectory name
8247         ('cp', 'objc', 'objcp') rather than just its suffix.
8248         (get_base_file_bitmap): Allow for files to belong to more than one
8249         language.
8250         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
8251         used by more than one front-end.
8252
8253 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
8254
8255         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
8256         avoid use of preserve_subexpressions_p.
8257
8258 2004-08-17  Richard Henderson  <rth@redhat.com>
8259
8260         PR 17051
8261         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
8262
8263 2004-08-17  DJ Delorie  <dj@redhat.com>
8264
8265         * doc/extend.texi: Document new xstormy16 attribute.
8266
8267         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
8268         (xstormy16_splittable_below100_or_register): New.
8269         (combine_bnp): New.
8270         (xstormy16_reorg): New.
8271         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8272
8273         * config/stormy16/stormy16.md (movqi_internal): Make name public.
8274         (movhi_internal): Likewise.
8275         (cbhranchhi): Likewise.
8276         (cbhranchhi_neg): Likewise.
8277         (andhi3): Only allow splittable below100 operands.
8278         (iorhi3): Likewise.
8279         (peephole2): New and/zero_extend->and peephole.
8280         (peephole2): New load/ior/save->set1 peephole.
8281         (peephole2): New load/and/save->clr1 peephole.
8282         (bclrx, bclrx2, bclr7, bclr15): New.
8283         (bsetx, bsetx2, bset7, bset15): New.
8284
8285         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
8286         liberal about acceptable 'B' masks.
8287
8288         * config/stormy16/stormy16-protos.h
8289         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
8290         xstormy16_below100_operand, xstormy16_below100_or_register,
8291         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
8292         (PREDICATE_CODES): Add new predicates.
8293
8294         * config/stormy16/stormy16.c
8295         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
8296         xstormy16_below100_operand, xstormy16_below100_or_register,
8297         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
8298         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
8299         (xstormy16_legitimate_address_p): Allow below100 symbols.
8300         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
8301         (xstormy16_expand_move): Leave below100 operands as-is.
8302         (xstormy16_encode_section_info): Encode below100 symbols.
8303         (xstormy16_strip_name_encoding): New.
8304         (xstormy16_print_operand): Print 'b' as shift mask.
8305         (xstormy16_attribute_table): Add below100 attributes.
8306         (xstormy16_handle_below100_attribute): New.
8307
8308         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
8309         (XSTORMY16_SECTION_FUNCTION): New.
8310         (EXTRA_SECTION_FUNCTIONS): Define using the above.
8311         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8312         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
8313         (ASM_OUTPUT_LABELREF): Define.
8314
8315         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
8316         (movhi_internal): Add below100 support.
8317         (andhi3): Add below100 support.
8318         (iorhi3): Add below100 support.
8319         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
8320
8321 2004-08-17  James E Wilson  <wilson@specifixinc.com>
8322
8323         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
8324         of VOIDmode for comparison code mode.
8325         * config/mips/mips.md: For conditional move patterns, use mode of
8326         first compare operand for comparison mode, instead of VOIDmode.
8327
8328         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
8329         normal and -ffast-math code.
8330
8331 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
8332
8333         PR c++/15871
8334         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
8335
8336 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
8337
8338         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
8339
8340 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
8341
8342         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
8343         for non Darwin targets.
8344         (*call_value_nonlocal_darwin64): Likewise.
8345
8346 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
8347
8348         * config/rs6000/rs6000.c (rs6000_function_value): Check for
8349         altivec mode for altivec return register.
8350
8351 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
8352
8353         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
8354         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
8355         * config/rs6000/rs6000.md: Include darwin.md.
8356         (builtin_setjmp_receiver): Add DImode case.
8357         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
8358         Darwin bits.
8359
8360 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
8361
8362         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
8363         trees.
8364         * tree-vectorizer.h: New File: Same.
8365         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
8366         * common.opt (ftree-vectorize): New flag to enable vectorization.
8367         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
8368         vectorization pass.
8369         * tree-data-ref.h (init_data_ref): Additional argument.
8370         (array_base_name_differ_p): Moved to tree-data-ref.c.
8371         * tree-data-ref.c (array_base_name_differ_p): Revised.
8372         (initialize_data_dependence_relation): Call array_base_name_differ_p
8373         with an extra argument.
8374         (analyze_all_data_dependences): Same.
8375         (init_data_ref): Additional argument is_read to set DR_IS_READ.
8376         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
8377         file.
8378         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
8379         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
8380         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
8381         vectorization pass.
8382         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
8383         (tree_ssa_loop_done): Call scev_finalize.
8384         (tree_vectorize): Define the new vectorization pass.
8385         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
8386         size of the vector they support (until support for multiple vector
8387         sizes is added to the vectorizer).
8388         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
8389         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
8390         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
8391         documentation.
8392
8393 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
8394
8395         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
8396         usage.
8397         (generate_protocol_list, handle_impent): Likewise.
8398
8399 2004-08-17  Roger Sayle  <roger@eyesopen.com>
8400
8401         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
8402         ensure that call_used_regs is a superset of both fixed_regs and
8403         call_really_used_regs.
8404
8405 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
8406
8407         PR target/17019
8408         * arm.md (addsi3_cbranch_scratch): Correct case labels.
8409
8410 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
8411
8412         PR middle-end/17036
8413         * fold-const.c (fold): Check for integer operand when
8414         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
8415         Pinski  <pinskia@physics.uc.edu>.
8416
8417 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
8418
8419         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
8420         No need to check if in a cross configuration.
8421         * configure: Regenerate.
8422
8423         * calls.c (precompute_register_parameters):
8424         Inline preserve_subexpressions_p ().
8425         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
8426         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
8427         Likewise.
8428         * expr.c (get_subtarget): Likewise.
8429         * rtl.h (preserve_subexpressions_p): Remove.
8430         * stmt.c (preserve_subexpressions_p): Remove.
8431
8432         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
8433         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
8434         Abort on gimplified cases.
8435
8436 2004-08-16  James E Wilson  <wilson@specifixinc.com>
8437
8438         * tree.h (VECTOR_FLOAT_TYPE_P): New.
8439         (FLOAT_TYPE_P): Use it.
8440         * c-typeck.c (build_binary_op): After convert calls, check for
8441         check for ERROR_MARK operands.
8442
8443 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
8444
8445         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
8446         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
8447         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
8448         (genobjs static pattern rule): Remove %.c dependency.
8449         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
8450         Rename rules; delete commands; fix dependencies.
8451         (mostlyclean): Do not delete temporary source copies.
8452         * configure.ac: Delete all references to BUILD_PREFIX and
8453         BUILD_PREFIX_1.
8454         * configure: Regenerate.
8455
8456         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
8457         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
8458         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
8459         with #ifndef GENERATOR_FILE so that nothing from those headers
8460         is used.
8461
8462         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
8463
8464 2004-08-16  Adam Nemet  <anemet@lnxw.com>
8465
8466         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
8467
8468 2004-08-16  Andrew Pinski  <apinski@apple.com>
8469
8470         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
8471         extraneous semicolon.
8472
8473 2004-08-16  Devang Patel  <dpatel@apple.com>
8474
8475         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
8476         * print-tree.c (print_node): Print DECL_PRESERVE_P.
8477         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
8478         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
8479         * target.h (struct gcc_target): New member, mark_decl_preserved.
8480         * hooks.c (hook_void_charptr): Rename to ...
8481         (hook_void_constcharptr): ... new name.
8482         * hooks.h (hook_void_charptr): Rename to ..
8483         (hook_void_constcharptr): ... new name.
8484         * tree.h (DECL_PRESERVE_P): New #define.
8485         (struct tree_decl): New member, preserve_flag.
8486         * varasm.c (assemble_start_function): Mark decl preserved.
8487         (assemble_variable): Same.
8488         * darwin.c (darwin_mark_decl_preserved): New function.
8489         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
8490         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
8491         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
8492
8493 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
8494
8495         * c-decl.c (grokdeclarator): Allow for function definition where
8496         innermost declarator has attributes.
8497
8498 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
8499
8500         * except.c (get_exception_filter, build_post_landing_pads,
8501         dw2_build_landing_pads): Use target-specific mode for 'filter'.
8502         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
8503         * target.h (eh_return_filter_mode): New field added.
8504         * targhooks.c (default_eh_return_filter_mode): Defined.
8505         * targhooks.h (default_eh_return_filter_mode): Declared.
8506         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
8507
8508 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
8509
8510         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
8511         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
8512         * configure: Regenerate.
8513
8514 2004-08-16  Stan Shebs  <shebs@apple.com>
8515
8516         Basic support for 64-bit Darwin.
8517         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
8518         (machopic_legitimize_pic_address): Similarly, plus use Pmode
8519         instead of SImode.
8520         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
8521         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
8522         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
8523         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
8524         (PROCESSOR_DEFAULT64): Define.
8525         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
8526         Darwin.
8527         * config/rs6000/rs6000.md: Include darwin.md.
8528         (builtin_setjmp_receiver): Add DImode case.
8529         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
8530         Darwin.
8531         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
8532         (rs6000_emit_move): Add DImode case to Darwin bits.
8533         (machopic_output_stub): Use .quad if 64-bit.
8534         * invoke.texi: Document -m32 and -m64.
8535
8536 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
8537
8538         * doc/extend.texi (AltiVec builtins): Document additional differences
8539         from the Motorola AltiVec PIM.
8540
8541 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
8542
8543         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
8544         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
8545         (struct tree_common): Update public_flag documentation.
8546
8547 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
8548
8549         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8550         Check for artificial variables, not is_gimple_tmp_var.
8551         * tree-ssa-live.c (var_union): Likewise.
8552
8553 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
8554
8555         * calls.c (load_register_parameters): Remove spurious FIXME token.
8556
8557 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
8558
8559         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
8560         (c-lang.o): Depend on c-objc-common.h.
8561         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
8562         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
8563         * c-lang.c: Include c-objc-common.h.
8564         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
8565         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
8566         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
8567         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
8568         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
8569         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
8570         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
8571         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
8572         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
8573         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8574         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
8575         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
8576         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8577         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
8578         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
8579         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
8580         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
8581         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
8582         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
8583         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
8584         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
8585         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
8586         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
8587         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
8588         Move to c-objc-common.h.
8589         * c-objc-common.c: Include c-objc-common.h.
8590         * c-objc-common.h: New file.
8591
8592 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
8593             Andrew Pinski  <pinskia@physics.uc.edu>
8594
8595         PR target/14931
8596         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
8597         style.
8598
8599 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
8600
8601         * tree.h (build_int_cst): New.
8602         (build_int_2): Remove.
8603         * tree.c (build_int_2): Remove.
8604         (build_int_cst): New.
8605         (make_vector_type, build_common_tree_nodes,
8606         build_common_tree_nodes_2): Use build_int_cst.
8607         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
8608         expand_builtin_strpbrk, expand_builtin_fputs,
8609         build_string_literal, expand_builtin_printf,
8610         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
8611         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
8612         fold_builtin_isdigit, simplify_builtin_strstr,
8613         simplify_builtin_strpbrk, fold_builtin_fputs,
8614         simplify_builtin_sprintf): Use build_int_cst.
8615         * c-common.c (start_fname_decls, fix_string_type,
8616         c_common_nodes_and_builtins, c_init_attributes,
8617         shorten_compare): Likewise.
8618         * c-decl.c (complete_array_type,
8619         check_bitfield_type_and_width): Likewise.
8620         * c-lex.c (interpret_integer, lex_charconst): Likewise.
8621         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
8622         * c-pretty-print.c (pp_c_integer_constant): Likewise.
8623         * c-typeck.c (really_start_incremental_init, push_init_level,
8624         set_nonincremental_init_from_string): Likewise.
8625         * calls.c (load_register_parameters): Likewise.
8626         * convert.c (convert_to_pointer): Likewise.
8627         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
8628         build_fn_info_type, build_ctr_info_value, build_gcov_info):
8629         Likewise.
8630         * except.c (init_eh, assign_filter_values, assign_filter_values):
8631         Likewise.
8632         * expmed.c (store_fixed_bit_field, extract_bit_field,
8633         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
8634         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
8635         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
8636         * expr.c (convert_move, emit_group_load, emit_group_store,
8637         expand_assignment, store_constructor, store_field,
8638         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8639         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
8640         invert_truthvalue, optimize_bit_field_compare,
8641         decode_field_reference, all_ones_mask_p, constant_boolean_node,
8642         fold_div_compare, fold, fold_read_from_constant_string,
8643         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
8644         * function.c (assign_parm_setup_block): Likewise.
8645         * stmt.c (shift_return_value, expand_end_case_type,
8646         estimate_case_costs): Likewise.
8647         * stor-layout.c (layout_type, initialize_sizetypes,
8648         set_min_and_max_values_for_integral_type): Likewise.
8649         * tree-chrec.c (chrec_fold_multiply_poly_poly,
8650         reset_evolution_in_loop): Likewise.
8651         * tree-chrec.h (build_polynomial_chrec): Likewise.
8652         * tree-complex.c (build_replicated_const): Likewise.
8653         * tree-eh.c (honor_protect_cleanup_actions,
8654         lower_try_finally_onedest, lower_try_finally_copy,
8655         lower_try_finally_switch): Likewise.
8656         * tree-mudflap.c (mf_build_string, mx_register_decls,
8657         mudflap_register_call, mudflap_enqueue_constant): Likewise.
8658         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
8659         * tree-pretty-print.c (dump_generic_node): Likewise.
8660         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
8661         Likewise.
8662         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
8663         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8664         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
8665         Likewise.
8666
8667         * config/alpha/alpha.c (alpha_initialize_trampoline,
8668         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
8669         * config/arm/arm.c (arm_get_cookie_size): Likewise.
8670         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
8671         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
8672         * config/i860/i860.c (i860_va_start): Likewise.
8673         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8674         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
8675         mips_gimplify_va_arg_expr): Likewise.
8676         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8677         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
8678         add_compiler_branch_island): Likewise.
8679         * config/s390/s390.c (s390_va_start): Likewise.
8680         * config/sh/sh.c (sh_va_start): Likewise.
8681         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8682         Likewise.
8683         * config/xtensa/xtensa.c (xtensa_va_start,
8684         xtensa_gimplify_va_arg_expr): Likewise.
8685
8686         * objc/objc-act.c (build_objc_string_object,
8687         build_objc_symtab_template, init_def_list, init_objc_symtab,
8688         init_module_descriptor, generate_static_references,
8689         build_selector_translation_table, get_proto_encoding,
8690         build_typed_selector_reference, build_selector_reference,
8691         build_next_objc_exception_stuff,
8692         build_method_prototype_list_template, generate_descriptor_table,
8693         generate_protocols, build_protocol_initializer,
8694         build_ivar_list_template, build_method_list_template,
8695         build_ivar_list_initializer, generate_ivars_list,
8696         generate_dispatch_table, generate_protocol_list,
8697         build_category_initializer, build_shared_structure_initializer,
8698         generate_shared_structures, handle_impent,
8699         generate_objc_image_info): Use build_int_cst.
8700
8701 2004-08-15  Ben Elliston  <bje@au.ibm.com>
8702
8703         * vec.h: Comment improvements.
8704
8705 2004-08-14  Roger Sayle  <roger@eyesopen.com>
8706
8707         * c-common.c (shorten_compare, pointer_int_sum,
8708         c_common_truthvalue_conversion, boolean_increment): Replace calls
8709         to build with calls to buildN.
8710         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
8711         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
8712         gimplify_switch_stmt): Likewise.
8713         * c-typeck.c (default_function_array_conversion,
8714         build_component_ref, build_array_ref, build_function_call,
8715         pointer_diff, build_unary_op, build_conditional_expr,
8716         build_compound_expr, build_modify_expr, c_finish_goto_label,
8717         c_finish_goto_ptr, c_finish_return, c_finish_loop,
8718         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
8719         build_binary_op): Likewise.
8720
8721 2004-08-15  Steven Bosscher  <stevenb@suse.de>
8722
8723         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
8724
8725 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8726
8727         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
8728         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
8729         * fixinc/fixincl.x: Rebuilt.
8730
8731 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
8732
8733         * config/mips/mips-protos.h (mips_symbolic_constant_p)
8734         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
8735         (mips_small_data_pattern_p): Declare.
8736         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
8737         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
8738         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
8739         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
8740         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
8741         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
8742         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
8743         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
8744         (pc_or_label_operand, call_insn_operand, move_operand)
8745         (consttable_operand, symbolic_operand, general_symbolic_operand)
8746         (global_got_operand, local_got_operand, stack_operand)
8747         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
8748         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
8749         (mips_small_data_pattern_p): Replace previous small_data_pattern
8750         predicate.  Turn into a bool () (rtx) function.
8751         * config/mips/predicates.md: New file.
8752         * config/mips/mips.md: Include it.  Use the target-independent
8753         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
8754         trap_comparison_operator and equality_op to equality_operator.
8755         Replace uses of small_int with the equivalent const_arith_operand.
8756         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
8757         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
8758         to fcc_reload_operand.
8759         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
8760
8761 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8762
8763         PR libstdc++/17005 partial fix.
8764         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
8765         except when generating ANSI/C89 code.
8766
8767 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
8768
8769         * c-common.c (shorten_compare): Use force_fit_type directly.
8770
8771 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
8772             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
8773             Dave Korn  <dk@artimi.com>
8774
8775         * doc/install.texi (Building): Avoid duplicate reference to GNU
8776         make requirement.
8777         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
8778
8779 2004-08-14  Richard Henderson  <rth@redhat.com>
8780
8781         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
8782         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
8783
8784 2004-08-13  Richard Henderson  <rth@redhat.com>
8785
8786         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
8787         for constant_call_address_operand.
8788         (call_value_pop_1, call_value_1): Likewise.
8789         (sibcall_value_1, call_value_1_rex64): Likewise.
8790
8791 2004-08-13  James E Wilson  <wilson@specifixinc.com>
8792
8793         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
8794         Correct mode from SFmode to DFmode.
8795
8796 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
8797
8798         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
8799         __cstring_object and __image_info sections with the no_dead_strip
8800         attribute.
8801
8802 2004-08-13  Roger Sayle  <roger@eyesopen.com>
8803             David Billinghurst  <David.Billinghurst@riotinto.com>
8804
8805         PR libgfortran/15930
8806         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
8807         * fixinc/fixincl.x: Regenerate.
8808         * fixinc/tests/base/internal/math_core.h: New file.
8809
8810 2004-08-13  Richard Henderson  <rth@redhat.com>
8811
8812         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
8813         (dbxout_function_end): Remove ifdefs for it.
8814         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
8815
8816 2004-08-13  Richard Henderson  <rth@redhat.com>
8817
8818         * Makefile.in (insn-preds.o): Depend on TREE_H.
8819         * genpreds.c (write_insn_preds_c): Include tree.h.
8820         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
8821         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
8822         const48_operand, and_operand, or_operand, mode_width_operand,
8823         mode_mask_operand, mul8_operand, const0_operand,
8824         hard_fp_register_operand, hard_int_register_operand,
8825         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
8826         samegp_function_operand, direct_call_operand, small_symbolic_operand,
8827         global_symbolic_operand, call_operand, symbolic_operand,
8828         dtp16_symbolic_operand, dtp32_symbolic_operand,
8829         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
8830         gottp_symbolic_operand, alpha_comparison_operator,
8831         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
8832         signed_comparison_operator, alpha_fp_comparison_operator,
8833         divmod_operator, fix_operator, aligned_memory_operand,
8834         unaligned_memory_operand, reg_or_unaligned_mem_operand,
8835         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
8836         reg_no_subreg_operand, addition_operation): Move to predicates.md.
8837         (reg_or_const_int_operand): Remove.  Replace all users with
8838         reg_or_cint_operand.
8839         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
8840         (resolve_reload_operand): Split out of aligned_memory_operand.
8841         * config/alpha/alpha-protos.h: Update for exports.
8842         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
8843         * config/alpha/alpha.md: Include predicates.md.
8844         * config/alpha/predicates.md: New file.
8845
8846 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
8847
8848         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
8849         fields with a pointer to the instruction definition.
8850         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
8851         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
8852         (write_attr_case, write_const_num_delay_slots): Update accordingly.
8853         (write_attr_case, write_const_num_delay_slots): Write the name of
8854         an insn next to its case statement.
8855         * genoutput.c (data): Add a filename field.
8856         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
8857         (output_insn_data): Print the location of each insn definition.
8858         * genrecog.c (write_action): Print the name of an insn above
8859         the statement that returns its code.
8860
8861 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
8862
8863         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
8864         * config/libgloss.h: Likewise.
8865         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
8866         * c4x/c4x-modes.def: Likewise.
8867         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
8868         (c4x_rptb_nop_p): Likewise.
8869         (c4x_rptb_valid_p): Likewise.
8870         (c4x_rptb_insert): Likewise.
8871         (c4x_address_conflict): Likewise.
8872         * config/c4x/c4x.md: Likewise.
8873         * config/frv/frv.md: Likewise.
8874         * config/i386/athlon.md: Likewise.
8875         * config/i386/i386.md: Likewise.
8876         * config/i386/predicates.md: Likewise.
8877         * config/ia64/ia64.c: Likewise.
8878         * config/ia64/itanium1.md: Likewise.
8879         * config/ia64/itanium2.md: Likewise.
8880         * config/iq2000/iq2000.md: Likewise.
8881         * config/mcore/mcore.c: Likewise.
8882         * config/mips/mips.c: Likewise.
8883         * config/mips/r3900.h: Likewise.
8884         * config/mips/sb1.md: Likewise.
8885         * config/pa/milli64.S: Likewise.
8886         * config/pa/pa.c: Likewise.
8887         * config/pa/pa.h: Likewise.
8888         * config/rs6000/8540.md: Likewise.
8889
8890 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
8891
8892         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
8893
8894 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
8895
8896         * sh.md (cbranch define_delay) Use cond_delay_slot for
8897         non-anulled condition too.
8898
8899 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
8900
8901         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
8902         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8903         any_parallel_operand, lmw_operation, stmw_operation,
8904         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
8905         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
8906         any_parallel_operand.
8907         (return_and_restore_fpregs_{si,di}): Same.
8908
8909 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
8910
8911         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
8912         if pred->singleton != PARALLEL, issue a warning and pretend it was.
8913         Also issue a warning for any predicate we don't know about.
8914
8915 2004-08-12  Richard Henderson  <rth@redhat.com>
8916
8917         * config/i386/i386.c (internal_label_prefix): Export.
8918         (internal_label_prefix_len, struct ix86_address,
8919         ix86_decompose_address, maybe_get_pool_constant,
8920         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
8921         memory_address_length): Export.
8922         (any_fp_register_operand, fp_register_operand,
8923         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
8924         x86_64_general_operand, x86_64_szext_general_operand,
8925         x86_64_nonmemory_operand, x86_64_movabs_operand,
8926         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
8927         x86_64_zext_immediate_operand, const_int_1_31_operand,
8928         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
8929         tls_symbolic_operand, global_dynamic_symbolic_operand,
8930         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
8931         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
8932         constant_call_address_operand, const0_operand, const1_operand,
8933         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
8934         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
8935         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
8936         general_no_elim_operand, nonmemory_no_elim_operand,
8937         index_register_operand, q_regs_operand, flags_reg_operand,
8938         non_q_regs_operand, zero_extended_scalar_load_operand,
8939         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
8940         ix86_comparison_operator, ix86_carry_flag_operator,
8941         fcmov_comparison_operator, promotable_binary_operator,
8942         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
8943         mult_operator, div_operator, arith_or_logical_operator,
8944         memory_displacement_operand, cmpsi_operand, long_memory_operand,
8945         aligned_operand): Move to predicates.md as define_predicates.
8946         (tls_symbolic_operand_1): Remove.
8947         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
8948         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
8949         (legitimize_address): Merge tls_symbolic_operand contents.
8950         (ix86_expand_move): Likewise.
8951         * config/i386/i386-protos.h: Update for exports.
8952         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
8953         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
8954         * config/i386/i386.md: Include predicates.md.
8955         * config/i386/predicates.md: New file.
8956
8957 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
8958
8959         PR c++/16924
8960         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
8961         SYMBOL_REF_DECL.
8962         (i386_pe_mark_dllimport): Likewise.
8963         (i386_pe_encode_section_info): Likewise, when overriding
8964         dllimport attribute.
8965
8966 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
8967
8968         * configure.ac: When testing for flex, nm, ar, and bison, check
8969         that they will actually be built.
8970         * configure: Regenerate.
8971
8972 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
8973
8974         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
8975         (MOVE_MAX_PIECES): Define.
8976
8977 2004-08-12  Devang patel  <dpatel@apple.com>
8978
8979         * dbxout.c (dbxout_begin_prologue): New function.
8980         (dbx_debug_hooks): Use new begin prologue hook.
8981         (dbxout_function_end): Emit N_ENSYM.
8982         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
8983
8984 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
8985
8986         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
8987         argument is float*.
8988
8989         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
8990         for vec_dss.
8991
8992         * doc/extend.texi (AltiVec builtins): Fix description for recent
8993         changes.  Update operation list to match current support.
8994
8995 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8996
8997         * config/s390/s390.c (struct s390_frame_layout): New struct as element
8998         of struct machine_function.
8999         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
9000         changed all uses.
9001         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
9002         changed all uses.
9003         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
9004         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
9005         (s390_frame_area, s390_register_info): New functions.
9006         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
9007         for base register.
9008         (s390_return_addr_rtx, s390_return_address_offset)
9009         (s390_va_start, s390_gimplify_va_arg)
9010         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
9011         layouts.
9012         (s390_frame_info): Functionality partly moved to s390_register_info.
9013         Made adaptions for new stack layout.
9014         (save_gprs, restore_gprs): Changed meaning of second parameter and
9015         adapted all callers.
9016
9017         * config/s390/s390.h (s390_backchain_string): New global variable.
9018         (MASK_BACKCHAIN): Removed definition.
9019         (TARGET_BACKCHAIN): Changed check.
9020         (TARGET_KERNEL_BACKCHAIN): New macro.
9021         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
9022         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
9023         "kernel-backchain".
9024         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
9025
9026         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
9027         as condition.  Adjusted for new stack layout.
9028
9029         * doc/invoke.texi: Added documentation for new option
9030         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
9031         "-mno-backchain".
9032
9033 2004-08-12  Paul Brook  <paul@codesourcery.com>
9034
9035         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
9036         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
9037
9038 2004-08-12  David Daney  <ddaney@avtrex.com>
9039
9040         * java/gcj.texi:  Add subsection on signal usage.
9041
9042 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
9043
9044         * expr.c (move_by_pieces): Set alignment for move to minimum of
9045         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
9046         alignment, but not less than the original alignment.
9047         (move_by_pieces_ninsns): Same.
9048         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
9049         (store_by_pieces_1): Same.
9050
9051 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
9052
9053         PR tree-optimization/16867
9054         * tree.c (is_global_var): New function.
9055         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
9056         Call is_global_var.
9057         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
9058         Update all users.
9059         (is_global_var): Declare.
9060         * tree-dfa.c (dump_variable): Display global and addressable
9061         attributes.
9062         (add_referenced_var): Clarify documentation when marking
9063         variables call-clobbered.
9064         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
9065         instead of needs_to_live_in_memory.
9066         (mark_call_clobbered): If the variable is a tag, mark it
9067         DECL_EXTERNAL.
9068         * tree-gimple.c (is_gimple_reg): Don't check for
9069         TREE_ADDRESSABLE.
9070         (is_gimple_non_addressable): Likewise.
9071         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
9072         needs to be marked call-clobbered.
9073         (setup_pointers_and_addressables): Call is_global_var instead
9074         of needs_to_live_in_memory.
9075         * tree-ssa-dce.c (need_to_preserve_store): Remove.
9076         Update all users with is_global_var.
9077         (mark_stmt_if_obviously_necessary): Fix processing of aliased
9078         stores.  Don't check the virtual definitions.  Rather, check
9079         whether the store is going into global memory.
9080         (find_obviously_necessary_stmts): Get the symbol from the PHI
9081         result.
9082         * tree-ssa-operands.c (get_call_expr_operands): Do not add
9083         clobbering may-defs if the call does not have side effects.
9084
9085 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
9086
9087         PR c++/16276
9088         * output.h (default_function_rodata_section,
9089         default_no_function_rodata_section): New prototypes.
9090         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
9091         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
9092         (TARGET_ASM_OUT): Add it.
9093         * varasm.c (default_function_rodata_section,
9094         default_no_function_rodata_section): New functions.
9095         * final.c (final_scan_insn): Call
9096         targetm.asm_out.function_rodata_section instead of
9097         readonly_data_section.
9098         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
9099         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
9100         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
9101         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
9102         Likewise.
9103         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
9104         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
9105         Likewise.
9106         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
9107         Likewise.
9108         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
9109         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
9110         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
9111
9112 2004-08-12  Paul Brook  <paul@codesourcery.com>
9113
9114         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
9115         frame info.
9116         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
9117         DWARF2_UNWIND_INFO.
9118
9119 2004-08-12  Ben Elliston  <bje@au.ibm.com>
9120
9121         PR target/16286
9122         * config/rs6000/altivec.h: Change vector to __vector throughout.
9123         (Except for the `vector' macro itself).
9124
9125 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
9126
9127         * genpreds.c: Add capability to generate predicate bodies as
9128         well as function prototypes.  Write function prototypes for
9129         the generic predicates too.
9130         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
9131         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
9132         (write_match_code, write_predicate_expr, write_one_predicate_function)
9133         (parse_option): New functions.
9134         (output_predicate_decls): Delete.
9135         (main): Read the machine description, process DEFINE_PREDICATE or
9136         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
9137         as appropriate.
9138
9139         * genrecog.c (struct decision_test): Replace index with
9140         struct pred_data pointer.
9141         (next_index): Remove, unused.
9142         (pred_table, preds, special_mode_pred_table): Delete.
9143         (compute_predicate_codes, process_define_predicate): New functions.
9144         (validate_pattern, add_to_sequence, write_switch): Update for
9145         new data structures.
9146         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
9147         Check both error_count and have_error.
9148
9149         * gensupport.c (in_fname, first_predicate): New globals.
9150         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
9151         (predicate_table, last_predicate, old_pred_table)
9152         (old_special_pred_table): New statics.
9153         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
9154         (add_predicate, init_predicate_table): New functions.
9155         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
9156         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
9157         it or max_include_len.  Call init_predicate_table.
9158         (read_rtx): Run the predicate queue after the attribute queue
9159         but before all the others.
9160         * gensupport.h (in_fname, struct pred_data, first_predicate)
9161         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
9162         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
9163         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
9164         * dummy-conditions.c: Don't include bconfig.h, system.h,
9165         coretypes.h, tm.h, or system.h.  Do include stddef.h.
9166         Duplicate declaration of struct c_test from gensupport.h.
9167
9168         * Makefile.in (OBJS-common): Add insn-preds.o.
9169         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
9170         (insn-preds.c, insn-preds.o): New rules.
9171         (s-preds): Also generate insn-preds.c.
9172         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
9173         Update dependencies.
9174         (print-rtl.o, print-rtl1.o): Correct dependencies.
9175
9176         * recog.h: Delete prototypes of predicate functions.
9177
9178         * doc/md.texi (Predicates): New section with complete
9179         documentation of operand/operator predicates.  Remove some
9180         incomplete documentation of predicates from other places.
9181         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
9182         PREDICATE_CODES; indicate that both are deprecated in favor
9183         of define_predicate/define_special_predicate.
9184
9185         * config/ia64/ia64.c: All predicate function definitions moved
9186         to ia64.md, except
9187         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
9188         (ia64_expand_load_address, ia64_expand_move):
9189         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
9190
9191         * config/ia64/ia64.md: All predicates now defined here.
9192         (symbolic_operand): Is now a special predicate.
9193
9194         * config/ia64/ia64.h: Declare ia64_section_threshold.
9195         (PREDICATE_CODES): Delete.
9196
9197 2004-08-12  Richard Henderson  <rth@redhat.com>
9198
9199         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
9200         * c-semantics.c (add_stmt): Set it.
9201         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
9202         before instantiating a variable sized type.
9203
9204 2004-08-12  Richard Henderson  <rth@redhat.com>
9205
9206         * stor-layout.c (round_up, round_down): Move ...
9207         * fold-const.c (round_up, round_down): ... here.  Use
9208         multiple_of_p to avoid any arithmetic at all.
9209
9210 2004-08-12  Richard Henderson  <rth@redhat.com>
9211
9212         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
9213         (gimplify_init_ctor_preeval_1): New.
9214         (gimplify_init_ctor_preeval): New.
9215         (gimplify_init_ctor_eval): New.
9216         (gimplify_init_constructor): Use them.  Always gimplify the LHS
9217         object first.
9218
9219 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
9220
9221         (This patch is part of merge of objc-improvements-branch
9222         into mainline.)
9223
9224         * doc/frontends.texi: Mention Objective-C++ in addition to
9225         Objective-C.
9226         * doc/install.texi: Add 'obj-c++' to list of configurable
9227         languages.
9228         * doc/invoke.texi: Rename Objective-C option headings to
9229         indicate they also apply to Objective-C++.  List file
9230         extensions for Objective-C++ sources.  Mention that
9231         ObjC and ObjC++ compilations may also use C and C++ options,
9232         respectively.  Point users to doc/standards.texi for
9233         further info on ObjC and ObjC++.
9234         * doc/sourcebuild.texi: Mention the objcp/ directory and
9235         the Objective-C++ sources it contains.
9236         * doc/standards.texi: Update link to Apple ObjC site;
9237         add link to gcc readings.html WWW doc.
9238
9239 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
9240
9241         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
9242         and 2004-07-14 changes.
9243
9244 2004-08-12  Paul Brook  <paul@codesourcery.com>
9245
9246         * doc/invoke.texi: Fix typo.
9247
9248 2004-08-11 Devang Patel  <dpatel@apple.com>
9249
9250         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
9251         and -no_dead_strip_inits_and_terms.
9252         (LINK_SPEC): Same.
9253         * doc/invoke.texi (Darwin Options): Document -dead_strip and
9254         -no_dead_strip_inits_and_terms.
9255
9256 2004-08-11  Paul Brook  <paul@codesourcery.com>
9257
9258         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
9259         (arm_load_pic_register): ... to this.
9260         * config/arm/arm.c (arm_finalize_pic): Rename ...
9261         (arm_load_pic_register): ... to this.  Always output insns at the
9262         current location.  Load via low reg in thumb mode.
9263         (arm_expand_prologue): Call arm_load_pic_register.
9264         (thumb_expand_prologue): Ditto.
9265         * config/arm/arm.h (FINALIZE_PIC): Remove.
9266         * config/arm/arm.md (builtin_setjmp_receiver): Call
9267         arm_load_pic_register.
9268
9269 2004-08-11  Paul Brook  <paul@codesourcery.com>
9270
9271         * arm.c (thumb_force_lr_save): Add prototype.
9272         (thumb_compute_save_reg_mask): New function.
9273         (thumb_find_work_register): New function.
9274         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
9275         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
9276         Don't clobber r3 when removing pretend args.
9277         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
9278         (thumb_output_function_prologue): Use new functions.
9279         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
9280         * arm.h (THUMB_REG_PUSHED_P): Remove.
9281
9282 2004-08-11  James E Wilson  <wilson@specifixinc.com>
9283
9284         PR rtl-optimization/16490
9285         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
9286         global_live_at_end for new basic block if already set for other blocks.
9287
9288 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
9289
9290         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
9291
9292         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
9293         (mfcr rlwinm rlwinm patterns): Set length to 12.
9294
9295 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
9296
9297         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
9298         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
9299         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
9300         (start_ssa_stmt_operands): Delete.
9301         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
9302         struct stmt_operands_d.
9303         (build_ssa_operands): New extern entry point.
9304         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
9305         building code, replace with create_ssa_artficial_load_stmt().
9306         * tree-ssa-operands.c (struct voperands_d): Delete.
9307         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
9308         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
9309         (free_uses, free_defs, free_vuses, free_v_may_defs,
9310         free_v_must_defs): Remove dealloc parameter.
9311         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
9312         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
9313         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
9314         vector comparisons, ssa_name reuse, and allocations here.
9315         (verify_start_operands): Delete.
9316         (finalize_ssa_stmt_operands): Set new operands by calling finalize
9317         routines.
9318         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
9319         (append_def, append_usei): Simplify to simple accumulation.
9320         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
9321         duplicates and simple accumulation.
9322         (free_ssa_operands): Free vectors in a stmt_operand structure.
9323         (build_ssa_operands): New. Create a new stmt_operand structure from
9324         a stmt and an old set of stmt_operands.
9325         (get_stmt_operands): Simplify and call build_ssa_operands.
9326         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
9327         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
9328         add_call_read_ops): Don't pass prev_vops around anymore.
9329         (note_addressable): Return if no stmt annotation.
9330         (copy_virtual_operands): Access v_may_def operands through a struct.
9331         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
9332         hash tables without treating the stmt as a real stmt.
9333         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
9334         v_may_def def and use through a struct instead of 2 array elements.
9335         (struct v_may_def_optype_d): Use v_may_def_operand_type.
9336         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
9337
9338 2004-08-11  Nick Clifton  <nickc@redhat.com>
9339
9340         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
9341         this funciton's behaviour.  Return true when the current function
9342         has a section attribute and -mlong-calls is in effect.
9343         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
9344         short-call marker when -mlong-calls is in effect and the function
9345         has a section attribute.
9346
9347 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
9348
9349         * stmt.c (expand_return): If asked to return the RESULT_DECL,
9350         just call expand_value_return on result_rtl.
9351
9352 2004-08-10  Richard Henderson  <rth@redhat.com>
9353
9354         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
9355         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
9356         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
9357         (add_location_or_const_value_attribute): ... not here.  Use
9358         loc_descriptor_from_tree if possible.
9359         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
9360         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
9361         values specially.
9362         (loc_descriptor_from_tree): New.  Update callers.
9363         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
9364         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
9365         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
9366         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
9367         and BUILT_IN_STACK_RESTORE.
9368         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
9369         * stmt.c (expand_stack_alloc): Remove.
9370         * tree-mudflap.c (mx_register_decls): Don't look for
9371         BUILT_IN_STACK_ALLOC.
9372         * tree-nested.c (convert_local_reference): Likewise.
9373         * tree.h (DECL_VALUE_EXPR): New.
9374
9375 2004-08-10  Richard Henderson  <rth@redhat.com>
9376
9377         * stor-layout.c (round_up): Check for 0/1 before dividing.
9378         (round_down): Likewise.
9379
9380         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
9381
9382 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
9383
9384         * config.gcc (arm*-*-eabi*): New target.
9385         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
9386         (TARGET_LIB_INT_CMP_BIASED): Likewise.
9387         * expmed.c (expand_divmod): Try a two-valued divmod function as a
9388         last resort.
9389         * gthr.h: Remove bogus tokens at end of #pragma.
9390         * optabs.c (expand_twoval_binop_libfunc): New function.
9391         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
9392         (prepare_float_lib_cmp): Try reversing the condition.
9393         (debug_optab_libfuncs): New function.
9394         * optabs.h (expand_twoval_binop_libfunc): Declare.
9395         * config/arm/arm.c (arm_init_libfuncs): New function.
9396         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
9397         (TARGET_INIT_LIBFUNCS): Define it.
9398         * config/arm/arm.h (TARGET_BPABI): New macro.
9399         * config/arm/arm-protos.h
9400         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
9401         * config/arm/bpabi.S: New file.
9402         * config/arm/bpabi.c: Likewise.
9403         * config/arm/bpabi.h: Likewise.
9404         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
9405         (__aeabi_drsub): Likewise.
9406         (__aeabi_dsub): Likewise.
9407         (__aeabi_dadd): Likewise.
9408         (__aeabi_ui2d): Likewise.
9409         (__aeabi_i2d): Likewise.
9410         (__aeabi_f2d): Likewise.
9411         (__aeabi_dmul): Likewise.
9412         (__aeabi_ddiv): Likewise.
9413         (__aeabi_cdrcmple): Likewise.
9414         (__aeabi_cdcmpeq): Likewise.
9415         (__aeabi_cdcmple): Likewise.
9416         (__aeabi_dcmpeq): Likewise.
9417         (__aeabi_dcmplt): Likewise.
9418         (__aeabi_dcmple): Likewise.
9419         (__aeabi_dcmpge): Likewise.
9420         (__aeabi_dcmpgt): Likewise.
9421         (__aeabi_dcmpun): Likewise.
9422         (__aeabi_d2iz): Likewise.
9423         (__aeabi_d2uiz): Likewise.
9424         (__aeabi_d2f): Likewise.
9425         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
9426         (__aeabi_frsub): Likewise.
9427         (__aeabi_fsub): Likewise.
9428         (__aeabi_fadd): Likewise.
9429         (__aeabi_ui2f): Likewise.
9430         (__aeabi_i2f): Likewise.
9431         (__aeabi_fmul): Likewise.
9432         (__aeabi_fdiv): Likewise.
9433         (__aeabi_cfrcmple): Likewise.
9434         (__aeabi_cfcmpeq): Likewise.
9435         (__aeabi_cfcmple): Likewise.
9436         (__aeabi_fcmpeq): Likewise.
9437         (__aeabi_fcmplt): Likewise.
9438         (__aeabi_fcmple): Likewise.
9439         (__aeabi_fcmpge): Likewise.
9440         (__aeabi_fcmpgt): Likewise.
9441         (__aeabi_fcmpun): Likewise.
9442         (__aeabi_f2iz): Likewise.
9443         (__aeabi_f2uiz): Likewise.
9444         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
9445         (__aeabi_uidivmod): New function or alias.
9446         (__aeabi_idivmod): Likewise.
9447         (__aeabi_idiv0): Likewise.
9448         (__aeabi_ldiv0): Likewise.
9449         (__aeabi_llsr): Likewise.
9450         (__aeabi_lasr): Likewise.
9451         (__aeabi_llsl): Likewise.
9452         (bpabi.S): Include it.
9453         * config/arm/libgcc-bpabi.ver: New file.
9454         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
9455         (LINK_SPEC): Remove.
9456         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
9457         __aeabi_ulcmp.
9458         * config/arm/t-bpabi: New file.
9459         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
9460         (TARGET_LIB_INT_CMP_BIASED): Likewise.
9461
9462 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
9463
9464         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
9465         * config/rs6000/rs6000.md (clrmemsi): New pattern.
9466         * config/rs6000/rs6000.c (expand_block_clear): New function.
9467         (expand_block_move): Convert alignment to bits.  Use SImode and
9468         HImode for unaligned addresses if not STRICT_ALIGNMENT.
9469
9470 2004-08-10  Caroline Tice  <ctice@apple.com>
9471
9472         * varasm.c (unlikely_section_label): New global variable.
9473         (unlikely_text_section_name): New global variable.
9474         (text_section):  Remove alignment statement.
9475         (unlikely_text_section): Remove alignment statement; use
9476         unlikely_section_label rather than hard-coded string.
9477         (assemble_start_function): Initialize unlikely_section_label and
9478         unlikely_text_section_name;  make sure cold section is properly
9479         aligned at start of function; output unlikely_section_label if
9480         appropriate.
9481
9482 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
9483
9484         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
9485         * config/s390/s390.c (s390_canonicalize_comparison): New function.
9486         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
9487         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
9488         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
9489         ("*tmqi_mem"): Remove SUBREG from pattern.
9490         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
9491         ("*andsi3_cconly"): Likewise.
9492
9493 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
9494
9495         PR target/16909
9496         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
9497
9498 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
9499
9500         * doc/sourcebuild.texi (compat testing): Document available test
9501         framework commands.  Use the preferred spelling of DejaGnu.
9502
9503 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
9504
9505         * lambda.h: Add matrix type, and prototypes for remainder of
9506         matrix and vector functions.
9507         (lambda_vector_mult_const): New function.
9508         (lambda_vector_negate): Ditto.
9509         (lambda_vector_add): Ditto.
9510         (lambda_vector_add_mc): Ditto.
9511         (lambda_vector_copy): Ditto.
9512         (lambda_vector_zerop): Ditto.
9513         (lambda_vector_equal): Ditto.
9514         (lambda_vector_min_nz): Ditto.
9515         (lambda_vector_first_nz): Ditto.
9516         (lambda_vector_matrix_mult): Ditto.
9517         * lambda-mat.c: New file.
9518         * Makefile.in (lambda-mat.o): New.
9519
9520 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
9521
9522         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
9523         after linking stmt into the program.
9524         (bsi_remove): Don't call modify_stmt.
9525         * tree-complex.c (update_complex_assignment,
9526         expand_complex_comparison): Call modify_stmt after changing the stmt.
9527         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
9528         removing the stmt.
9529         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
9530         the stmt, and only if needed.
9531         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
9532         expression.
9533         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
9534         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
9535         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
9536         (eliminate_redundant_computations): Don't pass an annotation. Call
9537         modify_stmt rather than setting the annotation directly.
9538         (record_equivalences_from_stmt): Remove unused local 'j'.
9539         (cprop_operand): Take a stmt rather than an annotation as a parameter.
9540         Call modify_stmt.
9541         (cprop_into_stmt): Pass stmt rather than annotation.
9542         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
9543         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
9544         modify_stmt.
9545         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
9546
9547 2004-08-10  Jason Merrill  <jason@redhat.com>
9548
9549         PR middle-end/16948
9550         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
9551         the RESULT_DECL.
9552
9553 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
9554
9555         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
9556         hash function.
9557
9558 2004-08-10  Roger Sayle  <roger@eyesopen.com>
9559
9560         * config/mips/mips.md: New reciprocal square root patterns that
9561         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
9562
9563 2004-08-10  Paul Brook  <paul@codesourcery.com>
9564
9565         * config/arm/arm-protos.h (arm_set_return_address,
9566         thumb_set_return_address): Add prototypes.
9567         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
9568         * config/arm/arm.c (arm_compute_func_type,
9569         use_return_insn, arm_compute_save_reg0_reg12_mask,
9570         arm_compute_save_reg_mask, arm_output_function_prologue,
9571         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
9572         current_function_calls_eh_return.
9573         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
9574         old eh code.
9575         (arm_set_return_address, thumb_set_return_address): New functions.
9576         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
9577         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
9578         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
9579         (epilogue): Use the stackadj register.
9580         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
9581
9582 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
9583
9584         PR target/3144
9585         * expr.c (move_by_pieces_ninsns): Add max_size argument.
9586         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
9587         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
9588         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
9589         but using MOVE_RATIO.
9590         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
9591         (can_store_by_pieces): Change max_size type to unsigned int.
9592         (store_by_pieces_1): Likewise.  Pass max_size to
9593         move_by_pieces_ninsns.
9594         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
9595         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
9596         to move_by_pieces_ninsns.
9597         (STORE_BY_PIECES_P): Define.
9598         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
9599         to move_by_pieces_ninsns.
9600         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
9601
9602         * config/i386/i386.h (CLEAR_RATIO): Define.
9603
9604 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
9605
9606         * expr.c (expand_expr_real_1): Add back code that was not dead.
9607
9608 2004-08-09  Andrew Pinski  <apinski@apple.com>
9609
9610         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
9611         which is found to be compatible before returning the aliasing set.
9612
9613 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
9614
9615         * ggc-zone.c (struct alloc_zone): Add statistics counters.
9616         (always_collect): New flag.
9617         (ggc_alloc_zone_1): Update statistics support.  Don't include
9618         overhead in allocated counter.
9619         (sweep_pages): Update allocated counter for large pages.  Don'y
9620         include overhead.
9621         (ggc_collect_1): Always collect.
9622         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
9623         whether to collect.
9624         (SCALE, LABEL): New macros.
9625         (ggc_print_statistics): Add statistics support.
9626
9627 2004-08-09  Roger Sayle  <roger@eyesopen.com>
9628
9629         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
9630         (init_expmed): Fix potential overrun problem with "all.reg".
9631         (expand_sdiv2_pow2): Add an alternate implementation for signed
9632         division, if the target provides a suitable conditional move insn.
9633
9634 2004-08-09  Paul Brook  <paul@codesourcery.com>
9635         Richard Henderson  <rth@redhat.com>
9636
9637         * unwind-dw2.c (uw_install_context_1): Update target saved stack
9638         pointer.
9639
9640 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
9641
9642         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
9643         Check DATA limit only if there's no AS limit.  Ignore insanely
9644         low DATA limits.
9645         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
9646         but take care that the AS limit isn't overrun.
9647         * doc/invoke.texi: Update documentation of min-heapsize parameter.
9648
9649 2004-08-09  Jeff Law  <law@redhat.com>
9650
9651         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
9652         (tree-ssa-threadupdate.o): Add dependencies.
9653         * tree-ssa-threadupdate.c: New file.
9654         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
9655         (rewrite_vars_out_of_ssa): Remove prototype.
9656         (cleanup_tree_cfg): Returns a bool.
9657         * tree.h (thread_through_all_blocks): Prototype.
9658         * tree-outof-ssa.c  (SSANORM_*): Move into here.
9659         (remove_ssa_form): Now static.
9660         (rewrite_vars_out_of_ssa): Kill.
9661         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
9662         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
9663         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
9664         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
9665         anything was changed.
9666         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
9667         from the PHI's annotation rather than the edge associated with
9668         the new argument.
9669         * tree-ssa-dom.c (redirection_edges): Kill.
9670         (redirect_edges_and_update_ssa_graph): Kill.
9671         (tree_ssa_dominator_optimize): Do not reset forwardable flag
9672         for blocks anymore.  Do not initialize redirection_edges.
9673         Call thread_through_all_blocks.  Simplify code for cleanup
9674         of the CFG and iterating.  No longer call cleanup_tree_cfg
9675         outside the iteration loop.
9676         (thread_across_edge): No longer mess with forwardable blocks.
9677
9678 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
9679
9680         * explow.c (memory_address): Use memory_address_p.
9681         * recog.c (general_operand): Likewise.
9682         * regrename.c: No need to define REG_OK_STRICT.
9683
9684 2004-08-09  Steven Bosscher  <stevenb@suse.de>
9685
9686         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
9687         New timers.
9688         * gcse.c: Include timevar.h.
9689         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
9690         and global_copy_prop_count.
9691         (local_const_prop_count, local_copy_prop_count): New static globals.
9692         (gcse_main): Set the right timevar for each pass.
9693         (cprop_jump): Increment global_const_prop_count when a constant is
9694         propagated.  Add "GLOBAL" to dump output.
9695         (cprop_insn): Increment global_const_prop_count when a constant is
9696         propagated, or global_copy_prop_count when a copy is propagated.
9697         (do_local_cprop): Likewise for local_const_prop_count and
9698         local_copy_prop_count.
9699         (one_cprop_pass): Initialize const/cprop counters to zero.
9700         Print out results of local and global const/cprop separately.
9701         (bypass_block): Break over-length line.
9702         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
9703         for bb-reorder.o and tracer.o.
9704
9705 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
9706
9707         * Makefile.in (GTFILES): Remove stmt.c
9708         (stmt.o): Do not depend on gt-stmt.h.
9709         * emit-rtl.c (emit_line_note): Do not call
9710         set_file_and_line_for_stmt.
9711         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
9712         do everything.
9713         * function.c (free_after_parsing): Do not free STMT field.
9714         (allocate_struct_function): Do not call init_stmt_for_function.
9715         (assign_stack_temp_for_type): Do not accept values of keep
9716         other than 0 or 1.
9717         (init_temp_slots): Do not initialize removed variables.
9718         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
9719         and X_VAR_TEMP_SLOT_LEVEL fields.
9720         * rtl.h (set_file_and_line_for_stmt): Remove.
9721         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
9722         struct stmt_status, cond_stack, case_stack, nesting_stack,
9723         nesting_depth, emit_locus, set_file_and_line_for_stmt,
9724         same_case_target_p, init_stmt_for_function, emit_nop,
9725         expand_start_cond, expand_start_elseif, expand_start_else,
9726         expand_elseif, expand_end_cond): Remove.
9727         (preserve_subexpressions_p): Remove references to CFUN->STMT.
9728         (expand_start_case, expand_end_case_type): Remove, merge into...
9729         (expand_case): ... this one, including other bits from
9730         expand_expr_real_1.  Inline same_case_target_p.  Turn members
9731         of CASE_STACK into local variables.
9732         (emit_case_bit_tests): Inline same_case_target_p.
9733         (add_case_node): Add HEAD argument, return new head of the list,
9734         do not handle default label here.
9735         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
9736         expand_start_elseif, current_nesting_level, expand_start_case,
9737         expand_end_case_type, expand_end_case, add_case_node,
9738         init_stmt_for_function, expand_elseif): Remove prototypes.
9739         (expand_case): Add prototype.
9740
9741 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
9742
9743         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
9744
9745 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
9746
9747         * expr.c (var_rtx): Remove.
9748         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
9749         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
9750         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
9751         Abort.
9752         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
9753         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
9754         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
9755
9756 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
9757         Ayal Zaks <zaks@il.ibm.com>
9758
9759         * common.opt (freschedule-modulo-scheduled-loops): New flag.
9760         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
9761         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
9762         when -freschedule-modulo-scheduled-loops flag is not specified.
9763         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
9764         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
9765         More accurate placing of insn in row of partial schedule.
9766         (ps_insn_find_column): New function.
9767         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
9768         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
9769         (schedule_region): Use sched_is_disabled_for_current_region_p.
9770         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
9771
9772 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9773
9774         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
9775         change.
9776
9777 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9778
9779         * config/i386/i386.c (ix86_expand_clrmem): Properly call
9780         gen_strset for 64bit target.
9781
9782 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
9783
9784         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
9785
9786 2004-08-07  Jason Merrill  <jason@redhat.com>
9787
9788         Make return in memory explicit.
9789         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
9790         (assign_parm_find_data_types): Remove code for old front end
9791         invisible reference handling.
9792         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
9793         (expand_function_end): Likewise.
9794         * gimplify.c (gimplify_return_expr): Handle a dereferenced
9795         RESULT_DECL.
9796         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
9797         (declare_return_variable): Handle DECL_BY_REFERENCE.
9798         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
9799         (cp_genericize_r): Use convert_from_reference.
9800         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
9801         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
9802
9803         * c-common.c (c_warn_unused_result): Check TREE_USED before
9804         warning about a CALL_EXPR with an unused value.
9805
9806 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
9807
9808         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
9809         to the compiler.  Use -fshort-wchar by default.
9810
9811 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
9812
9813         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
9814         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
9815         threshhold.
9816         * doc/invoke.texi (param): Document min-crossjump-insns.
9817
9818 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
9819
9820         PR c/13282
9821         * c.opt (Wmissing-field-initializers): New option.
9822         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
9823         * c-typeck.c (pop_init_level): Guard the missing field warning with
9824         warn_missing_field_initializers rather than extra_warnings.
9825         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
9826         some of the explanation from...
9827         (-Wextra): ...here.  Say that the missing field warning can be
9828         seperately controlled by -Wmissing-field-initializers.
9829
9830 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
9831
9832         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
9833         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
9834         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
9835         * tree.def (ENTRY_VALUE_EXPR): Remove.
9836
9837 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
9838
9839         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
9840         the places where it is actually needed.  Don't use repz; stosb
9841         for -Os with sufficiently small constant sizes.
9842         For sufficiently small repz; stos{l,q} repeat counts use a sequence
9843         of stos{l,q} instructions instead.
9844
9845 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9846
9847         PR tree-optimization/16807
9848         * loop-iv.c (dump_iv_info): Dump invariants correctly.
9849         (iv_subreg, iv_extend): Express value of invariant purely in
9850         base field.
9851
9852 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
9853
9854         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
9855         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
9856
9857 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
9858
9859         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
9860         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
9861         pre_dec_operand.
9862         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
9863         pattern until reload is finished to allow better code generation
9864         and split them completely into separate instrunctions.
9865         (*andsi3_split): New pattern.
9866
9867 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
9868
9869         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
9870         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
9871         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
9872         * tree.h (handle_dll_attribute): Declare.  Test
9873         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
9874         * c-common.h (c_determine_visibility): Declare.
9875         * c-common.c (c_determine_visibility): New function.
9876         * c-decl.c (finish_decl): Use it.
9877         (finish_function): Likewise.
9878         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
9879         zero, by default.  Use #if, not #ifdef, to test it.
9880         * config/arm/arm.c (arm_attribute_table): Use
9881         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
9882         #if.
9883         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
9884         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
9885         to 1.
9886         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
9887         * config/i386/i386.c (ix86_attribute_table): Use
9888         handle_dll_attribute for dllimport/dllexport.  Test
9889         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
9890         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
9891         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
9892         it to 1.
9893         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
9894         with #if.
9895         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
9896         it to 1.
9897         * doc/extend.texi (dllexport): Clarify and correct documentation.
9898         (dllimport): Likewise.
9899         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
9900         handle_dll_attribute.
9901
9902 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9903
9904         * tree-ssa-loop-manip.c: New file.
9905         * Makefile.in (tree-ssa-loop-manip.o): Add.
9906         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
9907         Declare.
9908         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
9909         form.
9910         (tree_ssa_loop_done): Verify loop closed ssa form.
9911         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
9912
9913 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9914
9915         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
9916         pa_asm_output_aligned_local): New functions.
9917         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
9918         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
9919         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
9920         pa_asm_output_aligned_common.
9921         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
9922         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
9923         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
9924         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
9925         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
9926         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
9927         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
9928         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
9929         common data.
9930
9931 2004-08-05  Andrew Pinski  <apinski@apple.com>
9932
9933         * objc/objc-act.c (build_objc_string_object): Mark the address
9934         expression as constant.
9935
9936 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
9937
9938         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
9939         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
9940         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
9941
9942 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
9943
9944         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
9945         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
9946         out, and associated obsolete comments.
9947
9948 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
9949
9950         * tree.h (force_fit_type): Return a tree, take three flags.
9951         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
9952         TREE_CONSTANT_OVERFLOW here.
9953         (int_const_binop, const_binop): Adjust.
9954         (size_int_type): Do sign extension here.
9955         (fold_convert_const, optimize_bit_field_compare,
9956         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
9957         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
9958         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
9959
9960 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9961
9962         PR tree-optimization/16864
9963         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
9964         for ssa names without default_def.
9965
9966 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
9967
9968         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
9969         frame pointer, restore eax with an ebp-relative address.
9970
9971 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
9972
9973         PR 14516
9974         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
9975         * c-common.h (make_rtl_for_local_static): Delete.
9976         * c-decl.c (shadow_tag_warned): Clean up comment.
9977         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
9978         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
9979         * c-semantics.c (make_rtl_for_local_static): Delete.
9980         * expr.c (init_block_move_fn): Use set_user_assembler_name.
9981         (init_block_clear_fn): Likewise.
9982         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
9983         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
9984         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
9985         * tree.h (make_decl_rtl): Remove second parameter.
9986         (set_user_assembler_name): New.
9987         * varasm.c (set_user_assembler_name): New.
9988         (make_decl_rtl): Remove second parameter.  Update callers in many
9989         files.
9990
9991 2004-08-05  Adam Nemet  <anemet@lnxw.com>
9992
9993         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
9994         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
9995         to LynxOS 4.0.
9996         * gthr-lynx.h: New file.
9997         * config/lynx-ng.h: Remove file.
9998         * config/lynx.h: Update to LynxOS 4.0.
9999         * config/t-lynx: New file.
10000         * config/i386/lynx-ng.h: Remove file.
10001         * config/i386/lynx.h: Update to LynxOS 4.0.
10002         * config/rs6000/lynxbase.h: Remove file.
10003         * config/rs6000/lynx.h: Update to LynxOS 4.0.
10004         * config/rs6000/t-lynx: New file.
10005         * doc/install.texi (Options specification): Remove reference to
10006         LynxOS from systems where --with-gnu-as makes a difference.
10007
10008 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
10009
10010         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
10011         __UINTMAX_TYPE__.
10012         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
10013         __INTMAX_MAX__.
10014         (c_cpp_builtins): Call it.
10015         * doc/cpp.texi: Update.
10016
10017 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
10018
10019         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
10020         cost.
10021
10022 2004-08-04  Jan Hubicka  <jh@suse.cz>
10023
10024         * basic-block.h (profile_staus): New global variable.
10025         * cfg.c (profile_status): Declare.
10026         (check_bb_profile): Break out from ....; use profile_status
10027         (dump_flow_info): ... here.
10028         * cfgbuild.c (find_basic_blocks): Set profile_status.
10029         * cfgexpand.c (tree_expand_cfg): Likewise.
10030         * predict.c (estimate_probability): Likewise.
10031         * profile.c (branch_prob): Likewise.
10032         * tree-cfg.c (build_tree_cfg): Likewise.
10033         (dump_function_to_file): Use check_bb_profile.
10034         * tree-pretty-print (dump_bb_header): Likewise.
10035         * tree-profile.c (do_tree_profiling): Cleanup.
10036
10037 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
10038
10039         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
10040         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
10041         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
10042         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
10043         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
10044         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
10045         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
10046         (ggc-none.o, errors.o): Move rule to generators section;
10047         correct dependencies.
10048         (min-insn-modes.o): Move rule to generators section; remove
10049         unnecessary explicit command; correct dependencies.
10050         (print-rtl.o, print-rtl1.o): Correct dependencies.
10051         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
10052         (mostlyclean): Update.
10053
10054         * errors.c: Include bconfig.h not config.h.  Correct comment.
10055         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
10056         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
10057         * print-rtl.c: Don't include tm_p.h.
10058
10059         * rtl.h: Move forward-decl of struct function down where it's
10060         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
10061         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
10062
10063 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10064             Jeff Law  <law@redhat.com>
10065
10066         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
10067         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
10068         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
10069         manipulate the duplicated ssa names.
10070         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
10071         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
10072         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
10073         New functions.
10074         (release_ssa_name): Do not release ssa names that may have multiple
10075         definitions.
10076         * tree.h (release_ssa_name_force, mark_for_rewrite,
10077         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
10078         marked_ssa_names): Declare.
10079         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
10080         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
10081         Update call to rewrite_ssa_into_ssa.
10082
10083 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
10084
10085         * defaults.h (TARGET_DECLSPEC): New macro.
10086         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
10087         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
10088         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
10089         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
10090         __declspec support.
10091         (TARGET_DECLSPEC): Define.
10092         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
10093         __declspec support.
10094         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
10095         __declspec support.
10096         (TARGET_DECLSPEC): Define.
10097         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
10098         __declspec support.
10099         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
10100         support.
10101         * doc/tm.texi (TARGET_DECLSPEC): Document.
10102
10103         * doc/extend.texi: Fix typo in comment.
10104
10105 2004-08-04  Paul Brook  <paul@codesourcery.com>
10106
10107         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
10108         (TARGET_CXX): Use it.
10109         * target.h (struct gcc_target): Add cdtor_returns_this.
10110         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
10111         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
10112         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
10113
10114 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10115
10116         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
10117         low/high pair. Do range checking directly.
10118         (interpret_integer): Adjust.
10119
10120 2004-08-04  Nick Clifton  <nickc@redhat.com>
10121
10122         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
10123         GCC ABI.
10124         * doc/invoke.texi: Document this new switch and also the -mrenesas
10125         switch.
10126
10127 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
10128
10129         * cfglayout.c (insn_locators_initialize): Update the current
10130         location before initializing a location.
10131
10132 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
10133
10134         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
10135         (dbxout_function_end): Return after emitting the "Lscope" symbol
10136         under the same conditions that this function formerly wasn't called.
10137         Add explanatory comments.
10138
10139         PR 14860
10140         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
10141         on the new decl.
10142
10143         PR 13956
10144         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
10145         functions, broken out of dbxout_block.
10146         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
10147         stabs too, if it contains symbols.  Use the begin_label and
10148         the Lscope label (emitted by dbxout_function_end) for the
10149         range of this block.
10150
10151 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
10152
10153         * doc/install.texi: Update autoconf version requirements.
10154
10155 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
10156
10157         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
10158         * recog.c (general_operand, immediate_operand, nonmemory_operand)
10159         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
10160         * regclass.c (record_reg_classes): Likewise.
10161         * reload.c (find_reloads): Likewise.
10162         * reload1.c (reload): Likewise.
10163
10164 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
10165
10166         * gensupport.c (init_md_reader_args_cb): Renamed from
10167         init_md_reader_args.  Add third option, callback function for
10168         parsing program-specific options.  Add diagnosis of incorrect
10169         number of input files.
10170         (init_md_reader): Fold into init_md_reader_args_cb.
10171         (init_md_reader_args): Now a thin wrapper around
10172         init_md_reader_args_cb.
10173         * gensupport.h: Update prototypes.
10174
10175         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
10176         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
10177         * genrecog.c: No need to diagnose lack of an input file;
10178         init_md_reader_args will handle it.
10179         * genconditions.c: Likewise, and use init_md_reader_args.
10180         * genconstants.c: Likewise, and no need to call read_md_rtx.
10181
10182 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
10183
10184         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
10185         declarations.
10186
10187 2004-08-03  Mike Stump  <mrs@apple.com>
10188
10189         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
10190         for frameworks.
10191         * doc/invoke.texi (Darwin Options): Update to reflect above.
10192
10193 2004-08-03  Roger Sayle  <roger@eyesopen.com>
10194
10195         PR middle-end/16790
10196         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
10197         truncations, not just global truncations.
10198
10199 2004-08-03  Andrew Pinski  <apinski@apple.com>
10200
10201         PR bootstrap/16865
10202         * loop-iv.c (simplify_using_assignment): Initialize lhs.
10203
10204 2004-08-03  Paul Brook  <paul@codesourcery.com>
10205
10206         * gcc/doc/install.texi: Document MPFR requirement.
10207
10208 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
10209
10210         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
10211         and mmap() explicitly instead of relying on preset autoconf cache
10212         variables.
10213         * configure: Regenerate.
10214
10215 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
10216
10217         PR target/16570
10218         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
10219         to tmake_file.
10220         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
10221         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
10222         to tmake_file.
10223
10224         * config/i386/t-gmm_malloc: New file.
10225         * config/i386/t-pmm_malloc: Likewise.
10226
10227         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
10228
10229 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
10230             Tanguy Fautrà <tfautre@pandora.be>
10231
10232         * config/i386/pmm_malloc.h: New file.
10233
10234 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
10235
10236         * config/i386/gmm_malloc.h: New file.
10237
10238 2004-08-03  Dale Johannesen  <dalej@apple.com>
10239
10240         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
10241         * c-common.c: Include opts.h.
10242         (c_common_get_alias_set): Fix check for a single input file.
10243         * toplev.c: Remove current_file_decl.
10244         * tree.h: Ditto.
10245
10246 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
10247
10248         * config.gcc (arm*-*-symbianelf*): New target.
10249         * config/arm/symbian.h: New file.
10250
10251         * gthr-gnat.c: Add visibility #pragmas.
10252         * gthr-gnat.h : Likewise.
10253         * gthr.h: Likewise.
10254         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
10255         (__ffsDI2): Likewise.
10256         (__clzSI2): Likewise.
10257         (__ctzSI2): Likewise.
10258         (__ctzDI2): Likewise.
10259         (__popcountSI2): Likewise.
10260         (__popcountDI2): Likewise.
10261         (__paritySI2): Likewise.
10262         (__parityDI2): Likewise.
10263         * libgcc2.h: Add visibility #pragmas.
10264         (__clzDI2): Add prototype.
10265         (__clzSI2): Likewise.
10266         (__ctzSI2): Likewise.
10267         (__ffsDI2): Likewise.
10268         (__ffsSI2): Likewise.
10269         (__ctzDI2): Likewise.
10270         (__popcountSI2): Likewise.
10271         (__popcountDI2): Likewise.
10272         (__paritySI2): Likewise.
10273         (__parityDI2): Likewise.
10274         * unwind-dw2-fde.h: Add visibility #pragmas.
10275         * unwind.h: Likewise.
10276
10277 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
10278             Dale Johannesen  <dalej@apple.com>
10279             Roger Sayle  <roger@eyesopen.com>
10280
10281         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
10282         constants more accurately.  Adjust costs for FMA instructions.
10283         Add cases for most logical and float operations.  Recurse into
10284         most operands.
10285
10286 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
10287
10288         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
10289
10290 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
10291
10292         * ra-build.c (conflicts_between_webs): For webs that cross a call add
10293         conflicts to regs_invalidated_by_call.
10294
10295 2004-08-03  Paul Brook  <paul@codesourcery.com>
10296
10297         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
10298
10299 2004-08-03  Jan Hubicka  <jh@suse.cz>
10300
10301         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
10302         ARRAY_REF argument.
10303
10304 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
10305
10306         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
10307         arm968es, arm10e, arm1020e, arm1022e.
10308         * invoke.texi: Update list of ARM cores.
10309         * arm-tune.md: Regenerate.
10310
10311 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
10312
10313         * arm/gentune.sh: New file.
10314         * arm/t-arm: New file.
10315         * arm/arm-tune.md: New file (autogenerated).
10316         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
10317         * arm.md (attribute tune): Delete.  Include arm-tune.md.
10318
10319 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
10320
10321         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
10322         penultimate parameter.  All callers adjusted.
10323         (struct prefix_list): Remove used_flag_ptr.
10324         (find_a_file): Do not set *pl->used_flag_ptr.
10325         (warn_B, warn_std_ptr): Remove.
10326
10327 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
10328             Mostafa Hagog <mustafa@il.ibm.com>
10329
10330         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
10331
10332 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
10333
10334         * dwarf2out.c (output_call_frame_info): Don't change data format
10335         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
10336         label.  Use 'true' not '1'.
10337         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
10338         required.
10339
10340 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10341
10342         * gdbinit.in: Reflect previous changes to rtunion_def.
10343
10344 2004-08-02  Roger Sayle  <roger@eyesopen.com>
10345
10346         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
10347         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
10348
10349 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10350
10351         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
10352         vec_p_reserve.
10353         * langhooks.h (lang_hooks::builtin_function): Rename parameter
10354         from "class" to "bt_class".
10355
10356 2004-08-02  Paul Brook  <paul@codesourcery.com>
10357
10358         PR rtl-optimization/15068
10359         * flow.c (init_propagate_block_info): Check condition is reversible.
10360
10361 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10362
10363         * gengtype.h (options::info): Change type to const char *.
10364         (enum gc_used_enum): Move out of struct type scope.
10365         * gengtype.c (create_option): Convert initializer for option::info to
10366         appropiate type.
10367         (adjust_field_type, walk_type, write_func_for_structure,
10368         write_root, write_roots): Remove pointless cast.
10369
10370 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
10371
10372         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
10373
10374 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10375
10376         * rtl.h (union rtunion_def): Have all members  start with the
10377         prefix "rt_".
10378         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
10379         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
10380         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
10381         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
10382         access.
10383         * gengtype.c (adjust_field_rtx_def): Likewise.
10384         * rtlanal.c (loc_mentioned_in_p): Likewise.
10385
10386 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
10387
10388         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
10389         Replace uses of mips/elf64.h with mips/elf.h
10390         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
10391         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
10392         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
10393         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
10394         (HANDLE_SYSV_PRAGMA): Delete.
10395         (ASM_OUTPUT_DEF): Fix formatting.
10396         * config/mips/elf64.h: Delete.
10397
10398 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
10399
10400         * config/ia64/ia64.c (got_symbolic_operand): Do require a
10401         symbol+offset operand to have its offset be zero mod 0x3fff
10402         when GOT entries are in use.  Clarify logic in SYMBOL_REF
10403         case.  Clarify comments.
10404         (ia64_expand_load_address): Split a symbol+offset load when
10405         the offset is nonzero mod 0x3fff, not 0x1fff.
10406
10407 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
10408
10409         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
10410         if trying to *store* to a non-offsettable address.
10411         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
10412         a nonoffsettable address.
10413         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
10414         Clean up.
10415         (movti_string): Don't move GPRs to a nonoffsettable address.
10416         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
10417
10418 2004-08-02  Ben Elliston  <bje@au.ibm.com>
10419
10420         PR target/16155
10421         * config/rs6000/altivec.h: Replace typeof with __typeof__.
10422
10423 2004-08-01  Richard Henderson  <rth@redhat.com>
10424
10425         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
10426         variable sized types.
10427
10428 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
10429
10430         * doc/invoke.texi: In the MIPS options section, remove the passage
10431         saying that -mexplicit-relocs is usually disabled for -mabicalls
10432         -fno-unit-at-a-time.
10433         * config/mips/mips.c (override_options): Remove the code that enforced
10434         this rule.
10435
10436 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
10437
10438         * config/mips/mips.md (cprestore): Provide two alternatives, one for
10439         an in-range offset and one for an out-of-range offset.  Wrap the latter
10440         in .set macro/.set nomacro if it's inside a .set nomacro block.
10441
10442 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
10443
10444         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
10445         (mips_restore_gp): Declare.
10446         * config/mips/mips.c (mips_add_offset): Add a scratch register
10447         argument.  Reimplement in rtl only, reusing MIPS16 logic from
10448         mips_output_mi_thunk.
10449         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
10450         to mips_add_offset.
10451         (mips_gp_save_slot): Delete.
10452         (mips_restore_gp): New function.
10453         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
10454         * config/mips/mips.md (exception_receiver): Turn into a
10455         define_insn_and_split.  Use mips_restore_gp to do the split.
10456         (call_internal, call_value_internal, call_value_multiple_internal): Use
10457         mips_restore_gp to restore $gp.
10458
10459 2004-07-31  Andrew Pinski  <apinski@apple.com>
10460
10461         PR other/16842
10462         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
10463
10464 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
10465
10466         * c-decl.c (diagnose_mismatched_decls): Give error for external
10467         redeclaration of identifier declared with no linkage, not just
10468         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
10469         error for redeclaration with no linkage.
10470
10471 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
10472             Fariborz Jahanian <fjahanian@apple.com>
10473
10474         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
10475         non-offsettable addresses even for DImode.
10476         (rs6000_split_multireg_move): Cope with non-offsettable addresses
10477         being moved into multiple GPRs.
10478
10479         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
10480         to 64.
10481         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
10482         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
10483         to 128.
10484         * config/rs6000/darwin-ldouble.c (isless): New macro.
10485         (inf): New macro.
10486         (nonfinite): New macro.
10487         (FPKINF): Delete.
10488         (_xlqadd): Completely rewrite.
10489         (_xlqmul): Correct overflow handling.
10490         (_xlqdiv): Correct overflow handling.
10491         * config/rs6000/darwin-ldouble-format: New file.
10492
10493 2004-07-30  Roger Sayle  <roger@eyesopen.com>
10494             Richard Henderson  <rth@redhat.com>
10495
10496         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
10497         9 into the equivalent lea instruction.
10498
10499 2004-07-30  Richard Henderson  <rth@redhat.com>
10500
10501         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
10502         with DECL_INITIAL if fb_lvalue.
10503         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
10504         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
10505         with <Cxxx>.
10506         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
10507
10508 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
10509
10510         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
10511         pointer escapes through a function call, assume that the
10512         callee will dereference it.
10513         (add_pointed_to_var): Assume that VALUE is always an
10514         ADDR_EXPR.
10515         (collect_points_to_info_r): Only call add_pointed_to_var if
10516         the value is an ADDR_EXPR.
10517
10518 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
10519
10520         * tree-ssa-alias.c (create_alias_map_for): Do not get the
10521         alias set of the inner type of ARRAY_TYPEs.
10522
10523 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
10524
10525         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
10526         setting a non-register to UNDEFINED right before the call to
10527         set_lattice_value.
10528
10529 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10530
10531         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
10532
10533 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
10534
10535         * tree-ssa.c (verify_flow_sensitive_alias_info): When
10536         comparing points-to sets of different pointers, make sure the
10537         second pointer is actually referenced in the code.
10538
10539 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
10540
10541         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
10542         (got_symbolic_operand): Remove unreachable code.
10543         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
10544         setjmp_operand; add entry for tls_symbolic_operand.
10545         * config/ia64/ia64-protos.h: Remove all prototypes of
10546         predicate functions.
10547
10548 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
10549
10550         * c-common.h (lang_post_pch_load): New variable.
10551         * c-pch.c (lang_post_pch_load): Define it.
10552         (c_common_read_pch): Use it.
10553         * cgraphunit.c (record_call_1): Give the front end a chance to
10554         record additional needed entities when a variable is marked as
10555         needed.
10556         * tlink.c (recompile_files): Robustify.
10557         (scan_linker_output): If a symbol is assigned to a file,
10558         but after recompilation is not present there, issue an error
10559         message.
10560
10561 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10562
10563         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
10564         Take orig_loop argument and pass it to set_level.
10565         (schedule_sm): Pass the correct orig_loop to force_move_till.
10566
10567 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10568
10569         * cfgloop.c (update_latch_info): Update dominator of the new block.
10570         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
10571         info.
10572         * dominance.c (verify_dominators): Check that the dominance tree is
10573         connected.
10574         (recount_dominator): Ignore unreachable blocks.
10575         (iterate_fix_dominators): Cleanup old dominance information before
10576         recomputing it.
10577
10578 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
10579
10580         * tree-ssa-operands.c (get_expr_operands): Revert changes
10581         to ADDR_EXPR processing introduced by:
10582             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10583             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
10584
10585 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
10586
10587         * doc/implement-c.texi: Add C90 subclause references.  Point to
10588         preprocessor documentation instead of duplicating it.  Add points
10589         only present in C90.  Fill in documentation for all points.
10590
10591 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10592
10593         * pa.c (output_movb): Correct typo.
10594
10595 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
10596
10597         * ra.h (single_reg_in_regclass): Declare.
10598         * ra.c (single_reg_in_regclass): Define.
10599         (first_hard_reg): New.
10600         (init_ra): Initialize single_reg_in_regclass.
10601         * ra-colorize.c (ok_class): New.
10602         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
10603
10604 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
10605
10606         * gcov-io.h: Allow zero tag as EOF indicator.
10607         (gcov_is_eof): Remove.
10608         (gcov_truncate): Remove.
10609         * gcov-io.c (gcov_seek): Always SEEK_SET.
10610         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
10611         EOF tag.
10612         * coverage.c (read_counts_file): Don't use gcov_is_eof.
10613         * gcov-dump.c (dump_file): Likewise.
10614         * gcov.c (read_graph_file, read_count_file): Likewise.
10615
10616         * c-decl.c (complete_array_type): Don't gratuitously copy
10617         maxindex.  Check it always has a type.
10618
10619 2004-07-29  Steven Bosscher  <stevenb@suse.de>
10620
10621         * rtl.c (currently_expanding_to_rtl): New.
10622         * rtl.h (currently_expanding_to_rtl): Export it.
10623         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
10624
10625         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
10626         inliner hack.
10627         * config/sh/sh.c: Replace rtx_equal_function_value_matters
10628         with currently_expanding_to_rtl.
10629         * config/sh/sh.md: Likewise.
10630         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
10631
10632 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
10633
10634         Introduce sh2a support.
10635         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
10636         * config.gcc: Build multilibs for sh2a and sh2a-single by
10637         default.
10638         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
10639         default.  Split their tests out of the corresponding SH4
10640         multilibs.
10641         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
10642         multilibs for SH2a.
10643         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
10644         * config.gcc: Handle sh2a multilibs and cpu selection.
10645         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
10646         * config/sh/t-mlib-sh2a: New.
10647         * config/sh/t-mlib-sh2a-nofpu: New.
10648         * config/sh/t-mlib-sh2a-single: New.
10649         * config/sh/t-mlib-sh2a-single-only: New.
10650         2004-07-09  Nick Clifton  <nickc@redhat.com>
10651         Issue 43400
10652         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
10653         -ml and -m2a are used together.
10654         2004-03-23  DJ Delorie  <dj@redhat.com>
10655         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
10656         when we have a double-sized FPU.
10657         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
10658         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
10659         is set.
10660         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
10661         -msh2a-single and -msh2a-single-only
10662         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
10663         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
10664         is set.
10665         2004-02-20  DJ Delorie  <dj@delorie.com>
10666         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
10667         2004-02-20  Fred Fish <fnf@redhat.com>,
10668         Corinna Vinschen <vinschen@redhat.com>
10669         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
10670         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
10671         2004-02-18  DJ Delorie  <dj@redhat.com>
10672         * config/sh/sh.c (broken_move): Add support for movi20.
10673         * config/sh/sh.h: Likewise.
10674         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
10675         * config/sh/sh.md (udivsi3_sh2a): New.
10676         (udivsi3): Call it.
10677         (divsi3_sh2a): New.
10678         (divsi3): Call it.
10679         (mul_r): New.
10680         (ashlsi3_sh2a): New.
10681         (ashrsi3_sh2a): New.
10682         (lshrsi3_sh2a): New.
10683         (movsi_i): Disable for sh2a.
10684         (movsi_ie): Add movi20.
10685         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
10686         sh2a, for -m2a-nofpu mode.
10687         2004-02-13  DJ Delorie  <dj@redhat.com>
10688         * config/sh/lib1funcs.asm: Handle double vs single better.
10689         * config/sh/sh.h: Likewise.
10690         2004-02-09  DJ Delorie  <dj@redhat.com>
10691         * config/sh/crt1.asm: Add support for sh2a.
10692         * config/sh/elf.h: Likewise.
10693         * config/sh/lib1funcs.asm: Likewise.
10694         * config/sh/sh.c: Likewise.
10695         * config/sh/sh.md: Likewise.
10696         * config/sh/sh.h: Likewise.
10697         * config/sh/t-sh: Likewise.
10698
10699 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
10700
10701         * config/frv/frv.md (movqi_internal, movhi_internal,
10702         movsi_internal): Add backup alternatives for memory inputs.
10703
10704 2004-07-28  Matt Austern  <austern@apple.com>
10705
10706         * config/darwin.c (darwin_one_byte_bool): New global variable.
10707         * config/darwin.h (darwin_one_byte_bool): Declare.
10708         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
10709         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
10710         value of darwin_one_byte_bool.
10711         * doc/invoke.texi: Document -mone-byte-bool flag.
10712
10713 2004-07-28  Eric Christopher  <echristo@redhat.com>
10714
10715         * c-common.c (c_common_unsafe_for_reeval): Delete.
10716         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
10717         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
10718         * calls.c (fix_unsafe_tree): Delete.
10719         (expand_call): Delete code which used above.
10720         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
10721         * expr.c (expand_expr_real_1): Ditto.
10722         * fold-const.c (non_lvalue): Ditto.
10723         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
10724         (lhd_unsafe_for_reeval): Ditto.
10725         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
10726         * langhooks.h (unsafe_for_reeval): Ditto.
10727         (unsave_expr_now): Adjust comment.
10728         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
10729         (estimate_num_insns_1): Ditto.
10730         * tree-pretty-print.c (dump_generic_node): Ditto.
10731         * tree.c (expr_align): Ditto.
10732         (unsave_expr): Delete.
10733         (unsafe_for_reeval): Ditto.
10734         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
10735         * tree.def (UNSAVE_EXPR): Delete.
10736         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
10737
10738 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
10739
10740         * tree.h (enum tls_model): Move ...
10741         * coretypes.h: ... here.
10742
10743 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
10744
10745         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
10746
10747 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
10748
10749         * cse.c (validate_canon_reg): New function, split out from...
10750         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
10751
10752 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
10753
10754         * tree-ssa-alias.c (maybe_create_global_var): Don't just
10755         return if .GLOBAL_VAR has been created.
10756
10757 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
10758
10759         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
10760         every variable that may have aliases, not just tags.
10761
10762 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
10763
10764         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
10765         move_from_CR_eq_bit.
10766         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
10767
10768
10769         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
10770         e500_flip_eq_bit.
10771
10772         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
10773         output_e500_flip_eq_bit.
10774
10775         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
10776         output_e500_flip_eq_bit.
10777         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
10778         output_e500_flip_eq_bit.
10779         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
10780         (print_operand): case D.  Get to EQ bit.
10781
10782 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
10783
10784         * gcov.c (function_summary): Add missing \n.
10785
10786 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
10787
10788         Introduce sh4a support.
10789         * config.gcc: Handle sh4a multilibs and cpu selection.
10790         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
10791         * config/sh/t-mlib-sh4a: New.
10792         * config/sh/t-mlib-sh4al: New.
10793         * config/sh/t-mlib-sh4a-nofpu: New.
10794         * config/sh/t-mlib-sh4a-single: New.
10795         * config/sh/t-mlib-sh4a-single-only: New.
10796         2004-02-20  DJ Delorie  <dj@redhat.com>
10797         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
10798         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
10799         2003-08-22  Eric Christopher  <echristo@redhat.com>
10800         * config/sh/sh4a.md: Update for chip errata.
10801         2003-08-07  Eric Christopher  <echristo@redhat.com>
10802         * config/sh/sh4a.md: New file. sh4a processor description.
10803         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
10804         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
10805         of -m4a-nofpu.
10806         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
10807         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
10808         * doc/invoke.texi (SH Options): Document -m4al.
10809         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
10810         * config/sh/sh.c (expand_block_move): Remove commented-out code
10811         checked in by mistake.
10812         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
10813         single elements from SFmode vectors.
10814         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
10815         register.
10816         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
10817         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
10818         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
10819         sh_fsca_int2sf): Remove variable declarations.
10820         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
10821         sh_fsca_int2sf): New functions.
10822         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
10823         sh_fsca_int2sf_rtx): New static variables.
10824         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
10825         sh_fsca_int2sf): Declare.
10826         * config/sh/sh.md: Adjust.
10827         * doc/invoke.texi (SH Options): Document new options.
10828         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
10829         compatibility from SH4 code.
10830         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
10831         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
10832         early.
10833         (memory_movsrc_operand): Renamed to...
10834         (unaligned_load_operand): ... this.  Simplified.
10835         * config/sh/sh.h (PREDICATE_CODES): Adjust.
10836         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
10837         input operand to SImode, and adjust the others.  Introduce
10838         post-increment by peephole.
10839         * config/sh/sh.c (expand_block_move): Give the target address the
10840         same mode as the temp reg.
10841         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
10842         copying.
10843         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
10844         Introduce support for SH4a.
10845         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
10846         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
10847         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
10848         sh_fsca_int2sf): New.
10849         (sh_init_builtins): Initialize them.
10850         (print_operand): Support `d'.
10851         (expand_block_move): Use movua if src is misaligned.
10852         (memory_movsrc_operand): New.
10853         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
10854         and one of the SH4 macros.
10855         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
10856         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
10857         SELECT_SH4A_SINGLE): New.
10858         (TARGET_NONE): Add SH4A_BIT.
10859         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
10860         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
10861         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
10862         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
10863         (enum processor_type): Added PROCESSOR_SH4A.
10864         (PREDICATE_CODES): Add memory_movsrc_operand.
10865         * config/sh/sh.md: Removed unused variables.
10866         (attr cpu): Add sh4a.
10867         (attr type): Add movua, fsrra and fsca.
10868         (prefetch): New, for SH4.
10869         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
10870         (toggle_sz): Set type to fp.
10871         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
10872         (movua, extv, extzv): New.
10873         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
10874         and 4a-single-only.
10875
10876 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
10877
10878         * tree-optimize.c (init_tree_optimization_passes): Schedule
10879         pass_may_alias right after the program is renamed into SSA.
10880         * tree-pass.h (PROP_alias): Define.
10881         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
10882         * tree-sra.c (pass_sra): Likewise.
10883         * tree-ssa-ccp.c (pass_ccp): Likewise.
10884         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
10885         * tree-ssa-dce.c (pass_dce): Likewise.
10886         * tree-ssa-dom.c (pass_dominator): Likewise.
10887         * tree-ssa-dse.c (pass_dse): Likewise.
10888         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
10889         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10890         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
10891         * tree-ssa-pre.c (pass_pre): Likewise.
10892         * tree-tailcall.c (pass_tail_recursion): Likewise.
10893         * tree-ssa.c (pass_redundant_phi): Likewise.
10894         * tree-ssa-alias.c (aliases_computed_p): Remove.
10895         Update all users.
10896         (init_alias_info): Do not mark all type tags for renaming
10897         unconditionally.
10898         Clear may_aliases from every symbol.
10899         (setup_pointers_and_addressables): If a pointer has not been
10900         dereferenced and it had a type tag, clear it and mark the old
10901         tag for renaming.
10902
10903 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
10904
10905         PR tree-optimization/16705
10906         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
10907         .GLOBAL_VAR.
10908
10909 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10910
10911         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
10912         check.
10913
10914         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
10915         don't make another one.
10916
10917         PR optimization/15077
10918         * function.h (struct function): Add field saved_static_chain_decl.
10919         Fix comment for static_chain_decl.
10920         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
10921         * tree-inline.h (save_body): Add new arg.
10922         * tree-optimize.c (tree_rest_of_compilation): Handle saving
10923         static_chain_decl.
10924
10925 2004-07-27  Richard Henderson  <rth@redhat.com>
10926
10927         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
10928         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
10929         is_gimple_addressable.
10930         * tree-gimple.c (is_gimple_addressable): Rename from
10931         is_gimple_addr_expr_arg; accept INDIRECT_REF.
10932         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
10933         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
10934         rename to is_gimple_addressable.
10935
10936 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
10937
10938         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
10939
10940 2004-07-27  Richard Henderson  <rth@redhat.com>
10941
10942         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
10943         before rounding.
10944
10945 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
10946
10947         * libgcc2.c: Change all conditionals testing
10948         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
10949         * libgcc2.h: Likewise.
10950         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
10951         TYPE_PRECISION of float80_type to 80.
10952         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
10953         of fpreg_type and float80_type to 80.
10954         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
10955         * config/m68k/netbsd-elf.h:
10956         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
10957         to evaluate to 80 whenever they would formerly have evaluated to 96.
10958         * config/i386/sco5.h: Remove unnecessary redefinition of
10959         LONG_DOUBLE_TYPE_SIZE.
10960         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
10961         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
10962         XFmode, with a bitsize of 80.  Update commentary.
10963         * config/ia64/ia64-modes.def: Likewise.
10964         * config/m68k/m68k-modes.def: Likewise.
10965
10966 2004-07-27  Steven Bosscher  <stevenb@suse.de>
10967
10968         * cfgexpand.c (tree_expand_cfg): Fix comment.
10969
10970         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
10971         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
10972         Remove.
10973         (prepare_function_start): Don't set rtx_equal_function_value_matters.
10974         * integrate.c (copy_rtx_and_substitute): Don't test for it.
10975         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
10976         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
10977         here again.  Update leading comment.
10978         * rtl.c (rtx_equal_function_value_matters): Remove.
10979         (rtx_equal_p): Don't test for it.
10980         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
10981         Likewise.
10982
10983         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
10984         * rtl.c (note_insn_name): Likewise.
10985         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
10986         * final.c (final_scan_insn): Likewise.
10987
10988         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
10989         * passes.c (rest_of_handle_eh): Do it here.
10990
10991         * stmt.c (struct nesting): Remove struct nesting block member.
10992         (struct stmt_status): Remove x_block_start_count field.
10993         (current_block_start_count): Remove.
10994
10995 2004-07-27  Brian Booth  <bbooth@redhat.com>
10996
10997         * tree-optimize.c (register_one_dump_file): Update condition that uses
10998         static_pass_number.
10999         (dup_pass_1): Replace with...
11000         (next_pass_1): This.
11001         (NEXT_PASS): Call next_pass_1.
11002         (DUP_PASS): Remove.
11003         (init_tree_optimization_passes): Remove uses of DUP_PASS.
11004         (execute_one_pass): Update condition that uses
11005         static_pass_number.
11006         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
11007         integer.
11008
11009 2004-07-27  Nick Clifton  <nickc@redhat.com>
11010
11011         * config/m32r/m32r.c: Include integrate.h in order to get the
11012         prototype for get_hard_reg_initial_val().
11013
11014         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
11015         and tidy up indentation.
11016         (final_presence_set): Use absence_set instead, so that if there is
11017         nothing in the "o" pipe the "s" pipe can be scheduled.
11018
11019 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
11020
11021         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
11022         don't have PT_VARS nor PT_MALLOC set.
11023         Clear name tag from pointers that have not been dereferenced.
11024         (set_pt_anything, set_pt_malloc): Forward declare.
11025         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
11026         not type compatibility when determining if a pointer can be
11027         copy propagated.
11028
11029 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
11030
11031         * expr.h (canonicalize_condition, get_condition): Add an int argument.
11032         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
11033         it to check whether the condition is still valid at the jump insn.
11034         * ifcvt.c (noce_get_condition): Likewise.
11035         (noce_get_alt_condition): Update call to canonicalize_condition.
11036         * loop-iv.c (simplify_using_initial_values): Update call to
11037         get_condition.  Remove FIXME.
11038         (check_simple_exit): Update call to get_condition.
11039         * loop-unswitch.c (may_unswitch_on): Likewise.
11040         * loop.c (check_dbra_loop): Likewise.
11041         (canonicalize_condition, get_condition): Add an argument to say whether
11042         the condition must still be valid at INSN.
11043         (get_condition_for_loop): Update call to get_condition.  Require that
11044         the condition be valid at INSN.
11045         * predict.c (estimate_probability): Update call to get_condition.
11046         Remove unused earliest parameter.
11047         (expected_value_to_br_prob): Update call to canonicalize_condition.
11048
11049 2004-07-26  Eric Christopher  <echristo@redhat.com>
11050
11051         * tree-dfa.c (add_referenced_var): Register initializers of global
11052         variables.
11053
11054 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
11055
11056         * config/i386/i386.c (function_arg): Always treat 8-
11057         and 16-byte wide vectors the same, even if MMX/SSE
11058         are disabled.
11059         (contains_128bit_aligned_vector_p): Add comment.
11060
11061 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
11062
11063         * ra.h (enum node_type): Rename to:
11064         (enum ra_node_type).
11065         * ra-colorize.c: Likewise.
11066
11067 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
11068
11069         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
11070         after simplifying the jump.
11071
11072 2004-06-26  Richard Henderson  <rth@redhat.com>
11073
11074         * calls.c (combine_pending_stack_adjustment_and_call): Make
11075         preferred_unit_stack_boundary argument unsigned.  Make
11076         unadjusted_alignment unsigned.
11077         (expand_call): Make preferred_stack_boundary and
11078         preferred_unit_stack_boundary variables unsigned.
11079         * function.c (assign_stack_local_1): Make alignment unsigned.
11080         * function.h (struct function): Make stack_alignment_needed,
11081         preferred_stack_boundary unsigned.
11082         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
11083         (ix86_compute_frame_layout): Make stack_alignment_needed,
11084         preferred_alignment variables unsigned.
11085         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
11086
11087 2004-07-26  Tom Tromey  <tromey@redhat.com>
11088
11089         * tree.h: Fix typo in comment.
11090
11091 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
11092
11093         PR bootstrap/12804
11094         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
11095         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
11096         (ggc_free): Remove incorrect freeing.
11097         (sweep_pages): Advance PP for large pages.  Fix indentation.
11098
11099 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
11100
11101         PR rtl-optimization/16643
11102         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
11103         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
11104         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
11105         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
11106         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
11107         * function.c (thread_prologue_and_epilogue_insns): Likewise.
11108         * rtl.h (tracer): Add a flags parameter.
11109         * tracer.c (tracer): Pass it to cfg_layout_initialise.
11110         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
11111         (rest_of_handle_reorder_blocks): Update calls to tracer and
11112         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
11113         (rest_of_handle_tracer): Pass 0 to tracer.
11114         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
11115
11116 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
11117
11118         PR target/16239
11119         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
11120         f->f.
11121
11122 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
11123
11124         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
11125         (BINFO_BASE_ACCESS): Adjust.
11126         (BINFO_BASE_ACCESS_APPEND): New.
11127         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
11128         * dbxout.c (dbxout_type): Adjust binfo access accessing.
11129         * dwarf2out.c (gen_member_die): Likewise.
11130         * tree-dump.c (deque_and_dump): Likewise.
11131
11132 2004-07-26  Falk Hueffner  <falk@debian.org>
11133
11134         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
11135         costs.
11136
11137 2004-07-25  Roger Sayle  <roger@eyesopen.com>
11138
11139         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
11140         value off of the stack if TARGET_USE_FFREEP.
11141
11142 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
11143
11144         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
11145         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
11146         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
11147         check on invocation of XRESIZEVEC ().
11148
11149 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
11150
11151         * c-common.c (disable_builtin_function): Rename variable n to
11152         new_disabled_builtin.
11153         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
11154         Rename local variable old to old_decl.
11155         * gensupport.c (shift_output_template): Rename parameter old to src.
11156         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
11157         old_rtx and newx to new_rtx.
11158
11159 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
11160
11161         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
11162         of c-pragma.h.
11163         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
11164         enum cpp_ttype.
11165         * c-lex.c: Likewise.
11166
11167 2004-07-25  Roger Sayle  <roger@eyesopen.com>
11168
11169         * fold-const.c (constant_boolean_node): Make extern.
11170         (make_range): Wrap long lines.
11171         (fold_cond_expr_with_comparison): Remove unnecessary call to
11172         pedantic_non_lvalue.  Add missing calls to fold_convert.
11173         (fold_truthop): Add missing calls to fold_convert.
11174         (fold): Likewise.
11175         * tree.h (constant_boolean_node): Add prototype here.
11176         * builtins.c (expand_builtin_strncmp): Add missing calls to
11177         fold_convert.
11178         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
11179         Call fold_convert and constant_boolean_node to correct types.
11180         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
11181         missing call to fold_convert to correct types.
11182
11183 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
11184             Brian Ryner  <bryner@brianryner.com>
11185
11186         PR c++/9283
11187         PR c++/15000
11188         * c-common.c (c_common_attribute_table): Allow
11189         handle_visibility_attribute to be called for types.
11190         (handle_visibility_attribute) When given a type, set the visibility
11191         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
11192         so that we can check later whether the attribute was present. Added
11193         warning if attribute applied to non class type.
11194         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
11195         decls and checking that they are consistent.
11196         * common.opt: Added -fvisibility.
11197         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
11198         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
11199         * flags.h, tree.h: Added assorted support defines for overall patch
11200         * opts.c: Added parsing support for -fvisibility.
11201         * tree.c (build_decl): Set visibility for all decls to be whatever
11202         is in force at that time.
11203         * varasm.c (default_binds_local_p_1): Reworked logic determining
11204         when to make a symbol locally bound.
11205         * doc/invoke.texi: Added documentation for -fvisibility and
11206         -fvisibility-inlines-hidden.
11207
11208 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11209
11210         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
11211         * c-common.c: Add missing casts from void * to other types.
11212         * c-decl.c: Likewise.
11213         * c-format.c: Likewise.
11214         * c-lex.c: Likewise.
11215         * c-pragma.c: Likewise.
11216         * c-typeck.c: Likewise.
11217         * defaults.h: Likewise.
11218         * genconstants.c: Likewise.
11219         * gengtype-lex.l: Likewise.
11220         * genmodes.c: Likewise.
11221         * read-rtl.c: Likewise.
11222         * rtl.c: Likewise.
11223
11224 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11225
11226         * bitmap.c: Use type-safe memory allocation macros from libiberty.
11227         * c-common.c: Likewise.
11228         * c-decl.c: Likewise.
11229         * c-lang.c: Likewise.
11230         * c-lex.c: Likewise.
11231         * c-opts.c: Likewise.
11232         * c-parse.in: Likewise.
11233         * c-typeck.c: Likewise.
11234         * genconditions.c: Likewise.
11235         * gengtype-lex.l: Likewise.
11236         * gengtype-yacc.y: Likewise.
11237         * gengtype.c: Likewise.
11238         * genmodes.c: Likewise.
11239         * gensupport.c: Likewise.
11240         * read-rtl.c: Likewise.
11241         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
11242         htab_find_slot().
11243
11244 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11245
11246         * c-decl.c (groktypename, groktypename_in_param_context): Rename
11247         variable typename to type_name.
11248         * c-lex.c (interpret_float): Likewise.
11249
11250 2004-07-25  Roger Sayle  <roger@eyesopen.com>
11251
11252         * convert.c (convert_to_real, convert_to_integer,
11253         convert_to_complex): Replace calls to build with calls to buildN.
11254         * coverage.c (tree_coverage_counter_ref): Likewise.
11255         * dojump.c (do_jump): Likewise.
11256         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
11257         * emit-rtl.c (component_ref_for_mem_expr,
11258         set_mem_attributes_minus_bitpos): Likewise.
11259         * explow.c (update_nonlocal_goto_save_area): Likewise.
11260         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
11261         expand_mult_add): Likewise.
11262         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
11263         store_constructor, get_inner_reference, expand_expr_real_1,
11264         try_casesi, try_tablejump): Likewise.
11265         * function.c (expand_function_start): Likewise.
11266         * stmt.c (emit_case_bit_tests, expand_end_case_type,
11267         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
11268         * stor-layout.c (place_union_field, layout_type): Likewise.
11269         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
11270         * varasm.c (copy_constant): Likewise.
11271
11272 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11273
11274         * c-common.c: Rename all identifiers named `new'.
11275         * c-decl.c: Likewise.
11276         * gensupport.c: Likewise.
11277         * simplify-rtx.c: Likewise.
11278         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
11279         with XNEW().
11280         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
11281         with XNEWVEC().
11282
11283 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
11284
11285         PR c/15360
11286         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
11287         declarations until after calling pushdecl.
11288         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
11289         "extern" and not on whether the declaration is initialized.
11290
11291 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
11292
11293         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
11294         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
11295         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
11296         "cpplib.h", "c-pragma.h", "c-common.h".
11297         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
11298         (solaris_register_pragmas): New functions.
11299         * config/sol2-protos.h: New file.
11300         * config/sol2.c: New file.
11301         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
11302         (REGISTER_TARGET_PRAGMAS): New macros.
11303         (solaris_pending_aligns, solaris_pending_inits)
11304         (solaris_pending_finis): New variables.
11305         * config/t-sol2 (sol2-c.o): Update dependencies.
11306         (sol2.o): New rule.
11307         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
11308         SUBTARGET_INSERT_ATTRIBUTES.
11309         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
11310         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
11311         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
11312         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
11313         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
11314         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
11315         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
11316         * config/sparc/sparc.c (sparc_attribute_table): New.
11317         (TARGET_INSERT_ATTRIBUTES): Define in terms of
11318         SUBTARGET_INSERT_ATTRIBUTES.
11319         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
11320         is defined.
11321         * doc/extend.texi (Solaris Pragmas): New section.
11322
11323 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11324
11325         * c-common.c: Rename all identifiers named `class' to `cl'.
11326         * c-common.h: Likewise.
11327         * c-parse.in: Likewise.
11328         * c-typeck.c: Likewise.
11329         * genmodes.c: Likewise.
11330         * real.c: Likewise.
11331         * real.h: Likewise.
11332         * recog.c: Likewise.
11333         * recog.h: Likewise.
11334         * regrename.c: Likewise.
11335         * tree.h: Likewise.
11336         * c-common.c (builtin_function_2): Change type of 5th parameter from
11337         int to enum built_in_function. Change type of 8th parameter from int
11338         to bool.
11339         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
11340         with GGC_CNEW().
11341         * c-typeck.c (convert_arguments): Change type of formal_prec from
11342         int to unsigned int.
11343         * genmodes.c (blank_mode): Make a few negative constants unsigned.
11344         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
11345         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
11346         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
11347         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
11348         iterator to for_all_modes () instead of an enum because enums can't
11349         be incremented in C++.
11350
11351
11352 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
11353
11354         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
11355         hard registers.
11356
11357 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11358
11359         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
11360         Handle ARRAY_RANGE_REF like ARRAY_REF.
11361
11362 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
11363
11364         * c-typeck.c (digest_init): Don't allow arrays of signed or
11365         unsigned variants of wchar_t to be initialized by wide string
11366         constants.  Do allow arrays of enumerated types compatible with
11367         wchar_t to be initialized by wide string constants.  Refine tests
11368         distinguishing wide and narrow strings and arrays.  Give specific
11369         error for arrays of other integer types initialized by string
11370         constants.
11371         (output_init_element, process_init_element): Check for
11372         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
11373         initializing with string constants.
11374
11375 2004-07-25  Richard Henderson  <rth@redhat.com>
11376
11377         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
11378         on the RESULT_DECL.
11379         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
11380         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
11381         DECL_IGNORED_P to new decl.
11382
11383 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
11384
11385         * config/ia64/ia64.c (general_xfmode_operand)
11386         (destination_xfmode_operand): Delete.
11387         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
11388         * config/ia64/ia64.md (*movxf_internal): Use general_operand
11389         and destination_operand.
11390
11391 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
11392
11393         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
11394         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
11395
11396 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
11397             Zack Weinberg  <zack@codesourcery.com
11398
11399         PR 16684
11400         * c-decl.c (diagnose_mismatched_decls): Don't issue a
11401         redundant-declaration warning the first time a builtin is
11402         declared explicitly.
11403
11404 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11405
11406         * tree.h (staticp): Change return type to bool.
11407
11408 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11409
11410         * c-common.c (c_staticp): Last episode of the staticp saga.
11411
11412 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11413
11414         * c-common.h (c_staticp): Change return type from int to bool.
11415         * tree.c (staticp): Likewise.
11416         * langhooks.h (staticp): Likewise.
11417
11418 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11419
11420         * langhooks-def.h (lhd_staticp): Change return type from int to
11421         bool in prototype to match definition.
11422
11423 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11424
11425         * system.h (bool, true, false): Don't redefine as preprocessor macros
11426         in C++.
11427
11428 2004-07-24  Roger Sayle  <roger@eyesopen.com>
11429
11430         * expmed.c (init_expmed): A signed modulus by a power of two is
11431         considered cheap if its less than or equal to four instructions.
11432
11433 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11434
11435         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
11436         GGC_CNEWVAR): New macros.
11437
11438 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
11439
11440         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
11441         lists.
11442         * c-decl.c: Likewise.
11443         * c-format.c: Likewise.
11444         * c-lex.c: Likewise.
11445         * c-opts.c: Likewise.
11446         * c-pragma.c: Likewise.
11447         * c-typeck.c: Likewise.
11448         * gencheck.c: Likewise.
11449         * genconditions.c: Likewise.
11450         * genconfig.c: Likewise.
11451         * genflags.c: Likewise.
11452         * gengtype.c: Likewise.
11453         * gensupport.c: Likewise.
11454         * ggc-none.c: Likewise.
11455         * langhooks.c: Likewise.
11456         * statistics.h: Likewise.
11457         * stub-objc.c: Likewise.
11458         * java/decl.c: Likewise.
11459
11460 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
11461
11462         * config/m68k/m68k.c (output_scc_di): Fix coding style.
11463         (symbolic_operand): Fix prototype.
11464         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
11465         * config/m68k/m68k.md: Add constants for registers a0 and sp and
11466         use them, change from the "{...}" syntax to the simpler {...}
11467         syntax.
11468         (*cfv4_extendqisi2): Fix destination predicate.
11469         * config/m68k/m68k-protos.h: Remove various declarations also
11470         generated via PREDICATE_CODES.
11471
11472 2004-07-23  Mike Stump  <mrs@apple.com>
11473
11474         * c-typeck.c (convert_for_assignment): Tightened up pointer
11475         converstions that differ in signedness.
11476
11477 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
11478
11479         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
11480
11481 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11482
11483         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
11484         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
11485
11486         * gimplify.c (gimplify_compound_lval): Check for no handled
11487         operations, rather than checking for explicit list of nodes.
11488         (is_gimple_addr_expr_arg_or_indirect): New function.
11489         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
11490         redundant setting of TREE_INVARIANT.
11491         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
11492         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
11493
11494 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
11495
11496         PR tree-optimization/16688
11497         PR tree-optimization/16689
11498         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
11499         unnecessary initialization of 'tag'.
11500         (get_tmt_for): Check that the new type tag has the same alias
11501         set as the pointed-to type.
11502         (group_aliases): Only regular variables need to be removed
11503         from the alias set of a name tag.
11504         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
11505         propagation if the two types are not compatible.
11506         (merge_alias_info): Rename from replace_ssa_names_ann.
11507         Add more checking.
11508         (replace_exp_1): If both arguments are SSA_NAMEs, check that
11509         the propagation can be done.
11510         Only call merge_alias_info on pointers.
11511         (propagate_value): Likewise.
11512         * tree-ssa-copyrename.c: Include langhooks.h.
11513         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
11514         to do the merging.
11515         Do not coalesce variables with incompatible types.
11516         (rename_ssa_copies): Call replace_ssa_name_symbol.
11517         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
11518         the same type as the underlying _DECL.
11519         * tree-ssanames.c (replace_ssa_name_symbol): New function.
11520         * tree.h (replace_ssa_name_symbol): Declare.
11521
11522 2004-07-23  Richard Henderson  <rth@redhat.com>
11523
11524         PR c++/16277
11525         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
11526         unshare it properly.
11527         (gimplify_modify_expr_rhs): Push assignment from a conditional into
11528         the conditional for all non-register types.
11529
11530 2004-07-23  Richard Henderson  <rth@redhat.com>
11531
11532         * expr.c (expand_expr_real_1): Don't handle non-local variables.
11533         * expr.h (fix_lexical_addr): Remove.
11534         * function.c (NEED_SEPARATE_AP): Remove.
11535         (fix_lexical_addr): Remove.
11536         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
11537         not null decl_function_context.
11538         (create_alias_vars): Likewise.
11539         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
11540         (simple_goto_p): Likewise.
11541         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
11542         * tree-ssa-ccp.c (get_default_value): Likewise.
11543         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
11544         * tree.c (needs_to_live_in_memory): Likewise.
11545         * tree-flow-inline.h (may_be_aliased): Move...
11546         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
11547         when TREE_STATIC variables may be addressable.
11548
11549 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
11550
11551         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
11552
11553 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
11554
11555         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
11556         bitmap contents if GENERATOR_FILE is defined.
11557         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
11558         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
11559
11560 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
11561
11562         * c-decl.c (start_function): Form composite type of function types
11563         rather than copying type from previous prototype declaration.
11564
11565 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
11566
11567         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
11568         the const qualifier for the second argument in the C++ functions.
11569
11570         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
11571         specific pointer types.
11572
11573         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
11574         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
11575         for vector bool and/or vector pixel, add C++ and C missing support.
11576         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
11577         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
11578         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
11579         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
11580         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
11581         missing C++ and C support for vector bool and/or vector pixel.
11582         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
11583         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
11584         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
11585         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
11586         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
11587         C++ and C types used for vector bool and/or vector pixel.
11588         (vec_st, vec_stl): Add C++ support for vector pixel.
11589         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
11590         (vec_all_ne): Add C++ support for vector pixel.
11591
11592         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
11593         (vec_vmulesb): Add missing C++ function.
11594         (vec_perm): Fix type of third argument in C++ function.
11595         (vec_vsum4shs): Fix C++ function name.
11596         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
11597         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
11598         argument passed to the error handler in C macro.
11599         (vec_nmsub): Remove extra parens around argument names in C macro.
11600         (vec_packpx): Add missing parens in C macro.
11601
11602 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
11603
11604         * machmode.def: Remove vector modes.
11605         * config/alpha/alpha-modes.def: Add supported vector modes.
11606         * config/arm/arm-modes.def: Likewise.
11607         * config/frv/frv-modes.def: Likewise.
11608         * config/i386/i386-modes.def: Likewise.
11609         * config/rs6000/rs6000-modes.def: Likewise.
11610         * config/sh/sh-modes.def: Likewise.
11611
11612 2004-07-23  Matthias Klose  <doko@debian.org>
11613
11614         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
11615         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
11616         * config.h: Regenerate.
11617         * configure: Likewise.
11618
11619 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
11620
11621         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
11622         generated SYMBOL_REFs for labels.
11623         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
11624         Change prototype.
11625         (machopic_stub_name): Remove.
11626         (machopic_indirection_name): New function.
11627         (machopic_mcount_stub_name): Likewise.
11628         (machopic_classify_name): Remove.
11629         (machopic_function_base_sym): New function.
11630         (machpoic_classify_symbol): Likewise.
11631         (machopic_classify_ident): Remove.
11632         (machopic_define_ident): Likewise.
11633         (machopic_define_name): Likewise.
11634         (machopic_name_defined_p): Likewise.
11635         (machopic_ident_defined_p): Likewise.
11636         (darwin_strip_name_encoding): Likewise.
11637         (machopic_define_symbol): New function.
11638         * config/darwin.c (hashtab.h): Include.
11639         (machopic_defined_list): Remove.
11640         (machopic_classify_ident): Likewise.
11641         (machopic_classify_name): Likewise.
11642         (machopic_ident_defined_p): Likewise.
11643         (machopic_define_ident): Likewise.
11644         (machopic_define_name): Likewise.
11645         (machopic_symbol_defined_p): New function.
11646         (machopic_classify_symbol): Likewise.
11647         (machopic_data_defined_p): Use machopic_classify_symbol.
11648         (machopic_define_symbol): New function.
11649         (machopic_function_base_sym): New function.
11650         (machopic_non_lazy_pointers): Remove.
11651         (machopic_non_lazy_ptr_name): Likewise.
11652         (machopic_stubs): Likewise.
11653         (machopic_stub_name): Likewise.
11654         (NON_LAZY_POINTER_SUFFIX): New macro.
11655         (STUB_SUFFIX): Likewise.
11656         (machopic_indirection): New structure.
11657         (machopic_indirections): New variable.
11658         (machopic_indirection_hash): New function.
11659         (machopic_indirection_eq): Likewise.
11660         (machopic_indirection_name): Likewise.
11661         (machopic_mcount_stub_name): New function.
11662         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
11663         hash table.
11664         (machopic_indirect_data_reference): Rework to use new functions.
11665         (machopic_indirect_call_target): Likewise.
11666         (machopic_legitimize_pic_address): Likewise.
11667         (machopic_output_indirection): New function.
11668         (machopic_finish): Use it.
11669         (machopic_operand_p): Rework to use new functions.
11670         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
11671         (darwin_strip_name_encoding): Remove.
11672         (update_non_lazy_ptrs): Remove.
11673         (update_stubs): Likewise.
11674         (darwin_non_lazy_pcrel): Use new functions.
11675         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
11676         (ASM_OUTPUT_LABELREF): Likewise.
11677         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11678         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
11679         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
11680         (TARGET_STRIP_NAME_ENCODING): Do not use
11681         darwin_strip_name_encoding.
11682         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
11683         darwin_strip_name_encoding.
11684         * config/i386/darwin.h (FUNCTION_PROFILER): Use
11685         machopic_mcount_stub_name.
11686         * config/i386/i386.c (x86_output_mi_thunk): Use
11687         machopic_indirection_name, not machopic_stub_name.
11688         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
11689         machopic_function_base_sym.
11690         (print_operand): Use machopic_classify_symbol.
11691         (rs6000_emit_prologue): Use machopic_function_base_sym.
11692         (output_profile_hook): Do not use machopic_stub_name.
11693         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
11694
11695 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11696
11697         PR c/7284
11698         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
11699         as multiplication.
11700
11701 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11702
11703         * doc/implement-c.texi: New file.
11704         * doc/extend.texi (C Implementation): Move to there.
11705         * doc/gcc.texi: Include implement-c.texi.
11706         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
11707
11708 2004-07-22  Jason Merrill  <jason@redhat.com>
11709
11710         * integrate.c (copy_decl_for_inlining): Remove invisible reference
11711         handling.
11712         * tree-inline.c (setup_one_parameter): Likewise.
11713
11714 2004-07-22  Brian Booth  <bbooth@redhat.com>
11715
11716         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
11717         (substitute_and_fold): Propigate into VUSE operands when possible.
11718         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
11719         (cp_lattice_meet): Handle merging of latticevalues when
11720         UNKNOWN_VAL is present.
11721         (visit_stmt): Visit assignments with V_MUST_DEFs.
11722         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
11723         (ccp_fold): Deal with RHS' that are constant and virtual.
11724         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
11725         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
11726         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
11727         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
11728         computing immediate uses.
11729         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
11730         transition.
11731         (replace_vuse_in): New function.
11732         (likely_value): Add check of vuse operands.
11733         (get_default_value): Set the default value of virtually defined
11734         variables to UKNOWN_VAL instead of VARYING.
11735
11736 2004-07-22  Richard Henderson  <rth@redhat.com>
11737
11738         * expr.c (emit_push_insn): Don't use set_mem_attributes.
11739
11740 2004-07-22  Richard Henderson  <rth@redhat.com>
11741
11742         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
11743         variables due to conditional compilation.
11744
11745 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
11746
11747         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
11748         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
11749         Release SSA names that have been re-renamed.
11750         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
11751         variable.
11752         * tree-ssa-alias.c (init_alias_info): If aliases have been
11753         computed before, clear existing alias information.
11754         (create_name_tags): Do no fixup PT_ANYTHING pointers.
11755         If the new name tag for a pointer is different than the one it
11756         had before, mark the old tag for renaming.
11757         (replace_may_alias): New function.
11758         (group_aliases): Call it.
11759         (setup_pointers_and_addressables): Always call get_tmt_for.
11760         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
11761         once.
11762         (set_pt_anything): New local function.
11763         (set_pt_malloc): New local function.
11764         (merge_pointed_to_info): Don't merge pointed-to variables from
11765         the original pointer if the destination is pointing to an
11766         unknown location.
11767         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
11768         (add_pointed_to_var): Do not add a variable to the points-to
11769         set if the pointer is already pointing to anywhere.
11770         (collect_points_to_info_r): If the defining statement is a PHI
11771         node, only merge pointed-to information if the argument has
11772         already been visited.
11773         (get_tmt_for): Only create a new tag if the pointer didn't
11774         have one already.
11775         (dump_alias_info): Emit more information.
11776         (dump_points_to_info_for): Likewise.
11777         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
11778         try to get the annotation of an SSA_NAME.
11779         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
11780         alias sets when checking is enabled.
11781         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
11782         (eliminate): Mark basic blocks that will need
11783         EH information cleaned up.
11784         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
11785         predecessor.
11786         Initialize need_eh_cleanup.
11787         (fini_pre): Call tree_purge_all_dead_eh_edges and
11788         cleanup_tree_cfg if needed.
11789         Free need_eh_cleanup.
11790         * tree-ssa.c (verify_ssa_name): New function.
11791         (verify_def): Call it.
11792         Re-arrange to avoid printing too many error messages.
11793         (verify_use): Likewise.
11794         (verify_phi_args): Likewise.
11795         (verify_flow_insensitive_alias_info): New function.
11796         (verify_flow_sensitive_alias_info): New function.
11797         (verify_alias_info): New function.
11798         (verify_ssa): Call verify_alias_info.
11799         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
11800         program.
11801         Re-arrange to avoid printing too many error messages.
11802         * tree-ssanames.c (make_ssa_name): Clear
11803         SSA_NAME_IN_FREE_LIST.
11804         (release_ssa_name): Never release a default definition.
11805         (release_defs): New function.
11806         * tree.h: Declare it.
11807         * tree-ssa-dce.c (remove_dead_stmt): Call it.
11808
11809 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
11810
11811         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
11812         If true, do a depth-first search.  Do a breadht-first search,
11813         otherwise.
11814         (walk_use_def_chains): Add new argument IS_DFS.
11815         Update all users.
11816         * tree-flow.h (walk_use_def_chains): Update prototype.
11817
11818 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
11819
11820         * config/cris/cris.md: Tweak formatting.
11821         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
11822         (mover2side, moverside, movemside, movei, op3, andu): Replace
11823         live define_peephole:s with define_peephole2 near-equivalents.
11824         Delete the rest.
11825         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
11826         word-size modes.
11827         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
11828         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
11829         "*mov_sidesi_mem" respectively.
11830
11831 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
11832
11833         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
11834         (gimplify_build1): Move from tree-complex.c do_unop.
11835         (gimplify_build2): Move from tree-complex.c do_binop.
11836         (gimplify_build3): New.
11837         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
11838         Adjust throughout to call the functions above.
11839         * tree-flow.h: Declare the functions above.
11840         * tree-nested.c (gimplify_val): Rename to...
11841         (tsi_gimplify_val): ... this.
11842
11843         * Makefile.in (tree_complex.o): Update dependencies.
11844         (stor-layout.o): Depend on regs.h.
11845         * c-common.c (handle_vector_size_attribute): Update for
11846         vector types without corresponding vector modes.
11847         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
11848         a corresponding vector mode is not available.
11849         * print-tree.c (print_node): Print nunits for vector types
11850         * regclass.c (have_regs_of_mode): New.
11851         (init_reg_sets_1): Initialize it and use it instead
11852         of allocatable_regs_of_mode.
11853         * regs.h (have_regs_of_mode): Declare it.
11854         * stor-layout.c (layout_type): Pick a mode for vector types.
11855         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
11856         build_replicated_const, do_unop, do_binop, do_plus_minus,
11857         do_negate, expand_vector_piecewise, expand_vector_parallel,
11858         expand_vector_addition, expand_vector_operations_1,
11859         expand_vector_operations, tree_lower_operations,
11860         pass_lower_vector_ssa, pass_pre_expand): New.
11861         (expand_complex_operations, pass_lower_complex): Remove.
11862         * tree-optimize.c (init_tree_optimization_passes): Adjust
11863         pass ordering for changes in tree-complex.c.
11864         * tree-pass.h: Declare new passes.
11865         * tree.c (finish_vector_type): Remove.
11866         (make_vector_type): New.
11867         (build_vector_type_for_mode, build_vector_type): Rewritten.
11868         * tree.def (VECTOR_TYPE): Document where the number of
11869         subparts is stored.
11870         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
11871         (make_vector): Remove declaration.
11872
11873 2004-07-21  Richard Henderson  <rth@redhat.com>
11874
11875         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
11876         TREE_THIS_VOLATILE, may_aliases, or optimization level.
11877         (remove_useless_vars): Dump debugging info.
11878         (expand_used_vars): Move ...
11879         * cfgexpand.c (expand_used_vars): ... here.  Make static.
11880         * tree-flow-inline.h (set_is_used): New.
11881         (set_default_def): Use get_var_ann.
11882         * tree-flow.h: Update decls.
11883         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
11884         (create_ssa_var_map): Use it.
11885         * tree-ssa.c (set_is_used): Remove.
11886
11887 2004-07-22  Ben Elliston  <bje@au.ibm.com>
11888
11889         * gdbinit.in: Set a breakpoint on internal_error.
11890
11891 2004-07-21  Richard Henderson  <rth@redhat.com>
11892
11893         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
11894         to create a new basic block.
11895
11896 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11897
11898         PR c/15052
11899         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
11900         return type on function definitions.  Move other warnings for
11901         qualified return type to -Wreturn-type.  Do not condition any such
11902         warnings on -pedantic.  Update comments.
11903         (start_function): Only copy function type from previous prototype
11904         declaration if return types are compatible.
11905         * c-typeck.c (function_types_compatible_p): Don't condition
11906         warning for incompatibility of volatile qualifiers on the return
11907         type on -pedantic.  Update comment.
11908         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
11909
11910 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11911
11912         * c-typeck.c (set_init_index): Require designator to be of integer
11913         type.
11914
11915 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11916
11917         PR c/11250
11918         * c-parse.in (init): Change to exprtype.
11919         (primary): Set original_code for STRING to STRING_CST.
11920         Call maybe_warn_string_init for compound literals.
11921         (initdcl, notype_initdcl): Call maybe_warn_string_init.
11922         (initval): Update.
11923         * c-tree.h (maybe_warn_string_init): New.
11924         (pop_init_level, process_init_element): Use struct c_expr.
11925         (struct c_expr): Update comment.
11926         * c-typeck.c (maybe_warn_string_init): New function.
11927         (digest_init): Call it.  Additional parameter strict_string.  All
11928         callers changed.
11929         (output_init_element): Likewise.
11930         (struct constructor_stack): Use struct c_expr for
11931         replacement_value.
11932         (really_start_incremental_init, push_init_level): Update.
11933         (pop_init_level): Update.  Return struct c_expr.
11934         (process_init_level): Update.  Take struct c_expr argument.
11935
11936 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
11937
11938         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
11939         commit.
11940
11941 2004-07-21  Eric Christopher  <echristo@redhat.com>
11942
11943         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
11944         removal.
11945         * c-decl.c (pop_scope): Ditto.
11946         * calls.c (expand_call): Remove call to current_nesting_level,
11947         update comment accordingly. Remove calls to expand_start_target_temps
11948         and expand_end_target_temps.
11949         * cfgexpand.c (construct_init_block): Remove call to
11950         expand_start_bindings_and_block.
11951         (construct_exit_block): Remove call to expand_end_bindings.
11952         * expr.c (safe_from_p): Remove BIND_EXPR handling.
11953         (expand_expr_real_1): Ditto. Fix formatting.
11954         (expand_vars): Delete.
11955         * stmt.c (POPSTACK): Remove block_stack.
11956         (stmt_status): Remove x_block_stack.
11957         (block_stack): Delete.
11958         (expand_start_bindings_and_block): Ditto.
11959         (expand_start_target_temps): Ditto.
11960         (expand_end_target_temps): Ditto.
11961         (current_nesting_level): Ditto.
11962         (warn_about_unused_variables): Ditto.
11963         (expand_end_bindings): Ditto.
11964         * tree.h: Remove declarations for above.
11965
11966 2004-07-21  Steven Bosscher  <stevenb@suse.de>
11967
11968         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
11969         * rtl.c (note_insn_name): Likewise.
11970         * print-rtl.c (print_rtx): Don't print it.
11971         * cfgrtl.h (can_delete_note_p): Don't handle it.
11972         (rtl_delete_block): Likewise.
11973         * passes.c (rest_of_handle_guess_branch_prob): Remove.
11974         (rest_of_compilation): Don't call it.
11975         * predict.c (process_note_predictions, process_note_prediction,
11976         note_prediction_to_br_prob): Remove.
11977         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
11978         * stmt.c (return_prediction): Remove.
11979         (expand_value_return): Don't call it.  Don't add prediction
11980         notes for return statements.
11981
11982 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
11983
11984         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
11985         once.
11986
11987 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
11988
11989         * c-common.c (vector_types_convertible_p): Use vector types'
11990         TYPE_SIZE and TREE_TYPE instead of their mode.
11991         * convert.c (convert_to_integer): Likewise.
11992         (convert_to_vector): Likewise.
11993         * fold-const.c (fold_convert): Likewise.
11994         * varasm.c (output_constant): Likewise.
11995         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
11996         Allow a VECTOR_TYPE initializer to be made of several vectors.
11997         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
11998         of cleared and need_to_clear, and use fold_convert.
11999         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
12000         integer vectors.
12001
12002 2004-07-20  Richard Henderson  <rth@redhat.com>
12003
12004         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
12005         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
12006
12007 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
12008
12009         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
12010         enormous cost if not TARGET_HARD_MUL.
12011
12012 2004-07-20  Andrew Pinski  <apinski@apple.com>
12013
12014         PR target/16557
12015         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
12016         (ASM_SPEC): here.
12017
12018 2004-07-21  Paul brook  <paul@codesourcery.com>
12019
12020         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
12021
12022 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12023
12024         * fold-const.c (operand_equal_p): Temporarily support NULL args.
12025         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
12026         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
12027
12028 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
12029
12030         * rtl.h (plus_constant): Delete.
12031         (plus_constant_wide): Rename to plus_constant.
12032         (plus_constant_for_output_wide): Delete vestigial prototype.
12033         (GEN_INT): Remove unnecessary cast.
12034         * tree.h (build_int_2, size_int_type): Delete.
12035         (build_int_2_wide): Rename to build_int_2.
12036         (size_int_wide): Rename to size_int_kind.
12037         (size_int_type_wide): Rename to size_int_type.
12038         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
12039         Remove unnecessary cast.
12040         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
12041         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
12042         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
12043         (size_int_type_wide): Rename size_int_type.
12044         (int_const_binop): Use size_int_type.
12045         * c-lex.c (interpret_integer): Use build_int_2.
12046         * final.c (split_double): Remove unnecessary casts.
12047         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
12048
12049 2004-07-20  Richard Henderson  <rth@redhat.com>
12050
12051         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
12052         (gimplify_compound_lval): Use is_gimple_tmp_reg.
12053         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
12054         (is_gimple_tmp_reg): New.
12055         * tree-gimple.h (is_gimple_tmp_reg): Declare.
12056
12057 2004-07-20  Richard Henderson  <rth@redhat.com>
12058
12059         * tree-pretty-print.c (dump_generic_node): Dump
12060         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
12061
12062 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
12063
12064         * tree-mudflap.c (mf_set_options_fndecl): New tree.
12065         (mudflap_init): Set it.
12066         (mudflap_register_call): Remove __mf_init call.
12067         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
12068         to pass "-ignore-reads" option to libmudflap if needed.
12069
12070 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
12071
12072         PR c++/14607
12073         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
12074         (MAKE_DECL_ONE_ONLY): Undefine.
12075         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
12076         readonly_data, one_only_data_section, forget_section): New prototypes.
12077         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
12078         functions.
12079         (pa_select_section): Add one-only (COMDAT) support.
12080         * pa.h (struct machine_function): Define.
12081         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
12082         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
12083         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
12084         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
12085         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
12086         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
12087         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
12088         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
12089         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
12090         for EXTRA_SECTION_FUNCTIONS.
12091         * doc/install.texi: Update binutils requirements.
12092
12093 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
12094
12095         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
12096         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
12097         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
12098         size_t.
12099         (struct VEC): Use unsigned for num and alloc.
12100         * vec.c (struct vec_prefix): Likewise.
12101         (vec_o_reserve): Adjust.
12102
12103         * dbxout.c (dbxout_type): Fix printf format.
12104
12105         * tree.h (binfo_member): Remove.
12106         * tree.c (binfo_member): Remove.
12107
12108 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
12109
12110         * tree.h: Include vec.h
12111         (DEF_VEC_P(tree)): New type.
12112         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
12113         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
12114         (BINFO_LANG_SLOT): Remove.
12115         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
12116         (struct tree_binfo): Turn base_binfos into a trailing
12117         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
12118         (binfo_lang_slots): Remove.
12119         * tree.c (binfo_lang_slots): Remove.
12120         (make_tree_binfo_stat): Take a base binfo count, not a
12121         lang slot count.  Adjust.
12122         * Makefile.in (TREE_H): Add vec.h
12123         * alias.c (record_component_aliases): Adjust BINFO access.
12124         * dbxout.c (dbxout_type): Likewise.
12125         * dwarf2out.c (gen_member_die): Likewise.
12126         * sdbout.c (sdbout_one_type): Likewise.
12127         * tree-dump.c (deque_and_dump): Likewise.
12128         * config/i386/i386.c (classify_argument,
12129         contains_128bit_aligned_vector_p): Likewise.
12130         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
12131         * doc/c-tree.texi (Classes): Update BINFO documentation.
12132
12133 2004-07-20  Steven Bosscher  <stevenb@suse.de>
12134
12135         * c-common.h (check_case_value): Remove prototype.
12136         (c_add_case_label): Adjust prototype.
12137         * c-common.c (check_case_value): Make static.
12138         (check_case_bounds): New function.
12139         (c_add_case_label): Use it.  Take new argument orig_type.
12140         * c-typeck.c (struct c_switch): New orig_type field.
12141         (c_start_case): Set it.
12142         (do_case): Pass it to c_add_case_label.
12143         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
12144         cases from here.  Add the labels in reverse order.
12145         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
12146         (add_case_node): Return nothing, don't check for duplicate cases.
12147         Insert new case nodes in a list, not in an AVL tree.
12148         (expand_end_case_type): Don't turn a case tree into a case list.
12149         (case_tree2list): Remove.
12150         * tree.h (add_case_node): Adjust prototype.
12151
12152 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
12153
12154         * genattr.c (struct range, struct function_unit,
12155         write_units, extend_range, init_range): Remove them.
12156         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
12157         Output "#define INSN_SCHEDULING" here.
12158         * genattrtab.c (struct range, struct function_unit_op,
12159         struct function_unit, struct dimension, enum operator,
12160         operate_exp, expand_units, simplify_knowing,
12161         encode_units_mask, simplify_by_exploding,
12162         find_and_mark_used_attributes, unmark_used_attributes,
12163         add_values_to_cover, increment_current_value,
12164         test_for_current_value, simplify_with_current_value,
12165         simplify_with_current_value_aux, gen_unit,
12166         write_unit_name, write_function_unit_info,
12167         write_complex_function, write_toplevel_expr,
12168         find_single_value, extend_range): Remove.
12169         (write_attr_get): Do not handle common_av->value
12170         being an FFS.
12171         (struct attr_desc): Remove func_units_p and blockage_p.
12172         (write_attr_valueq): Do not handle them.
12173         (find_attr): Do not clear them.
12174         (make_internal_attr): Do not initialize them.
12175         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
12176         * sched-vis.c (init_target_units, insn_print_units,
12177         init_block_visualization, print_block_visualization,
12178         visualize_scheduled_insns, visualize_no_unit,
12179         visualize_stall_cycles, visualize_alloc,
12180         visualize_free, target_units, get_visual_tbl_length,
12181         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
12182         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
12183         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
12184         * haifa-sched.c (blockage_range, clear_units,
12185         schedule_unit, actual_hazard, potential_hazard,
12186         insn_unit, unit_last_insn, unit_tick,
12187         actual_hazard_this_instance, potential_hazard,
12188         schedule_unit, max_insn_queue_index_value): Remove.
12189         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
12190         max_insn_queue_index.
12191         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
12192         * doc/md.texi (Processor pipeline description): Remove
12193         references to old pipeline descriptions.
12194         (Automaton pipeline description): Merge with the above.
12195         (Old pipeline description, Comparison of the two descriptions):
12196         Remove.
12197
12198         * bt-load.c (migrate_btr_def): Remove references to
12199         use_pipeline_interface.
12200         * haifa-sched.c (insn_cost, schedule_insn,
12201         schedule_block, advance_one_cycle, sched_init,
12202         queue_to_ready, sched_finish): Likewise.
12203         * modulo-sched.c (sms_schedule, advance_one_cycle,
12204         ps_has_conflicts): Likewise.
12205         * sched-rgn.c (init_ready): Likewise.
12206         (debug_dependencies): Likewise, and remove an "if (1)".
12207         * target.h (use_dfa_pipeline_interface): Remove.
12208         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12209         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12210         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12211         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12212         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12213         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12214         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12215         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12216         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12217         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12218         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12219         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12220         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12221         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12222         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12223         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12224         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12225         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12226         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
12227
12228 2004-07-19  Roger Sayle  <roger@eyesopen.com>
12229
12230         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
12231
12232 2004-07-19  Jeff Law  <law@redhat.com>
12233
12234         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
12235         (get_eq_expr_value): Use it.  Simplify slightly.
12236
12237 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
12238
12239         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
12240         (umulsidi3_32bit_r4000): Likewise.
12241
12242 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
12243
12244         * vec.h: Propagate location information properly.
12245         (VEC_T_iterate): Add result pointer parameter.
12246         (VEC_T_space): New.
12247         (VEC_T_reserve): Use it.
12248
12249 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
12250
12251         * Makefile.in (c-format.o): Depend on c-format.h.
12252         * c-format.h: New file.
12253         (struct format_char_info): Add CHAIN member.
12254         * c-format.c: Move some types and constants to c-format.h.
12255         (format_type_error): Set to -1.
12256         (struct function_format_info): Use an int for format_type.
12257         (decode_format_type): Return an int.  Return format_type_error
12258         on error.
12259         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
12260         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
12261         (scan_char_table, time_char_table, monetary_char_table): Initialize
12262         CHAIN to NULL.
12263         (n_format_types): New variable.
12264         (check_format_info_main): Handle CHAIN in format_char_info.
12265         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
12266         TARGET_N_FORMAT_TYPES.
12267         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
12268         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
12269         * config/sol2-c.c: New file.
12270         * config/t-sol2: New file.
12271         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
12272         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
12273         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
12274
12275         * doc/extend.texi (Target Format Checks): New section.
12276         (Function Attributes): Mention it.
12277         * doc/invoke.texi: Mention target format checks.
12278         * doc/sourcebuild.texi: Mention target format checks.
12279         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
12280         TARGET_FORMAT_TYPES.
12281
12282 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
12283
12284         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
12285         added.
12286         * config/s390/s390.c (regclass_map initializer): Register 35 added to
12287         ADDR_REGS.
12288         (load_multiple_operation, store_multiple_operation): Removed
12289         pointless sanity check.
12290         (s390_decompose_address): Added check for return_address_pointer_rtx.
12291         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
12292         (s390_return_address_offset): New function.
12293         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
12294         (FRAME_REGNO_P): Added check for register 35.
12295         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
12296         REG_ALLOC_ORDER): Appended entry for register 35.
12297         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
12298         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
12299         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
12300         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
12301         is eliminable using stack pointer or hard frame pointer.
12302         (REGISTER_NAMES): Added name for register 35.
12303         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
12304         pointless sanity check.
12305
12306 2004-07-19  Roger Sayle  <roger@eyesopen.com>
12307
12308         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
12309         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
12310         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
12311         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
12312         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
12313         (fold_relational_const): Tidy up handling of floating point
12314         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
12315         transformation; fold_relational_const assumes constant operands.
12316
12317 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
12318
12319         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
12320         directory.
12321
12322 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
12323
12324         * c-tree.h (struct c_expr): Define.
12325         (C_SET_EXP_ORIGINAL_CODE): Remove.
12326         (parser_build_binary_op, build_compound_expr): Update prototypes.
12327         * c-parse.in (%union): Add exprtype.
12328         (FUNC_NAME): Mark as ttype.
12329         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
12330         exprtype.
12331         (expr): Update.  Define directly in terms of expr_no_commas
12332         instead of using nonnull_exprlist.
12333         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
12334         offsetof_member_designator, typespec_nonreserved_nonattr, init,
12335         initval, designator, component_declarator,
12336         component_notype_declarator, enumerator, array_declarator,
12337         condition, exexpr, switch_statement, stmt_nocomp, stmt,
12338         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
12339         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
12340         where appropriate.
12341         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
12342         * c-common.c (c_common_truthvalue_conversion): Don't check
12343         C_EXP_ORIGINAL_CODE.
12344         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
12345         Don't use C_EXP_ORIGINAL_CODE.
12346         (default_conversion, default_function_array_conversion): Don't use
12347         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
12348         (internal_build_compound_expr): Merge into build_compound_expr.
12349         (build_compound_expr): Take two operands instead of a TREE_LIST.
12350         * objc/objc-act.c (get_super_receiver): Update calls to
12351         build_compound_expr.
12352
12353 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
12354
12355         * config/sh/sh.c (sh_use_dfa_interface): Remove.
12356         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
12357         hook_int_void_1.
12358         * config/sh/sh.md: Extract pipeline descriptions
12359         into separate files.
12360         * config/sh/sh1.md: New file, extracted from sh.md.
12361         * config/sh/sh4.md: New file, extracted from sh.md.
12362         * config/sh/shmedia.md: New file, extracted from sh.md
12363         and rewritten using new-style pipeline description.
12364
12365 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
12366
12367         * config/pa/pa.md: Delete the two remaining define_peephole
12368         patterns.
12369
12370 2004-07-18  Steven Bosscher  <stevenb@suse.de>
12371             Joseph S. Myers  <jsm@polyomino.org.uk>
12372
12373         * c-common.c (c_common_truthvalue_conversion): Don't warn if
12374         TREE_NO_WARNING is set.
12375
12376 2004-07-18  Roger Sayle  <roger@eyesopen.com>
12377
12378         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
12379         simplify_builtin_strncmp): Delete.
12380         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
12381         Change argument to accept an arglist instead of an "exp".  Assume
12382         that the return type is always integer_type_node.  Copy missing
12383         transformations from their now obsolete simplify_builtin_*
12384         equivalents.
12385         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
12386         fold_builtin_strcmp and fold_builtin_strncmp.
12387         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
12388         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
12389         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
12390
12391 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
12392
12393         * Makefile.in (tree-alias-common.o): Update dependencies.
12394
12395 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
12396
12397         * cfgloop.c (flow_loop_nested_p): Fix comment.
12398
12399 2004-07-17  Jason Merrill  <jason@redhat.com>
12400
12401         PR c++/16115
12402         * stor-layout.c (relayout_decl): New fn.
12403         * tree.h: Declare it.
12404         (DECL_BY_REFERENCE): New macro.
12405
12406 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
12407
12408         * libgcc2.c (__enable_execute_stack): New symbol.
12409         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
12410         and declare __enable_execute_stack.
12411         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
12412         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
12413         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
12414         ENABLE_EXECUTE_STACK.
12415         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
12416         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
12417         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
12418         ENABLE_EXECUTE_STACK.
12419         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
12420         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
12421         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
12422         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
12423         ENABLE_EXECUTE_STACK.
12424         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
12425         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
12426         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
12427         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
12428         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
12429         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
12430         (sparc64_initialize_trampoline): Likewise.
12431         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
12432
12433 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
12434
12435         * langhooks.h (builtin_function): New langhook.
12436         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
12437         (LANG_HOOKS_INITIALIZER): Update.
12438         * tree.h (builtin_function): Remove.
12439         * doc/tm.texi: Update.
12440         * c-tree.h (builtin_function): Declare.
12441         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
12442         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
12443         config/ia64/ia64.c, config/iq2000/iq2000.c,
12444         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
12445         config/stormy16/stormy16.c: All callers of builtin_function
12446         changed.
12447
12448 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
12449
12450         PR target/16556
12451         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
12452         Remove white space after the backslash.
12453
12454 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12455
12456         PR rtl-optimization/16294
12457         * resource.c (return_insn_p): New predicate.
12458         (mark_target_live_regs): Use it.  Special-case return insns.
12459         (init_resource_info): Use it.  Don't scan the epilogue past
12460         a return.
12461
12462 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12463
12464         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
12465         destroy dominance information.
12466         * passes.c (rest_of_handle_loop2):  Free dominance information.
12467         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
12468         jump threading.
12469         (thread_jumps): Update dominance information and remove unreachable
12470         blocks.
12471         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
12472         information and remove the unreachable block.
12473
12474 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
12475
12476         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
12477
12478 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
12479
12480         * doc/sourcebuild.texi: Remove libf2c entry.
12481
12482 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
12483
12484         * config/i386/i386.md (movv16qi_internal): Fix typo.
12485
12486 2004-07-17  Steven Bosscher  <stevenb@suse.de>
12487
12488         * final.c (final_scan_insn): Fix broken commit from previous
12489         patch.
12490
12491 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
12492
12493         * c-typeck.c (parser_build_binary_op): Condition warnings for
12494         X<=Y<=Z on -Wparentheses instead of -Wextra.
12495         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
12496         supported for C only.
12497
12498 2004-07-17  Steven Bosscher  <stevenb@suse.de>
12499
12500         * cfgcleanup.c (try_simplify_condjump): Don't remove line
12501         notes to avoid unreachable code warnings.
12502         * toplev.c (backend_init): Don't emit line notes for
12503         unreachable code warnings.
12504
12505         * combine.c (distribute_notes): Don't distribute a
12506         REG_VTABLE_REF note.
12507         * final.c (final_scan_insn): Don't handle it.
12508         * rtl.c (reg_note_name): Remove it.
12509         * rtl.h (enum reg_node): Dito.
12510
12511         * emit-rtl.c (force_line_numbers, restore_line_number_status):
12512         Remove.
12513         * rtl.h (force_line_numbers, restore_line_number_status):
12514         Remove prototypes.
12515
12516         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
12517         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
12518         (using_eh_for_cleanups): Also moved here.
12519
12520         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
12521         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
12522         to expand_start_case and add_case_node.
12523         * stmt.c (struct nesting): Cleanup unused fields condition_code,
12524         last_unconditional_cleanup, nominal_type, printname, and
12525         line_number_status.
12526         (struct fixup_goto): Remove.
12527         (struct stmt_status): Remove x_goto_fixup_chain field.
12528         (goto_fixup_chain): Remove.
12529         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
12530         pushcase, pushcase_range): Remove.
12531         (expand_start_bindings_and_block): Don't set unused fields in
12532         the nesting stack.
12533         (expand_start_case, add_case_node): Cleanup unused formal arguments.
12534         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
12535         instead of emit_jump_if_reachable.
12536         (emit_case_nodes): Likewise.
12537         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
12538         static.
12539         (update_eh_label): Work around left-over exception handing regions.
12540         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
12541         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
12542         (pass_cleanup_cfg_post_optimizing): New pass.
12543         (init_tree_optimization_passes): Run the new pass after all
12544         optimizations.
12545         * tree.h (pushcase, pushcase_range): Remove prototypes.
12546         (expand_start_case, add_case_node): Update prototypes.
12547
12548 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
12549
12550         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
12551
12552 2004-07-16  Richard Henderson  <rth@redhat.com>
12553
12554         * builtins.c (std_expand_builtin_va_arg): Remove.
12555         (expand_builtin_va_arg): Remove.
12556         * expr.h: Don't declare them.
12557         * gimplify.c (mark_decls_volatile_r): Remove.
12558         (copy_if_shared_r): Don't call it.
12559         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
12560         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
12561         * gimple-low.c (lower_stmt): Likewise.
12562         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
12563         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
12564         * tree-ssa-operands.c (get_expr_operands): Likewise.
12565         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
12566         EXPAND_BUILTIN_VA_ARG.
12567         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
12568         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
12569         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
12570         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
12571
12572 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
12573
12574         * tree-ssa-pre.c (insert_aux): Break out if we hit
12575         a critical edge.
12576
12577 2004-07-16  Richard Henderson  <rth@redhat.com>
12578
12579         * basic-block.h (remove_fake_exit_edges): Declare.
12580         * cfganal.c (remove_fake_predecessors): Rename from
12581         remove_fake_successors; iterate over predecessors.
12582         (remove_fake_exit_edges): New.
12583         * cfgcleanup.c (try_optimize_cfg): Use it.
12584         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
12585         * predict.c (estimate_probability): Likewise.
12586         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
12587         * tree-cfg.c (make_edges): Likewise.
12588         * tree-ssa-pre.c (fini_pre): Likewise.
12589         * profile.c (instrument_edges): Don't remove_fake_edges.
12590         (branch_prob): Do it earlier here.
12591
12592 2004-07-16  Richard Henderson  <rth@redhat.com>
12593
12594         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
12595         switchification wrt CONSTRUCTOR.  Document the reason.
12596
12597 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
12598
12599         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
12600         that prevented descriptive __mf_check source location strings.
12601
12602 2004-07-16  Richard Henderson  <rth@redhat.com>
12603
12604         * tree-def (WITH_SIZE_EXPR): New.
12605         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
12606         * expr.c (expand_expr_real_1): Likewise.
12607         * gimplify.c (maybe_with_size_expr): New.
12608         (gimplify_arg, gimplify_modify_expr): Use it.
12609         (gimplify_modify_expr_to_memcpy): Take size parameter.
12610         (gimplify_modify_expr_to_memset): Likewise.
12611         (gimplify_expr): Handle WITH_SIZE_EXPR.
12612         * tree-alias-common.c (find_func_aliases): Likewise.
12613         * tree-eh.c (tree_could_trap_p): Likewise.
12614         (tree_could_throw_p): Likewise.
12615         * tree-gimple.c (is_gimple_lvalue): Likewise.
12616         (get_call_expr_in): Likewise.
12617         * tree-inline.c (estimate_num_insns_1): Likewise.
12618         (expand_calls_inline): Likewise.
12619         * tree-nested.c (convert_call_expr): Likewise.
12620         * tree-pretty-print.c (dump_generic_node): Likewise.
12621         * tree-sra.c (sra_walk_expr): Likewise.
12622         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
12623         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
12624         * tree-ssa-operands.c (get_expr_operands): Likewise.
12625         * tree-tailcall.c (find_tail_calls): Likewise.
12626
12627         * calls.c (expand_call): Reset old_stack_allocated after
12628         calling emit_stack_restore.
12629
12630 2004-07-16  Richard Henderson  <rth@redhat.com>
12631
12632         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
12633         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
12634         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
12635         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
12636         copy_res_decl_for_inlining.
12637
12638         * tree-inline.c (declare_return_variable): New modify_dest argument.
12639         Use it as the return value, when possible or manditory.  Handle
12640         TREE_ADDRESSABLE types.
12641         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
12642         replacement of CALL_EXPR.
12643
12644 2004-07-16  Richard Henderson  <rth@redhat.com>
12645
12646         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
12647         * gimple-low.c (expand_var_p): Don't check it.
12648         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
12649         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
12650         * tree-ssa-operands.c (add_stmt_operand): Likewise.
12651         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
12652         (find_referenced_vars): Don't call them.
12653         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
12654
12655 2004-07-16  Richard Henderson  <rth@redhat.com>
12656
12657         * function.c (pass_by_reference): True for all variable sized types.
12658
12659 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
12660
12661         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
12662         * tree-pretty-print.c: Include tree-chrec.h.
12663         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
12664         and POLYNOMIAL_CHREC nodes.
12665
12666 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
12667
12668         * builtins.c (expand_builtin_stpcpy): Do not create temporary
12669         reg with VOIDmode.
12670
12671 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
12672
12673         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
12674
12675 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
12676
12677         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
12678         to BASE_REGNUM.
12679         * config/s390/s390.c: Likewise.
12680         * config/s390/s390.h: Likewise.
12681
12682 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12683
12684         * config/mips/mips.md (addsi3, adddi3): Remove special handling
12685         of $sp adds.  Remove REGNO checks from mips16 patterns.
12686
12687 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12688
12689         * config/mips/mips.md: Delete outdated comment.
12690
12691 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12692
12693         * config/mips/mips.c (get_float_compare_codes): Delete.
12694         (mips_emit_compare): New function, mostly extracted from
12695         get_float_compare_codes and gen_conditional_branch.
12696         (gen_conditional_branch, gen_conditional_move): Use it.
12697
12698 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
12699
12700         * genautomata.c (add_vect): Speedup by using integers as
12701         bit-vectors for walking through the comb_vect and finding
12702         a match.
12703
12704 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12705
12706         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
12707         operand is an uns_arith_operand; use subtraction otherwise.
12708         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
12709         not just arith_operands.
12710
12711 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12712
12713         * config/mips/mips-protos.h (gen_int_relational): Delete.
12714         (mips_emit_scc): Declare.
12715         * config/mips/mips.c (internal_test): Delete.
12716         (sle_operand, sleu_operand): New functions.
12717         (map_test_to_internal_test, gen_int_relational): Delete.
12718         (mips_emit_binary, mips_relational_operand_ok_p)
12719         (mips_emit_int_relational, mips_zero_if_equal)
12720         (mips_emit_scc): New functions.
12721         (gen_conditional_branch): Rework to use mips_emit_int_relational.
12722         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
12723         sleu_operand.
12724         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
12725         (sltu, sleu): Use mips_emit_scc.
12726         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
12727         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
12728         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
12729
12730 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12731
12732         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
12733
12734 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12735
12736         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
12737         (*sne_[sd]i): Likewise sne_[sd]i_zero.
12738         (*sgt_[sd]i): ...and sgt_[sd]i.
12739         (*slt_[sd]i): ...and slt_[sd]i.
12740         (*sgtu_[sd]i): ...and sgtu_[sd]i.
12741         (*sltu_[sd]i): ...and sltu_[sd]i.
12742         (*sleu_[sd]i): ...and sleu_[sd]i_const.
12743         Name previously unnamed mips16 patterns.  Formatting fixes.
12744
12745 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12746
12747         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
12748         (branch_type): Delete.
12749         (gen_conditional_branch, gen_conditional_move)
12750         (mips_gen_conditional_trap): Update after name change.  Get the
12751         comparison mode from cmp_operands[0].
12752         * config/mips/mips.h (cmp_type, branch_type): Delete.
12753         (cmp_operands): Renamed from branch_cmp.
12754         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
12755         name change.  Don't set branch_type.
12756         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
12757         mode class of cmp_operands[0] rather than branch_type.  Update after
12758         name change.
12759
12760 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12761
12762         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
12763         of 0...255 to 0 when inside a SET.
12764
12765 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
12766
12767         * config/mips/mips.md: Remove mips16 define_peepholes.
12768
12769 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
12770
12771         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
12772         (fini_pre): Remove fake edges.
12773
12774 2004-07-15  Richard Henderson  <rth@redhat.com>
12775
12776         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
12777         (get_indirect_ref_operands, get_call_expr_operands): ... these.
12778
12779 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12780
12781         * vec.h (VEC_address): New function.
12782
12783 2004-07-14  Jason Merrill  <jason@redhat.com>
12784
12785         PR middle-end/15885
12786         * gimplify.c (gimplify_arg): New fn, split out from...
12787         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
12788
12789 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
12790
12791         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
12792         generate code which is generated by pushqi1 now
12793         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
12794
12795 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
12796
12797         * combine.c (simplify_set): match the mode of the constant 0 with
12798         the tested operand to match the compare behaviour and the
12799         simplify_relational_operation() expectation.
12800
12801 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
12802
12803         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
12804         ("bordered"): Same.
12805
12806 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
12807
12808         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
12809         unconditionally.
12810         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
12811
12812 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
12813
12814         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
12815         calls in mips16 code.
12816
12817 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
12818
12819         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
12820         the destination of the li as well as for the neg.
12821
12822 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
12823
12824         g++/15861
12825         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
12826         * cgraph.h: Update declaration.
12827         * c-decl.c (build_cdtor): Update call with default priority.
12828         * coverage.c (create_coverage): Ditto.
12829         * tree-mudflap.c (mf_init_fndecl): New tree.
12830         (mudflap_init): Set it.
12831         (mudflap_register_call): Arrange to call __mf_init before the first
12832         __mf_register call.
12833         (mudflap_finish_file): Mark the mudflap static initializer as extra
12834         high priority, to beat all C++ static constructors.
12835
12836 2004-07-15  Jeff Law  <law@redhat.com>
12837
12838         * loop.c (check_insn_for_givs): Restore check for code labels that was
12839         accidentally deleted by a recent checkin.
12840
12841 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12842
12843         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
12844         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
12845
12846 2004-07-14  Richard Henderson  <rth@redhat.com>
12847
12848         * print-tree.c (print_node): Fix casts last change.
12849
12850 2004-07-15  Paul Brook  <paul@codesourcery.com>
12851
12852         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
12853         to TARGET_UNWIND_INFO.
12854         * except.c (output_function_exception_table): Ditto.
12855         * except.h: Ditto.
12856         * opts.c (decode_options): Ditto.
12857         * passes.c (rest_of_handle_final): Ditto.
12858         * final.c (final_start_function): Ditto.
12859         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
12860         target hook.
12861         * targhooks.h (default_unwind_emit): Declare.
12862         * targhooks.c (default_unwind_emit): New function.
12863         * target-def.h: Define and use TARGET_UNWIND_EMIT.
12864         * target.h (struct gcc_target): Add unwind_emit.
12865         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
12866         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
12867         Remove IA64_UNWIND_EMIT.
12868         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
12869
12870 2004-07-14  Richard Henderson  <rth@redhat.com>
12871
12872         * print-tree.c (print_node): Handle SSA_NAME.
12873
12874 2004-07-14  James E Wilson  <wilson@specifixinc.com>
12875
12876         PR target/16325
12877         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
12878         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
12879
12880 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
12881
12882         * expr.c (expand_assignment): Reenable bitfield += optimizations.
12883         Use alias set 0 for memory, do proper mode calculations and adjust
12884         address for memories.
12885
12886 2004-07-14  Per Bothner  <per@bothner.com>
12887
12888         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
12889         structure with extra column field.
12890         * tree.c (expand_location):  Also fill in column field.
12891         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
12892         gets confused by the two conditionally-compiled definitions.
12893
12894 2004-07-14  Eric Christopher  <echristo@redhat.com>
12895
12896         * calls.c (expand_call): Fix typo in comment.
12897
12898 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
12899
12900         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
12901         comparision of TFmode.
12902
12903 2004-07-14  Richard Henderson  <rth@redhat.com>
12904
12905         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
12906         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
12907         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
12908         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12909         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
12910         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12911         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
12912         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12913         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12914
12915 2004-07-14  Mike Stump  <mrs@apple.com>
12916
12917         * config/darwin.h (WINT_TYPE): Define to be int to match
12918         system header files.
12919
12920 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
12921
12922         * config/xtensa/xtensa.c (function_arg_advance): Check for args
12923         that must be passed in the stack.
12924         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
12925         arguments if the size is not a constant.
12926
12927 2004-07-14  Per Bothner  <per@bothner.com>
12928
12929         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
12930         instead of EXPR_LOCUS in a boolean context, which is always true
12931         if --enable-mapped-location.
12932         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
12933
12934 2004-07-14  Richard Henderson  <rth@redhat.com>
12935
12936         * dominance.c (struct dom_info): Add fake_exit_edge.
12937         (init_dom_info): Allocate it.
12938         (free_dom_info): Free it.
12939         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
12940         in two passes.
12941         (calc_idoms): Honor fake_exit_edge.
12942
12943 2004-07-13  Jason Merrill  <jason@redhat.com>
12944
12945         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
12946         (rhs_test_for): New fn.
12947         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
12948         * tree-gimple.h: Declare them.
12949         * gimplify.c (gimplify_modify_expr): Use the new fns.
12950
12951 2004-07-14  Richard Henderson  <rth@redhat.com>
12952
12953         * config/arm/arm-protos.h (arm_va_arg): Remove.
12954         * config/arm/arm.c (arm_va_arg): Remove.
12955         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
12956         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
12957
12958 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12959
12960         * pa.c (fix_range): New function to mark a range(s) of registers as
12961         fixed registers.
12962         (override_options): Call fix_range if the -mfixed-range option string
12963         is not empty.
12964         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
12965         * doc/invoke.texi (-mfixed-range): Document new option.
12966
12967 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
12968
12969         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
12970         for TARGET_64BIT.
12971         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
12972
12973 2004-07-14  Roger Sayle  <roger@eyesopen.com>
12974
12975         * expmed.c (expand_sdiv_pow2): New function to expand signed division
12976         by a positive power of two, split out from expand_divmod.  Provide
12977         an alternate implementation when shifts are expensive.  Lower the
12978         threshold for using a branchless implementation to BRANCH_COST >= 2.
12979         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
12980
12981 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
12982
12983         * tree-dfa.c (make_rename_temp): *Really* work just
12984         like create_tmp_var if called while outside SSA form.
12985
12986 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
12987
12988         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
12989         for division by zero.
12990         ("umodsi3"): Likewise.
12991
12992 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
12993
12994         * config/mips/mips.c (mips_output_move): When generating mips16 code,
12995         force loads of negative constants to be split.
12996         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
12997         Generalize SImode li/neg splitter to cope with other modes.
12998
12999 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
13000
13001         * expmed.c: Remove more references to QUEUED in the comments.
13002         * expr.c: Likewise.
13003
13004 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
13005
13006         Revert:
13007         2004-07-13  Richard Henderson  <rth@redhat.com>
13008         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
13009         correctly.
13010
13011 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
13012
13013         * tree-dfa.c (make_rename_temp): Work just like
13014         create_tmp_var if called while outside SSA form.
13015
13016 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
13017
13018         * expr.c (enqueue_insn, finish_expr_for_function,
13019         protect_from_queue, queued_subexp_p, mark_queue,
13020         emit_insns_enqueued_after_mark, emit_queue,
13021         expand_increment): Remove.
13022         (store_constructor): Expand increment as an assignment.
13023         (expand_expr_real_1 <case PREINCREMENT_EXPR,
13024         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
13025         case POSTDECREMENT_EXPR>): Abort.
13026         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
13027         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
13028         protect_from_queue, emit_queue, queued_subexp_p): Remove.
13029         * function.h (pending_chain, x_pending_chain): Remove.
13030         * rtl.def (QUEUED): Remove.
13031
13032         * emit-rtl.c (copy_insn_1, copy_most_rtx,
13033         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
13034         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
13035         encode_units_mask): Likewise.
13036         * local-alloc.c (equiv_init_varies_p): Likewise.
13037         * rtl.c (copy_rtx): Likewise.
13038         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
13039         * simplify-rtx.c (simplify_gen_subreg): Likewise.
13040         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
13041
13042         * builtins.c (expand_builtin, expand_builtin_apply,
13043         expand_builtin_mathfn, expand_builtin_mathfn_2,
13044         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
13045         Remove calls to emit_queue and protect_from_queue.
13046         * calls.c (expand_call, precompute_arguments,
13047         precompute_register_parameters, rtx_for_function_call,
13048         store_one_arg): Likewise.
13049         * dojump.c (do_compare_and_jump, do_jump): Likewise.
13050         * explow.c (memory_address): Likewise.
13051         * expmed.c (clear_by_pieces_1, clear_storage,
13052         clear_storage_via_libcall, emit_group_load,
13053         emit_group_store, emit_store_flag,
13054         expand_expr_real_1, store_by_pieces,
13055         store_constructor, store_expr, try_casesi,
13056         try_tablejump): Likewise.
13057         * function.c (expand_pending_sizes): Likewise.
13058         * optabs.c (emit_cmp_and_jump_insns,
13059         emit_conditional_add, emit_conditional_move,
13060         expand_fix, expand_float, prepare_cmp_insn): Likewise.
13061         * stmt.c (emit_case_bit_tests,
13062         expand_asm_expr, expand_computed_goto,
13063         expand_decl_init, expand_end_case_type,
13064         expand_end_stmt_expr, expand_expr_stmt_value,
13065         expand_return, expand_start_case,
13066         optimize_tail_recursion): Likewise.
13067         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13068         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
13069
13070 2004-07-14  Ben Elliston  <bje@au.ibm.com>
13071
13072         * vec.h: Comment fix.
13073
13074 2004-07-13  Richard Henderson  <rth@redhat.com>
13075
13076         * target.h (struct gcc_target): Add calls.pass_by_reference.
13077         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
13078         * function.c (pass_by_reference): Use the hook.
13079         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
13080         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
13081         (hook_pass_by_reference_must_pass_in_stack): New.
13082         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
13083         (alpha_pass_by_reference): New.
13084         (TARGET_PASS_BY_REFERENCE): New.
13085         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13086         * config/arc/arc.c (arc_pass_by_reference): New.
13087         (TARGET_PASS_BY_REFERENCE): New.
13088         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13089         (FUNCTION_ARG_CALLEE_COPIES): True.
13090         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
13091         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
13092         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
13093         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13094         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13095         * config/cris/cris.c (cris_pass_by_reference): New.
13096         (TARGET_PASS_BY_REFERENCE): New.
13097         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
13098         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
13099         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13100         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
13101         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13102         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
13103         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
13104         (frv_function_arg_pass_by_reference): Remove.
13105         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13106         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
13107         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
13108         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
13109         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13110         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
13111         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
13112         (ia64_pass_by_reference): Rename from
13113         ia64_function_arg_pass_by_reference.
13114         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13115         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13116         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
13117         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
13118         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
13119         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13120         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
13121         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
13122         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
13123         (m32r_pass_by_reference): Adjust prototype.  Make static.
13124         Handle mode sizes correctly.
13125         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13126         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
13127         (m68hc11_function_arg_pass_by_reference): Remove.
13128         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13129         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
13130         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
13131         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13132         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
13133         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
13134         (mips_va_arg): Use pass_by_reference.
13135         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
13136         Handle mode sizes correctly.
13137         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13138         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
13139         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
13140         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
13141         (mmix_pass_by_reference): Rename from
13142         mmix_function_arg_pass_by_reference.
13143         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13144         (FUNCTION_ARG_CALLEE_COPIES): True.
13145         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
13146         (mn10300_pass_by_reference): New.
13147         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13148         (FUNCTION_ARG_CALLEE_COPIES): True.
13149         * config/pa/pa.c (pa_pass_by_reference): New.
13150         (TARGET_PASS_BY_REFERENCE): New.
13151         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13152         (FUNCTION_ARG_CALLEE_COPIES): True.
13153         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
13154         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
13155         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
13156         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13157         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
13158         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
13159         (s390_pass_by_reference): Rename from
13160         s390_function_arg_pass_by_reference.
13161         (s390_function_arg_advance): Don't query pass-by-ref.
13162         (s390_function_arg): Likewise.
13163         (s390_gimplify_va_arg): Use pass_by_reference.
13164         (s390_call_saved_register_used): Likewise.
13165         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13166         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
13167         (shcompact_byref, sh_pass_by_reference): New.
13168         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13169         (SHCOMPACT_BYREF): Remove.
13170         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
13171         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
13172         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
13173         (sparc_gimplify_va_arg): Use pass_by_reference.
13174         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13175         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13176         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
13177         (v850_pass_by_reference): New.
13178         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13179         (FUNCTION_ARG_CALLEE_COPIES): True.
13180         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
13181         FUNCTION_ARG_PASS_BY_REFERENCE docs.
13182
13183 2004-07-14  Richard Henderson  <rth@redhat.com>
13184             Richard Sandiford  <rsandifo@redhat.com>
13185
13186         * config/mips/mips-protos.h (mips_va_arg): Delete.
13187         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
13188         * config/mips/mips.c: Include tree-gimple.h.
13189         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
13190         (mips_arg_info): Remove special handling of must_pass_in_stck args.
13191         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
13192         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
13193
13194 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
13195
13196         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
13197         arguments for COND_EXPR in big-endian adjustment code.
13198
13199 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13200
13201         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
13202         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
13203         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
13204         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
13205
13206 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
13207
13208         PR tree-optimization/16443
13209         * tree-ssa-alias.c: Add more description for
13210         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
13211         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
13212         clobbering of call-clobbered and addressable variables.  If
13213         there are any before aliases have been computed, add them.
13214
13215 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
13216
13217         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
13218         verification.
13219
13220 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
13221
13222         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
13223         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
13224         to the same type.
13225
13226 2004-07-13  Per Bothner  <per@bothner.com>
13227
13228         * collect2.c (main):  Handle --no-demangle and --demangle flags.
13229
13230 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
13231
13232         * Makefile.in (OBJS-common): Add tree-data-ref.o.
13233         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
13234         (tree-data-ref.o): New rule.
13235         * lambda.h: New file.
13236         * tree-data-ref.c: New file.
13237         * tree-data-ref.h: New file.
13238         * tree.c (int_cst_value, tree_fold_gcd): New functions.
13239         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
13240
13241 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
13242
13243         PR target/13926
13244         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
13245         * config/sparc/sparc.c (output_ubranch): New function.
13246         * config/sparc/sparc.md (jump pattern): Use it.
13247
13248 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
13249
13250         PR target/16494
13251         * config/sparc/sparc.c (output_cbranch): Properly guard
13252         the code handling far branches with TARGET_V9.
13253         * config/sparc/sparc.md (length attribute): Document the
13254         side-effect of having a length greater or equal to 3.
13255
13256 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
13257             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
13258
13259         PR target/15186
13260         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
13261         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
13262
13263 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
13264             Martin Sebor  <sebor@roguewave.com>
13265
13266         PR target/12602
13267         * doc/invoke.texi (SPARC options): Document -threads
13268         and -pthreads on Solaris.
13269
13270 2004-07-13  Richard Henderson  <rth@redhat.com>
13271
13272         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
13273         by reference.
13274         (ind_gimplify_va_arg_expr): Remove.
13275         * tree.h (ind_gimplify_va_arg_expr): Remove.
13276         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
13277         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
13278         argsp to be null.
13279
13280         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
13281         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
13282         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
13283         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
13284         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
13285
13286 2004-07-13  Richard Henderson  <rth@redhat.com>
13287
13288         * function.c (pass_by_reference): New.
13289         (assign_parm_find_data_types): Use it.
13290         * calls.c (initialize_argument_information): Likewise.
13291         (emit_library_call_value_1): Likewise.
13292         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
13293         * function.h (pass_by_reference): Declare.
13294
13295 2004-07-13  Richard Henderson  <rth@redhat.com>
13296
13297         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
13298         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
13299         * expr.h (MUST_PASS_IN_STACK): Remove.
13300         * system.h (MUST_PASS_IN_STACK): Poison.
13301         * tree.h (must_pass_in_stack_var_size): Declare.
13302         (must_pass_in_stack_var_size_or_pad): Declare.
13303         * calls.c (must_pass_in_stack_var_size): New.
13304         (must_pass_in_stack_var_size_or_pad): Rename from
13305         default_must_pass_in_stack.
13306         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
13307         (TARGET_MUST_PASS_IN_STACK): New.
13308         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
13309         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
13310         (TARGET_MUST_PASS_IN_STACK): New.
13311         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
13312         * config/frv/frv.c (frv_must_pass_in_stack): New.
13313         (TARGET_MUST_PASS_IN_STACK): New.
13314         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
13315         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
13316         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
13317         (ix86_must_pass_in_stack): Make static.
13318         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
13319         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
13320         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
13321         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
13322         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
13323         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
13324         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
13325         (mcore_must_pass_on_stack): Remove.
13326         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
13327         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
13328         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
13329         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
13330         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
13331         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
13332         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
13333         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
13334         (TARGET_MUST_PASS_IN_STACK): New.
13335         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
13336         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
13337         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
13338         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
13339         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
13340         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
13341         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
13342         MUST_PASS_IN_STACK.
13343
13344         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
13345         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
13346         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
13347         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
13348         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
13349         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
13350         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
13351         config/xtensa/xtensa.c: Use target hook.
13352
13353 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
13354
13355         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
13356         * configure: Rebuilt.
13357
13358 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
13359
13360         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
13361         * config/mips/mips.h (mips_reg_names): Don't declare.
13362         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
13363         (TARGET_NAME_REGS): Delete.
13364         (TARGET_SWITCHES): Remove -mrnames.
13365         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
13366         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
13367         in REGISTER_NAMES.
13368         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
13369         (override_options): Remove handling of TARGET_NAME_REGS.
13370
13371 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
13372
13373         * config/mips/mips.h (TARGET_*): Boolify.
13374
13375 2004-07-12  Nick Clifton  <nickc@redhat.com>
13376
13377         * config.gcc: Add sh-*-symbianelf target.
13378         * config/sh/sh.c: Add new target macros:
13379         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
13380         TARGET_CXX_IMPORT_EXPORT_CLASS.
13381         (sh_file_start): Create a definition of the .directive section.
13382         (sh_attribute): Add dllimport and dllexport attributes.
13383         * config/sh/symbian-pre.h: New file.
13384         * config/sh/symbian-post.h: New file.
13385         * config/sh/symbian.c: New file. Contains Symbian specific
13386         functions.
13387         * config/sh/sh-protos.h: Add prototypes for new functions
13388         provided by symbian.c.
13389         * config/sh/t-symbian: New file.
13390         * doc/extend.texi: Document support for dllimport and dllexport
13391         attributes by the sh-symbianelf target.
13392
13393 2004-07-12  James E Wilson  <wilson@specifixinc.com>
13394
13395         * Makefile.in (AR): Use @AR@ not ar.
13396         (NM): New.
13397         (AR_FOR_TARGET): Use $(AR) not ar for native.
13398         (NM_FOR_TARGET): Use $(NM) not nm for native.
13399         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
13400         * configure: Regenerate.
13401
13402 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
13403
13404         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
13405         special case.
13406         (ashldi3_sp64): Likewise.
13407
13408 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13409
13410         PR target/16477
13411         * pa.c (function_arg): Update comment.
13412         * pa.h (BLOCK_REG_PADDING): Define.
13413
13414 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13415
13416         PR tree-optimization/16461
13417         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
13418         arguments of phi nodes.
13419
13420 2004-07-12  Devang Patel  <dpatel@apple.com>
13421
13422         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
13423
13424 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
13425
13426         * function.c (expand_function_start): Ensure r_save is in Pmode.
13427         * calls.c (prepare_call_address): Ensure static_chain_value is
13428         in Pmode.
13429         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
13430         r_save_area are in Pmode.
13431         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
13432         fnaddr, and static_chain are in Pmode.
13433
13434 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
13435
13436         PR target/16445
13437         * config/ia64/ia64.c (bundling): Don't count ignored insns.
13438
13439 2004-07-12  Richard Henderson  <rth@redhat.com>
13440
13441         * target.h (struct gcc_target): Move gimplify_va_arg_expr
13442         next to build_builtin_va_list.
13443         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
13444         * builtins.c (gimplify_va_arg_expr): Likewise.
13445         * gimplify.c (copy_if_shared_r): Likewise.
13446
13447 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
13448
13449         * passes.c (rest_of_decl_compilation): Don't defer call of
13450         assemble_variable if its DECL_RTL is already set.
13451
13452 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
13453
13454         * cfgloop.h (struct loop): Add nb_iterations field.
13455         (current_loops): Declare.
13456         * tree-chrec.c (chrec_not_analyzed_yet,
13457         chrec_dont_know, chrec_known, count_ev_in_wider_type,
13458         chrec_contains_symbols_defined_in_loop): Remove the temporary
13459         hooks.
13460         * tree-flow-inline.h (loop_containing_stmt): New function.
13461         * tree-scalar-evolution.c: Add implementation.
13462         * tree-scalar-evolution.h: Add declarations.
13463
13464 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
13465
13466         PR rtl-optimization/15921
13467         * Makefile.in (global.o): Add recog.h.
13468
13469         * global.c (recog.h): Add the include-clause.
13470         (bb_info): New member earlyclobber.
13471         (allocate_bb_info, free_bb_info): Initialize/finish the new
13472         member.
13473         (earlyclobber_regclass, earlyclobber_regclass_length): The new
13474         global variables.
13475         (check_earlyclobber, regclass_intersect,
13476         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
13477         New functions.
13478         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
13479         (make_accurate_live_analysis): Modify pavin.
13480
13481 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
13482
13483         * tree-cfg.c (find_taken_edge): Statically compute the truth
13484         value of a predicate comparing an SSA_NAME to itself.
13485
13486 2004-07-12  Roger Sayle  <roger@eyesopen.com>
13487
13488         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
13489         rs6000 doesn't have shift-and-add or shift-and-sub instructions
13490         by returning the cost of a multiplication plus an addition.
13491
13492 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
13493
13494         PR tree-optimization/14107
13495         * gimplify.c (gimplify_return_expr): Accept a
13496         RETURN_EXPR with an error argument.
13497         * tree-optimize.c (init_tree_optimization_passes):
13498         Run pass_warn_function_return at -O0.
13499
13500 2004-07-12  Roger Sayle  <roger@eyesopen.com>
13501
13502         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
13503         index entry.
13504
13505 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
13506
13507         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
13508         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13509         * config/mips/3000.md: Add copyright notice.  Remove automota and
13510         function units; use generic ones instead.  Only define reservations
13511         for things that are different from generic.md.  Extend each clause
13512         to include r3900.
13513         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
13514         * config/mips/mips.md: Include them. Remove define_function_units.
13515         (alu, imuldiv): New automata and units.
13516
13517 2004-07-12  Ben Elliston  <bje@au.ibm.com>
13518
13519         * doc/invoke.texi (Optimize Options): Document -frename-registers
13520         not being enabled by default at -O3.
13521
13522 2004-07-11  Roger Sayle  <roger@eyesopen.com>
13523
13524         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
13525         floating point additions, to keep real immediate constant positive.
13526         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
13527         into X + C, and leave positive real constants as X - C.
13528
13529 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13530
13531         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
13532
13533 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13534
13535         PR tree-optimization/15654
13536         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
13537
13538 2004-07-11  Roger Sayle  <roger@eyesopen.com>
13539
13540         * builtins.c (fold_builtin_fputs): Don't bother converting the
13541         return type to integer_type_node, as we've already checked that
13542         the result will be ignored.
13543
13544         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
13545         that signed addition, subtraction, multiplication, division,
13546         remainder, negation and absolute value may potentially trap.
13547
13548         * fold-const.c (fold_ignored_result): New function to strip
13549         non-side-effecting tree nodes from an expression whose result
13550         is ignored.
13551         (fold_convert): Call fold_ignored_result when casting a value
13552         to VOID_TYPE.
13553         (omit_one_operand):  Call fold_ignored_result on the "omitted"
13554         operand when building a COMPOUND_EXPR.
13555         (pedantic_omit_one_operand): Likewise.
13556         * tree.h (fold_ignored_result): Prototype here.
13557         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
13558         when we're going to ignore the result.
13559
13560 2004-07-11  Richard Henderson  <rth@redhat.com>
13561
13562         PR tree-opt/16383
13563         * tree-ssa-ccp.c (fold_stmt_r): Split out...
13564         * tree.c (fields_compatible_p, find_compatible_field): ... new.
13565         * tree.h (fields_compatible_p, find_compatible_field): Declare.
13566         * tree-sra.c (sra_hash_tree): Hash fields by offset.
13567         (sra_elt_eq): Use fields_compatible_p.
13568         (generate_one_element_ref): Use find_compatible_field.
13569
13570 2004-07-11  Richard Henderson  <rth@redhat.com>
13571
13572         PR tree-opt/16422
13573         * tree-sra.c (generate_one_element_init): New.
13574         (generate_element_init): Use it.
13575         (scalarize_init): Push/pop gimplify context around it.
13576         (find_new_referenced_vars_1, find_new_referenced_vars): New.
13577         * gimplify.c (gimplify_expr): Allow SSA_NAME.
13578
13579 2004-07-11  Roger Sayle  <roger@eyesopen.com>
13580
13581         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
13582         combine.c's combine_insn_cost.
13583         * rtl.h (insn_rtx_cost): Prototype here.
13584         * combine.c (combine_insn_cost): Delete function.
13585         (combine_validate_cost): Update callers of combine_insn_cost to
13586         call insn_rtx_cost instead.
13587         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
13588         requesting the rtx_cost of call and/or jump instructions.
13589
13590         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
13591         rtx_cost directly.  Don't request/use the cost of call or jump
13592         instructions.  Return -1 if the cost of any instruction can't be
13593         determined (or the BB contains a function call).
13594         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
13595         -1 (i.e. can't determine the cost of any instruction or the basic
13596         block contains a subroutine call).
13597         (find_if_case_2): Likewise.
13598
13599 2004-07-11  Roger Sayle  <roger@eyesopen.com>
13600
13601         * rs6000.c (struct processor_costs): Change semantics of fields to
13602         include the COST_N_INSNS scaling, and update all initializers.
13603         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
13604         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
13605         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
13606         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
13607
13608 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
13609
13610         * LANGUAGES: Remove obsolete information.
13611
13612 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
13613
13614         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
13615         SIGBUS signal frames, the PSW address points *to* the faulting
13616         instruction, not after it.
13617
13618 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
13619
13620         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
13621         added to TLS symbol addresses.
13622
13623 2004-07-11  Richard Henderson  <rth@redhat.com>
13624
13625         * expmed.c (init_expmed): Use stack-local structures for
13626         temporary rtl.  Don't recognize shifts.
13627
13628 2004-07-11  Richard Henderson  <rth@redhat.com>
13629
13630         * expr.c (store_expr): Don't fiddle subreg promotion for types
13631         with precision smaller than the mode.
13632
13633 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
13634
13635         * tree.h (all_types_permanent): Remove.
13636
13637 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
13638
13639         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
13640         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
13641         * langhooks.c (lhd_clear_binding_stack): Remove.
13642         * langhooks-def.h (lhd_clear_binding_stack,
13643         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
13644         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
13645         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
13646         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
13647         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
13648         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
13649         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
13650         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
13651         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
13652         * tree.h (poplevel): Don't declare.
13653         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
13654         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
13655         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
13656         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
13657         Remove.
13658
13659 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
13660
13661         PR tree-optimization/16437
13662         * c-common.c (shorten_compare): Don't mark result of conversion to
13663         narrower signed type as overflowing.
13664         * fold-const.c (decode_field_reference): Determine whether
13665         signedness comes from outer type using precision rather than size.
13666
13667 2004-07-11  Phil Edwards  <phil@codesourcery.com>
13668
13669         * configure.ac:  Alphabetize --enable-checking list, add
13670         missing valgrind entry.
13671         * configure:  Regenerate.
13672
13673 2004-07-11  Phil Edwards  <phil@codesourcery.com>
13674
13675         * doc/install.texi (Testing):  Fix syntax in "make check" example.
13676
13677 2004-07-10  James E Wilson  <wilson@specifixinc.com>
13678
13679         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
13680
13681 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13682
13683         PR rtl-optimization/16001
13684         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
13685         niter_expr.
13686
13687 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
13688
13689         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
13690
13691 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
13692             James Morrison  <phython@gcc.gnu.org>
13693
13694         * doc/contrib.texi (Contributors): Add gfortran contributors and
13695         fix a couple of typos.
13696
13697 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13698
13699         PR rtl-optimization/15387
13700         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
13701         to incoming args space correctly.
13702
13703 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13704
13705         * pa.c (output_indirect_call): Only use %r2 as the link register in
13706         indirect calls with the long PA 2.0 pc-relative branch.
13707
13708 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
13709
13710         * config/i386/i386.c (override_options): Pick a 64-bit CPU
13711         for the default tuning if TARGET_64BIT.
13712
13713 2004-07-10  Richard Henderson  <rth@redhat.com>
13714
13715         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
13716         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
13717
13718 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
13719
13720         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
13721         * expmed.c (store_bit_field, extract_bit_field): Remove last
13722         argument.
13723         * builtins.c (expand_builtin_signbit): Adjust callers.
13724         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
13725         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
13726         * ifcvt.c (noce_emit_move_insn): Likewise.
13727         * stmt.c (expand_return): Likewise.
13728         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
13729         store_field, expand_expr_real_1): Likewise.
13730
13731 2004-07-10  Richard Henderson  <rth@redhat.com>
13732
13733         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
13734
13735 2004-07-09  Mike Stump  <mrs@apple.com>
13736
13737         * config/darwin.c (no_dead_strip): Add.
13738         (HAVE_DEAD_STRIP): Add.
13739         (darwin_emit_unwind_label): Ensure that we don't dead code strip
13740         the .eh label.
13741
13742 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13743
13744         * tree-ssa-loop-im.c: New file.
13745         * Makefile.in (tree-ssa-loop-im.o): Add.
13746         * cfgloop.c (superloop_at_depth): New function.
13747         * cfgloop.h (superloop_at_depth): Declare.
13748         * common.opt (ftree-lim): New flag.
13749         * expr.c (array_ref_up_bound): New function.
13750         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
13751         * timevar.def (TV_LIM): New timevar.
13752         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
13753         computing immediate uses of a phi node.
13754         * tree-flow.h (struct tree_ann_common_d): Add aux field.
13755         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
13756         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
13757         * tree-pass.h (pass_lim): Declare.
13758         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
13759         functions.
13760         (pass_lim): New pass structure.
13761         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
13762         * tree.c (in_array_bounds_p): New function.
13763         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
13764         (in_array_bounds_p, array_ref_up_bound): Declare.
13765         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
13766         * doc/passes.texi (tree-ssa-loop-im.c): Document.
13767
13768 2004-07-09  Richard Henderson  <rth@redhat.com>
13769
13770         * builtins.c (expand_builtin_stpcpy): Don't modify len.
13771
13772         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
13773         with prejudice.
13774
13775 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
13776
13777         * flags.h: Delete redundant prototypes that are being generated
13778         in options.h from common.opt.
13779         * common.opt: Add in the expository comments formerly in flags.h.
13780
13781 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13782
13783         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
13784         available for use only when TARGET_MMX/_SSE is set, and check for
13785         variable argument function if any register count is non-zero.
13786         (function_arg): Correctly suppress repeated warnings for passing SSE
13787         vectors are arguments without SSE enabled.
13788         (ix86_function_arg_boundary): Without SSE enabled, the use of what
13789         would be SSE register modes does no longer influence the alignment.
13790
13791 2004-07-09  Richard Henderson  <rth@redhat.com>
13792
13793         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
13794         Always align upward to arg boundary.  Use size_in_bytes/round_up.
13795         Maintain type-correctness of constants.
13796         * stor-layout.c (round_up, round_down): Special-case powers of 2.
13797
13798 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
13799
13800         * config/sparc/sparc.c (*_costs): Scale instruction costs
13801         by COSTS_N_INSNS.
13802         (sparc_rtx_costs): Adjust as appropriate.
13803
13804 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13805
13806         * config/i386/mm3dnow.h: New.
13807         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
13808
13809 2004-07-09  Richard Henderson  <rth@redhat.com>
13810
13811         * simplify-rtx.c (simplify_const_relational_operation): Only
13812         look at bounds of scalar integers.
13813
13814 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13815
13816         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
13817
13818 2004-07-09  Andrew Pinski  <apinski@apple.com>
13819
13820         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
13821         always referenced.
13822         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
13823         UOBJC_METACLASS_decl.
13824
13825 2004-07-09  James E Wilson  <wilson@specifixinc.com>
13826
13827         PR target/16364
13828         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
13829         do return a parallel if hfa_mode == XFmode and mode == TImode.
13830
13831 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13832
13833         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
13834         permissible for unary plus.
13835
13836 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13837
13838         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
13839         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
13840         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
13841         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
13842         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
13843         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
13844         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
13845         (BUILTIN_xxxIMAX): New.
13846         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
13847         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
13848         BUILT_IN_PARITYIMAX.
13849
13850 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
13851
13852         * config/sparc/sparc.h (processor_costs): Define.
13853         (sparc_costs): Declare.
13854         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
13855         hypersparc_costs, sparclet_costs, ultrasparc_costs,
13856         ultrasparc3_costs): New.
13857         (sparc_override_options): Set sparc_costs as appropriate.
13858         (sparc_rtx_costs): Use sparc_costs instead of messy
13859         conditionals.
13860
13861 2004-07-09  Steven Bosscher  <stevenb@suse.de>
13862
13863         * doc/md.texi (Processor pipeline description): Mention that
13864         the old pipeline description is deprecated.
13865
13866         * config/rs6000/7450.md (automaton ppc7450): Split up, move
13867         mciu_7450 function unit to...
13868         (automaton ppc7450mciu): ...new automaton.
13869
13870         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
13871         (schedule_block): Don't consider inserting bubbles.
13872         (sched_init): Don't initialize DFA bubbles.
13873         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
13874         TARGET_SCHED_DFA_BUBBLE): Remove.
13875         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
13876         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
13877         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
13878
13879         * stmt.c (conditional_context): Remove prototype.
13880         * tree.h (conditional_context): Remove.
13881         * tree-cfg.c (pre_insert_on_edge): Remove.
13882
13883         * c-common.h (c_expand_asm_operands): Remove prototype.
13884         * c-typeck.c (c_expand_asm_operands): Remove.
13885
13886 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13887
13888         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
13889         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
13890         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
13891         and V8QI are class SSE. All sufficiently small remaining vector modes
13892         must be passed in one or two integer registers.
13893         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
13894         returned in memory.
13895         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
13896         __builtin_ia32_pmuludq128 have non-uniform argument and return types
13897         and must thus be handled explicitly.
13898         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
13899         MMX and XMM regs.
13900         (movv8qi_internal, movv4hi_internal, movv2si_internal,
13901         movv2sf_internal): Permit moving between MMX and XMM registers (since
13902         MMX areguments and return values are passed in XMM registers).
13903         (sse2_umulsidi3): Correct type and mode.
13904
13905 2004-07-09  Richard Henderson  <rth@redhat.com>
13906
13907         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
13908
13909 2004-07-09  Eric Christopher  <echristo@redhat.com>
13910
13911         * config/rs6000/40x.md: Split into two automatons.
13912
13913 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
13914             Andrew Pinski  <apinski@apple.com>
13915
13916         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
13917         on when we have more than one input file.
13918         (c_common_parse_file): Restore loop over all input files.
13919         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
13920
13921         * c-decl.c (set_type_context): New function.
13922         (pop_scope): Use it to set context of types.  When we
13923         encounter a TYPE_DECL, set the context of the attached type too.
13924         (pop_file_scope): Don't call cpp_undef_all here.
13925         (diagnose_mismatched_decls): Do not complain about a second
13926         definition of an 'extern inline' function if it's not in the
13927         same translation unit.  Do not complain about inline
13928         declaration after use if the use was in a different
13929         translation unit.
13930         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
13931         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
13932         the external scope.
13933         (pushdecl_top_level): Likewise.
13934         (grokdeclarator): Clarify what is going on with setting
13935         DECL_EXTERNAL on function types, a little.
13936         (c_write_global_declarations): Don't do anything if
13937         -fsyntax-only or errors have been encountered.
13938
13939 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
13940
13941         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
13942
13943 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13944
13945         PR target/16459
13946         * pa.c (output_indirect_call): Use %r2 as the link register when
13947         calling $$dyncall with a pc-relative branch.
13948
13949 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
13950
13951         * doc/install.texi (Binaries): Mention OpenPKG.
13952
13953 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
13954
13955         Fix PR tree-optimization/15555
13956         * tree-dfa.c (dump_variable): If the variable is a pointer
13957         SSA_NAME, also dump its points-to information.
13958         * tree-flow.h (struct ptr_info_def): Add field
13959         is_dereferenced.
13960         (dump_points_to_info_for): Declare.
13961         (debug_points_to_info_for): Declare.
13962         * tree-optimize.c (init_tree_optimization_passes): Add a
13963         second alias analysis pass after DOM2.
13964         Move pass_del_pta to a later spot.
13965         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
13966         create a name tags when we find a dereferenced pointer.  Just
13967         mark the pointer dereferenced.
13968         (collect_points_to_info_for): Move code to clear points-to
13969         information to create_name_tags.
13970         (create_name_tags): New function.
13971         (compute_flow_sensitive_aliasing): Call it.
13972         (setup_pointers_and_addressables): Mark type tags for renaming
13973         here instead of ...
13974         (create_memory_tag): ... here.
13975         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
13976         (dump_points_to_info_for): Declare extern.
13977         (debug_points_to_info_for): New function.
13978
13979 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
13980
13981         * config/arc/arc.md: Switch to DFA-based scheduler description.
13982         * config/arc/arc.c: Switch to DFA-based scheduler description.
13983
13984 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
13985
13986         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
13987         pointer.
13988
13989 2004-07-09  Richard Henderson  <rth@redhat.com>
13990
13991         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
13992         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13993         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
13994         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
13995
13996         * config/v850/v850-protos.h (v850_va_arg): Remove.
13997         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13998         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
13999         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
14000         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
14001         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
14002
14003 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
14004
14005         PR target/12133
14006         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
14007         and DImode to use +/-4k offset.
14008
14009 2004-07-09  Richard Henderson  <rth@redhat.com>
14010
14011         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
14012         Remove.
14013         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14014         (xstormy16_gimplify_va_arg_expr): Rewrite from
14015         xstormy16_expand_builtin_va_arg.
14016         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
14017
14018         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
14019         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
14020
14021         * config/sh/sh-protos.h (sh_va_arg): Remove.
14022         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14023         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
14024         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
14025
14026         * config/pa/pa-protos.h (hppa_va_arg): Remove.
14027         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14028         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
14029         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
14030
14031         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
14032         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14033         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
14034         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
14035
14036 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
14037
14038         * config/sparc/sparc.md (return): Rewrite length formula.
14039         * config/sparc/sparc.c (output_return): Pass 1 as 5th
14040         argument to final_scan_insn when in a delay slot.
14041         (output_sibcall): Likewise.
14042
14043 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
14044
14045         * arm.c (arm_cpp_interwork): New variable.
14046         (arm_override_options): Set it if TARGET_INTERWORK was on the command
14047         line.
14048         * arm.h (arm_cpp_interwork): Declare it.
14049         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
14050         __THUMB_INTERWORK__ in the preprocessor.
14051
14052 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
14053
14054         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
14055
14056 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
14057
14058         PR target/16416
14059         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
14060         Override default settings to account for -m32 and -m64.
14061
14062 2004-07-08  Randolph Chung  <tausq@debian.org>
14063
14064         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
14065
14066 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
14067
14068         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
14069         before comparing it as such.
14070
14071 2004-07-08  Richard Henderson  <rth@redhat.com>
14072
14073         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
14074         temporary.  Use bit arithmetic to align.
14075
14076 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
14077
14078         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
14079         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
14080         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
14081         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
14082         add_labels_and_missing_jumps, find_jump_block,
14083         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
14084         Likewise.
14085         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
14086         link_btr_uses, move_btr_def): Likewise.
14087         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
14088         expand_builtin_expect_jump): Likewise.
14089         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
14090         * calls.c (expand_call, emit_library_call_value_1): Likewise.
14091         * cfganal.c (forwarder_block_p): Likewise.
14092         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
14093         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
14094         find_bb_boundaries): Likewise.
14095         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14096         merge_blocks_move_predecessor_nojumps,
14097         merge_blocks_move_successor_nojumps, insns_match_p,
14098         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
14099         try_optimize_cfg): Likewise.
14100         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
14101         * cfglayout.c (skip_insns_after_block, label_for_bb,
14102         record_effective_endpoints, insn_locators_initialize,
14103         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
14104         * cfgmainloop.c (create_loop_notes): Likewise.
14105         * cfgrtl.c (delete_insn, delete_insn_chain,
14106         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
14107         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
14108         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
14109         redirect_branch_edge, force_nonfallthru_and_redirect,
14110         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
14111         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
14112         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
14113         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
14114         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
14115         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
14116         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
14117         * combine.c (combine_instructions, can_combine_p, try_combine,
14118         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
14119         distribute_notes, distribute_links, insn_cuid): Likewise.
14120         * cse.c (fold_rtx, cse_insn, cse_around_loop,
14121         invalidate_skipped_block, cse_set_around_loop,
14122         cse_end_of_basic_block, cse_main, cse_basic_block,
14123         cse_condition_code_reg): Likewise.
14124         * cselib.c (cselib_process_insn): Likewise.
14125         * ddg.c (create_ddg): Likewise.
14126         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
14127         Likewise.
14128         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14129         gen_label_die, dwarf2out_var_location): Likewise.
14130         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
14131         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
14132         last_call_insn, active_insn_p, next_label, prev_label,
14133         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
14134         add_insn_before, remove_insn, add_function_usage_to,
14135         reorder_insns, find_line_note, remove_unnecessary_notes,
14136         emit_insn_after_1, classify_insn): Likewise.
14137         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
14138         connect_post_landing_pads, sjlj_mark_call_sites,
14139         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
14140         can_throw_internal, can_throw_external, set_nothrow_function_flags,
14141         convert_to_eh_region_ranges): Likewise.
14142         * explow.c (optimize_save_area_alloca): Likewise.
14143         * expr.c (expand_expr_real): Likewise.
14144         * final.c (insn_current_reference_address, compute_alignments,
14145         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
14146         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
14147         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
14148         propagate_block_delete_insn, propagate_one_insn,
14149         init_propagate_block_info, propagate_block, libcall_dead_p,
14150         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
14151         Likewise.
14152         * function.c (instantiate_virtual_regs, reorder_blocks_1,
14153         expand_function_start, expand_function_end, contains,
14154         thread_prologue_and_epilogue_insns,
14155         reposition_prologue_and_epilogue_notes): Likewise.
14156         * gcse.c (constprop_register, bypass_conditional_jumps,
14157         insert_insn_end_bb, gcse_after_reload): Likewise.
14158         * genemit.c (gen_expand, gen_split): Likewise.
14159         * genpeep.c (gen_peephole, main): Likewise.
14160         * global.c (build_insn_chain): Likewise.
14161         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
14162         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
14163         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
14164         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
14165         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
14166         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
14167         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
14168         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
14169         dead_or_predicable): Likewise.
14170         * integrate.c (try_constants): Likewise.
14171         * jump.c (rebuild_jump_labels, cleanup_barriers,
14172         purge_line_number_notes, init_label_info, mark_all_labels,
14173         squeeze_notes, get_label_before, get_label_after,
14174         reversed_comparison_code_parts, simplejump_p, pc_set,
14175         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
14176         delete_barrier, delete_prior_computation, delete_computation,
14177         delete_related_insns, delete_for_peephole, redirect_jump):
14178         Likewise.
14179         * lcm.c (optimize_mode_switching): Likewise.
14180         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
14181         Likewise.
14182         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
14183         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
14184         * loop-iv.c (simplify_using_assignment): Likewise.
14185         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
14186         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
14187         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
14188         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
14189         check_insn_for_givs, check_final_value, update_giv_derive,
14190         basic_induction_var, product_cheap_p, check_dbra_loop,
14191         loop_insn_first_p, last_use_this_basic_block,
14192         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
14193         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
14194         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
14195         sms_schedule_by_order): Likewise.
14196         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
14197         * postreload.c (reload_cse_simplify_operands, reload_combine,
14198         reload_cse_move2add): Likewise.
14199         * predict.c (can_predict_insn_p, estimate_probability,
14200         expected_value_to_br_prob, process_note_predictions): Likewise.
14201         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
14202         * profile.c (branch_prob): Likewise.
14203         * ra-build.c (live_out_1, livethrough_conflicts_bb,
14204         detect_webs_set_in_cond_jump): Likewise.
14205         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
14206         ra_print_rtl_with_bb): Likewise.
14207         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
14208         * recog.c (next_insn_tests_no_inequality, find_single_use,
14209         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
14210         * reg-stack.c (next_flags_user, record_label_references,
14211         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
14212         compensate_edge, convert_regs_1): Likewise.
14213         * regclass.c (scan_one_insn): Likewise.
14214         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14215         regmove_optimize, fixup_match_1, single_set_for_csa,
14216         combine_stack_adjustments_for_block): Likewise.
14217         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
14218         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
14219         find_equiv_reg): Likewise.
14220         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
14221         reload_as_needed, emit_input_reload_insns, do_output_reload,
14222         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
14223         Likewise.
14224         * reorg.c (find_end_label, emit_delay_sequence,
14225         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
14226         get_jump_flags, rare_destination, mostly_true_jump,
14227         try_merge_delay_insns, redundant_insn, own_thread_p,
14228         fill_simple_delay_slots, fill_slots_from_thread,
14229         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
14230         dbr_schedule): Likewise.
14231         * resource.c (find_basic_block, next_insn_no_annul,
14232         find_dead_or_set_registers, mark_target_live_regs): Likewise.
14233         * rtl.h (RTX_PREV): Likewise.
14234         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
14235         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
14236         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
14237         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
14238         tablejump_p, computed_jump_p, insns_safe_to_move_p,
14239         find_first_parameter_load, can_hoist_insn_p): Likewise.
14240         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
14241         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
14242         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
14243         schedule_ebbs): Likewise.
14244         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
14245         is_conditionally_protected, can_schedule_ready_p,
14246         add_branch_dependences, debug_dependencies): Likewise.
14247         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
14248         Likewise.
14249         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
14250         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
14251         set_dominates_use, ujump_to_loop_cont): Likewise.
14252         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
14253         * varasm.c (output_constant_pool_1): Likewise.
14254
14255 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14256
14257         * tree-scalar-evolution.c: New file.
14258         * tree-scalar-evolution.h: New file.
14259         * tree-ssa-loop-niter.c: New file.
14260         * Makefile.in (SCEV_H): New.
14261         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
14262         * cfgloop.h (struct loop): Add bounds field.
14263         * tree-flow.h (struct tree_niter_desc): New type.
14264         (number_of_iterations_cond, number_of_iterations_exit,
14265         loop_niter_by_eval, find_loop_niter_by_eval,
14266         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
14267         free_numbers_of_iterations_estimates): Declare.
14268         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
14269         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
14270         * doc/invoke.texi (max-iterations-to-track): Document.
14271
14272 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14273
14274         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
14275         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
14276         (MODE_AFTER): Add cast appropriately.
14277         * config/sh/sh.md (movdi splitter): Likewise.
14278         (casesi_worker_2): Add const qualifier appropriately.
14279         (eh_return): Remove unused variable.
14280         (insv): Initialize v;
14281
14282 2004-07-08  Richard Henderson  <rth@redhat.com>
14283
14284         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
14285         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14286         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
14287         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
14288         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
14289
14290         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
14291         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14292         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
14293         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
14294
14295         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
14296         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14297         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
14298         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
14299
14300         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
14301         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14302         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
14303         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
14304
14305         * config/i860/i860-protos.h (i860_va_arg): Remove.
14306         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14307         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
14308         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
14309
14310 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
14311
14312         * system.h: Prototype getpagesize if missing.
14313         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
14314         * configure: Regenerate.
14315         * config.in: Regenerate.
14316
14317 2004-07-08  Richard Henderson  <rth@redhat.com>
14318
14319         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
14320         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14321         (fr30_gimplify_va_arg_expr): New.
14322         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
14323         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
14324
14325 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
14326
14327         PR target/16414
14328         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
14329         of asm_noperands result.
14330
14331 2004-07-08  Richard Henderson  <rth@redhat.com>
14332
14333         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
14334         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14335         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
14336         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
14337
14338 2004-07-08  Richard Henderson  <rth@redhat.com>
14339
14340         * builtins.c (ind_gimplify_va_arg_expr): New.
14341         * tree.h (ind_gimplify_va_arg_expr): Declare.
14342         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
14343
14344 2004-07-08  Jan Beulich  <jbeulich@novell.com>
14345
14346         * expmed.c (extract_bit_field): Correct condition to use vec_extract
14347         patterns also on vector elements other than the first one.
14348         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
14349         break statements.
14350
14351 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
14352
14353         * config/rs6000/darwin-ldouble.c: Correct reference
14354         to the Linnainmaa paper.
14355
14356 2004-07-08  Richard Henderson  <rth@redhat.com>
14357
14358         * config/arc/arc-protos.h (arc_va_arg): Remove.
14359         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14360         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
14361         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
14362
14363         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
14364         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
14365         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
14366         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
14367
14368 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14369
14370         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
14371
14372 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
14373
14374         * c-decl.c (static_ctors, static_dtors): Make static.
14375         (pop_file_scope): Call c_common_write_pch and
14376         cgraph_finalize_compilation_unit here.
14377         (build_cdtor): Moved here from c-objc-common.c; simplify.
14378         (c_write_global_declarations_1): Clarify comment.
14379         (c_write_global_declarations): Close the external scope before
14380         doing anything else.  Call build_cdtor, cgraph_optimize, and
14381         mudflap_finish_file here.
14382         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
14383         Clarify comment.
14384         * c-objc-common.c: No need to include cgraph.h.
14385         (build_cdtor): Moved to c-decl.c.
14386         (c_objc_common_finish_file): Delete.
14387         * c-tree.h: Update to match.
14388         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
14389         (generate_static_references): Set TREE_USED before calling finish_decl.
14390         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
14391         on the static_instances_decl.
14392
14393 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
14394
14395         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
14396         decls when there is only one input translation unit.
14397         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
14398         change of 2004-07-05; do not treat declarations with
14399         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
14400         * opts.c (cur_in_fname): Delete.
14401         * opts.h: Likewise.
14402         * tree.c: Revert changes of 2004-07-05; no special treatment
14403         for TRANSLATION_UNIT_DECLs.
14404         * Makefile.in (tree.o): Update dependencies.
14405
14406 2004-07-08  Roger Sayle  <roger@eyesopen.com>
14407
14408         * builtins.c (fold_builtin_strcpy): Merge functionality from
14409         simplify_builtin_strcpy.  Add additional len argument.  No longer
14410         static.  Remove function prototype.
14411         (fold_builtin_strncpy): Likewise integrate functionality from
14412         simplify_builtin_strncpy.  Add additional slen argument.  No
14413         longer static.  Remove function prototype.
14414         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
14415         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
14416         types of "ignore" and "unlocked" parameters to bool.
14417         (fold_builtin_1):  Add additional ignore argument.  Call renamed
14418         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
14419         builtins.  Update arguments to fold_builtin_strncpy and
14420         fold_builtin_strcpy.  Add function prototype.
14421         (fold_builtin): Add additional Boolean ignore argument to pass
14422         to fold_builtin_1.
14423         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
14424         and fold_builtin_strncpy instead of simplify_builtin_fputs,
14425         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
14426
14427         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
14428         simplify_builtin_strncpy): Delete function prototypes.
14429         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
14430         fold_builtin_strncpy): Add function prototypes here.
14431         (fold_builtin): Update function prototype with new "bool ignore".
14432
14433         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
14434         (ccp_fold_builtin):  Update call to fold_builtin.  Call
14435         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
14436         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
14437         simplify_builtin_strncpy respectively.
14438         * fold-const.c (fold): Update call to fold_builtin.
14439
14440 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
14441
14442         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
14443         to strcpy.
14444
14445         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
14446         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
14447         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
14448         * calls.c: Remove ifdefs of macros above.
14449         * functions.c: Likewise.
14450         * expr.c: Likewise.
14451
14452 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
14453
14454         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
14455         (arch attribute): Delete.
14456         (current_function_calls_alloca attribute): Rename into calls_alloca.
14457         (calls_eh_return): New attribute.
14458         (leaf_function): Likewise.
14459         (length attribute): Fix formula for sibcalls.
14460         (return insn): Correctly compute the 'length' attribute.
14461         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
14462
14463 2004-07-08  Richard Henderson  <rth@redhat.com>
14464
14465         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
14466         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
14467         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
14468         * tree-eh.c (lower_eh_constructs_1): Likewise.
14469         * tree-sra.c (sra_walk_modify_expr): Likewise.
14470         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14471         (eliminate_unnecessary_stmts): Likewise.
14472         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
14473         * tree-tailcall.c (optimize_tail_call): Likewise.
14474         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
14475
14476 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
14477             Jakub Jelinek  <jakub@redhat.com>
14478
14479         * config/i386/i386.c (override_options): Enable
14480         SSE prefetches with -mtune, as long as we are
14481         compiling for i686 or higher.  All i686 processors
14482         accept SSE prefetches as NOPS, some i586's don't.
14483
14484 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
14485
14486         PR target/10567
14487         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
14488
14489 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
14490
14491         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
14492         the handling of clobbering ASM_EXPRs.
14493
14494 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
14495
14496         PR target/16430
14497         * config/sparc/sparc.c (function_value): In 64-bit mode,
14498         return the aggregates larger than 16 bytes like unions.
14499
14500 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
14501
14502         PR target/16199
14503         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
14504         'temp' is zero, generate new pseudos as needed and emit the
14505         sequence of insns in single-assignment form.  Resync comments
14506         with code.
14507         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
14508         function before reload.
14509
14510 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
14511
14512         * vec.c (vec_assert_fail): Remove duplicate 'function'.
14513
14514         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
14515
14516         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
14517         Allocation is signed.
14518         (VEC_reserve): Return flag, allocation is signed.
14519
14520 2004-07-08  Richard Henderson  <rth@redhat.com>
14521
14522         * tree-ssa-ccp.c (fold_stmt): Get type directly from
14523         OBJ_TYPE_REF_OBJECT.
14524
14525 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
14526             Neil Booth  <neil@daikokuya.co.uk>
14527
14528         PR c/2511
14529         PR c/3325
14530         * c-decl.c (finish_struct): Ensure bit-fields are given the
14531         correct type.
14532         * c-common.c (c_common_signed_or_unsigned_type): For C, require
14533         the precision to match as well as the mode.
14534         * expr.c (reduce_to_bit_field_precision): New function.
14535         (expand_expr_real_1): Reduce expressions of bit-field type to
14536         proper precision.
14537         * langhooks.h (reduce_bit_field_operations): New hook.
14538         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
14539         Define.
14540         * c-lang.c, objc/objc-lang.c
14541         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
14542         * objc/objc-act.c (check_ivars): Convert types to bit-field types
14543         before checking.
14544         * tree.c (build_nonstandard_integer_type): New function.
14545         * tree.h (build_nonstandard_integer_type): New prototype.
14546         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
14547         conversions between integer and boolean types as useless.
14548
14549 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
14550
14551         * c-common.c (c_common_nodes_and_builtins): Do not
14552         create __builtin_ptrdiff_t and __builtin_size_t.
14553
14554 2004-07-08  Andrew Pinski  <apinski@apple.com>
14555
14556         * Makefile.in (libbackend.o): Add -combine to the gcc
14557         command line.
14558
14559 2004-07-08  Nick Clifton  <nickc@redhat.com>
14560
14561         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
14562         Set to -Os.
14563
14564 2004-07-08  Richard Henderson  <rth@redhat.com>
14565
14566         * except.c (expand_eh_region_start, expand_eh_region_end,
14567         expand_eh_handler, expand_eh_region_end_cleanup,
14568         expand_start_all_catch, expand_start_catch, expand_end_catch,
14569         expand_end_all_catch, expand_eh_region_end_allowed,
14570         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
14571         expand_eh_region_end_fixup): Remove.
14572         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
14573         cleanups, outer_cleanups, label_chain, exception_region.
14574         (struct goto_fixup): Remove stack_level, cleanup_list_list.
14575         (struct label_chain): Remove.
14576         (struct stmt_status): Remove x_stack_block_stack.
14577         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
14578         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
14579         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
14580         end_cleanup_deferral, last_cleanup_this_contour,
14581         containing_blocks_have_cleanups_or_stack_level,
14582         any_pending_cleanups): Remove.
14583         (expand_null_return_1): Take no arguments.
14584         (expand_label, expand_naked_return, expand_return,
14585         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
14586         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
14587         expand_end_case_type): Don't use any of them.
14588         * calls.c (expand_call): Likewise.
14589         * dojump.c (do_jump): Likewise.
14590         * function.c (expand_function_end): Likewise.
14591         * expr.c (store_expr, expand_expr_real_1): Likewise.
14592         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
14593         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
14594         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
14595         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
14596         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
14597         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
14598         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
14599         for WITH_CLEANUP_EXPR.
14600         (gimple_push_cleanup): Likewise.
14601         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
14602         * print-tree.c (print_node): Likewise.
14603         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
14604         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
14605         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
14606         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
14607         (GOTO_SUBROUTINE_EXPR): Remove.
14608         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
14609         (DECL_TOO_LATE): Remove.
14610         * except.h, tree.h: Update decls.
14611
14612 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
14613
14614         * explow.c (optimize_save_area_alloca): Do not accept parameters.
14615         * passes.c (rest_of_handle_final): Handle symout.
14616         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
14617         Push timevar here.
14618         (rest_of_handle_sched): Break out SMS.  Remove ifs for
14619         flag_schedule_insns and flag_modulo_sched.
14620         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
14621         collect at the end.
14622         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
14623         (rest_of_handle_partition_blocks, rest_of_handle_sms,
14624         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
14625         rest_of_handle_mode_switching, rest_of_handle_jump,
14626         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
14627         rest_of_handle_jump2, rest_of_handle_postreload,
14628         rest_of_handle_flow2, rest_of_clean_state,
14629         rest_of_handle_shorten_branches,
14630         rest_of_handle_prologue_epilogue,
14631         rest_of_handle_branch_target_load_optimize): New.
14632         (rest_of_compilation): Call the above.  Remove ggc_collect
14633         calls moved to rest_of_handle_*.
14634         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
14635
14636         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
14637         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
14638         * except.h (set_nothrow_function_flags): Update comment.
14639         * function.c (current_function_nothrow): Remove.
14640         * output.h (current_function_nothrow): Remove.
14641         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
14642         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
14643
14644 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
14645
14646         PR bootstrap/16326
14647         * reorg.c: Revert 2004-06-30 change.
14648         (find_end_label): If HAVE_epilogue and !HAVE_return,
14649         return 0 instead of creating a label at the end of the insn chain.
14650         (optimize_skip): Account for the failure mode of find_end_label.
14651         (fill_simple_delay_slots): Likewise.
14652         (fill_slots_from_thread): Likewise.
14653         (relax_delay_slots): Likewise.
14654
14655 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
14656
14657         * tree-flow.h (addressable_vars): Declare.
14658         * tree-ssa-alias.c (addressable_vars): Define.
14659         (setup_pointers_and_addressables): Add addressable variables
14660         to addressable_vars.
14661         * tree-ssa-operands.c (get_stmt_operands): Move
14662         handling of ASM_EXPRs ...
14663         (get_asm_expr_operands): ... here.
14664         When the ASM_EXPR clobbers memory, also clobber addressable
14665         variables.
14666         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
14667         (delete_tree_ssa): Reset addressable_vars.
14668
14669 2004-07-07  Jan Beulich  <jbeulich@novell.com>
14670             Richard Henderson  <rth@redhat.com>
14671
14672         * varasm.c (assemble_variable): Use assemble_zeros for
14673         zero-initialized variables.
14674         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
14675         for SECCAT_BSS and SECCAT_TBSS.
14676
14677 2004-07-07  Jan Beulich  <jbeulich@novell.com>
14678
14679         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
14680
14681         * expmed.c (emit_store_flag): Also special-case double-word
14682         (in-)equality comparison against -1.
14683
14684         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
14685         passing arguments the containers for which are registers.
14686
14687         * calls.c (emit_library_call_value_1): Use mode of function parameter
14688         rather than that of argument since constants have none.
14689
14690 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
14691
14692         Introduce H8SX support.
14693         * expr.c (expand_strcpy): Renamed and moved to...
14694         * builtins.c (expand_movstr): ... here.  Tweak.
14695         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
14696         computed or has side effects.
14697         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
14698         unused, or if mempcpy fails.  Adjust the return value in the
14699         latter case.  Use movstr if everything else fails.
14700         * doc/md.texi (movstr): Document.
14701         (movmemM, clrmemM): Fix explanation of memory block operands.
14702         * config/h8300/h8300.md (stpcpy): Renamed to...
14703         (movstr): ... this.  Adjust.
14704         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
14705         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
14706         movmem* and clrstr* to clrmem*.
14707         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
14708         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
14709         GENERAL_REGS, always.
14710         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
14711         getting the stack pointer as addr.
14712         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
14713         from general_operand_dst.
14714         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
14715         variant of...
14716         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
14717         instead of requiring it to match only before reload.
14718         (stpcpy_internal_normal): New, normal-mode variant of...
14719         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
14720         `D' instead of requiring it to match only before reload.
14721         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
14722         mode argument.
14723         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
14724         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
14725         h8300_get_index.
14726         * config/h8300/h8300.md (attr type): Add call.
14727         (attr can_delay): If type is call, set it no.
14728         (call, call_value): Set type to call.
14729         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
14730         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
14731         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
14732         * tree.c (get_narrower): Don't narrow integral types into
14733         non-integral types.
14734         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
14735         frame_size *before* the first use.
14736         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
14737         on input.
14738         (peephole2): Don't widen instructions that push SP.  Move
14739         decrement of SP to the end of all stm-generating peepholes.
14740         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
14741         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
14742         and OR to set it to all ones.
14743         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
14744         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
14745         (call, call_value): Set can_delay to "no".
14746         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
14747         * config/h8300/h8300.md (extzv): Make subreg check more robust.
14748         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
14749         * config/h8300/h8300.md (*brabit): Remove.
14750         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
14751         zero_extract.  Use bit_memory_operand as the predicate for
14752         operand 1 and 'WU' as the constraint.  Check the difference
14753         between the base length and the final one when deciding which
14754         type of branch to use.
14755         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
14756         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
14757         Use convert_move to extend the result for TARGET_H8300SX.  Check
14758         for QImode memory references.  Optimize the case where the
14759         destination is a paradoxical subreg.
14760         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
14761         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
14762         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
14763         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
14764         * config/h8300/h8300.md: Include mova.md
14765         (length_table): Add mova and mova_zero.
14766         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
14767         after all constant addresses for '%R', '%X', '%T' and '%S'.
14768         (h8300_mova_length): New function.
14769         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
14770         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
14771         dependencies for s-config, etc.
14772         * config/h8300/gemova.sh: New file.
14773         * config/h8300/mova.md: Generated.
14774         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
14775         * config/h8300/h8300.c (h8300_bitfield_length): New.
14776         (nibble_operand): Adjust.
14777         (h8300_binary_length): Handle conditional binary op.
14778         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
14779         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
14780         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
14781         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
14782         constraints.  WU is introduced as a variant of U that requires a
14783         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
14784         * config/h8300/h8300.md (attr type): Added bitbranch.
14785         (attr length_table): Added bitfield and bitbranch.
14786         (attr length): Compute bitbranch length.
14787         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
14788         least-significant bit of a byte.
14789         (brabit, brabc, brabs): New.
14790         (insv, extzv): Emit bfst and bfld on H8300SX.
14791         (bfld, bfst, seq, sne): New.
14792         (bstzhireg, cmpstz, bstz, bistz): New.
14793         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
14794         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
14795         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
14796         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
14797         (h8sx_unary_memory_operator): New function.
14798         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
14799         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
14800         * config/h8300/h8300.md: Add peepholes to combine reloads and
14801         arithmetic insns.
14802         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
14803         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
14804         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
14805         (and?i, ior?i, xor?i): Likewise.
14806         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
14807         * config/h8300/h8300.c: Move enums and prototypes to head of file.
14808         Various whitespace fixes.
14809         (h8300_constant_length): New function, split out from...
14810         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
14811         (h8300_classify_operand): Use IN_RANGE.
14812         (h8300_classify_operand): Use h8300_constant_length.
14813         (h8300_short_move_mem_p): Tighten size check.
14814         (h8sx_mergeable_memrefs_p): Tighten equality check.
14815         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
14816         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
14817         for -msx.
14818         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
14819         * config/h8300/crtn.asm: Likewise.
14820         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
14821         if __H8300SX__ is defined.
14822         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
14823         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
14824         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
14825         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
14826         addresses as mode-dependent.
14827         * config/h8300/h8300.c (print_operand_address): Update call to
14828         h8300_get_index.
14829         (h8300_get_index): Take a mode argument.  Rework to fix an
14830         earlier misunderstanding.
14831         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
14832         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
14833         into a register if TARGET_H8300SX.
14834         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
14835         TARGET_H8300SX.  Also disable related define_splits.
14836         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
14837         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
14838         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
14839         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
14840         * config/h8300/h8300.h (OK_FOR_Z): New macro.
14841         (EXTRA_CONSTRAINT_STR): Check it.
14842         * config/h8300/h8300.c (h8300_classify_operand): Accept null
14843         class arguments.
14844         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
14845         * config/h8300/h8300.md (length_table): Add mov_imm4.
14846         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
14847         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
14848         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
14849         be a label.
14850         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
14851         * config/h8300/h8300.c (h8300_reorg): New function.
14852         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14853         * config/h8300/h8300.md (length): Subtract the length of the
14854         delay slot from (pc) when checking the range of forward branches.
14855         (delay_slot, can_delay): New attributes.
14856         (define_delay): Add bra/s handling.
14857         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
14858         (jump): Add delayed-branch handling.
14859         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
14860         * expr.c (expand_strcpy): New function.
14861         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
14862         (expand_builtin_stpcpy): Likewise.
14863         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
14864         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
14865         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
14866         handling to improve register allocation for -fno-omit-frame-pointer.
14867         (h8sx_split_movmd): Delete, moving er6 handling into...
14868         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
14869         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
14870         (movmd): Add calls to copy_rtx.
14871         (movmd_internal): In the second alternative, allow the initial and
14872         final destination registers to be different .  Update the splitter
14873         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
14874         instead of h8sx_split_movmd.
14875         (stpcpy, movsd): New expanders.
14876         (movsd_internal): New define_insn.
14877         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
14878         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
14879         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
14880         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
14881         and DESTINATION_REGS.
14882         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
14883         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
14884         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
14885         (h8300_move_ratio): Declare.
14886         (MOVE_RATIO): Use it.
14887         * config/h8300/h8300.c (h8300_move_ratio): New variable.
14888         (h8300_init_once): Initialize it.
14889         (h8300_reg_class_from_letter): New function.
14890         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
14891         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
14892         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
14893         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
14894         (movstrsi, movmd): New expanders.
14895         (movmd_internal): New insn.
14896         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
14897         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
14898         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
14899         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
14900         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
14901         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
14902         * config/h8300/h8300.c (nibble_operand): Fix warning.
14903         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
14904         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
14905         (movsf_h8300h): Disable for TARGET_H8300SX.
14906         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
14907         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
14908         h8300_stm_parallel and h8300_return_parallel.
14909         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
14910         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
14911         h8300_stm_parallel, h8300_return_parallel): New functions.
14912         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
14913         if TARGET_H8300SX.  Use h8300_push_pop.
14914         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
14915         and final pop when generating h8sx code.  Always emit some form
14916         of return insn.
14917         * config/h8300/h8300.md: Don't enforce register alignment in
14918         stm peepholes if TARGET_H8300SX.
14919         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
14920         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
14921         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
14922         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
14923         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
14924         (MULTILIB_DIRNAMES): Add a directory for it.
14925         (MULTILIB_MATCHES): Delete.
14926         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
14927         * final.c (walk_alter_subreg): Handle addresses with subregs
14928         inside a ZERO_EXTEND or AND.
14929         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
14930         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
14931         if TARGET_H8300SX.
14932         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
14933         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
14934         @(dd,Rn.w) and @(dd,ERn.L).
14935         (h8300_displacement_size): Take the whole address as argument.
14936         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
14937         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
14938         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
14939         (h8sx_mergeable_memrefs_p): Declare.
14940         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
14941         (HAVE_PRE_INCREMENT): Likewise.
14942         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
14943         addresses for TARGET_H8300SX,
14944         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
14945         and POST_DEC.
14946         (movb_length_table, movl_length_table): New tables.
14947         (movw_length_table): Define to movb_length_table.
14948         (h8300_displacement_size): New, split out from...
14949         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
14950         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
14951         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
14952         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
14953         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
14954         (compute_plussi_length, compute_plussi_cc): Update accordingly.
14955         (h8sx_unary_shift_operator): Get the mode from the operator.
14956         (binary_shift_operator): Likewise.
14957         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
14958         a memory reference, check whether the reference is offsettable.
14959         (length_table): Add movb, movw and movl.
14960         (movqi): Add new h8sx pattern.  Don't force one operand to be a
14961         register when generating h8sx code.
14962         (movhi, movsi, movsf): Likewise.
14963         (movstrictqi): Use the length_table attribute.
14964         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
14965         (addqi3): Split into a define_expand and define_insn.  Don't accept
14966         memory operands in the expander.  Use h8300_operands_match_p to
14967         check for matching operands in the define_insn.
14968         (subqi3, negqi2, one_cmplqi2): Likewise.
14969         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
14970         in any patterns that are unused in h8sx code.  In the h8sx patterns,
14971         use h8300_operands_match_p to check whether operands match.
14972         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
14973         one_cmpl[hs]i3): Likewise.
14974         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
14975         in the expander.
14976         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
14977         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
14978         (h8300_insn_length_from_table): Add a second parameter.
14979         (output_h8sx_shift): Declare.
14980         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
14981         (EXTRA_CONSTRAINT): Replace with...
14982         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
14983         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
14984         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
14985         and h8sx_binary_shift_operator.
14986         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
14987         for TARGET_H8300SX.
14988         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
14989         (bit_memory_operand, fix_bit_operand): Likewise.
14990         (h8300_length_table_for_insn): Remove.
14991         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
14992         instructions.
14993         (h8300_short_immediate_length, h8300_binary_length): New functions.
14994         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
14995         (output_plussi): Use sub to add negative constants.
14996         (compute_plussi_length): Adjust accordingly.
14997         (h8sx_single_shift_type): New enum.
14998         (h8sx_single_shift, h8sx_unary_shift_operator,
14999         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
15000         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
15001         single h8sx instruction.  Return false in this case.
15002         * config/h8300/h8300.md (length_table): Add short_immediate.
15003         (length): Pass the operand array to h8300_insn_length_from_table.
15004         (adjust_length): Assume "no" for insns with a length_table attribute.
15005         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
15006         (*addhi3_h8300hs): Don't use for h8sx.
15007         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
15008         and sub.w #xx:3.
15009         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
15010         1's predicate to nonimmediate_operand.  Only skip default expansion
15011         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
15012         for single h8sx shift instructions.
15013         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
15014         * config/h8300/h8300.c (nibble_operand): Split out of...
15015         (reg_or_nibble_operand): ... this.
15016         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
15017         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
15018         umulhisi3): Introduce expand, and introduce separate insns for
15019         sign- or zero-extended REG and already-extended CONST_INT.
15020         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
15021         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
15022         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
15023         (subhi3): Likewise.  Don't accept immediates for operand 1.
15024         Remove the early clobber from second alternative of the h8300s pattern.
15025         (subsi3): Generalize for h8sx.  Force operand 2 into a register
15026         on plain h8300 targets.
15027         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
15028         (subsi3_h8300h): Generalize for h8sx.
15029         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
15030         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
15031         * config/h8300/h8300.c (reg_or_nibble_operand): New.
15032         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
15033         (TARGET_H8300SXMUL): New.
15034         (CONST_OK_FOR_P): New.
15035         (CONST_OK_FOR_LETTER_P): Adjust.
15036         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
15037         umulhisi3): Accept 4-bit immediate on H8SX.
15038         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
15039         (udivsi3, divhi3, udivsi3, divsi3): New.
15040         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
15041         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
15042         * config/h8300/h8300.h (OK_FOR_Q): New macro.
15043         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
15044         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
15045         Add ADDRESSOF to the bit_operand entry.
15046         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
15047         (h8300_src_operand): Likewise.
15048         (bit_operand): Check nonimmediate_operand rather than general_operand.
15049         Accept any nonimmediate_operand in h8sx code.
15050         (h8300_and_costs): Initialize operands[1].
15051         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
15052         (h8300_operand_class): New enum.
15053         (h8300_length_table): New typedef.
15054         (addb_length_table, addw_length_table, addl_length_table,
15055         logicl_length_table): New tables.
15056         (logicb_length_table, logicw_length_table): New macros.
15057         (h8300_classify_operand, h8300_length_from_table,
15058         h8300_length_table_for_insn, h8300_unary_length,
15059         h8300_insn_length_from_table): New functions.
15060         (output_plussi): Only use adds and subs for register destinations.
15061         Disable redundant clause.
15062         (compute_plussi_cc): Likewise.
15063         (compute_plussi_length): Likewise.  Use h8300_length_from_table
15064         to work out the length of an insn.
15065         (output_logical_op): Only use narrower immediate instructions
15066         if the destination is a register.
15067         (compute_logical_op_cc): Likewise.
15068         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
15069         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
15070         * config/h8300/h8300.md (length_table): New attribute.
15071         (length): When an instruction has a length_table attribute, use
15072         h8300_insn_length_from_table to calculate its default length.
15073         (cmpqi): Use h8300_dst_operand for the first operand and
15074         h8300_src_operand for the second.
15075         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
15076         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
15077         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
15078         iorsi3, xorhi3, xorsi3): Likewise.
15079         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
15080         so that it allows any combination of operands for TARGET_H8300SX.
15081         (iorqi3, xorqi3): Likewise.
15082         (cmpqi): Use the length_table attribute.
15083         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
15084         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
15085         (cmpqi): Add 'Q' constraint.
15086         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
15087         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
15088         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
15089         * config/h8300/h8300.h (MASK_H8300SX): New macro.
15090         (TARGET_H8300S): True for both -ms and -msx.
15091         (TARGET_H8300SX): New macro.
15092         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
15093         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
15094         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
15095         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
15096         [Temporary change.]
15097         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
15098         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
15099         16-bit pointers and 32-bit ints.
15100         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
15101         CONST_DOUBLE with mode no wider than SImode.
15102         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
15103         output operand.
15104         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
15105         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
15106         or SUBREG thereof.
15107         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
15108         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
15109         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
15110
15111 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
15112
15113         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
15114
15115 2004-07-07  Per Bothner  <per@bothner.com>
15116
15117         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
15118
15119 2004-07-07  Mike Stump  <mrs@apple.com>
15120
15121         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
15122         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
15123         (machopic_finish): Likewise.
15124
15125 2004-07-07  Richard Henderson  <rth@redhat.com>
15126
15127         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
15128         through any value-preserving cast.
15129
15130 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
15131
15132         * function.c (assign_parm_find_data_types): Call
15133         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
15134
15135 2004-07-07  Steven Bosscher  <stevenb@suse.de>
15136
15137         * tree-cfg.c (group_case_labels): Remove case labels that have
15138         the same target as the default case.
15139
15140 2004-07-07  Steven Bosscher  <stevenb@suse.de>
15141
15142         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
15143         regardless of DECL_LANG_SPECIFIC being present or not.
15144         * tree.h (DECL_NUM_STMTS): Purge.
15145
15146 2004-07-07  Andrew Pinski  <apinski@apple.com>
15147
15148         * configure: Regenerate with the right autoconf.
15149
15150 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
15151
15152         * ifcvt.c (total_bb_rtx_cost): New function.
15153         (find_if_case_1): Compare rtx_cost of basic block to cost of
15154         BRANCH_COST insns.
15155         (find_if_case_2): Same.
15156
15157 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
15158
15159         PR target/10567
15160         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
15161         (output_return): Likewise.
15162         (output_sibcall): Abort if !flag_delayed_branch.
15163         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
15164         (emit_and_preserve): New function.
15165         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
15166         indirect jump to the thunked-to function if !flag_delayed_branch.
15167         * config/sparc/sparc.md (delayed_branch): New attribute.
15168         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
15169         attribute to compute the length of the insn.
15170         (goto_handler_and_restore): Likewise.
15171
15172 2004-07-07  Andrew Pinski  <apinski@apple.com>
15173
15174         PR tree-optimization/15777
15175         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
15176
15177         * expr.c (expand_expr_real_1): Fix formating.
15178         BUFFER_REF and IN_EXPR are dead.
15179         * fold-const.c (non_lvalue): BUFFER_REF is dead.
15180         * tree-inline.c (estimate_num_insns_1): Likewise.
15181         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
15182         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
15183         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
15184
15185 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15186
15187         * collect2.c (dump_file): Don't call cplus_demangle if
15188         HAVE_LD_DEMANGLE is defined.
15189         (main): Pass "--demangle" to ld if no_demangle is not 0 and
15190         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
15191         if HAVE_LD_DEMANGLE is defined.
15192
15193         * configure.ac (--with-demangler-in-ld): Added
15194         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
15195         --with-demangler-in-ld is used.
15196         * config.in: Regenerated.
15197         * configure: Likewise.
15198
15199 2004-07-07  Roger Sayle  <roger@eyesopen.com>
15200
15201         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
15202         for simple floating point operations "fp", double precision
15203         multiplication "dmul", and single and double precision division
15204         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
15205         (ppc630_cost): New table split from ppc620_cost, to distinguish
15206         differences in floating point latencies.
15207         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
15208         (rs6000_rtx_costs): Add support for single and double precision
15209         floating point addition, subtraction, multiplication, division,
15210         fused-multiply-add, fused-multiply-sub, negation, absolute value
15211         and negative absolute value.  Tweak MEM case to use prefered idiom.
15212
15213 2004-07-07  Richard Henderson  <rth@redhat.com>
15214
15215         * tree-flow-inline.h (may_propagate_copy): Move...
15216         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
15217         attempt to copy between types requiring conversion.
15218         * tree-flow.h (may_propagate_copy): Update decl.
15219         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
15220
15221 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
15222
15223         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
15224         from -mtune= option.
15225
15226 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
15227
15228         * builtins.c: Rename movstr*, except for movstrict*, to
15229         movmem* and clrstr* to clrmem*.
15230         * expr.c: Likewise.
15231         * expr.h: Likewise.
15232         * genopinit.c: Likewise.
15233         * integrate.c: Likewise.
15234         * local-alloc.c: Likewise.
15235         * optabs.c: Likewise.
15236         * optabs.h: Likewise.
15237         * config/alpha/alpha.h: Likewise.
15238         * config/alpha/alpha.md: Likewise.
15239         * config/arm/arm-protos.h: Likewise.
15240         * config/arm/arm.c: Likewise.
15241         * config/arm/arm.md: Likewise.
15242         * config/avr/avr.md: Likewise.
15243         * config/c4x/c4x.c: Likewise.
15244         * config/c4x/c4x.md: Likewise.
15245         * config/frv/frv.md: Likewise.
15246         * config/i386/i386-protos.h: Likewise.
15247         * config/i386/i386.c: Likewise.
15248         * config/i386/i386.h: Likewise.
15249         * config/i386/i386.md: Likewise.
15250         * config/i860/i860.c: Likewise.
15251         * config/i860/i860.md: Likewise.
15252         * config/ip2k/ip2k.md: Likewise.
15253         * config/ip2k/libgcc.S: Likewise.
15254         * config/ip2k/t-ip2k: Likewise.
15255         * config/m32r/m32r.c: Likewise.
15256         * config/m32r/m32r.md: Likewise.
15257         * config/mcore/mcore.md: Likewise.
15258         * config/mips/mips.c: Likewise.
15259         * config/mips/mips.md: Likewise.
15260         * config/ns32k/ns32k.c: Likewise.
15261         * config/ns32k/ns32k.h: Likewise.
15262         * config/ns32k/ns32k.md: Likewise.
15263         * config/pa/pa.c: Likewise.
15264         * config/pa/pa.md: Likewise.
15265         * config/pdp11/pdp11.h: Likewise.
15266         * config/pdp11/pdp11.md: Likewise.
15267         * config/rs6000/rs6000.c: Likewise.
15268         * config/rs6000/rs6000.md: Likewise.
15269         * config/s390/s390-protos.h: Likewise.
15270         * config/s390/s390.c: Likewise.
15271         * config/s390/s390.md: Likewise.
15272         * config/sh/lib1funcs.asm: Likewise.
15273         * config/sh/sh.c: Likewise.
15274         * config/sh/sh.md: Likewise.
15275         * config/sh/t-sh: Likewise.
15276         * config/sparc/sparc.h: Likewise.
15277         * config/vax/vax.md: Likewise.
15278         * config/xtensa/xtensa.c: Likewise.
15279         * config/xtensa/xtensa.md: Likewise.
15280         * doc/invoke.texi: Likewise.
15281         * doc/md.texi: Likewise.
15282         * doc/rtl.texi: Likewise.
15283
15284 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
15285
15286         PR target/16407
15287         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
15288         * config/mips/mips.c (mips_declare_common_object): New function,
15289         mostly split out from...
15290         (mips_output_aligned_decl_common): ...here.
15291         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
15292         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
15293         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
15294         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
15295
15296 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15297
15298         PR c/16392
15299         * function.c (assign_parms): Fix typo from previous change.
15300
15301 2004-07-07  Jason Merrill  <jason@redhat.com>
15302
15303         PR c++/15815
15304         * doc/extend.texi (C++ Interface): Correct information and
15305         discourage use.
15306
15307 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
15308
15309         PR target/16130
15310         PR target/16142
15311         PR target/16143
15312         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
15313         insn.
15314
15315 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15316
15317         PR target/1679.
15318         * config/m32r/m32r.c (m32r_function_symbol): New function:
15319         Generate a symbol name RTX with the correct m32r specific flags
15320         set.
15321         (block_move_call): Use new function to generate correct symbol.
15322         * config/m32r/m32r-protos.h: Add prototype for new funcion.
15323         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
15324         function.
15325
15326 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
15327
15328         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
15329         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
15330         TYPE_BINFO_BASETYPE): Remove.
15331         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
15332         to ...
15333         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
15334         here.
15335         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
15336         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
15337         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
15338         (struct tree_binfo): Rename base_types to base_binfos.
15339         * alias.c (record_component_aliases): Adjust BINFO macros.
15340         * dbxout.c (dbxout_type): Likewise.
15341         * dwarf2out.c (gen_member_die): Likewise.
15342         * sdbout.c (sdbout_one_type): Likewise.
15343         * tree-dump.c (deque_and_dump): Likewise.
15344         * config/i386/i386.c (classify_argument,
15345         contains_128bit_aligned_vector_p): Likewise.
15346
15347 2004-07-07  Nick Clifton  <nickc@redhat.com>
15348
15349         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
15350         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
15351
15352 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
15353
15354         * vec.h: Fix the example use.
15355
15356 2004-07-06  Richard Henderson  <rth@redhat.com>
15357
15358         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
15359         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
15360         * tree-inline.c (copy_body_r, setup_one_parameter,
15361         initialize_inlined_parameters, expand_call_inline,
15362         declare_inline_vars): Don't check it.
15363         (expand_calls_inline): Remove old version, rename new version
15364         from gimple_expand_calls_inline.
15365         * tree-optimize.c (execute_gimple): Remove.
15366         (pass_gimple): Don't run anything.
15367
15368 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
15369
15370         * doc/sourcebuild.texi: Use semicolons instead of commas in
15371         section title.
15372
15373 2004-07-06  Richard Henderson  <rth@redhat.com>
15374
15375         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
15376         (sra_walk_modify_expr, scan_init): Likewise.
15377         (generate_element_zero): Check visited before scanning children.
15378         (generate_element_init): Set visited on error.
15379         (scalarize_init): Handle generate_element_init failure similar
15380         to use_block_copy.
15381
15382 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
15383
15384         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
15385         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
15386
15387 2004-07-06  Richard Henderson  <rth@redhat.com>
15388
15389         * config/i386/i386.c (legitimize_pic_address): Make static.
15390         (legitimize_address): Handle CONST with TLS operand.
15391         (ix86_expand_move): Don't call legitimize_pic_address directly.
15392         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
15393
15394 2004-07-06  Roger Sayle  <roger@eyesopen.com>
15395
15396         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
15397         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
15398         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
15399         is currently executed unconditionally, i.e. not in "else_bb".
15400
15401 2004-07-06  Steven Bosscher  <stevenb@suse.de>
15402
15403         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
15404         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15405         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
15406         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15407         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
15408         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15409         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
15410         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15411         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
15412         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15413         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
15414         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15415         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
15416         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15417         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
15418         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15419
15420 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
15421
15422         * dojump.c (do_jump): REFERENCE_EXPR is dead.
15423         * expr.c (expand_expr_real_1): Ditto.
15424         * tree-inline.c (estimate_num_insns_1): Ditto.
15425         * tree-pretty-print.c (dump_generic_node): Ditto.
15426         (op_symbol): Ditto.
15427         * tree.def: Ditto.
15428
15429 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
15430
15431         * tree-ssa-pre.c (reference_node_pool): New pool.
15432         (find_or_generate_expression): Class 'r' is okay too.
15433         (create_value_expr_from): Ditto.
15434         (add_to_sets): LHS should not include vuses.
15435         (eliminate): Ditto.
15436         (compute_avail): Reverse ordering of tests.
15437         Valuize INDIRECT_REF as well.
15438
15439 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
15440
15441         PR rtl-optimization/16380
15442         * loop.c (check_dbra_loop): Sink comparison instructions if they
15443         do something other than set cc0.
15444
15445 2004-07-06  James E Wilson  <wilson@specifixinc.com>
15446
15447         * doc/interface.texi (longjmp and automatic variables): Delete
15448         paragraph recommending taking the address of a variable.
15449
15450 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
15451
15452         * vec.h (VEC_embedded_alloc): Remove.
15453         (VEC_embedded_size, VEC_embedded_init): New.
15454         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
15455         MEM_STAT_INFO.
15456         (VEC_truncate): New.
15457         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
15458         (vec_embedded_alloc): Remove.
15459         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
15460         (vec_embedded_alloc): Remove.
15461
15462 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
15463
15464         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
15465         (gt-langhooks.h): Remove.
15466
15467 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
15468
15469         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
15470
15471 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
15472
15473         * config/sparc/sparc.c (get_pc_symbol): Rename into
15474         add_pc_to_pic_symbol.
15475         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
15476         (load_pic_register): Account for previous changes.
15477         Use reg_names.  Don't create the label twice.
15478         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
15479         UNSPEC_LOAD_PCREL_SYM.
15480         (get_pc): Rename into load_pcrel_sym.  Add predicate to
15481         operands.  Remove condition.
15482
15483 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
15484
15485         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
15486         RECORD, UNION & QUAL_UNION is actually a binfo.
15487
15488         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
15489         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
15490         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
15491         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
15492         * dwarf2out.c (add_data_member_location_attribute): Likewise.
15493         (gen_inheritance_die): Likewise.
15494         * tree-dump.c (deque_and_dump): Likewise.
15495         * doc/c-tree.texi (Binfos): Add under reconstruction note.
15496
15497 2004-07-06  Steven Bosscher  <stevenb@suse.de>
15498
15499         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
15500         Define.
15501         * config/mcore/mcore.md: Model memory latency with a simple DFA
15502         pipeline description instead of a define_function_unit.
15503
15504 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15505
15506         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
15507         * langhooks.h (var_mod_type_p): Likewise.
15508         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
15509         * expr.c (count_type_elements): Properly handle return from
15510         array_type_nelts and properly test for overflow.
15511         * gimplify.c (gimplify_init_constructor): Properly handle return
15512         from array_type_nelts.
15513         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
15514         * integrate.c (copy_decl_for_inlining): Correct comments.
15515         * tree-inline.c (remap_decl): Update comments, remove dead code,
15516         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
15517         (remap_type): Only remap if variably modified by vars in function
15518         being inlined.
15519         (copy_body_r): Use compatible_type langhooks to see when can fold.
15520         (setup_one_parameter): Don't remap type.
15521         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
15522         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
15523         compute TREE_INVARIANT for decl case.
15524         (find_var_from_fn): New function.
15525         (variably_modified_type_p): Add arg and call new function.
15526         * tree.h (variably_modified_type_p): Add extra arg.
15527
15528 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
15529
15530         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
15531         (goto_handler_and_restore_v9): Delete disabled insn.
15532         (goto_handler_and_restore_v9_sp64): Likewise.
15533
15534 2004-07-05  Roger Sayle  <roger@eyesopen.com>
15535
15536         * calls.c (load_register_parameters): Call expand_shift instead
15537         of expand_binop with ashl_optab (or other shift optab) directly.
15538         * expr.c (emit_group_load, emit_group_store): Likewise.
15539         * function.c (assign_parm_setup_block): Likewise.
15540         * stmt.c (shift_return_value): Likewise.
15541
15542 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
15543
15544         * expr.c (expand_assignment): Disable the bitfield += optimizations.
15545
15546 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
15547
15548         * doc/sourcebuild.texi: Revert previous patch.
15549
15550 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
15551
15552         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
15553         TARGET_MEM_FUNCTIONS.
15554         * system.h: Poison TARGET_MEM_FUNCTIONS.
15555         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
15556         bcmp_libfunc, bzero_libfunc): Remove.
15557         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
15558         bzero_libfunc.
15559         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
15560         * doc/standards.texi: Don't mention calling BSD string functions.
15561         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
15562         * config/vax/t-memfuncs: New.
15563         * config/memcmp.c, config/memcpy.c, config/memmove.c,
15564         config/memset.c: New.
15565         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
15566         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
15567         vax/t-memfuncs.
15568         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
15569         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
15570         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
15571         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
15572         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
15573         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
15574         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
15575         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
15576         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
15577         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
15578
15579 2004-07-05  Richard Henderson  <rth@redhat.com>
15580
15581         * function.c (assign_parm_setup_reg): Properly rename variables in
15582         FUNCTION_ARG_CALLEE_COPIES section.
15583
15584 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
15585
15586         * tree-mudflap.c: Include cgraph.h.
15587         (mf_init_extern_trees): Rename to mudflap_init.  Export.
15588         Rewrite to create synthetic declarations instead of looking
15589         up declarations from mf-runtime.h.
15590         (mf_make_builtin, mf_make_cache_struct_type): New functions.
15591         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
15592         Correct commentary.
15593         (execute_mudflap_function_decls, mudflap_register_call):
15594         Don't call mf_init_extern_trees.
15595         (mudflap_finish_file): Use cgraph_build_static_cdtor.
15596
15597         * tree-mudflap.h: Update prototypes.
15598         * c-mudflap.c: Delete file.
15599         * c-common.c: Include tree-mudflap.h.
15600         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
15601         * Makefile.in: Remove all references to c-mudflap.o.
15602         Update dependencies.
15603
15604 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15605
15606         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
15607         displacements with the spatial-locality cache-control completer.
15608
15609 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
15610
15611         * langhooks.c: Don't include gt-langhooks.h.
15612         (var_labelno): Delete.
15613         (lhd_set_decl_assembler_name): Do not append a distinguishing
15614         number to file-scope internal-linkage declarations for the first
15615         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
15616         the declaration itself (if at block scope), or its containing
15617         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
15618         number.
15619
15620         * opts.c (cur_in_fname): New global.
15621         * opts.h: Declare it.
15622         * tree.c: Include opts.h.
15623         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
15624         DECL_UID equal to cur_in_fname.
15625         (copy_node_stat): Do not change DECL_UID when copying a
15626         TRANSLATION_UNIT_DECL.
15627         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
15628         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
15629
15630         * c-decl.c (c_static_assembler_name): Delete.
15631         * c-tree.h (c_static_assembler_name): Delete prototype.
15632         * c-lang.c, objc/objc-lang.c: Don't override
15633         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
15634
15635         * Makefile.in (tree.o): Update dependencies.
15636         (GTFILES): Remove langhooks.c.
15637
15638 2004-07-05  Roger Sayle  <roger@eyesopen.com>
15639
15640         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
15641         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
15642         Normalize "X % C" as "X % -C" for signed modulus and negative C.
15643         Optimize "X % -Y" as "X % Y" for signed modulus.
15644         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
15645         into "((unsigned) X % Y) == 0".
15646
15647 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
15648
15649         * sourcebuild.texi (Config Fragments): Use @comma{} in
15650         cross-reference to section title.
15651
15652 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15653
15654         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
15655         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
15656         (gimplify_target_expr, gimplify_expr): Likewise.
15657         (copy_if_shared_r): No longer need special case for BIND_EXPR.
15658         (unshare_body, unvisit_body): Only look at nested if BODY_P is
15659         whole function.
15660         (gimplify_compound_lval): See if we can strip any useless conversion.
15661         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
15662         from RHS, not LHS.
15663         (gimplify_modify_expr_to_memset): Likewise.
15664         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
15665         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
15666         (declare_inline_vars): Likewise.
15667         (walk_type_fields): New function.
15668         (walk_tree): Use it.
15669         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
15670
15671         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
15672         (sra_walk_modify_expr): Allow init function to fail.
15673         (scan_init): Now returns bool.
15674         (generate_element_init): If can't understand INIT, return false.
15675         (scalarize_init): Return false if generate_element_init does.
15676
15677         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
15678         print bounds.
15679
15680         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
15681         bounds if bounds aren't constant.
15682
15683         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
15684
15685         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
15686         to type hooks; remove bogus PARAMS.
15687
15688 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
15689
15690         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
15691         * dwarf2out.c (add_data_member_location_attribute): Check for
15692         TREE_BINFO.
15693         * tree.c (tree_node_kinds): Add "binfos".
15694         (binfo_lang_slots): New.
15695         (make_node_stat): Add TREE_BINFO.
15696         (make_tree_binfo_stat): New.
15697         (tree_node_structure): Add TREE_BINFO.
15698         * tree.def (TREE_BINFO): New.
15699         * tree.h (REC_OR_UNION_CHECK): Rename to ...
15700         (RECORD_OR_UNION_CHECK): ... here.
15701         (NOT_RECORD_OR_UNION_CHECK): New.
15702         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
15703         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
15704         RECORD_OR_UNION_CHECK.
15705         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
15706         (TYPE_LANG_SLOT_1): New.
15707         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
15708         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
15709         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
15710         (BINFO_ELTS): Remove.
15711         (BINFO_LANG_SLOT): New.
15712         (struct tree_binfo): New.
15713         (binfo_lang_slots): Declare.
15714         (enum tree_node_structure_enum): Add TS_BINFO.
15715         (union tree_node): Add binfo.
15716         (make_tree_binfo_stat): Declare.
15717         (make_tree_binfo): New.
15718         (enum tree_node_kind): Add binfo_kind.
15719
15720         * objc/objc-act.c (start_class, objc_declare_protocols,
15721         start_protocols): Use TYPE_LANG_SLOT_1.
15722         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
15723         to ...
15724         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
15725         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
15726         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
15727         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
15728
15729 2004-07-05  Steven Bosscher  <stevenb@suse.de>
15730
15731         * rtl.h (struct rtx_def): Remove the integrated flag.
15732         Use the return_val flag for MEM_SCALAR_P.
15733         Reshuffle and update flags in CLEAR_RTX_FLAGS.
15734
15735 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
15736
15737         PR target/16357
15738         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
15739         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
15740         move_by_pieces.
15741
15742 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
15743
15744         * var-tracking.c: Fix some comments.
15745         (frame_stack_adjust): New.
15746         (vt_stack_adjustments): Init stack_adjust of entry block to
15747         minus stack adjustment of function prologue.
15748         (adjust_stack_reference): Do not adjust if adjustment == 0.
15749         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
15750         (emit_notes_in_bb): Likewise.
15751         (vt_add_function_parameters): Do not adjust locations of
15752         function arguments.
15753         (vt_initialize): Compute the stack adjustment of function
15754         prologue and offset the initial "location" of frame_base_decl
15755         from the stack pointer after prologue.
15756
15757 2004-07-04  Richard Henderson  <rth@redhat.com>
15758
15759         * function.c (struct assign_parm_data_all): New.
15760         (struct assign_parm_data_one): New.
15761         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
15762         assign_parm_find_data_types, assign_parms_setup_varargs,
15763         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
15764         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
15765         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
15766         assign_parm_setup_block, assign_parm_setup_reg,
15767         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
15768         (assign_parms): ... here.
15769
15770 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
15771
15772         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
15773         now are bitmap_set_t's.
15774         (bitmap_insert_into_set): No point in inserting the value if
15775         it's invariant.
15776         (bitmap_set_contains): New function.
15777         (bitmap_set_replace_value): Add comment on why we do it
15778         this way.
15779         (set_contains): Removed.
15780         (bitmap_set_subtract_from_value_set): New name of
15781         set_subtract now that it's arguments are two different
15782         types of sets.
15783         Update callers.
15784         (bitmap_find_leader): Change algorithm used.
15785         (find_or_generate_expression): Update use of functions for new
15786         bitmap sets.
15787         (create_expression_by_pieces): Ditto.
15788         (insert_aux): Ditto.
15789         (insert): Ditto.
15790         (add_to_sets): Ditto.
15791         (init_pre): Ditto.
15792         (execute_pre): Ditto.
15793         (compute_avail): Ditto.
15794         Also ignore virtual phis.
15795
15796 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
15797
15798         * combine.c (simplify_comparison): Fix comment typo.
15799
15800 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15801
15802         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
15803         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
15804         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
15805         (output_restore): Change parameter from 'insn' to 'pat'.
15806         (output_return): Adjust call to output_restore.
15807         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
15808         Adjust call to output_restore.
15809
15810 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
15811
15812         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
15813         and assert system is bsd.
15814
15815 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
15816
15817         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
15818         (TARGET_SWITCHES): Remove -mdebugc.
15819         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
15820         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
15821         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
15822         (sle_[sd]i_reg): Delete.
15823
15824 2004-07-04  Steven Bosscher  <stevenb@suse.de>
15825
15826         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
15827         Define.
15828         * config/iq2000/iq2000.md: Translate old pipeline description to an
15829         equivalent new one.
15830
15831 2004-07-04  Roger Sayle  <roger@eyesopen.com>
15832
15833         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
15834         Ensure the replacement rhs is valid gimple before performing
15835         the substitution.  Return false if these sanity checks fail.
15836         (fold_stmt): Only set changed to true, if set_rhs returns true.
15837         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
15838         succeeds.
15839
15840 2004-07-04  Richard Henderson  <rth@redhat.com>
15841
15842         PR c/16348
15843         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
15844
15845 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
15846
15847         * configure.ac (ranlib_flags): New variable.
15848         * Makefile.in (RANLIB_FLAGS): New variable.
15849         (libbackend.a): Use it.
15850         * configure: Regenerated.
15851
15852 2004-07-04  Roger Sayle  <roger@eyesopen.com>
15853
15854         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
15855         a "sign mask" instead of using ashr_optab directly.
15856
15857 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
15858
15859         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
15860         * doc/cppopts.texi: Clarify processing of command-line defines.
15861
15862 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
15863
15864         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
15865
15866 2004-07-04  Richard Henderson  <rth@redhat.com>
15867
15868         * rtl.def (ADDRESSOF): Remove.
15869         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
15870         (find_base_term, memrefs_conflict_p): Likewise.
15871         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
15872         (fold_rtx, cse_insn, set_live_p): Likewise.
15873         * dwarf2out.c (mem_loc_descriptor): Likewise.
15874         (add_location_or_const_value_attribute): Likewise.
15875         * emit-rtl.c (copy_insn_1): Likewise.
15876         * explow.c (memory_address): Likewise.
15877         * expmed.c (store_split_bit_field): Likewise.
15878         * expr.c (expand_expr_real_1): Likewise.
15879         * function.c (instantiate_decl
15880         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
15881         * genrecog.c (preds, validate_pattern): Likewise.
15882         * integrate.c (copy_rtx_and_substitute): Likewise.
15883         * recog.c (general_operand, register_operand): Likewise.
15884         (memory_address_p): Likwise.
15885         * reload1.c (eliminate_regs, elimination_effects): Likewise.
15886         * rtl.c (copy_rtx): Likewise.
15887         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
15888         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
15889         * rtlhooks.c (gen_lowpart_general): Likewise.
15890         * stmt.c (expand_asm_operands): Likewise.
15891         * web.c (entry_register, replace_ref, web_main): Likewise.
15892         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
15893         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
15894         * config/arm/arm.c (thumb_rtx_costs): Likewise.
15895         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
15896         * config/frv/frv.c (move_destination_operand, move_source_operand,
15897         condexec_dest_operand, condexec_source_operand,
15898         condexec_memory_operand): Likewise.
15899         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
15900         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
15901         (destination_xfmode_operand): Likewise.
15902         * config/mips/mips.h (PREDICATE_CODES): Likewise.
15903         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
15904         * config/s390/s390.c (general_s_operand): Likewise.
15905         * config/s390/s390.md (mov*): Likewise.
15906         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
15907
15908         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
15909         * expr.c (expand_expr_real_1): Likewise.
15910         * stmt.c (expand_decl): Likewise.
15911         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
15912
15913         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
15914         postponed_insns, put_var_into_stack, put_reg_into_stack,
15915         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
15916         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
15917         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
15918         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
15919         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
15920         purge_bitfield_addressof_replacements, purge_addressof_replacements,
15921         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
15922         struct insns_for_mem_walk_info, insns_for_mem_walk,
15923         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
15924         setjmp_protect_args): Remove.
15925         (push_function_context_to): Don't handle var_refs_queue.
15926         (pop_function_context_from, free_after_compilation): Likewise.
15927         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
15928         (assign_parms, allocate_struct_function): Likewise.
15929         (use_register_for_decl): New.
15930         (expand_function_end): Don't setjmp_protect.
15931         * function.h (struct emit_status): Update commentary.
15932         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
15933         (max_parm_reg, parm_reg_stack_loc): Remove.
15934         * passes.c (DFI_addressof): Remove.
15935         (dump_file_info): Remove addressof.
15936         (rest_of_handle_addressof): Remove.
15937         (rest_of_compilation): Don't call it.
15938         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
15939         * stmt.c (expand_decl): Use use_register_for_decl.
15940         * tree.h: Update decls.
15941         * web.c (mark_addressof): Remove.
15942         * doc/invoke.texi (-dF): Remove.
15943
15944 2004-07-03  Richard Henderson  <rth@redhat.com>
15945
15946         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
15947         instead of gen_mem_addressof.
15948         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
15949         TImode output register.
15950
15951 2004-07-03  Richard Henderson  <rth@redhat.com>
15952
15953         PR tree-optimization/16341
15954         * tree-sra.c (sra_walk_function): Increment to next stmt before
15955         processing the current stmt.
15956         (sra_insert_after): Always use BSI_SAME_STMT.
15957
15958 2004-07-03  Richard Henderson  <rth@redhat.com>
15959
15960         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
15961         fp plus with minus.
15962
15963 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
15964
15965         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
15966         with tree_int_cst_equal.
15967
15968 2004-07-03  Andreas Schwab  <schwab@suse.de>
15969
15970         * config/ia64/ia64.md: Define new attribute "empty".
15971         (prologue_use, nop_x, insn_group_barrier): Set it.
15972
15973         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
15974         skip over "empty" insns.
15975
15976 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15977
15978         * tree-inline.c (initialize_inlined_parameters): Pass proper function
15979         context to gimplify_body.
15980         (walk_tree): Don't walk into types twice.
15981         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
15982
15983         * tree-sra.c (generate_element_init): Remove any useless conversions.
15984
15985         * gimplify.c (gimplify_conversion): Remove stripping useless
15986         conversions from here.
15987         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
15988         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
15989         Unshare before substituting PLACEHOLDER_EXPR.
15990         (gimplify_modify_expr_to_memset): Likewise.
15991         Pass address of TO to memset, not TO itself.
15992         (gimplify_init_constructor): Make copy of OBJECT so we have it each
15993         time we make an expression (to match a PLACEHOLDER_EXPR).
15994
15995         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
15996         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
15997         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
15998         * tree-ssa-dom.c (local_fold): Likewise.
15999
16000         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
16001         * langhooks.h (strct lang_hooks): New field type_max_size.
16002         * function.c (assign_temp): Call it.
16003
16004 2004-07-03  Steven Bosscher  <stevenb@suse.de>
16005
16006         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
16007         * config/sh/sh.md: Convert the SH1 pipeline description to
16008         a DFA model.
16009
16010 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
16011
16012         * c-decl.c (struct c_binding): Remove contour field; add
16013         depth, invisible, nested fields.
16014         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
16015         (B_IN_EXTERNAL_SCOPE): New convenience macros.
16016         (bind): Add invisible and nested arguments. Initialize
16017         new fields of struct c_binding; adjust loop scanning for
16018         insertion point.
16019         (free_binding_and_advance): Clear structure with memset.
16020         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
16021         in file scope, even if it's in external scope too.
16022         (pushdecl): Adjust to match.  Create invisible file-scope
16023         declarations for block-scope forward declarations of static functions.
16024         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
16025         (undeclared_variable, lookup_label, declare_label, define_label)
16026         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
16027         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
16028         (store_parm_decls_oldstyle): Adjust to match.
16029         (diagnose_mismatched_decls): Correct handling of linkage clashes.
16030         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
16031
16032         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
16033         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
16034
16035 2004-07-02  Richard Henderson  <rth@redhat.com>
16036
16037         * c-decl.c (grokdeclarator): Don't frob current_function_decl
16038         around variable_size.
16039         (set_decl_nonlocal): Remove.
16040         (store_parm_decls): Add stmts for pending sizes.
16041         * calls.c (calls_function, calls_function_1): Remove.
16042         (precompute_arguments): Don't call it.
16043         * cfgexpand.c (set_save_expr_context): Remove.
16044         (tree_expand_cfg): Don't call it.
16045         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
16046         (dwarf2out_finish): Likewise.
16047         * expr.c (emit_block_move): Adjust addresses to BLKmode.
16048         (store_constructor): Don't pre-evaluate SAVE_EXPR.
16049         (safe_from_p): Don't queue SAVE_EXPRs.
16050         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
16051         or build plain VAR_DECLs.
16052         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
16053         (fold): Likewise.
16054         (fold_checksum_tree): Don't special-case SAVE_EXPR.
16055         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
16056         (put_var_into_stack): Don't handle SAVE_EXPR.
16057         (gen_mem_addressof): Likewise.
16058         * function.h (struct function): Remove x_save_expr_regs.
16059         (save_expr_regs): Remove.
16060         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
16061         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
16062         * stor-layout.c (variable_size): Don't set it.
16063         (force_type_save_exprs, force_type_save_exprs_1): Remove.
16064         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
16065         all callers.  Don't set SAVE_EXPR_CONTEXT.
16066         * tree-inline.h (remap_save_expr): Update decl.
16067         * tree.c (save_expr): Update build size.
16068         (first_rtl_op): Don't handle SAVE_EXPR.
16069         (unsave_expr_1, contains_placeholder_p): Likewise.
16070         (decl_function_context): Likewise.
16071         * tree.def (SAVE_EXPR): Remove args 1 and 2.
16072         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
16073         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
16074
16075 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
16076
16077         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
16078         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
16079         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
16080         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
16081         some first-person references and patronizing comments.  Based on
16082         printed manual.
16083         * doc/invoke.texi: Don't reference fortran@gnu.org.
16084         * doc/trouble.texi (Warning when a non-void function value is
16085         ignored): Rewrite.  From Russ Allbery and Chris Devers.
16086
16087 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
16088
16089         * tree-ssa-pre.c (bitmap_set_t): New.
16090         (bb_value_sets): avail_out is now a bitmap_set_t.
16091         (bitmap_find_leader): New function.
16092         (bitmap_value_insert_into_set): Ditto.
16093         (bitmap_set_copy): Ditto.
16094         (bitmap_value_replace_in_set): Ditto.
16095         (bitmap_set_contains_value): Ditto.
16096         (bitmap_set_new): Ditto.
16097         (bitmap_set_pool): New pool.
16098         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
16099         (insert_aux): Ditto.
16100         (add_to_sets): Ditto.
16101         (compute_avail): Ditto
16102         (eliminate): Ditto.
16103         (init_pre): Ditto.
16104         (fini_pre): Ditto.
16105         (execute_pre): Ditto.
16106
16107 2004-07-02  Roger Sayle  <roger@eyesopen.com>
16108
16109         * config/rs6000/rs6000.c (struct processor_costs): New structure
16110         used to hold instruction latencies/sizes for processor types.
16111         (rs6000_cost): New global variable pointing to current CPU's costs.
16112         (rs6000_override_options): Initialize rs6000_cost to point to the
16113         appropriate cost table based upon rs6000_cpu and optimize_size.
16114         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
16115         timings inline.
16116
16117 2004-07-02  Richard Henderson  <rth@redhat.com>
16118
16119         * expmed.c (make_tree): Don't use SET_DECL_RTL.
16120
16121 2004-07-02  Steven Bosscher  <stevenb@suse.de>
16122
16123         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
16124
16125 2004-07-01  Richard Henderson  <rth@redhat.com>
16126
16127         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
16128         (alpha_gp_save_rtx): Use assign_stack_local instead of
16129         gen_mem_addressof.
16130
16131 2004-07-01  Richard Henderson  <rth@redhat.com>
16132
16133         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
16134         (alpha_rtx_cost_data): Update to match.
16135         (alpha_rtx_cost_size): New.
16136         (alpha_rtx_costs): Honor optimize_size.
16137
16138 2004-07-01  Richard Henderson  <rth@redhat.com>
16139
16140         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
16141         * cfgexpand.c (tree_expand_cfg): Do it here.
16142         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
16143         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
16144         * config/mips/mips.c (mips_output_mi_thunk): And here.
16145         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
16146         * config/sh/sh.c (sh_output_mi_thunk): And here.
16147         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
16148
16149 2004-07-01  Richard Henderson  <rth@redhat.com>
16150
16151         * tree.def (RTL_EXPR): Remove.
16152         * c-typeck.c (lvalue_p): Don't handle it.
16153         * expr.c (safe_from_p): Likewise.
16154         (expand_expr_real_1): Likewise.
16155         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
16156         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
16157         * gengtype.c (adjust_field_tree_exp): Likewise.
16158         * stmt.c (warn_if_unused_value): Likewise.
16159         * tree-gimple.c (recalculate_side_effects): Likewise.
16160         * tree-pretty-print.c (dump_generic_node): Likewise.
16161         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
16162         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
16163         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
16164
16165         * stmt.c (struct stmt_status): Remove x_last_expr_type,
16166         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
16167         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
16168         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
16169         all the bits that tracked last_expr.
16170         (expand_end_bindings): Don't track last_expr.
16171         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
16172         (clear_last_expr): Remove.
16173         (expand_asm): Don't call it.
16174         (expand_asm_operands, expand_end_cond): Likewise.
16175         (expand_naked_return, expand_null_return_1): Likewise.
16176         * c-typeck.c (c_begin_compound_stmt): Likewise.
16177         * cfgexpand.c (expand_block): Use expand_expr_stmt.
16178         * expr.c (expand_expr_real_1): Likewise.
16179         * tree.h: Update prototypes.
16180
16181         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
16182         (struct emit_status): Remove sequence_rtl_expr.
16183         (struct function): Remove x_rtl_expr_chain.
16184         (seq_rtl_expr, rtl_expr_chain): Remove.
16185         * function.c (struct temp_slot): Remove rtl_expr.
16186         (assign_stack_temp_for_type): Don't set it.
16187         (free_temp_slots, pop_temp_slots): Don't check it.
16188         (free_after_compilation): Don't clear x_rtl_expr_chain.
16189         (fixup_var_refs): Don't search it.
16190         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
16191         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
16192         or seq_rtl_expr.
16193         (push_topmost_sequence): Likewise.
16194         (end_sequence, init_emit): Likewise.
16195         (start_sequence_for_rtl_expr): Remove.
16196         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
16197         * rtl.h (preserve_rtl_expr_result): Remove.
16198
16199 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
16200
16201         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
16202         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
16203         typos.
16204
16205 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
16206
16207         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
16208         (STANDARD_STARTFILE_PREFIX_2): Define.
16209         (standard_startfile_prefix_1): Initialize to
16210         STANDARD_STARTFILE_PREFIX_1.
16211         (standard_startfile_prefix_2): Initialize to
16212         STANDARD_STARTFILE_PREFIX_2.
16213         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
16214         (STANDARD_STARTFILE_PREFIX_1): Define.
16215         (STANDARD_STARTFILE_PREFIX_2): Define.
16216         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
16217         (STANDARD_STARTFILE_PREFIX_2): Document.
16218
16219 2004-07-01  Richard Henderson  <rth@redhat.com>
16220
16221         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
16222         in order to disable scalarization.  Instead set a flag and wait
16223         for a candidate decl.
16224
16225 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
16226
16227         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
16228         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
16229         Use terminology "testsuite" and "enumerated".
16230
16231 2004-07-01  Richard Henderson  <rth@redhat.com>
16232
16233         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
16234         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
16235         (initial_return_save): Likewise.
16236         (flush_queued_reg_saves): Remap register numbers.
16237         (dwarf2out_return_reg): Likewise.
16238
16239 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16240
16241         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
16242
16243         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
16244         access functions for lower bound and element size and only output
16245         if lower bound nonzero or element size not same as that of type.
16246         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
16247
16248 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
16249
16250         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
16251
16252 2004-07-01  Per Bothner  <per@bothner.com>
16253
16254         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
16255
16256 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
16257
16258         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
16259         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
16260         first operand.  Don't optimize if the bitfield is volatile.
16261
16262 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
16263
16264         * c-pretty-print.c (pp_c_postfix_expression): Handle
16265         floating-point comparison operators.
16266         (pp_c_expression): Pass floating-point comparison
16267         operators to pp_c_postfix_expression.
16268
16269 2004-07-01  Roger Sayle  <roger@eyesopen.com>
16270
16271         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
16272         rtx_cost instead of "had_mult" to determine whether the transformed
16273         expression is cheaper than the original.
16274
16275 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
16276
16277         * alias.c (get_alias_set, canon_rtx, get_addr,
16278         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
16279         Use MEM_P.
16280         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
16281         expand_builtin): Likewise.
16282         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
16283         Likewise.
16284         * combine.c (can_combine_p, combinable_i3pat, try_combine,
16285         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
16286         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
16287         record_dead_and_set_regs_1, get_last_value_validate,
16288         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
16289         * cse.c (check_dependence, canon_hash, equiv_constant,
16290         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
16291         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
16292         count_reg_usage): Likewise.
16293         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
16294         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
16295         cselib_record_sets): Likewise.
16296         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
16297         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
16298         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
16299         * df.c (df_uses_record): Likewise.
16300         * dojump (do_jump): Likewise.
16301         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
16302         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
16303         decl_start_label): Likewise.
16304         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
16305         operand_subword, change_address_1, make_safe_from): Likewise.
16306         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
16307         stabilize, force_not_mem): Likewise.
16308         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
16309         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
16310         * expr.c (convert_move, convert_modes, emit_block_move,
16311         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
16312         emit_move_insn_1, expand_assignment, store_expr,
16313         store_constructor_field, store_constructor, store_field,
16314         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
16315         Likewise.
16316         * final.c (cleanup_subreg_operands, alter_subreg,
16317         get_mem_expr_from_op): Likewise.
16318         * flow.c (notice_stack_pointer_modification_1,
16319         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
16320         Likewise.
16321         * function.c (mark_temp_addr_taken, preserve_temp_slots,
16322         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
16323         optimize_bit_field, flush_addressof, purge_addressof_1,
16324         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
16325         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
16326         keep_stack_depressed): Likewise.
16327         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
16328         noce_process_if_block, find_memory): Likewise.
16329         * integrate.c (subst_constants, allocate_initial_values): Likewise.
16330         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
16331         update_equiv_regs): Likewise.
16332         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
16333         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
16334         * optabs.c (expand_abs, emit_unop_insn): Likewise.
16335         * passes.c (rest_of_handle_final): Likewise.
16336         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
16337         move2add_note_store): Likewise.
16338         * ra-build.c (detect_remat_webs): Likewise.
16339         * ra-debug.c (dump_static_insn_cost): Likewise.
16340         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
16341         * recog.c (validate_change, apply_change_group, cancel_changes,
16342         validate_replace_rtx_1, general_operand, register_operand,
16343         nonmemory_operand, push_operand, pop_operand, memory_operand,
16344         indirect_operand, asm_operand_ok, offsettable_memref_p,
16345         offsettable_nonstrict_memref_p, constrain_operands,
16346         store_data_bypass_p): Likewise.
16347         * reg-stack.c (subst_stack_regs_pat): Likewise.
16348         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
16349         copy_cost, reg_scan_mark_refs): Likewise.
16350         * regmove.c (optimize_reg_copy_3, stack_memref_p,
16351         combine_stack_adjustments_for_block): Likewise.
16352         * regrename.c (copyprop_hardreg_forward_1): Likewise.
16353         * reload.c (can_reload_into, push_reload, decompose, immune_p,
16354         find_reloads, find_reloads_address, find_reloads_address_1,
16355         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
16356         find_equiv_reg): Likewise.
16357         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
16358         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
16359         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
16360         delete_address_reloads): Likewise.
16361         * resource.c (mark_referenced_resources): Likewise.
16362         * rtlanal.c (get_jump_table_offset, count_occurrences,
16363         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
16364         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
16365         num_sign_bit_copies1): Likewise.
16366         * rtlhooks.c (gen_lowpart_general): Likewise.
16367         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
16368         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
16369         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
16370         sdbout_global_decl): Likewise.
16371         * simplify-rtx.c (simplify_subreg): Likewise.
16372         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
16373         expand_anon_union_decl, expand_end_case_type): Likewise.
16374         * unroll.c (calculate_giv_inc): Likewise.
16375         * var-tracking.c (stack_adjust_offset_pre_post,
16376         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
16377         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
16378         vt_add_function_parameters): Likewise.
16379         * varasm.c (make_var_volatile, notice_global_symbol,
16380         assemble_external, decode_addr_const, mark_weak,
16381         default_encode_section_info): Likewise.
16382
16383 2004-07-01  Steven Bosscher  <stevenb@suse.de>
16384
16385         * stmt.c (check_seenlabel): Remove.
16386         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
16387
16388 2004-07-01  Richard Henderson  <rth@redhat.com>
16389
16390         * function.h (struct function): Remove x_function_call_count.
16391         (function_call_count): Remove.
16392         * calls.c (expand_call): Don't set it.
16393         * integrate.c (copy_rtx_and_substitute): Likewise.
16394
16395         * function.h (struct function): Remove x_cleanup_label.
16396         (cleanup_label): Remove.
16397         * stmt.c (expand_value_return): Don't use it.
16398         * function.c (free_after_compilation): Don't set it.
16399         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
16400         * cfgexpand.c (tree_expand_cfg): Update call.
16401         * tree.h (expand_function_start): Update decl.
16402
16403 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
16404
16405         PR c/1027
16406         * c-lang.c (c_initialize_diagnostics): Move from here ...
16407         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
16408         (c_tree_printer): Use pretty-printer to format %T.
16409         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
16410         before '*' if not C++.
16411         (pp_c_direct_abstract_declarator): Don't try to print array upper
16412         bound for flexible array members.
16413         * c-tree.h: Include "diagnostic.h".
16414         (c_initialize_diagnostics): Declare.
16415         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
16416         * c-format.c (format_type_warning): New function.  Improve
16417         diagnostics for incorrect format argument types.
16418         (check_format_types): Use it.  Add two parameters.  Use the
16419         TYPE_MAIN_VARIANT of wanted_type.
16420         (check_format_info_main): Pass new parameters to
16421         check_format_types.
16422         (struct format_wanted_type): Update comment.
16423
16424 2004-07-01  Nick Clifton  <nickc@redhat.com>
16425
16426         * target.h (struct gcc_target): Add new field to struct cxx:
16427         import_export_class.
16428         * target-def.h (TARGET_CXX): Initialise the new field.
16429         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
16430         the new field.
16431         * doc/tm.texi: Document the new target hook.
16432
16433 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
16434
16435         * builtins.c (fold_builtin_classify): Fix typo.
16436
16437 2004-07-01  Richard Henderson  <rth@redhat.com>
16438
16439         * function.c (identify_blocks, identify_blocks_1): Remove.
16440         * function.h (identify_blocks): Remove.
16441         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
16442
16443 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
16444
16445         * builtins.c (fold_builtin_classify): New.
16446         (fold_builtin_unordered_cmp): Fix commentary.
16447         (fold_builtin): Use it.
16448         * builtins.def: Define builtins for isnan,
16449         isnanf, isnanl, finite, finitef, finitel,
16450         isinf, isinff, isinfl.
16451
16452 2004-07-01  Richard Henderson  <rth@redhat.com>
16453
16454         * function.h (struct function): Remove dont_emit_block_notes.
16455         * gimple-low.c (lower_function_body): Don't set it.
16456         * cfgexpand.c (expand_block): Don't check it.
16457         * cfglayout.c (insn_locators_initialize): Likewise.
16458         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
16459         * passes.c (rest_of_compilation): Likewise.
16460         * stmt.c (expand_start_bindings_and_block): Likewise.
16461         (expand_end_bindings): Likewise.
16462
16463 2004-07-01  Richard Henderson  <rth@redhat.com>
16464
16465         * cgraph.h (cgraph_build_static_cdtor): Declare.
16466         * cgraphunit.c (cgraph_build_static_cdtor): New.
16467         * c-objc-common.c (build_cdtor): Use it.
16468         * coverage.c (create_coverage): Likewise.
16469         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
16470         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
16471
16472 See ChangeLog.11 for earlier changes.