OSDN Git Service

b83e3e1b15e84ee4d8e8f56371696b5142fc02e7
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-06-11  Joseph S. Myers  <jsm@polyomino.org.uk>
2
3         * doc/install.texi (Prerequisites): Update documentation of
4         required versions of autoconf and automake.  Remove mention of
5         libf2c.
6
7 2004-06-11  Jason Merrill  <jason@redhat.com>
8
9         * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
10         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11
12 2004-06-11  Jerry Quinn  <jlquinn@optonline.net>
13
14         * typeclass.h: Add GPL plus exception license.  Add include
15         guard.
16
17 2004-06-10  Jason Merrill  <jason@redhat.com>
18
19         * gimplify.c (gimplify_modify_expr): Don't force a temporary
20         of an aggregate_value_p type.
21
22 2004-06-10  Jeff Law  <law@redhat.com>
23
24         * fold-const.c (fold_inf_compare): Avoid creating non-gimple
25         code when we are in gimple form.
26
27 2004-06-10  Diego Novillo  <dnovillo@redhat.com>
28
29         * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
30         * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
31         (highest_ssa_version): Remove.
32         * tree-outof-ssa.c (new_temp_expr_table): Replace
33         highest_ssa_version with num_ssa_names.
34         (dump_replaceable_exprs): Likewise.
35         (rewrite_vars_out_of_ssa): Likewise.
36         * tree-ssa-ccp.c (initialize): Likewise
37         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
38         * tree-ssa-dce.c (tree_dce_init): Likewise.
39         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
40         * tree-ssa-live.c (create_ssa_var_map): Likewise.
41         (dump_var_map): Likewise.
42         * tree-ssa.c (verify_ssa): Likewise.
43         (kill_redundant_phi_nodes): Likewise.
44         Do not build a local array of SSA_NAMEs.  Use the ssa_names table.
45         * tree-ssanames.c: Include tree-flow.h
46         (ssa_names): New varray.
47         (init_ssa_names): Initialize ssa_names.
48         Reserve the first slot of the ssa_names table.
49         (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
50         Assign version numbers using num_ssa_names.
51
52 2004-06-10  Joseph S. Myers  <jsm@polyomino.org.uk>
53
54         * doc/sourcebuild.texi (Front End): Add details of more
55         installation documentation required.
56
57 2004-06-10  Brian Booth  <bbooth@redhat.com>
58
59         * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
60         of V_MAY_DEF and V_MUST_DEF.
61         * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
62         num_vdefs to num_v_may_defs.
63         (compute_immediate_uses_for_stmt): Rename occurences of vdef
64         to v_may_def.
65         (redirect_immediate_uses): Ditto.
66         (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
67         (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
68         Also add code to sum up the number of v_must_defs.
69         (vdefs_disappeared_p): Replace with...
70         (v_may_defs_disappeared_p): This.
71         (v_must_defs_disappeared_p): New function.
72         (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
73         Also add code to mark new variables found in V_MUST_DEFs for
74         renameing.
75         * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
76         vdef_ops to v_may_def_ops.
77         (get_vdef_ops): Replace with...
78         (get_v_may_def_ops): This.
79         * tree-flow-inline.h (get_vdef_ops): Replace with...
80         (get_v_may_def_ops): This.
81         (get_v_must_def_ops): New function.
82         (get_vdef_result_ptr): Replace with...
83         (get_v_may_def_result_ptr): This.
84         (get_vdef_op_ptr): Ditto with...
85         (get_v_may_def_op_ptr); This.
86         (get_v_must_def_op_ptr): New function.
87         * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
88         to v_may_def. Also add code to mark statements with
89         V_MUST_DEFs as definition sites.
90         (rewrite_stmt): Rename occurences of vdef to v_may_def. Also 
91         add code to register new V_MUST_DEFs made by the statement.
92         * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
93         (check_replaceable): Rename occurences of vdef to v_may_def. Also 
94         add check for V_MUST_DEFs.
95         (find_replaceable_in_bb): Ditto.
96         * tree-pretty-print.c (dump_vops): Rename occurences of vdef
97         to v_may_def. Also add code to dump V_MUST_DEFs.
98         * tree-sra.c (mark_all_vdefs): Replace with...
99         (mark_all_v_may_defs): This.
100         (mark_all_v_must_defs): New function.
101         (create_scalar_copies): Replace call to mark_all_vdefs with
102         calls to mark_all_v_may_defs and mark_all_v_must_defs.
103         (scalarize_structures): Rename occurences of vdef to v_may_def. 
104         Also add a check for V_MUST_DEFs.
105         (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
106         * tree-ssa-alias.c (global_var): Update comment.
107         (compute_may_aliases): Ditto.
108         (compute_points_to_and_addr_escape): Rename occurences of vdef
109         to v_may_def. Also add code to mark variables in V_MUST_DEF 
110         operands as being written to.
111         (group_aliases): Update comment.
112         (maybe_create_global_var): Ditto.
113         * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
114         Also add a check for V_MUST_DEFs on GIMPLE registers.
115         (replace_immediate_uses): Rename occurences of vdef to v_may_def.
116         * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
117         to v_may_def. Also add code to mark all V_MUST_DEF operands 
118         VARYING.
119         (initialize): Ditto.
120         (set_rhs): Rename occurences of vdef to v_may_def. Also add
121         code to update SSA_NAMEs in V_MUST_DEFs.
122         * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
123         to v_may_def.
124         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename 
125         occurences of vdef to v_may_def. Also add code to mark statements
126         with V_MUST_DEFs as necessary.
127         (propagate_necessity): Rename occurences of vdef to v_may_def.
128         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename 
129         occurences of vdef to v_may_def. Also add code to mark operands
130         in V_MUST_DEFs for renaming.
131         (eliminate_redundant_computations): Rename occurences of vdef
132         to v_may_def.
133         (record_equivalences_from_stmt): Rename occurences of vdef
134         to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
135         (optimize_stmt): Remove unnesessary variable vdefs. Update
136         comment.
137         (register_definitions_for_stmt): Rename occurences of vdef
138         to v_may_def. Also add code to register definitions made with
139         V_MUST_DEFs.
140         * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
141         (fix_stmt_v_may_defs): This.
142         (fix_phi_uses): Rename occurences of vdef to v_may_def.
143         (dse_optimize_stmt): Ditto.
144         * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
145         to v_may_def. Also add code to mark V_MUST_DEF operands as being
146         used in virtual operators.
147         * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of 
148         vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
149         renaming.
150         * tree-ssa-operands.c (opf_kill_def): New flag for killing 
151         definitions.
152         (build_vdefs): Renamed to...
153         (build_v_may_defs): This.
154         (build_v_must_defs): New variable.
155         (voperands_d): Add v_must_def_ops and replace vdef_ops with
156         v_may_def_ops.
157         (append_vdef): Replace with...
158         (append_v_may_def): This.
159         (append_v_must_def): New function.
160         (NUM_FREE): Increment for V_MUST_DEF
161         (optype_freelist): Increment its size for V_MUST_DEF
162         (allocate_vdef_optype): Replace with...
163         (allocate_v_may_def_optype): This.
164         (allocate_v_must_def_optype): New function.
165         (free_vdefs): Replace with...
166         (free_v_may_defs): This.
167         (free_v_must_defs): New function.
168         (remove_vdefs): Replace with...
169         (remove_v_may_defs): This.
170         (remove_v_must_defs): New function.
171         (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
172         add code to initialize build_v_must_defs.
173         (finalize_ssa_vdefs): Replace with...
174         (finalize_ssa_v_may_defs): This.
175         (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
176         (finalize_ssa_v_must_defs): New function.
177         (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
178         with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
179         (verify_start_operands): Rename occurences of vdef to v_may_def.
180         Also add check for build_v_must_defs.
181         (get_stmt_operands): Rename occurences of vdef to v_may_def.
182         Also add code to handle V_MUST_DEFs and to use opf_kill_def for
183         killing definitions.
184         (get_expr_operands): Update comment and use opf_kill_def for
185         killing definitions.
186         (add_stmt_operand): Replace code that appends VDEFs with code
187         that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
188         otherwise.
189         (add_call_clobber_ops): Update comments.
190         * tree-ssa-operands.h (vdef_optype_d): Replace with...
191         (v_may_def_optype_d): This.
192         (v_must_def_optype_d): New structure.
193         (VDEF_OPS): Replace with...
194         (V_MAY_DEF_OPS): This.
195         (STMT_VDEF_OPS): Same with...
196         (STMT_V_MAY_DEF_OPS): This.
197         (NUM_VDEFS): And...
198         (NUM_V_MAY_DEFS): This.
199         (VDEF_RESULT_PTR): As well as...
200         (V_MAY_DEF_RESULT_PTR): This.
201         (VDEF_RESULT): Same goes for...
202         (V_MAY_DEF_RESULT): This.
203         (VDEF_OP_PTR): And...
204         (V_MAY_DEF_OP_PTR): This.
205         (VDEF_OP): And...
206         (V_MAY_DEF_OP): This.
207         (V_MUST_DEF_OPS): New macro.
208         (STMT_V_MUST_DEF_OPS): Ditto.
209         (NUM_V_MUST_DEFS): Ditto.
210         (V_MUST_DEF_OP_PTR): Ditto.
211         (V_MUST_DEF_OP): Ditto.
212         (remove_vdefs): Replace signature with...
213         (remove_v_may_defs): This.
214         (remove_v_must_defs): New function signature.
215         * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
216         with calls to remove_v_may_defs and remove_v_must_defs.
217         (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
218         Also add code that marks left occurences of operands in V_MUST_DEFs.
219         * tree-tailcall.c (find_tail_calls): Rename occurences of vdef 
220         to v_may_def. Also add check for V_MUST_DEFs.
221         (eliminate_tail_call):Rename occurences of vdef to v_may_def.
222
223 2004-06-10  Vladimir Makarov  <vmakarov@redhat.com>
224
225         PR target/15653
226         * haifa-sched.c (schedule_block): Finish cycle after issuing asm
227         insn.
228
229 2004-06-10  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
230
231         PR web/15263
232         * doc/install.texi: Remove superfluous linebreak.
233
234 2004-06-10  Roger Sayle  <roger@eyesopen.com>
235
236         * builtins.c (expand_builtin): Fall back to library function call for
237         conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
238         (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
239         BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
240         IMAGPART_EXPR respectively.
241
242 2004-06-10  J"orn Rennecke <joern.rennecke@superh.com>
243
244         * sh.c (dump_table): New argument start.  Changed caller.
245         (fixup_mova): New function.
246         (find_barrier): Use it.
247         (sh_reorg): Likewise.  Check for CODE_FOR_casesi_worker_2.
248         If the label a mova refers to is above the mova itself, change
249         the mova into a load.
250         * sh.md (*casesi_worker): Rename to:
251         (casesi_worker_1).
252         (casesi_worker_2): New insn.
253
254 2004-06-10  Jason Merrill  <jason@redhat.com>
255
256         * target.h (struct gcc_target): Change gimplify_va_arg_expr 
257         hook signature.
258         * tree-gimple.h: Adjust.
259         * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
260         * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
261         Use fold_convert.
262         * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
263         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
264         Use COMPLEX_EXPR for complex numbers.  Use fold_convert.
265         * builtins.c (std_gimplify_va_arg_expr): Adjust.  Use fold_convert.
266         (gimplify_va_arg_expr): Return GS_ERROR in error case.
267         Gimplify valist rather than calling stabilize_va_list.
268
269 2004-06-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
270
271         * Makefile.in (df.o): Remove fibheap dependency.
272         * df.h: Do not include sbitmap.h.
273         (struct ref): New field "data".
274         (DF_REF_DATA): New accessor macro.
275         (struct df): Field "dom" removed.
276         (df_analyze_subcfg): New function.
277         (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
278         (transfer_function): ... new type.
279         (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
280         (iterative_dataflow): ... new function.
281         (enum set_representation, struct dataflow): New.
282         * df.c: Do not include fibheap.h.
283
284         (df_reg_def_chain_clean, df_reg_use_chain_clean,
285         (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
286         prune_to_subcfg, df_bb_modify): New functions.
287         (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
288         df_refs_update, df_reg_table_realloc, df_ref_create,
289         df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
290         df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
291         df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
292         
293         (dataflow_set_a_op_b, dataflow_set_copy): New functions.
294         (df_rd_transfer_function, df_ru_transfer_function,
295         df_lr_transfer_function): Type of bitmaps changed to void *.
296         (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
297         (hybrid_search): ... new function.
298         (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
299         (iterative_dataflow): ... new function. Avoid use of fibheaps for
300         a worklist.  Do not process basic blocks unnecessarily.
301
302 2004-06-10  Roger Sayle  <roger@eyesopen.com>
303
304         * fold-const.c (fold_abs_const): Make extern.
305         * tree.h (fold_abs_const): Prototype here.
306         * builtins.c (fold_builtin_fabs): New function to transform
307         fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
308         (fold_builtin_abs): New function to transform abs, labs, llabs
309         and imaxabs builtins into ABS_EXPR tree nodes.
310         (expand_builtin): Fall back to a function call for abs, labs,
311         llabs and imaxabs builtins that survive constant folding.
312         (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
313         FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
314
315 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
316
317         * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
318         leaf function without unwind info at RP 0.
319
320 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
321
322         PR c++/14791
323         * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
324         (fileptr_type_node): Define.
325         * tree.c (build_common_tree_nodes_2): Initialize
326         fileptr_type_node to ptr_type_node.
327         * c-common.c (c_common_nodes_and_builtins): For C++, make
328         fileptr_type_node a distinct type copy.
329         * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
330         BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
331         BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
332         BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
333         (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
334         BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
335         BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
336         * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
337         BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
338         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
339         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
340         the above *FILEPTR* types instead of *PTR*.
341
342 2004-06-09  Daniel Berlin <dberlin@dberlin.org>
343
344         * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores 
345         match.
346
347 2004-06-09  Roger Sayle  <roger@eyesopen.com>
348
349         * fold-const.c (fold_not_const): New function.
350         (fold) <ABS_EXPR>: Don't bother testing wins.
351         (fold) <BIT_NOT_EXPR>: Call fold_not_const.
352         (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
353
354 2004-06-09  Richard Henderson  <rth@redhat.com>
355  
356         PR middle-end/15228
357         * function.c (assign_parms): Always set_mem_align with the computed
358         FUNCTION_ARG_BOUNDARY.  Don't clear stack_parm if !STRICT_ALIGNMENT.
359
360 2004-06-09  Richard Henderson  <rth@redhat.com>
361
362         PR opt/15108
363         * tree-tailcall.c (find_tail_calls): Don't check early for
364         tail_recursion failure.
365
366 2004-06-09  Diego Novillo  <dnovillo@redhat.com>
367
368         Move SSA_NAME annotations into tree_ssa_name.
369
370         * tree-dfa.c (create_ssa_name_ann): Remove.
371         * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
372         * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
373         (struct ssa_name_ann_d): Remove.
374         (union tree_ann_d): Update.
375         (ssa_name_ann_t): Remove.
376         * tree-ssa-alias.c: (get_ptr_info): New local function.
377         Replace references to ssa_name_ann_t with struct ptr_info_def.
378         * tree-ssa-operands.c (get_expr_operands): Likewise.
379         * tree.h (SSA_NAME_PTR_INFO): Define.
380         (struct ptr_info_def): Declare.
381         (struct tree_ssa_name): Add field 'ptr_info'.
382
383 2004-06-09  Danny Smith  <dannysmith@users.sourceforge.net>
384
385         * config/i386/winnt.c (i386_pe_output_labelref): Correct
386         misplaced ')'.
387
388 2004-06-09  Steven Bosscher  <stevenb@suse.de>
389
390         * config/i386/k6.md: Rewrite using the DFA model.
391         * config/i386/i386.c (ix86_adjust_cost): Don't increase the
392         cost of load-operation insns for the K6.
393         (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
394         (ia32_multipass_dfa_lookahead): Likewise.
395
396 2004-06-09  Richard Henderson  <rth@redhat.com>
397
398         * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
399         alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
400
401 2004-06-09  Richard Henderson  <rth@redhat.com>
402
403         * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
404
405 2004-06-09  Geoffrey Keating  <geoffk@apple.com>
406
407         * Makefile.in (CPPLIB_H): Put files in order of inclusion.
408         (CPP_ID_DATA_H): New.
409         (gtype-desc.o): Update dependencies.
410         (GTFILES): Use CPP_ID_DATA_H.
411
412 2004-06-09  Mark Mitchell  <mark@codesourcery.com>
413
414         Revert:
415         PR c++/15815
416         2004-06-07  Mark Mitchell  <mark@codesourcery.com>
417         * doc/extend.texi: Deprecate #pragma interface and #pragma
418         implementation.
419
420 2004-06-09  David S. Miller  <davem@nuts.davemloft.net>
421
422         * config/sparc/sparc.h (MOVE_RATIO): New definition.
423
424 2004-06-09  Richard Henderson  <rth@redhat.com>
425
426         * basic-block.h (struct edge_def): Add goto_locus.
427         * tree-cfg.c (make_goto_expr_edges): Set it.
428         (disband_implicit_edges): Use it.
429         * tree-pretty-print.c (dump_implicit_edges): Print it.
430
431 2004-06-08  Anil Paranjpe <anilp1@kpitcummins.com>
432
433         * h8300.md (ldm_h8300s_4): Fix condition for expander.
434
435 2004-06-08  Jason Merrill  <jason@redhat.com>
436
437         Gimplify VA_ARG_EXPR into simpler forms.
438         * target.h: Add gimplify_va_arg_expr hook.
439         * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
440         * fold-const.c (build_fold_addr_expr)
441         (build_fold_addr_expr_with_type): Move from gimplify.c.
442         * tree.h: Declare them.
443         * gimplify.c (gimplify_and_add): New fn.
444         (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
445         (gimplify_array_ref_to_plus, gimplify_modify_expr)
446         (gimplify_expr): Use build_fold_*.
447         (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
448         don't know how to gimplify it.
449         * builtins.c (std_gimplify_va_arg_expr): New fn.
450         (dummy_object): New static fn.
451         (gimplify_va_arg_expr): New fn.
452         (stabilize_va_list): Use build_fold_*.
453         * tree-gimple.h: Declare new fns.
454         * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
455         (ix86_gimplify_va_arg): New fn.
456         * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
457         (ia64_gimplify_va_arg): New fn.
458         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
459         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
460         * alias.c (get_varargs_alias_set): Just return 0 for now.
461         
462         * c-objc-common.c (c_tree_printer): Improve handling of %T.
463
464 2004-06-09  Andrew Pinski  <pinskia@physics.uc.edu>
465
466         * tree-complex.c (expand_complex_comparison): Use fold_convert instead
467         of convert.
468         * tree-inline.c (setup_one_parameter): Likewise.
469         * tree-sra.c (csc_build_component_ref): Likewise.
470         * tree-ssa-ccp.c (ccp_fold): Likewise.
471         * tree-ssa-copy.c (cprop_operand): Likewise.
472         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
473         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
474
475 2004-06-09  J"orn Rennecke <joern.rennecke@superh.com>
476
477         PR rtl-optimization/15521:
478         * sched-int.h (in_post_call_group_p): Change type to enum.
479         * sched-deps.c (sched_analyze_insn):
480         (sched_analyze): When in_post_call_group_p is post_call_initial,
481         don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
482         and also reset in_post_call_group_p to post_call.
483         (sched_analyze): When the previous basic block ended in a CALL_INSN,
484         initialize in_post_call_group_p as post_call_initial.
485         (init_deps): initialize in_post_call_group_p to not_post_call.
486         
487 2004-06-09  Arnaud Charlet  <charlet@act-europe.fr>
488
489         PR ada/6637
490         * doc/install.texi: List ada, libada as options to --enable-shared
491
492 2004-06-09  Paolo Bonzini  <bonzini@gnu.org>
493
494         * aclocal.m4 (gcc_AC_PROG_LN): Remove.
495         (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
496         config.in entries.
497         * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
498         if hard links are not available.
499         * configure: Regenerate.
500         * config.in: Regenerate.
501
502 2004-06-08  Per Bothner  <per@bothner.com>
503
504         * configure.ac:  New --enable-mapped-location sets USE_MAPPED_LOCATION.
505
506 2004-06-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
507
508         * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
509         Correct formatting.
510
511 2004-06-08  James E Wilson  <wilson@specifixinc.com>
512
513         PR target/15790
514         * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
515
516 2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
517
518         * fold-const.c (fold_convert): Treat OFFSET_TYPE like
519         POINTER_TYPE and INTEGER_TYPE.
520
521 2004-06-08  Bernardo Innocenti  <bernie@develer.com>
522
523         * modulo-sched.c: Compile only when INSN_SCHEDULING is
524         defined.
525
526 2004-06-08  Jeff Law  <law@redhat.com>
527
528         * doc/contrib.texi: Add entries for Stefan Olsson and
529         Ola Ronnerup.
530
531 2004-06-08  DJ Delorie  <dj@redhat.com>
532
533         * toplev.c (floor_log2_wide): Replace loop with faster bit
534         operations.
535         (exact_log2_wide): Define in terms of the above.
536         * toplev.h (floor_log2): Use _builtin_clz family of builtins if
537         available.
538
539 2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
540
541         * config/rs6000/rs6000.c (print_operand, <case 'z'>):
542         Make sure that we are in INDIRECT mode when getting the
543         stub name.
544
545 2004-06-08  Anil Paranjpe <anilp1@kpitcummins.com>
546
547         * h8300.md (extendqisi2_h8300): Add constraints.
548         (ldm_h8300s_4_normal): Fix typo.
549
550 2004-06-08  Richard Henderson  <rth@redhat.com>
551
552         * gimple-low.c (struct lower_data): Replace the_return_label and
553         one_return_stmt with return_statements.
554         (lower_function_body): Process the entire list of return_statements.
555         (lower_return_expr): Check source value before unifying return_exprs.   
556         * gimplify.c (gimplify_return_expr): Force the use of a temporary
557         for !aggregate_value_p.
558         * tree-gimple.c: Update RETURN_EXPR grammer.
559
560 2004-06-08  Vladimir Makarov  <vmakarov@redhat.com>
561
562         PR target/15598
563         * config/ia64/ia64.c (bundling): Add missed TYPE_A.
564
565 2004-06-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
566
567         PR rtl-optimization/15717
568         * config/i386/i386.c (legitimate_constant_p): Do not allow
569         x - symbol_ref.
570
571 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
572
573         * gimplify.c (copy_if_shared_r): Revert:
574         2004-05-21  Richard Henderson  <rth@redhat.com>
575         * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
576
577 2004-06-07  Roger Sayle  <roger@eyesopen.com>
578
579         * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
580         Make arrays indexed by machine mode.  Rename negate_cost to neg_cost.
581         (init_expmed): Initialize these cost arrays as appropriate.
582         (store_bit_field, extract_bit_field): Correct whitespace.
583         (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
584         expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
585         neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
586         word_mode or compute_mode as appropriate.
587
588 2004-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
589
590         PR target/15783
591         * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
592         parameter.  Enumerate the registers inside the PARALLEL.
593         (function_arg): Adjust call to function_arg_union_value.
594         (function_value): Likewise.
595
596         * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
597
598 2004-06-07  Roger Sayle  <roger@eyesopen.com>
599
600         * real.c (real_copysign): New function to implement libm's copysign.
601         * real.h (real_copysign): Prototype here.
602         * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
603         and sqrtl can be negative, as sqrt(-0.0) = -0.0.  Correct whitespace.
604         * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
605         fold_builtin_isdigit): Add function prototypes.
606         (fold_builtin_copysign): New function to fold copysign, copysignf
607         and copysignl.  Optimize copysign(x,x) as x.  Evaluate copysign of
608         constant arguments at compile-time using real_copysign.  Fold
609         copysign(X,Y) as fabs(X) if Y is always non-negative.
610         (fold_builtin_1): Correct minor whitespace/style issues.  Call
611         fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
612
613 2004-06-07  J"orn Rennecke <joern.rennecke@superh.com>
614
615         * tree.c (iterative_hash_expr): Use real_hash.
616
617 2004-06-07  Joseph S. Myers  <jsm@polyomino.org.uk>
618
619         PR c/14765
620         * c-parse.in (compstmt_primary_start): Set last_expr_type to
621         NULL_TREE.
622
623 2004-06-07  Mark Mitchell  <mark@codesourcery.com>
624
625         PR c++/15815
626         * doc/extend.texi: Deprecate #pragma interface and #pragma
627         implementation.
628
629 2004-06-07  Alexandre Oliva  <aoliva@redhat.com>
630
631         PR middle-end/15666
632         * c-decl.c (finish_decl): Use change_decl_assembler_name for the
633         builtin decl as well.
634
635 2004-06-07  Roger Sayle  <roger@eyesopen.com>
636
637         PR c/14649
638         * c-typeck.c (require_constant_value, require_constant_elements):
639         Move declarations to the top of the file.
640         (build_function_call): If we require a constant value, fold with
641         fold_initializer.  If the result is a constant, and the function
642         wasn't called using __builtin_foo, issue a pedantic warning.
643         (build_unary_op): If we require a constant value, fold tree with
644         fold_initializer.
645         (build_binary_op): Use require_constant_value to determine whether
646         to call fold or fold_initializer.
647
648 2004-06-07  Richard Henderson  <rth@redhat.com>
649
650         * gimple-low.c (struct lower_data): Add the_return_label and
651         one_return_stmt.
652         (lower_function_body): Initialize and use them.
653         (lower_return_expr): New.
654         (lower_stmt): Call it.
655         * gimplify.c (gimplify_return_expr): Force the argument to be either
656         null or a result_decl.
657         * tree-gimple.c: Update gimple grammer to match.
658         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
659         coalescing of result_decls.
660
661 2004-06-07  Richard Henderson  <rth@redhat.com>
662
663         PR rtl-opt/15193
664         * expmed.c (extract_bit_field): Fix vector_extract return.
665
666         * config/i386/i386.md (negv4sf2): New pattern.
667
668 2004-06-07  Mark Mitchell  <mark@codesourcery.com>
669
670         PR c++/15337
671         * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
672         message.
673
674 2004-06-06  Paolo Bonzini  <bonzini@gnu.org>
675
676         * config.in: Regenerate.
677
678 2004-06-06  Steven Bosscher  <stevenb@suse.de>
679
680         * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
681         SWITCH_LABELS are always sorted.
682
683 2004-06-06  Steven Bosscher  <stevenb@suse.de>
684
685         * hooks.c (hook_int_void_1): New generic hook.
686         * hooks.h (hook_int_void_1): Add prototype.
687         * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
688         Define to hook_int_void_1.
689         * config/c4x/c4x.md: Replace dummies for the old pipeline model
690         with dummies for the new one.
691
692 2004-06-06  Roger Sayle  <roger@eyesopen.com>
693
694         * tree.h (lvalue_or_else): Delete function prototype.
695         * c-typeck.c (lvalue_or_else): Make static.  Add static prototype.
696
697 2004-06-06  Stephane Carrez  <stcarrez@nerim.fr>
698
699         PR target/14542
700         * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
701         a live change of a register after peephole replacement.
702
703 2004-06-06  Joseph S. Myers  <jsm@polyomino.org.uk>
704
705         PR c/13519
706         * c-typeck.c (composite_type, common_pointer_type): New functions.
707         (common_type): Split parts into composite_type and
708         common_pointer_type.  Ensure that arithmetic operations return
709         unqualified types without attributes.  Don't make composite type
710         of signed enum and compatible integer be unsigned.
711         (build_conditional_expr, build_binary_op): Use
712         common_pointer_type.
713         * c-decl.c (merge_decls): Use composite_type.
714         * c-tree.h (composite_type): Declare.
715
716 2004-06-06  Stephane Carrez  <stcarrez@nerim.fr>
717
718         PR target/14457
719         * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
720         * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
721         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
722         (inhibit_libc): Must define.
723         * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
724         ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
725         ("xorhi3"): Likewise.
726
727 2004-06-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
728
729         * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
730         always_inline pass.
731
732 2004-06-05  David S. Miller  <davem@nuts.davemloft.net>
733
734         * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
735         * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
736
737 2004-06-05  Bernardo Innocenti  <bernie@develer.com>
738
739         * regclass.c (init_reg_sets): Check for missing registers in target
740         initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
741
742 2004-06-05  Zack Weinberg  <zack@codesourcery.com>
743
744         * Makefile.in (MKDEPS_H): New shorthand.
745         (c-opts.o): Update dependencies.
746         * c-opts.c: Include mkdeps.h.
747         (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
748         not cpp_add_dependency_target.
749
750 2004-06-05  Steven Bosscher  <stevenb@suse.de>
751
752         * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
753         * config/v850/v850.md: Convert to DFA scheduler description.
754
755 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
756
757         PR fortran/15478
758         * doc/install.texi: Document GMP as prerequisite. Document
759         --with-gmp and --with-gmp-dir configure options.
760         * fortran/gfortran.texi: Remove section "Compiling and testing",
761         remove TOC reference to it.
762
763 2004-06-05  Graham Stott  <graham.stott@btinternet.com>
764
765         * combine.c(simplify_shift_const): Check shift amount is a
766         CONST_INT.
767
768 2004-06-05  Danny Smith  <dannysmith@users.sourceforge.net>
769
770         * toplev.c (init_asm_output): Add explicit 'b' to mode when
771         opening asm_out_file.
772         * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
773         reading asm_out_file. Replace fflush after reading asm_out_file
774         with fseek.
775         * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
776         default and add to HOST_HOOKS_INITIALIZER.
777         * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
778         * ggc-common.c (default_gt_pch_alloc_granularity): New function.
779         (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
780         to set mmi.offset padding.
781          * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
782         $(srcdir)/config/i386/winnt.c.
783         (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
784         (i[34567]86-*-uwin*): Likewise.
785         *i[34567]86-*-interix3*): Likewise.
786         * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
787         * config/i386/host-mingw32.c: New file.
788         * config/i386/x-mingw32: Add rule for host-mingw32.o.
789         * config/i386/winnt.c: (struct extern_list) Tag as GTY.
790         (extern_head): Likewise.
791         (struct export_list) Likewise.
792         (export_head): Likewise.
793         (i386_pe_record_external_function): Use ggc_alloc.
794         (i386_pe_record_exported_symbol): Likewise.
795         Include "gt-winnt.h" at end.
796         * doc/hostconfig.texi: Document
797         HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
798
799 2004-06-04  Bernardo Innocenti  <bernie@develer.com>
800
801         * config/m68k/m68k.h: Remove comments copied over from tm.texi.
802         Rename 68000 and 68k to m68k for consistency in comments.  Remove
803         trailing whitespace before EOLs and before TABs.
804         (MAX_CODE_ALIGN): Remove unused macro.
805         (CALL_USED_REGISTERS): Reformat and add comments.
806
807 2004-06-04  Frank Ch. Eigler  <fche@redhat.com>
808
809         * gcc.c (MFLIB_SPEC): Remove library references, to require users
810         to enumerate -lmudflap* and dependencies when linking.
811
812 2004-06-04  Paolo Bonzini  <bonzini@gnu.org>
813
814         PR target/15822
815         * dojump.c (do_jump): Fix uninitialized variable tcode1.
816
817 2004-06-04  Jerry Quinn  <jlquinn@optonline.net>
818
819         * Makefile.in (insn-conditions.o): Back out removal of reload.h.
820         * genconditions.c (write_header): Back out removal of reload.h.
821
822 2004-06-04  Jan Hubicka  <jh@suse.cz>
823
824         Re-apply hopefully fixed patch:
825         * i386.md (UNSPECV_EH_RETURN): Kill.
826         (eh_return): Use jump_insn.
827         (eh_return_si, eh_return_di): Change pattern to jump instruction.
828
829 2004-06-04  Jeff Law  <law@redhat.com>
830
831         * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
832
833 2004-06-04  Steven Bosscher  <stevenb@suse.de>
834
835         * except.c (for_each_eh_region): New function.
836         * except.h (for_each_eh_region): Add a prototype for it.
837         * tree-cfg.c (update_eh_labels): New function, callback for
838         for_each_eh_region.
839         (label_for_bb): Make global static, unfortunately.
840         (cleanup_dead_labels): Also update label references for
841         exception regions.
842
843 2004-06-03  Chris Demetriou  <cgd@broadcom.com>
844
845         * config/mips/mips.c (struct irix_section_align_entry): Fix
846         GTY marker.
847
848 2004-06-03  Geoffrey Keating  <geoffk@apple.com>
849
850         * toplev.c (check_global_declarations): Don't ask for
851         DECL_ASSEMBLER_NAME unless the function really is declared
852         static and not defined.
853
854 2004-06-03  Matt Austern  <austern@apple.com>
855
856         PR c++/15428
857         * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
858         for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
859         * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
860         * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
861         documentation to reflect the new macro name and to clarify its
862         meaning.
863
864 2004-06-03  Steven Bosscher  <stevenb@suse.de>
865
866         * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
867
868 2004-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
869
870         * config/darwin.c (machopic_indirect_data_reference): Copy
871         the SYMBOL_REF_DECL from the original RTX for the new
872         non-lazy pointer RTX.
873
874 2004-06-03  Mark G. Adams  <mark.g.adams@sympatico.ca>
875
876         * tree.h: Remove include of version.h
877         * c-cppbuiltin.c: Include version.h
878         * diagnostic.c: Include version.h
879         * dwarf2out.c: Include version.h
880         * toplev.c: Include version.h
881         * vmsdbgout.c: Include version.h
882         * Makefile.in: Remove dependency on version.h from TREE_H, and
883         add dependencies to required .o targets
884
885 2004-06-03  Jerry Quinn  <jlquinn@optonline.net>
886
887         * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
888         CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
889         (TARGET_H): Add insn-modes.h.
890         (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
891         loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
892         loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
893         loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
894         cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
895         (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
896         loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
897         bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
898         CFGLAYOUT_H.
899         (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
900         Replace ra.h with RA_H.
901         (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
902         insn-recog.o): Replace resource.h with RESOURCE_H.
903         (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
904         sched-ebb.o, sched-vis.o, out_object_file):  Replace sched-int.h
905         with SCHED_INT_H.
906         (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
907         ra-rewrite.o): Replace df.h with DF_H.
908         (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
909         (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
910         Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
911         (insn-conditions.o): Remove unused reload.h.
912         * cfglayout.h: Add include guard.  Include basic-block.h.
913         * cfgloop.h: Add include guard.  Include basic-block.h, rtl.h.
914         * ddg.h: Include sbitmap.h, basic-block.h, df.h.
915         * df.h: Add include guard.  Include bitmap.h, sbitmap.h,
916         basic-block.h.
917         * genconditions.c:  Remove reload.h.
918         * ra.h: Add include guard.  Include bitmap.h, sbitmap.h,
919         hard-reg-set.h, insn-modes.h.
920         * resource.h: Add include guard.  Include hard-reg-set.h.
921         * sched-int.h:  Add include guard.  Include insn-attr.h,
922         basic-block.h, rtl.h.
923         * target.h: Add include guard.  Include insn-modes.h.
924         * tree-ssa-live.h: Include partition.h.
925
926 2004-06-03  Daniel Berlin  <dberlin@dberlin.org>
927                 Kenneth Zadeck <zadeck@naturalbridge.com>
928
929         * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
930         (add_var_to_ssa_edges_worklist): Add value argument.
931         Update callers.
932         Use new worklist.
933         (process_ssa_edge_worklist): New function.
934         (tree_ssa_ccp): Move worklist processing core to
935         process_ssa_edge_worklist, and just call that for the two worklists.
936
937 2004-06-03  Steven Bosscher  <stevenb@suse.de>
938
939         * basic-block.c (tail_recursion_label_list): Don't declare.
940         (CLEANUP_PRE_SIBCALL): Remove.  Renumber the other CLEANUP_*
941         accordingly.
942         * cfgbuild.c (find_label_refs): Remove.
943         (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
944         * cfgcleanup.c (tail_recursion_label_p): Remove.
945         (merge_blocks_move): Do not check for tail recursion.
946         (try_optimize_cfg): Likewise.
947         (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
948         * cfgrtl.c (tail_recursion_label_list): Remove.
949         * except.c (remove_unreachable_regions): Don't handle
950         CALL_PLACEHOLDER insns.
951         (convert_from_eh_region_ranges_1, can_throw_internal,
952         can_throw_external): Likewise.
953         * function.c (free_after_compilation): Don't clear
954         x_tail_recursion_label.
955         (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
956         (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
957         (reorder_blocks_1): Likewise.
958         * function.h (struct function): Remove x_tail_recursion_label
959         member.  Don't define tail_recursion_label.
960         * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
961         * print-rtl.c (print_rtx): Likewise.
962         * rtl.def (CALL_PLACEHOLDER): Remove.
963         * rtl.h (sibcall_use_t): Remove enum.
964         (optimize_sibling_and_tail_recursive_calls,
965         replace_call_placeholder): Remove function prototypes.
966         * stmt.c (tail_recursion_args): Remove.
967         (optimize_tail_recursion): Remove.
968         (expand_return): Don't check for possible tail recursion.
969         * tree.h (optimize_tail_recursion): Remove prototype.
970
971 2004-06-02  Jan Hubicka  <jh@suse.cz>
972
973         * tree-cfg.c (tree_find_edge_insert_loc):  Allow inserting before
974         return_stmt.
975
976 2004-06-02  Jason Merrill  <jason@redhat.com>
977
978         * Makefile.in (TAGS): Don't mess with c-parse.[ch].
979         Do include c-parse.in.
980
981 2004-06-02  Eric Christopher  <echristo@redhat.com>
982
983         * c-typeck.c (common_type): Don't lose type qualifiers
984         when creating new variants.
985
986 2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
987
988         PR tree-optimization/14042
989         PR tree-optimization/14729
990         PR tree-optimization/14736
991         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
992         Check the type which the pointer points to
993         instead of the pointer types.
994
995 2004-06-02  Kazu Hirata  <kazu@cs.umass.edu>
996
997         PR tree-optimization/15738.
998         * builtins.c (fold_builtin_strchr): Transform
999         strrchr (s, '\0') to strchr (s, '\0').
1000
1001 2004-06-02  Steven Bosscher  <stevenb@suse.de>
1002
1003         * i386.c (ix86_adjust_cost): Don't increase the cost for
1004         load+operation for PROCESSOR_PENTIUMPRO, it is already
1005         modelled in the DFA description
1006
1007 2004-06-01  Jerry Quinn  <jlquinn@optonline.net>
1008
1009         * Makefile.in (EXPR_H): Add insn-config.h, function.h,
1010         $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
1011         (ALIAS_H, EMIT_RTL_H): New.
1012         (cselib.o): Replace EXPR_H with EMIT_RTL_H.
1013         (cfgcleanup.o): Add EMIT_RTL_H.
1014         (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
1015         * alias.c: Replace expr.h with emit-rtl.h and alias.h.
1016         * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
1017         * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
1018         * expr.h: Add include guard.  Include function.h, rtl.h, flags.h,
1019         tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
1020         (get_varargs_alias_set, get_frame_alias_set, record_base_value,
1021         record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
1022         (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
1023         set_mem_size): Move to emit-rtl.h.
1024         * emit-rtl.h: New.
1025         * alias.h: New.
1026
1027 2004-06-01  Eric Botcazou  <ebotcazou@act-europe.fr>
1028
1029         * function.c (walk_fixup_memory_subreg): New parameter 'var'.
1030         Call fixup_memory_subreg only if the MEM is equal to 'var'.
1031         Adjust recursive calls to self.
1032         (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
1033
1034 2004-06-01  Richard Henderson  <rth@redhat.com>
1035             Andrew Pinski  <pinskia@physics.uc.edu>
1036
1037         * c-parse.in (OFFSETOF, offsetof_member_designator): New.
1038         (primary): Handle offsetof.  Add error productions for faux functions.
1039         Move component_ref objc checking to build_component_ref.
1040         (reswords): Add offsetof.
1041         (rid_to_yy): Add offsetof.
1042         * c-tree.h (build_offsetof): Declare.
1043         * c-common.h (objc_is_public): Declare.
1044         * c-typeck.c (build_component_ref): Check objc_is_public.
1045         (build_offsetof): New.
1046         * stub-objc.c (objc_is_public): New.
1047         * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
1048         from is_public.
1049         * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
1050         * doc/extend.texi (Offsetof): Move from C++ section to C section
1051         and rewrite for __builtin_offsetof.
1052
1053 2004-06-01  Peter Barada  <peter@the-baradas.com>
1054             Peter Jakubek  <peter@laseranimation.com>
1055
1056         * config/m68k/m68k.c(m68k_output_mi_thunk):  For ColdFire, use %d0 as
1057         a scratch to perform an add to memory.
1058
1059 2004-06-01  Bernardo Innocenti  <bernie@develer.com>
1060
1061         PR target/14018
1062         * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
1063         m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
1064         m68k_align_funcs): Remove.
1065         (override_options): Remove code to handle -malign-* options.
1066         * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
1067         (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
1068         (m68k_align_loops_string, m68k_align_jumps_string,
1069         m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
1070         m68k_align_funcs): Remove definitions.
1071
1072 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1073
1074         PR target/15626
1075         * doc/install.texi (sparc-sun-solaris2*): Document messages issued
1076         by the Sun linker in conjunction with the Sun assembler.
1077         (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
1078
1079 2004-06-01  Jeff Law  <law@redhat.com>
1080
1081         * stmt.c (expand_decl): Be more selective about calling
1082         mark_reg_pointer.
1083
1084 2004-06-01  Nicola Pero  <nicola@brainstorm.co.uk>
1085
1086         PR objc/7993
1087         * objc-act.c (is_private): Do not emit the 'instance variable %s
1088         is declared private' error.
1089         (is_public): Emit the error after calling is_private.
1090         (lookup_objc_ivar): If the instance variable is private, return 0
1091         - the instance variable is invisible here.
1092
1093 2004-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
1094
1095         * doc/invoke.texi (-static-libgcc): Explicitly mention
1096         non-GNU linkers.
1097
1098 2004-06-01  Bernardo Innocenti  <bernie@develer.com>
1099
1100         PR target/12968
1101         * doc/invoke.texi: Document stack alignment side-effect of -mshort.
1102
1103 2004-05-31  Joseph S. Myers  <jsm@polyomino.org.uk>
1104
1105         PR c/15749
1106         * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
1107         misuses of structures with flexible array members if
1108         in_system_header.
1109
1110 2004-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
1111
1112         PR target/15693
1113         * config/sparc/sparc.c (compare_operand): New predicate.
1114         * config/sparc/sparc.h (PREDICATE_CODES): Add it.
1115         * config/sparc/sparc.md (cmpsi expander): Use it.  If the first
1116         operand is a ZERO_EXTRACT and the second operand is not zero,
1117         force the former to a register.
1118         (cmpdi expander): Likewise.
1119
1120 2004-05-31  Geoffrey Keating  <geoffk@apple.com>
1121
1122         * gengtype-lex.l: Catch stray GTY markers in the files gengtype
1123         looks at.
1124         * alias.c (alias_invariant_size): Make alias_invariant_size
1125         static, fix GTY marker.
1126
1127 2004-05-31  Kazu Hirata  <kazu@cs.umass.edu>
1128
1129         PR tree-optimization/15743.
1130         * builtins.c (fold_builtin_1): Fold index() and rindex().
1131
1132 2004-05-31  Roger Sayle  <roger@eyesopen.com>
1133
1134         PR middle-end/15069
1135         * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
1136         into "X < 0" (where C is the signbit) if X's type is a full mode.
1137
1138 2004-05-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1139
1140         * pa.md: Disable the peephole2 patterns that generate indexed
1141         floating-point stores when indexing is disabled.
1142
1143 2004-05-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1144
1145         * c-pretty-print.c (pp_c_left_bracket): Make a function.
1146         (pp_c_right_bracket): Likewise.
1147         (pp_c_star): Likewise.
1148         (pp_c_ampersand): Define.
1149         * c-pretty-print.h (pp_c_left_bracket): Declare.
1150         (pp_c_right_bracket): Likewise.
1151         (pp_c_star): Likewise.
1152         (pp_c_ampersand): Likewise.
1153
1154 2004-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
1155
1156         * config/sol2.h (__enable_execute_stack): ANSIfy function
1157         definition.
1158
1159 2004-05-31  Danny Smith  <dannysmith@users.sourceforge.net>
1160
1161         * c-incpath.c (add_path): Canonicalize paths to use '/' if
1162         HAVE_DOS_BASED_FILESYSTEM.
1163
1164 2004-05-31  Steven Bosscher  <stevenb@suse.de>
1165
1166         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
1167         Only look at case labels if the immediate dominator is also
1168         the only predecessor.  Don't look for more case labels if the
1169         first seen is a case range.
1170
1171 2004-05-31  Kazu Hirata  <kazu@cs.umass.edu>
1172
1173         * builtins.c: Add a prototype for fold_builtin_strchr().
1174
1175 2004-05-31  Paolo Bonzini  <bonzini@gnu.org>
1176
1177         Revert this patch:
1178         2004-05-27  Paolo Bonzini  <bonzini@gnu.org>
1179
1180         * combine.c (gen_binary): Remove.
1181         (known_cond, simplify_shift_const
1182         find_split_point, combine_simplify_rtx,
1183         simplify_if_then_else, simplify_set,
1184         simplify_logical, expand_field_assignment,
1185         extract_left_shift, force_to_mode,
1186         if_then_else_cond, apply_distributive_law,
1187         simplify_and_const_int, simplify_shift_const,
1188         gen_lowpart_for_combine, simplify_comparison,
1189         reversed_comparison): Replace with
1190         simplify_gen_binary, simplify_gen_relational or
1191         distribute_and_simplify_rtx.
1192         (distribute_and_simplify_rtx): New function.
1193
1194 2004-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1195
1196         * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
1197         when generating PIC code.
1198
1199 2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
1200
1201         * c-decl.c (c_expand_body_1): Remove and fold back into ...
1202         (c_expand_body): here.
1203         (c_expand_decl): Move to ...
1204         * c-common.c (c_expand_decl): Here and remove check for nested
1205         functions.
1206         * c-common.h (c_expand_decl): Add prototype.
1207         * c-tree.h (c_expand_decl): Remove.
1208
1209 2004-05-30  Roger Sayle  <roger@eyesopen.com>
1210
1211         * fold-const.c (combine_comparisons, optimize_bit_field_compare,
1212         range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
1213         fold_mathfn_compare, fold_inf_compare, fold,
1214         fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
1215         Use constant_boolean_node where appropriate.  Don't bother using
1216         fold_convert on the second argument to omit_one_operand.
1217
1218 2004-05-30  Roger Sayle  <roger@eyesopen.com>
1219
1220         * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
1221         CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
1222         ROUND_MOD_EXPR, EXACT_DIV_EXPR.  Improve documentation of
1223         TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
1224         Add missing (but documented) tree nodes to the index.
1225
1226 2004-05-30  Steven Bosscher  <stevenb@suse.de>
1227
1228         PR tree-optimization/14819
1229         * builtins.c (fold_builtin_strchr): New.
1230         (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
1231         with fold_builtin_strchr().
1232
1233 2004-05-30  Kazu Hirata  <kazu@cs.umass.edu>
1234
1235         * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
1236         c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
1237         expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
1238         passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
1239         tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
1240         tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
1241         tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
1242         tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
1243         tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
1244         formatting.
1245
1246 2004-05-30  Steven Bosscher  <stevenb@suse.de>
1247
1248         * gimplify.c (sort_case_labels): New.  Split out from...
1249         (gimplify_switch_expr): ...here.  Use it.
1250         * tree-eh.c (lower_try_finally_switch): Sort the labels of
1251         the SWITCH_EXPR created here before leaving the function.
1252         * tree.c (sort_case_labels): Add prototype.
1253
1254 2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
1255
1256         * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
1257         of BOOLEAN_TYPE.
1258
1259 2004-05-30  Kazu Hirata  <kazu@cs.umass.edu>
1260
1261         * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
1262         ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
1263         fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
1264         modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
1265         tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
1266         tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
1267         comment typos.  Follow spelling conventions.
1268
1269 2004-05-29  Geoffrey Keating  <geoffk@apple.com>
1270
1271         * gengtype-yacc.y: Add NESTED_PTR token.
1272         (option): Record `nested_ptr' option.
1273         * gengtype-lex.l: Handle `nested_ptr' keyword.
1274         * gengtype.c (walk_type): Process `nested_ptr' option.
1275         * gengtype.h (struct nested_ptr_data): New.
1276         * doc/gty.texi (GTY Options): Document `nested_ptr' option.
1277         * stringpool.c (struct string_pool_data): Make 'entries' point to
1278         ht_identifier instead of tree.
1279         (gt_pch_save_stringpool): Don't adjust pointers.
1280         (gt_pch_restore_stringpool): Call ht_load.
1281
1282 2004-05-29  Jason Merrill  <jason@redhat.com>
1283
1284         * gimplify.c (gimplify_expr): Don't build a statement list
1285         if no gimplification was necessary.
1286
1287 2004-05-29  Joseph S. Myers  <jsm@polyomino.org.uk>
1288
1289         * pretty-print.c (pp_base_format_text): Support %< instead of %`
1290         and %> as well as %'.
1291         * c-format.c: Use %< and %>.
1292         (gcc_diag_char_table, gcc_cdiag_char_table,
1293         gcc_cxxdiag_char_table): Update.
1294
1295 2004-05-29  Joseph S. Myers  <jsm@polyomino.org.uk>
1296
1297         * c-typeck.c (common_type): Correct comment.
1298
1299 2004-05-29  Peter Barada  <peter@the-baradas.com>
1300
1301         * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
1302         * config/m68k/m68k.c (const_method): Likewise.
1303         * config/m68k/m68k.c (const_int_cost): Likewise.
1304         * config/m68k/m68k.c (const_int_cost): Likewise.
1305         * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
1306
1307 2004-05-29  Peter Barada  <peter@the-baradas.com>
1308
1309         * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
1310         addressing.
1311         * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
1312         movsi,movhi,movqi insn patterns.
1313
1314 2005-05-28  Andrew Pinski  <pinskia@physics.uc.edu>
1315
1316         * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
1317
1318         PR target/15720
1319         * config/darwin.c (machopic_indirect_call_target): Copy
1320         the SYMBOL_REF_DECL from the original RTX for the new
1321         stub RTX.
1322
1323 2004-05-28  DJ Delorie  <dj@redhat.com>
1324
1325         * stor-layout.c (place_field): Revert erroneous commit.
1326
1327 2004-05-28  Ziemowit Laski  <zlaski@apple.com>
1328
1329         * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
1330         vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
1331         vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
1332         vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
1333         vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
1334         vec_ste): Remove type checks for integral parameters and literals
1335         from '..._args_eq' macros.
1336
1337 2004-05-28  Aldy Hernandez  <aldyh@redhat.com>
1338
1339         * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
1340
1341 2004-05-28  Aldy Hernandez  <aldyh@redhat.com>
1342
1343         * testsuite/g++.dg/charset/function.cc: New.
1344
1345         * testsuite/gcc.dg/charset/function.c: New.
1346
1347         * c-decl.c (c_make_fname_decl): Free return value from
1348         fname_as_string.
1349
1350         * cp/decl.c (cp_make_fname_decl): Free return value from
1351         fname_as_string.
1352
1353         * c-common.c (fname_as_string): Translate if necessary.
1354
1355 2004-05-28  Geoffrey Keating  <geoffk@apple.com>
1356
1357         * stringpool.c: Add comments to PCH saving/restoring routines.
1358
1359 2004-05-28  Andrew Pinski  <pinskia@physics.uc.edu>
1360
1361         * c-common.c (c_estimate_num_insns_1): Kill.
1362         (c_estimate_num_insns): Kill.
1363         * c-common.h (c_estimate_num_insns): Kill.
1364
1365         * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
1366         when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
1367         Remove comment about not checking for
1368         _POSIX_PRIORITY_SCHEDULING.
1369         * gthr-posix.c: Likewise.
1370
1371 2004-05-28  Paolo Bonzini  <bonzini@gnu.org>
1372             Roger Sayle  <roger@eyesopen.com>
1373
1374         PR rtl-optimization/15649
1375         Add LTGT_EXPR and improve pretty-printing of unordered
1376         comparisons.
1377         * c-common.c (c_common_truthvalue_conversion):
1378         Handle LTGT_EXPR.
1379         * c-typeck.c (build_binary_op): Likewise.
1380         * dojump.c (do_jump): Likewise.
1381         * expr.c (expand_expr_real_1, do_store_flag): Likewise.
1382         * predict.c (tree_predict_by_opcode): Likewise.
1383         * real.c (real_compare): Likewise.
1384         * tree-cfg.c (verify_expr): Likewise.
1385         * tree-inline.c (estimate_num_insns_1): Likewise.
1386         * tree-pretty-print.c (dump_generic_node): Likewise.
1387         Handle ORDERED_EXPR, UNORDERED_EXPR.
1388         (op_symbol): Print unordered comparisons differently
1389         than ordered ones.
1390         * tree.def (LTGT_EXPR): New '<' tree code.
1391         * doc/c-tree.texi (Expressions): Document floating-point
1392         comparison nodes.
1393
1394         Fold comparisons between floating point values.
1395         * fold-const.c (enum comparison_code): New, from
1396         #define'd constants.  Define compcodes for unordered
1397         comparisons and for invalid transformations.
1398         (invert_tree_comparison): Add "honor_nans" parameter.
1399         (fold_truthop): Revamp to work on floating-point types too.
1400         (comparison_to_compcode): Support unordered comparisons.
1401         Use new enum comparison_code.
1402         (compcode_to_comparison): Likewise.
1403         (combine_compcodes): New function.
1404         (invert_truthvalue): Let invert_tree_comparison decide
1405         whether it is valid to fold the comparison.  Fold ORDERED
1406         and UNORDERED even if flag_unsafe_math_optimizations is off,
1407         and the remaining even if flag_unsafe_math_optimizations
1408         is off but we are under -fno-trapping-math.
1409         (fold_relational_const): Integer modes do not honor NaNs.
1410
1411 2004-05-28  Paul Brook  <paul@codesourcery.com>
1412
1413         * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
1414
1415 2004-05-28  Paul Brook  <paul@codesourcery.com>
1416
1417         * config/arm/arm.c (thumb_force_lr_save): New function.
1418         (arm_get_frame_offsets, thumb_unexpanded_epilogue,
1419         thumb_output_function_prologue): Use it.
1420         (thumb_expand_prologue): Set lr_save_eliminated.
1421
1422 2004-05-28  Richard Sandiford  <rsandifo@redhat.com>
1423
1424         * config/mips/mips.md (extendsidi2): Tie the source and destination
1425         of the register alternative.  Split it into nothing.
1426
1427 2004-05-28  Richard Sandiford  <rsandifo@redhat.com>
1428
1429         * rtl.h (skip_consecutive_labels): Declare.
1430         * emit-rtl.c (skip_consecutive_labels): New function.
1431         * reorg.c (relax_delay_slots, dbr_schedule): Use it.
1432         * jump.c (follow_jumps): Say what null return values mean.
1433
1434 2004-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1435
1436         PR target/13250
1437         * config/sh/sh.md (rotlsi3): Use emit_move_insn.
1438
1439 2004-05-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1440
1441         * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
1442         libgcc-std.ver.
1443         * config/sh/libgcc-std.ver: New file.
1444
1445 2004-05-27  Bryce McKinlay  <mckinlay@redhat.com>
1446
1447         * except.c: Revert change of 2004-05-26.
1448         * config/i386/i386.md: Revert change of 2004-05-27.
1449
1450 2004-05-27  Bryce McKinlay  <mckinlay@redhat.com>
1451
1452         * configure.ac: Remove --enable-tree-browser option.
1453         Define TREEBROWSER when ac_tree_checking is defined.
1454         * configure: Rebuilt.
1455
1456 2004-05-27  Olivier Hainque  <hainque@act-europe.fr>
1457
1458         * expr.c (store_constructor): Restore sanity check on
1459         the size of the type before clearing.
1460
1461 2004-05-27  Jan Hubicka  <jh@suse.cz>
1462
1463         * cfgbuild.c (control_flow_insn_p):  Notice noreturn call
1464
1465 2004-05-27  Paolo Bonzini  <bonzini@gnu.org>
1466
1467         * combine.c (gen_binary): Remove.
1468         (known_cond, simplify_shift_const
1469         find_split_point, combine_simplify_rtx,
1470         simplify_if_then_else, simplify_set,
1471         simplify_logical, expand_field_assignment,
1472         extract_left_shift, force_to_mode,
1473         if_then_else_cond, apply_distributive_law,
1474         simplify_and_const_int, simplify_shift_const,
1475         gen_lowpart_for_combine, simplify_comparison,
1476         reversed_comparison): Replace with
1477         simplify_gen_binary, simplify_gen_relational or
1478         distribute_and_simplify_rtx.
1479         (distribute_and_simplify_rtx): New function.
1480         * simplify-rtx.c (simplify_binary_operation):
1481         Use nonzero_bits to simplify ANDs where we are
1482         turning off bits already known to be off in OP0.
1483
1484 2004-05-27  Alan Modra  <amodra@bigpond.net.au>
1485
1486         PR target/14478
1487         * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
1488
1489 2004-05-27  Josef Zlomek  <zlomekj@suse.cz>
1490
1491         PR middle-end/14084
1492         * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
1493         to size of decl.
1494
1495 2004-05-26  Aldy Hernandez  <aldyh@redhat.com>
1496
1497         PR/14924
1498         * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
1499
1500 2004-05-26  Roger Sayle  <roger@eyesopen.com>
1501
1502         * tree.h: Fix comment typo.
1503
1504 2004-05-27  Steven Bosscher  <stevenb@suse.de>
1505
1506         * gimplify.c (compare_case_labels): New function.
1507         (gimplify_switch_expr): Sort case labels, and make sure the
1508         last label in the label vector is the default case.
1509         * tree-cfg.c (group_case_labels): New function.
1510         (build_tree_cfg): Cleanup redundant labels and group case labels
1511         before creating edges.
1512         (cleanup_dead_labels): Handle GOTO_EXPRs.
1513         (find_case_label_for_value): Use a binary search to find the
1514         case label for the given value.
1515         * tree-gimple.c: Mention that labels are sorted, and that the
1516         last label must be the default.
1517
1518 2004-05-27  Jan Hubicka  <jh@suse.cz>
1519
1520         * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
1521
1522 2004-05-27  Jan Hubicka  <jh@suse.cz>
1523
1524         * i386.md (UNSPECV_EH_RETURN): Kill.
1525         (eh_return): Use jump_insn.
1526         (eh_return_si, eh_return_di): Change pattern to jump instruction.
1527
1528 2004-05-26  Jan Hubicka  <jh@suse.cz>
1529
1530         * cfgcleanup.c (try_forward_edges):  Do not check loop structure when
1531         not loop optimizing.
1532
1533 2004-05-26  Jan Hubicka  <jh@suse.cz>
1534
1535         * except.c (can_throw_internal):  Notice RESX instructions.
1536
1537 2004-05-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1538
1539         * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
1540         of the two sizes to assemble_integer.
1541
1542 2004-05-25  Paul Brook  <paul@codesourcery.com>
1543
1544         * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
1545         pointless #ifdef.
1546
1547 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
1548
1549         * Makefile.in (top_builddir): Define to .
1550
1551 2004-05-25  Alexandre Oliva  <aoliva@redhat.com>
1552
1553         * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
1554         top-level detects, except when in-tree ld is being cross-built.
1555         (gcc_cv_as): Likewise for as.  Use AS_FOR_TARGET otherwise, and
1556         then AS only if target is host.
1557         * configure: Rebuilt.
1558
1559 2004-05-25  Vladimir Makarov  <vmakarov@redhat.com>
1560
1561         * global.c (global_alloc): Call make_accurate_live_analysis.
1562         (record_one_conflict): Remove dead code.
1563         (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
1564         (bb_info): New structure.
1565         (BB_INFO, BB_INFO_BY_INDEX): New macros.
1566         (allocate_bb_info, free_bb_info, mark_reg_change,
1567         calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
1568         modify_bb_reg_pav, calculate_reg_pav,
1569         make_accurate_live_analysis): New functions.
1570
1571 2004-05-25  Devang Patel  <dpatel@apple.com>
1572
1573         * alias.c (init_alias_analysis): Use ggc_calloc instead of
1574         xrealloc.
1575         (end_alias_analysis): Use ggc_free instead fo free.
1576
1577 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
1578
1579         PR target/15546
1580         * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
1581         as needed to be outputted.
1582
1583 2004-05-25  Jan Hubicka  <jh@suse.cz>
1584
1585         * builtins.def (__builtin_expect):  Mark the function as const&nothrow.
1586
1587 2004-05-25  Ayal Zaks  <zaks@il.ibm.com>
1588         Mostafa Hagog  <mustafa@il.ibm.com>
1589
1590         * Makefile.in (modulo-sched.o, ddg.o): New.
1591         * ddg.h, ddg.c, modulo-sched.c: New files.
1592         * cfglayout.c (duplicate_insn_chain): Remove "static" and push
1593         internals to "dupicate_insn".
1594         (duplicate_insn): New function.
1595         * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
1596         declarations.
1597         * common.opt (fmodulo-sched): New flag.
1598         * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
1599         Remove static and forward declaration.
1600         (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
1601         functions.
1602         * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
1603         df_bb_regno_last_def_find, df_find_def, df_reg_used): New
1604         declarations.
1605         * flags.h (flag_modulo_sched): New flag.
1606         * opts.c (common_handle_option): Handle modulo-sched flag.
1607         * params.def (max-sms-loop-number, sms-max-ii-factor,
1608         sms-dfa-history, sms-loop-average-count-threshold): New
1609         parameters.
1610         * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
1611         SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
1612         parameters.
1613         * passes.c ("sms", "sms-vcg"): New dumps.
1614         (rest_of_handle_sched): Call sms_schedule.
1615         * rtl.h (sms_schedule): New declaration.
1616         * timevar.def (TV_SMS): New.
1617         * toplev.c (flag_modulo_sched): Initialize.
1618         (f_options): Handle -fmodulo-sched option.
1619         * docs/invoke.texi: Document -fmodulo-sched & -dm options.
1620         * docs/passes.texi: Document new SMS pass.
1621
1622 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
1623
1624         * Makefile.in (OBJS): Add rtlhooks.o.
1625         (rtlanal.o): Depend on function.h.
1626         (cse.o): Depend on rtlhooks-def.h.
1627         (combine.o): Depend on rtlhooks-def.h.
1628         (rtlhooks.o): New rule.
1629         * combine.c: Include rtlhooks-def.h.
1630         (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
1631         num_sign_bit_copies, cached_num_sign_bit_copies,
1632         num_sign_bit_copies1): Move most of the code to rtlanal.c.
1633         (reg_nonzero_bits_for_combine,
1634         reg_num_sign_bit_copies_for_combine): New functions holding
1635         the remnants of the above.
1636         (combine_rtl_hooks): New.
1637         (combine_instructions): Set rtl_hooks instead of gen_lowpart.
1638         * cse.c: Include rtlhooks-def.h.
1639         (cse_rtl_hooks): New.
1640         (cse_main): Set rtl_hooks instead of gen_lowpart.
1641         * emit-rtl.c (gen_lowpart): Remove.
1642         (gen_lowpart_general): Move to rtlhooks.c.
1643         * rtl.h (nonzero_bits, num_sign_bit_copies,
1644         struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
1645         (gen_lowpart_general): Remove.
1646         (gen_lowpart): Temporarily redefine as a macro.
1647         * rtlanal.c: Include function.h.
1648         (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
1649         num_sign_bit_copies, cached_num_sign_bit_copies,
1650         num_sign_bit_copies1): New, from combine.c.
1651         * rtlhooks.c: New file.
1652
1653 2004-05-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
1654
1655         * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
1656         to support 32-bit -mint8 mode.
1657
1658         * doc/invoke.texi (-mint8): Added documentation for the -mint8
1659         option in the AVR architecture.
1660
1661 2004-05-24  Mike Stump  <mrs@apple.com>
1662
1663         * doc/install.texi: Document that dejagnu 1.4.4 is required.
1664
1665 2004-05-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1666
1667         * intl.h (open_quote, close_quote): New.
1668         * intl.c (open_quote, close_quote): New.
1669         (gcc_init_libintl): Set them.
1670         * pretty-print.c: Include "intl.h".
1671         (pp_base_format_text): Support 'q' format flag and %` and %'
1672         formats.  Use ' instead of ` in comments.
1673         * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
1674         gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
1675         foramt_types_orig): Describe these new formats.
1676         (decode_format_attr, check_function_format,
1677         check_format_info_main): Use these new formats.
1678         (status_warning): Use ATTRIBUTE_GCC_DIAG.
1679         * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
1680         check these formats to 3.5.
1681
1682 2004-05-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1683
1684         * Makefile.in (CPPLIBS): Renamed to CPPLIB.
1685         (BACKEND): Reflect this.
1686         (LIBDEPS): Move CPPLIB before LIBIBERTY.
1687         (LIBS): Likewise.
1688
1689 2004-05-24  Ulrich Weigand  <uweigand@de.ibm.com>
1690
1691         PR tree-optimization/14197
1692         * builtins.c: Include "tree-gimple.h"
1693         (readonly_data_expr): Use get_base_address.  Make sure to call
1694         decl_readonly_section only on trees it can handle.
1695         * tree-gimple.c (get_base_address): Accept STRING_CST and
1696         CONSTRUCTOR expressions.
1697         * Makefile.in: Update dependencies.
1698
1699 2004-05-23  Paolo Bonzini  <bonzini@gnu.org>
1700
1701         Move libcpp to the toplevel.
1702         * Makefile.in: Remove references to libcpp files,
1703         use CPPLIBS instead of libcpp.a.  Define SYMTAB_H
1704         and change hashtable.h to that.
1705         * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
1706         gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
1707         * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
1708         * configure: Regenerate.
1709         * config.in: Regenerate.
1710         * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
1711         * cppcharset.c: Removed.
1712         * cpperror.c: Removed.
1713         * cppexp.c: Removed.
1714         * cppfiles.c: Removed.
1715         * cpphash.c: Removed.
1716         * cpphash.h: Removed.
1717         * cppinit.c: Removed.
1718         * cpplex.c: Removed.
1719         * cpplib.c: Removed.
1720         * cpplib.h: Removed.
1721         * cppmacro.c: Removed.
1722         * cpppch.c: Removed.
1723         * cpptrad.c: Removed.
1724         * cppucnid.h: Removed.
1725         * cppucnid.pl: Removed.
1726         * cppucnid.tab: Removed.
1727         * hashtable.c: Removed.
1728         * hashtable.h: Removed.
1729         * line-map.c: Removed.
1730         * line-map.h: Removed.
1731         * mkdeps.c: Removed.
1732         * mkdeps.h: Removed.
1733         * stringpool.h: Include symtab.h instead of hashtable.h.
1734         * tree.h: Include symtab.h instead of hashtable.h.
1735         * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
1736
1737 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
1738
1739         * gcc.c (struct prefix_list): Add forward declaration.
1740         (do_spec_path): New function, extracted from...
1741         (do_spec_1) <'D'>: ... here.  Drop support for
1742         SPACE_AFTER_L_OPTION.
1743         (do_spec_1) <'I'>: Use do_spec_path.
1744         (process_command): Do not store the 'include' suffix
1745         in include_prefixes.
1746         * system.h: Poison SPACE_AFTER_L_OPTION.
1747
1748 2002-05-23  Roger Sayle  <roger@eyesopen.com>
1749
1750         * fold-const.c (non_lvalue): Explicitly list the tree codes that
1751         need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
1752
1753 2004-05-23  Joseph S. Myers  <jsm@polyomino.org.uk>
1754
1755         * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
1756         Update based on printed manual.  Enable setting of offsets for
1757         FSFPRINT and move it to gcc-common.texi.
1758         * doc/gcc.texi: Update FSF printing details.
1759         * doc/gccint.texi: Remove FSF printing details.
1760
1761 2004-05-23  Andrew Pinski  <pinskia@physics.uc.edu>
1762
1763         * config/rs6000/t-rs6000: Remove the disabling -Werror.
1764
1765 2004-05-22  Roger Sayle  <roger@eyesopen.com>
1766
1767         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
1768         expand_builtin_strrchr, expand_builtin_strpbrk,
1769         expand_builtin_mempcpy, expand_builtin_memcmp,
1770         expand_builtin_strcmp, expand_builtin_strncmp,
1771         expand_builtin_strcat, std_expand_builtin_va_start,
1772         std_expand_builtin_va_arg, expand_builtin_va_copy,
1773         expand_builtin_signbit, fold_builtin_cabs,
1774         fold_builtin_logarithm, fold_builtin_mempcpy,
1775         fold_builtin_signbit, fold_builtin_isascii,
1776         fold_builtin_toascii, fold_builtin_isdigit,
1777         fold_builtin_1, build_function_call_expr,
1778         simplify_builtin_strchr, simplify_builtin_strrchr,
1779         simplify_builtin_strpbrk, simplify_builtin_strncpy,
1780         simplify_builtin_memcmp, simplify_builtin_strcmp,
1781         simplify_builtin_strncmp, simplify_builtin_strncat,
1782         simplify_builtin_strspn, simplify_builtin_strcspn,
1783         simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
1784         to build with calls to build2, build3 or omit_one_operand.
1785
1786 2004-05-22  Richard Sandiford  <rsandifo@redhat.com>
1787
1788         * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
1789         section when generating EABI code.
1790
1791 2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
1792
1793         PR 15546
1794         * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
1795         Call mark_decl_referenced on the SYMBOL_REF_DECL.
1796
1797 2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
1798
1799         * c-common.c (c_common_truthvalue_conversion): Handle
1800         UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
1801         ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
1802         i.e. set the type to truthvalue_type_node and return.
1803
1804 2004-05-22  Zack Weinberg  <zack@codesourcery.com>
1805
1806        * tree.h (struct tree_decl): Add possibly_inlined bit.
1807         (DECL_POSSIBLY_INLINED): New accessor macro.
1808         * cgraph.h: Remove declaration of cgraph_inline_hash.
1809         * cgraph.c: Remove definition of cgraph_inline_hash.
1810         (hash_node): Revert to hashing DECL_UID.
1811         (eq_node): Take two pointers to cgraph_node structures.
1812         Compare DECL_UIDs.
1813         (cgraph_remove_node): Pass the node directly to htab_find_slot.
1814         (cgraph_varpool_hash_node): Rename hash_varpool_node;
1815         hash on DECL_UID.
1816         (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
1817         pointers to cgraph_varpool_node structures; compare DECL_UIDs.
1818         (cgraph_node): Allocate a temporary node on the stack, fill in
1819         its DECL field, and pass that to htab_find_slot.
1820         (cgraph_varpool_node): Likewise.
1821         (cgraph_function_possibly_inlined_p): If global info is ready,
1822         return the DECL_POSSIBLY_INLINED bit.
1823         * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
1824         instead of mucking with cgraph_inline_hash.
1825
1826 2004-05-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1827
1828         * doc/contrib.texi: Add g77 contributors.
1829
1830 2004-05-22  Richard Sandiford  <rsandifo@redhat.com>
1831
1832         * calls.c (initialize_argument_information): Forbid sibcalls if a
1833         callee-copied argument is stored in the current function's frame.
1834
1835 2004-05-22  Eric Christopher  <echristo@redhat.com>
1836
1837         * fix-header.c (read_scan_file): Update for add_path change.
1838
1839 2004-05-22  Ben Elliston  <bje@au.ibm.com>
1840
1841         * c.opt (Wmissing-include-dirs): New.
1842         * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
1843         to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
1844         OPT_isystem. Handle case OPT_Wmissing_include_dirs.
1845         * c-incpath.h (add_path): Add fourth (bool) argument.
1846         * c-incpath.c (add_env_var_paths): Pass false to add_path ().
1847         (add_standard_paths): Likewise.
1848         (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
1849         is used and the directory was user-supplied via -I.
1850         (add_path): Set p->user_supplied_p.  Remove duplicated code by
1851         using add_cpp_dir_path ().
1852         * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
1853         (struct cpp_dir): Add user_supplied_p.
1854         * doc/invoke.texi (Warning Options): Document new option.
1855
1856 2004-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
1857
1858         * fold-const.c (fold_read_from_constant_string): Convert result to
1859         requested type.
1860
1861 2004-05-21  Richard Henderson  <rth@redhat.com>
1862
1863         * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
1864         (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
1865         Don't mark VA_ARG_EXPRs volatile here.
1866         (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
1867
1868 2004-05-21  Richard Henderson  <rth@redhat.com>
1869
1870         * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
1871         * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
1872
1873 2004-05-21  Roger Sayle  <roger@eyesopen.com>
1874
1875         * fold-const.c (fold, fold_relational_hi_lo,
1876         nondestructive_fold_binary_to_constant,
1877         fold_read_from_constant_string): Use fold_convert instead of convert.
1878         * builtins.c (simplify_builtin, simplify_builtin_strstr,
1879         simplify_builtin_strchr, simplify_builtin_strrchr,
1880         simplify_builtin_strpbrk): Use fold_convert instead of convert.
1881
1882 2004-05-21  Diego Novillo  <dnovillo@redhat.com>
1883
1884         * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
1885         is NULL.
1886
1887 2004-05-21  Jakub Jelinek  <jakub@redhat.com>
1888
1889         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
1890         override sparc.h definition.
1891
1892 2004-05-20  Roger Sayle  <roger@eyesopen.com>
1893
1894         * tree.c (array_type_nelts, save_expr, substitute_in_expr,
1895         get_unwidened, get_narrower): Replace build with build2.
1896         * fold-const.c (negate_expr, associate_trees, size_binop,
1897         fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
1898         pedantic_omit_one_operand, distribute_bit_expr,
1899         make_bit_field_ref, optimize_bit_field_compare,
1900         decode_field_reference, range_binop, make_range,
1901         build_range_check, fold_range_test, fold_truthop,
1902         optimize_minmax_comparison, extract_muldiv_1,
1903         fold_binary_op_with_conditional_arg, fold_mathfn_compare,
1904         fold_inf_compare, fold_single_bit_test, fold,
1905         fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
1906         Likewise replace build with either build2 or build3.
1907
1908 2004-05-20  Ian Lance Taylor  <ian@wasabisystems.com>
1909
1910         * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
1911         * calls.c (prepare_call_address): Don't test
1912         NO_RECURSIVE_FUNCTION_CSE.
1913         * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
1914         * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1915         * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1916         * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1917         * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1918         * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1919         * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1920         * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1921         * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1922         * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1923         * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1924         * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
1925         Likewise.
1926         * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1927         * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
1928         * doc/tm.texi (Costs): Remove documentation for
1929         NO_RECURSIVE_FUNCTION_CSE.
1930
1931 2004-05-20  Paul Brook  <paul@codesourcery.com>
1932
1933         * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
1934         * unwind-dw2.c (extract_cie_info): Ditto.
1935         (_Unwind_FrameState): Change retaddr_column to word type.
1936
1937 2004-05-20  Roger Sayle  <roger@eyesopen.com>
1938
1939         PR middle-end/3074
1940         * fold-const.c (strip_compound_expr): Delete function.
1941         (count_cond): Delete function.
1942         (fold_binary_op_with_conditional_arg): Only perform transformations
1943         "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
1944         when a is constant.  This greatly simplifies this routine.
1945
1946         * tree.c (saved_expr_p): Delete function.
1947         * tree.h (saved_expr_p): Delete function prototype.
1948
1949 2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
1950
1951         * common.opt (ftree-loop-optimize): Remove.
1952
1953 2004-05-20  Daniel Jacobowitz  <dan@debian.org>
1954
1955         * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
1956         (NM_FOR_TARGET): Use := and $(shell).
1957         (mainversion): Remove unused variable.
1958
1959 2004-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1960
1961         * reorg.c (delete_from_delay_slot): If we have a barrier after the
1962         sequence containing the insn to be deleted, always reemit it.
1963
1964 2004-05-20  Richard Henderson  <rth@redhat.com>
1965
1966         PR 15454
1967         * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
1968         * function.c (expand_function_start): Expand static_chain_decl by hand.
1969         * gimplify.c (create_tmp_var_name): Export.
1970         * tree-gimple.h (create_tmp_var_name): Declare.
1971
1972 2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
1973
1974         * rs6000.c (print_operand) <case 'z'>: Call
1975         mark_decl_referenced before assemble_name.
1976
1977 2004-05-20  Zack Weinberg  <zack@codesourcery.com>
1978
1979         * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
1980         (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
1981         (cgraph_varpool_node): Hash on the pointer to the decl, not
1982         the DECL_UID.  Fixes 64-bit bootstrap failure.
1983
1984 2004-05-20  Richard Earnshaw <rearnsha@arm.com>
1985
1986         * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
1987         we don't earlyclobber operands used in the second insn.
1988
1989 2004-05-20  Steven Bosscher  <stevenb@suse.de>
1990
1991         * tree-mudflap.c: Formatting fixes.
1992
1993 2004-05-20  J"orn Rennecke <joern.rennecke@superh.com>
1994
1995         * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
1996         * gengtype.c (open_base_files): Include reload.h in ifiles.
1997         * reload.h (reg_equiv_memory_loc_varray): Declare.
1998         * reload1.c (reg_equiv_memory_loc_varray): New variable.
1999         (init_reload): Initialize it.
2000         (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
2001         reg_equiv_memory_loc_varray to size 0.
2002         * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
2003         growing reg_equiv_memory_loc_varray to the desired size.
2004         * passes.c (rest_of_handle_old_regalloc): Likewise.
2005         * reload.c: Amend comment on calling init_reload.
2006
2007 2004-05-20  Nick Clifton  <nickc@redhat.com>
2008
2009         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
2010         with 'TRAMP' in the body of the macro definition.
2011
2012 2004-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2013
2014         PR target/15383
2015         * config/ia64/ia64.c (ia64_expand_compare): Don't check
2016         TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
2017         cmptf_libfunc isn't set.
2018         (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
2019         conventions.
2020         (ia64_sysv4_init_libfuncs): New.
2021
2022         * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
2023         ia64_sysv4_init_libfuncs.
2024
2025 2004-05-20  Falk Hueffner  <falk@debian.org>
2026
2027         PR other/15526
2028         * libgcc2.c (__mulvsi3): Fix overflow test.
2029
2030 2004-05-19  Andrew Pinski  <pinskia@physics.uc.edu>
2031
2032         PR c/14171
2033         * reg-stack.c (nan): Rename to ...
2034         (not_a_num): Here.
2035         (reg_to_stack): Rename nan to not_a_num.
2036         (subst_stack_regs_pat): Likewise.
2037         (convert_regs_entry): Likewise.
2038         (convert_regs_1): Likewise.
2039
2040         * tree-cfg.c (find_case_label_for_value): Replace call to
2041         simple_cst_equal with tree_int_cst_equal.
2042
2043 2004-05-19  Jeff Law <law@redhat.com>
2044
2045         * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
2046         If the operand is for a use, then strip away the SSA_NAME, do not
2047         strip away the SSA_NAME for a set.  Never call release_ssa_name.
2048         (mark_def_sites): Appropriately pass additional argument to
2049         prepare_operand_for_rename.  If a VDEF_RESULT is not an SSA_NAME,
2050         then set the VDEF_RESULT to the VDEF_OP.
2051         (set_def_block): Strip away any SSA_NAME to get to the real
2052         underlying variable.
2053
2054         * tree-ssa-phiopt.c (value_replacement): Handle the case where
2055         the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
2056         BB directly.
2057
2058 2004-05-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2059
2060         PR c++/15463
2061         * loop-iv.c (iv_number_of_iterations):  Use trunc_int_for_mode on
2062         result of inverse.
2063
2064         PR rtl-optimization/15274
2065         * loop-iv.c (determine_max_iter, shorten_into_mode,
2066         iv_number_of_iterations): Handle constants correctly.
2067         * rtl.h (get_mode_bounds): Declaration changed.
2068         * stor-layout.c (get_mode_bounds): Return a constant suitable for
2069         the target mode.
2070
2071         PR rtl-optimization/14692
2072         * loop-unswitch.c (may_unswitch_on): Try folding the result.
2073         (unswitch_single_loop): Work correctly when may_unswitch_on
2074         returns a folded constant.
2075
2076         * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
2077         * simplify-rtx.c (simplify_const_relational_operation): Optimize
2078         comparisons with mode bounds.
2079
2080         * function.c (struct temp_slot): Add new field prev.
2081         (free_after_compilation, init_temp_slots): Free new fields.
2082         (cut_slot_from_list, insert_slot_to_list,
2083         temp_slots_at_level, max_slot_level, move_slot_to_level,
2084         make_slot_available): New functions.
2085         (assign_stack_temp_for_type, combine_temp_slots,
2086         find_temp_slot_from_address, preserve_temp_slots,
2087         preserve_rtl_expr_result, free_temp_slots,
2088         free_temps_for_rtl_expr, pop_temp_slots): Work with
2089         the new structure of lists.
2090         (mark_all_temps_used): Removed.
2091         * function.h (struct function): Field x_temp_slots
2092         replaced by x_used_temp_slots and x_avail_temp_slots.
2093         (temp_slots): Replaced by ...
2094         (used_temp_slots, avail_temp_slots): New.
2095         * tree.h (mark_all_temps_used): Declaration removed.
2096
2097         * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
2098         simplify_using_assignment): Take the expression out of
2099         the expr_list wrapper.
2100
2101         * loop-iv.c (iv_number_of_iterations): Improve clasification of
2102         infinite loops.
2103
2104 2004-05-19  Roger Sayle  <roger@eyesopen.com>
2105
2106         * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
2107         costs should be based on code size when optimizing for size.
2108
2109 2004-05-19  Paolo Bonzini  <bonzini@gnu.org>
2110
2111         * fold-const.c: Remove non-printable character 160.
2112
2113 2004-05-19  Nick Clifton  <nickc@redhat.com>
2114
2115         * doc/invoke.texi (ARM Options): Fix typo.
2116         Remove descrption of -mshort-load-bytes and
2117         -mno-short-load-bytes.
2118
2119         * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
2120         missing parenthesis.
2121         * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
2122         * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
2123
2124 2004-05-19  Steven Bosscher  <stevenb@suse.de>
2125
2126         * expr.c (store_constructor): Build loop start and end by hand
2127         instead of via loop functions from stmt.c.
2128         (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
2129         Remove the code to expand them.
2130
2131         * stmt.c (loop_stack): Remove this and everything related.
2132         (struct nesting, enum nesting_desc): Update.
2133         (expand_fixup): Likewise.
2134         (expand_loop_start, expand_start_loop_continue_elsewhere,
2135         expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
2136         expand_end_null_loop, expand_continue_loop, expand_exit_loop,
2137         expand_exit_loop_if_false, expand_exit_loop_top_cond,
2138         expand_exit_something): Remove.
2139         * tree.h: Remove prototypes.
2140
2141 2004-05-18  Mike Stump  <mrs@apple.com>
2142             Devang Patel  <dpatel@apple.com>
2143
2144         * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
2145         if this label is for eh.
2146         * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
2147         * config/darwin.c (darwin_emit_unwind_label): Likewise.
2148         * dwarf2out.c (output_call_frame_info): Likewise.
2149         * output.h (default_emit_unwind_label): Likewise.
2150         * target.h (unwind_label): Likewise.
2151         * varasm.c (default_emit_unwind_label): Likewise.
2152
2153         * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
2154         DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
2155         DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
2156         DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
2157         DEBUG_RANGES_SECTION): Define.
2158
2159 2004-05-18  Zack Weinberg  <zack@codesourcery.com>
2160
2161         * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
2162         (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
2163         (cgraph_varpool_node):
2164         Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
2165         (cgraph_function_possibly_inlined_p): Use the decl itself for
2166         the key, not DECL_ASSEMBLER_NAME.
2167         (change_decl_assembler_name): No need to muck with the hash tables.
2168         (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
2169         Delete.
2170         * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
2171         for the key, not DECL_ASSEMBLER_NAME.
2172         * cgraph.h: Remove prototypes of deleted functions.
2173         * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
2174         (mark_decl_referenced): New function.
2175         * tree.h: Prototype mark_decl_referenced.
2176         * final.c (output_addr_const) <case SYMBOL_REF>: Call
2177         mark_decl_referenced before assemble_name.
2178         * c-decl.c (finish_decl): Use mark_decl_referenced.
2179
2180 2004-05-18  Andrew Pinski  <pinskia@physics.uc.edu>
2181             Jeff Law <law@redhat.com>
2182
2183         * tree-ssa-phiopt.c (abs_replacement): New function.
2184         (empty_block_p): New function extracted from...
2185         (candidate_bb_for_phi_optimization): Break out empty block test.
2186         (conditional_replacement): Use empty_block_p.
2187         (value_replacement): Similarly.
2188
2189         * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
2190         * tree-ssa-phiopt.c: Include flags.h.
2191         (conditional_replacement): Remove argument names from prototype.
2192         Minor formatting and comment fixes.
2193         (tree_ssa_phiopt): If conditional_replacement returns false, then
2194         call value_replacement.
2195         (value_replacement): New function.
2196
2197 2004-05-18  Jeff Law  <law@redhat.com>
2198
2199         * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
2200         from conditional_replacement.
2201         (candidate_bb_for_phi_optimization): Similarly.
2202         (conditional_replacement): Use replace_phi_with_stmt and
2203         candidate_bb_for_phi_optimization.
2204
2205         * tree-ssa-phiopt.c: Fix various formatting issues.
2206
2207 2004-05-18  Steven Bosscher  <stevenb@suse.de>
2208
2209         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
2210         s390_expand_cmpmem): Do not use expand_start_loop and
2211         expand_end_loop, instead build the loop manually.
2212
2213 2004-05-18  Alan Modra  <amodra@bigpond.net.au>
2214
2215         * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
2216         (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
2217
2218 2004-05-17  Jeff Law  <law@redhat.com>
2219
2220         * toplev.h (flag_delete_null_pointer_checks): Move from here to...
2221         * flags.h (flag_delete_null_pointer_checks): Here.
2222         * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
2223         * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
2224         (add_phi_arg, remove_phi_arg_num): Similarly.
2225         * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
2226         property into PHI nodes.
2227         * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
2228         (record_equivalences_from_phis): If all PHI arguments are known to be
2229         nonzero, then the result must be nonzero as well.
2230         (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
2231         (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
2232         appropriately.  Walk the USE-DEF chains and propagate nonzero property
2233         as appropriate.
2234         * tree.h (PHI_ARG_NONZERO): Define.
2235         (phi_arg_d): Add nonzero flag.
2236
2237 2004-05-17  Zack Weinberg  <zack@codesourcery.com>
2238
2239         * f: Entire directory removed
2240
2241         * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
2242         (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
2243         (g77_integer_type_node, g77_uinteger_type_node)
2244         (g77_longint_type_node, or g77_ulongint_type_node): Delete.
2245         * c-common.c (c_common_nodes_and_builtins): Do not initialize
2246         the above set of variables.
2247
2248         * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
2249         * doc/invoke.texi, doc/standards.texi: Remove cross-references
2250         to g77 manual.
2251
2252 2004-05-17  Steven Bosscher  <stevenb@suse.de>
2253
2254         PR tree-optimization/15438
2255         * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
2256         attributed functions as pure or const.
2257
2258 2004-05-17  Frank Ch. Eigler  <fche@redhat.com>
2259
2260         * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
2261         from source code with errors.
2262
2263 2004-05-17  Ranjit Mathew  <rmathew@hotmail.com>
2264
2265         Enable tree browser for all front ends.
2266         * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
2267         (BACKEND): ...to here.
2268
2269 2004-05-17  Jan Hubicka  <jh@suse.cz>
2270
2271         * i386.c (construct_container): Do not produce BLKmode registers.
2272         (classify_argument): Properly compute alignment of complex types.
2273
2274 2004-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2275
2276         PR target/15084
2277         * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
2278         and renamed to movdi_insv_1_rex64.
2279         (insv): Support SImode for 32bit and DImode for 64bit.
2280
2281 2004-05-17  Richard Sandiford  <rsandifo@redhat.com>
2282
2283         * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
2284         (TARGET_SWITCHES): Remove debugg.
2285         * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
2286         TARGET_64BIT.
2287         (subdi3): Replace the define_expand with a define_insn, the latter
2288         renamed from subdi3_internal_3.
2289         (negdi2): Likewise negdi2_internal_2.
2290         (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
2291         (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
2292         and associated define_splits.
2293         (adddi3_internal): Renamed from adddi3_internal_3.
2294         (ashldi3_internal): Likewise ashldi3_internal4.
2295         (ashrdi3_internal): Likewise ashrdi3_internal4.
2296         (lshrdi3_internal): Likewise lshrdi3_internal4.
2297
2298 2004-05-17  Richard Sandiford  <rsandifo@redhat.com>
2299
2300         * optabs.c (expand_unop): Try implementing negation using subtraction
2301         from zero.
2302
2303 2004-05-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2304
2305         * pa.md:  Fix typo from last change.  Remove DFmode move to and from
2306         SAR register.
2307
2308 2004-05-16  Richard Earnshaw  <rearnsha@arm.com>
2309
2310         PR target/10982
2311         * arm.md (ne_zeroextractsi): Convert to insn-and-split.
2312         (ne_zeroextractsi_shifted): New pattern.
2313         (ite_ne_zeroextractsi): New pattern.
2314         (ite_ne_zeroextractsi_shifted): New pattern.
2315
2316 2004-05-15  Steven Bosscher  <stevenb@suse.de>
2317
2318         * c-gimplify.c (c_genericize):
2319         Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
2320         * c-parse.in <expr_no_commas>: Likewise.
2321         <if_prefix>: Likewise.
2322         <select_or_iter_stmt>: Likewise.
2323         * expr.c (expand_var, expand_expr_real_1): Likewise.
2324         * expr.h (expand_expr): Make it a static inline function.
2325         Move prototype for expand_expr_real up before this.
2326         * fold-const.c (fold_relational_hi_lo, fold_relational_const):
2327         Likewise.
2328         * gimplify.c (gimple_boolify, gimplify_addr_expr,
2329         gimplify_asm_expr, gimplify_expr): Likewise.
2330         * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
2331         dump_function_to_file): Likewise.
2332         * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
2333         * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
2334         * tree-into-ssa.c (dump_tree_ssa): Likewise.
2335         * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
2336         Likewise.
2337         * tree-optimize.c (execute_one_pass): Likewise.
2338         * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
2339         * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
2340
2341         * objc/objc-act.c (objc_build_try_enter_fragment,
2342         objc_build_try_epilogue, objc_build_catch_stmt,
2343         objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
2344         with lang_hooks.foo ().
2345
2346 2004-05-15  Roger Sayle  <roger@eyesopen.com>
2347
2348         * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
2349         that simplify_builtin doesn't destructively modify its argument.
2350
2351 2004-05-15  Richard Earnshaw  <reanrsha@arm.com>
2352
2353         * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
2354         implementations for ARM and Thumb.
2355         * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
2356
2357 2004-05-15  Thomas Quinot  <quinot@act-europe.fr>
2358
2359         * prefix.c (update_path): Replace PREFIX with KEY only
2360         when it matches a full directory name in PATH.
2361
2362 2004-05-15  Richard Earnshaw  <reanrsha@arm.com>
2363
2364         * arm.h (TARGET_APCS_32): Delete.
2365         (TARGET_MMU_TRAPS): Delete.
2366         (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__.  Never
2367         define __APCS_26__.
2368         (CPP_SPEC): Remove checking of -mapcs-{26,32}.
2369         (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
2370         (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
2371         (prog_mode_type): Delete.
2372         (PROMOTE_MODE): Always promote unsigned for HImode.
2373         (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
2374         (MASK_RETURN_ADDR): Simplify.
2375         * arm.c (arm_prgmode): Delete.
2376         (arm_override_options, arm_gen_rotated_half_load): Simplify.
2377         (print_multi_reg, output_return_instruction): Simplify.
2378         (arm_output_epilogue, arm_final_prescan_insn): Simplify.
2379         (arm_return_addr): Simplify.
2380         * arm.md (prog_mode): Delete.
2381         (conds): Simplify.
2382         (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
2383         (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
2384         (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
2385         (loadhi_shiftpredec): Delete.
2386         (peephole for post-increment on HImode load): Delete.
2387         * arm/crtn.asm: (FUNC_END): Simplify.
2388         * arm/lib1funcs.asm: Remove APCS-26 return macros.
2389         * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
2390         * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
2391         * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
2392         MULTILIB_DEFAULTS as required.
2393         * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
2394         * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
2395         variables as required.
2396         * doc/invoke.texi (ARM Options): Remove obsolete flags.
2397
2398 2004-05-15  Alan Modra  <amodra@bigpond.net.au>
2399
2400         * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
2401         UNITS_PER_WORD to calculate gpr size.  Re-instate code to set reg
2402         count to 8 to handle n_reg > 2.
2403
2404 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2405
2406         * doc/extend.texi: Update WG14 URL.
2407
2408 2004-05-15  Steven Bosscher  <stevenb@suse.de>
2409
2410         * basic-block.h (life_analysis, delete_noop_moves):
2411         Update prototypes.
2412         * bt-load.c (branch_target_load_optimize): Don't take the
2413         insns stream as an argument.  Update the life_analysis calls.
2414         * combine.c (combine_instructions): Update delete_noop_moves
2415         calls.
2416         * flow.c (notice_stack_pointer_modification): Don't take the
2417         insns stream as an argument.  Work on the flow graph.
2418         (life_analysis): Likewise.
2419         (delete_noop_moves): Likewise.
2420         * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
2421         (rest_of_handle_life): Update life_analysis call.
2422         (rest_of_compilation): Likewise, and also update
2423         branch_target_load_optimize call.
2424         * ra.c (reg_alloc): Update life_analysis call.
2425         * reg-stack.c (reg_to_stack): Likewise.  Also, don't take
2426         the insns stream as an argument.
2427         * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
2428         call.
2429         * rtl.c (branch_target_load_optimize, reg_to_stack): Update
2430         prototypes.
2431         * value-profile.c (branch_prob): Update life_analysis call.
2432         * web.c (web_main): Work on the CFG, not on the insns stream.
2433
2434         * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
2435         * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
2436         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2437
2438 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2439
2440         PR c/15444
2441         * c-format.c (avoid_dollar_number): New function.
2442         (check_format_info_main): Call avoid_dollar_number when operand
2443         numbers might occur but has_operand_number == 0.
2444
2445 2004-05-14  Richard Earnshaw  <rearnsha@arm.com>
2446
2447         * arm.md (all peephole2 patterns): Use predicates that validate
2448         register classes as appropriate.
2449
2450 2004-05-14  Steven Bosscher  <stevenb@suse.de>
2451
2452         PR opt/14472
2453         * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
2454         ignore type conversions that do not inhibit tail calling.
2455         (find_tail_calls): Likewise.
2456
2457 2004-05-14  Jeff Law  <law@redhat.com>
2458
2459         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
2460         bother marking bypassed virtuals for out-of-ssa.  Instead merge
2461         bypassed virtuals into vars_to_rename just before into-ssa pass.
2462
2463         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
2464         so that it picks up more opportunities to eliminate ABS expressions
2465         or turn them into negations.
2466
2467 2004-05-14  Steven Bosscher  <stevenb@suse.de>
2468
2469         * passes.c (rest_of_handle_null_pointer): Remove.
2470         (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
2471         (rest_of_compilation): Likewise.
2472         * rtl.h (delete_null_pointer_checks): Remove prototype.
2473         * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
2474         Remove declarations.
2475         (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
2476         compute_kill_rd, compute_rd, alloc_avail_expr_mem,
2477         free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
2478         expr_reaches_here_p, computing_insn, def_reaches_here_p,
2479         can_disregard_other_sets, handle_avail_expr, classic_gcse,
2480         one_classic_gcse_pass, invalidate_nonnull_info,
2481         delete_null_pointer_checks_1, delete_null_pointer_checks,
2482         expr_reached_here_p_work): Remove.
2483         (gcse_main): Do not perform classic GCSE when optimizing for size.
2484         (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
2485         are never used.
2486
2487 2004-05-14  Andrew Pinski  <pinskia@physics.uc.edu>
2488
2489         PR optimization/14466
2490         * tree-complex.c (make_temp): Remove.
2491         (gimplify_val): Replace make_temp with make_rename_temp
2492         and add NULL as the second argument.
2493         (expand_complex_div_wide): Likewise.
2494         * tree-dfa.c (make_rename_temp): New function.
2495         * tree-flow.h (make_rename_temp): Declare.
2496         * tree-sra.c (make_temp): Remove.
2497         (lookup_scalar): Replace make_temp with make_rename_temp.
2498         (create_scalar_copies): Likewise.
2499         * tree-ssa-phiopt.c (conditional_replacement): When we
2500         get non gimple create a temporary variable to hold the
2501         casted expression.
2502
2503 2004-05-14  Paul Brook  <paul@codesourcery.com>
2504
2505         * stor-layout.c (update_alignment_for_field): Use
2506         targetm.align_anon_bitfield.
2507         * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
2508         (TARGET_INITIALIZER): Use it.
2509         * target.h (struct gcc_target): Add align_anon_bitfield.
2510         * config/arm/arm.c (arm_align_anon_bitfield):  New function.
2511         (TARGET_ALIGN_ANON_BITFIELD): Define.
2512         * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
2513
2514 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
2515
2516         * tree.def (documentation): Remove mention of class 'b'.
2517         (BLOCK): Now in class 'x'.
2518         * c-common.c (verify_tree): Remove case 'b'.
2519         * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
2520         * calls.c (calls_function_1): Control cannot get past the switch
2521         when exp is a BLOCK.
2522         * print-tree.c (print_node): Move code for class 'b' to the class
2523         'c'/'x' switch, as case BLOCK.
2524         * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
2525         (unsafe_for_reeval, substitute_placeholder_in_expr)
2526         (stabilize_reference_1): Remove case 'b'.
2527         * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
2528         of something being 'b' to tests for TREE_CODE of something being
2529         BLOCK.
2530         * tree-ssa-operands.c (get_expr_operands): Likewise.
2531
2532 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
2533
2534         * tree-gimple.c: Rename from tree-simple.c.
2535         * tree-gimple.h: Rename from tree-simple.h.
2536         * c-gimplify.c: Rename from c-simplify.c
2537         * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
2538         langhooks.c, tree-alias-ander.c, tree-alias-common.c,
2539         tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
2540         tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
2541         tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
2542         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
2543         tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
2544         Update.
2545
2546 2004-05-14  Ranjit Mathew  <rmathew@hotmail.com>
2547
2548         * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
2549
2550 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
2551
2552         * tree-ssa.c (delete_tree_ssa): XFREE
2553         bitmaps allocated with BITMAP_XMALLOC.
2554
2555         * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
2556         idfs_cache at the end of the function.
2557
2558         * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
2559         at the end of the function.
2560
2561         * tree-ssa-dce.c (perform_tree_ssa_dce): Free
2562         el at the end of the function.
2563
2564         * tree-into-ssa.c (insert_phi_nodes_for): XFREE
2565         bitmaps allocated with BITMAP_XMALLOC.
2566
2567         * loop-unswitch.c (unswitch_single_loop): Free bbs at
2568         the end.
2569
2570         * final.c (shorten_branches): Free uid_shuid before
2571         reallocating it.
2572
2573         * bb-reoder.c (connect_traces): Free cold_traces at the end.
2574
2575 2004-05-13  Jeff Law  <law@redhat.com>
2576
2577         * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
2578         variables.  Simplify slightly by using USE_OP/DEF_OP instead
2579         of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
2580
2581         * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
2582         rather than iterating through the blocks testing each bit in
2583         livein to initialize the worklist.
2584         (mark_def_sites): Remove useless checks of KILLS for virtual
2585         operands.
2586
2587         * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
2588         new parameters for the statement and variable worklist as well
2589         as a bitmap of interesting SSA_NAMEs.  Walk over the statement
2590         worklist recording interesting variables in the variable worklist
2591         and bitmap.  Handle casts between integral and boolean types.
2592         (substitute_single_use_vars): Accept new parameters for the statement
2593         and variable worklist.  When a substitution is made add a new
2594         entry to the statement worklist.  Handle casts between integral
2595         and boolean types.
2596         (tree_ssa_forward_propagate_single_use_vars): Rework to pass
2597         worklists to children.  Iterate until the statement worklist
2598         is empty.
2599
2600 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
2601
2602         * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
2603         the end of the block.
2604
2605         * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
2606         with BITMAP_XMALLOC.
2607
2608         * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
2609         with BITMAP_XMALLOC.
2610
2611         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
2612         Free nonzero_vars at the end of the function.
2613
2614         * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
2615         need to generate code instead of a NOP_EXPR.
2616
2617 2004-05-13  Ian Lance Taylor  <ian@wasabisystems.com>
2618
2619         * gcc.c (default_compilers): Fill out initializers for new Fortran
2620         entries.
2621
2622 2004-05-13  Paul Brook  <paul@codesourcery.com>
2623
2624         * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
2625
2626 2004-05-13  Paul Brook  <paul@codesourcery.com>
2627
2628         * config/arm/arm.c (arm_default_short_enums): New function.
2629         (TARGET_DEFAULT_SHORT_ENUMS): Define.
2630
2631 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
2632
2633         Merge from tree-ssa-20020619-branch.
2634
2635         * Makefile.in (reload1.o-warn): Add.
2636         (tree-alias-ander.o-warn): Add.
2637         (GMPLIBS): Define.
2638         (GMPINC): Define.
2639         (BANSHEELIB): Define.
2640         (BANSHEEINC): Define.
2641         (TREE_DUMP_H): Define.
2642         (TREE_SIMPLE_H): Define.
2643         (TREE_FLOW_H): Define.
2644         (LIBDEPS): Add BANSHEELIB.
2645         (INCLUDES): Add BANSHEEINC and GMPINC.
2646         (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
2647         c-mudflap.o and c-pretty-print.o.
2648         (C_OBJS): Remove c-pretty-print.o.
2649         (OBJS-common): Remove sibcall.o.
2650         Add tree-cfg.o, tree-dfa.o, tree-eh.o,
2651         tree-ssa.o, tree-optimize.o, tree-simple.o,
2652         tree-alias-type.o, gimplify.o, tree-pretty-print.o,
2653         tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
2654         tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
2655         tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2656         tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
2657         tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
2658         tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
2659         tree-tailcall.o, gimple-low.o, tree-iterator.o,
2660         tree-phinodes.o, tree-ssanames.o, tree-sra.o,
2661         tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
2662         tree-profile.o.
2663         (OBJC-archive): Add tree-nomudflap.o.
2664         (cc1): Add dependency on @TREEBROWSER@.
2665         (c-decl.o): Add dependency on TREE_DUMP_H.
2666         (c-dump.o): Likewise.
2667         (c-common.o): Add dependency on tree-iterator.h
2668         (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
2669         (gtype-desc.o): Add dependency on TREE_FLOW_H.
2670         (tree.o): Add dependency on tree-iterator.h,
2671         BASIC_BLOCK_H and TREE_FLOW_H.
2672         (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
2673         (langhooks.o): Add dependency on TREE_SIMPLE_H.
2674         (tree-alias-type.o, tree-alias-ander.o,
2675         tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
2676         tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
2677         tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
2678         tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
2679         domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
2680         tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
2681         tree-nested.o, tree-iterator.o, tree-dfa.o,
2682         tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
2683         tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
2684         gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
2685         tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
2686         tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
2687         tree-sra.o, tree-complex.o, tree-profile.o,
2688         rtl-profile.o): New rules.
2689         (function.o): Add dependency on basic-block.h
2690         (expr.o): Add dependency on tree-iterator.h.
2691         (sibcall.o): Remove.
2692         (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
2693         (cfg.o): Add dependency on TIMEVAR_H.
2694         (cfghooks.o): Add dependency on TREE_FLOW_H.
2695         (reg-stack.o): Add dependency on basic-block.h.
2696         (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
2697         c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
2698         tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
2699         tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
2700         tree-alias-type.h, tree-alias-common.h,
2701         tree-alias-type.c, tree-alias-common.c,
2702         tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
2703         rtl-profile.c and tree-nested.c.
2704         (gt-tree-alias-common.h, gt-tree-mudflap.h,
2705         gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
2706         gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
2707         gt-tree-cfg.h, gt-tree-nested.h): New rules.
2708         (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
2709         * basic-block.h: Include predict.h
2710         (struct edge_def): Add GTY marker.
2711         Change field 'insns' to be a union of tree and rtx.
2712         (EDGE_TRUE_VALUE): Define.
2713         (EDGE_FALSE_VALUE): Define.
2714         (EDGE_EXECUTABLE): Define.
2715         (struct bb_ann_d): Forward declare.
2716         (struct basic_block_def): Add GTY marker.
2717         Remove fields head_tree and end_tree.
2718         Add fields stmt_list, rbi and tree_annotations.
2719         (struct reorder_block_def): Define.
2720         (basic_block_info): Add GTY marker.
2721         (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
2722         variables instead of macros.
2723         (flow_call_edges_add): Remove declaration.
2724         (make_eh_edge): Remove declaration.
2725         (brief_dump_cfg, find_edge, tree_predicted_by_p,
2726         rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
2727         predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
2728         cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
2729         alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
2730         (try_redirect_by_replacing_jump): Modfiy return type to
2731         edge instead of bool.
2732         * bb-reorder.c (copy_bb): Call duplicate_block
2733         instead of cfg_layout_duplicate_bb.
2734         (copy_bb_p): Call can_duplicate_block_p instead of
2735         cfg_layout_can_duplicate_bb_p.
2736         * bitmap.c (bitmap_first_set_bit): Abort if word
2737         wasn't found.
2738         (bitmap_last_set_bit): Likewise.
2739         * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
2740         (DEF_FUNCTION_TYPE_3): Add.
2741         * builtins.c (c_strlen): Make extern.
2742         (builtin_save_expr): New.
2743         (expand_builtin_nonlocal_goto): New.
2744         (expand_builtin_constant_p): Remove.
2745         (expand_builtin_mathfn): Call builtin_save_expr instead
2746         of save_expr.
2747         (expand_builtin_mathfn_2): Likewise.
2748         (expand_builtin_strcmp): Likewise.
2749         (expand_builtin_strncmp): Likewise.
2750         (expand_builtin_strcat): Likewise.
2751         (fold_builtin_cabs): Likewise.
2752         (expand_builtin_alloca): Don't trigger if -fmudflap is
2753         given.
2754         (build_string_literal): Set TREE_INVARIANT on new node.
2755         (expand_builtin_profile_fun): New.
2756         (round_trampoline_addr): New.
2757         (expand_builtin_init_trampoline): New.
2758         (expand_builtin_adjust_trampoline): New.
2759         (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
2760         <BUILT_IN_CONSTANT_P>: Return const0_rtx;
2761         <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
2762         BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
2763         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
2764         BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
2765         Handle.
2766         (fold_builtin_expect): New.
2767         (fold_builtin_isascii): Don't return non-constant results
2768         in GIMPLE form.
2769         (fold_builtin_isdigit): Likewise.
2770         (fold_builtin_1): New.
2771         (fold_builtin): Call it.
2772         (build_function_call_expr): Update call to build a new
2773         CALL_EXPR.
2774         (purge_builtin_constant_p): Remove.
2775         (simplify_builtin, simplify_builtin_memcmp,
2776         simplify_builtin_strcmp, simplify_builtin_strncmp,
2777         simplify_builtin_strpbrk, simplify_builtin_strstr,
2778         simplify_builtin_strchr, simplify_builtin_strrchr,
2779         simplify_builtin_strcat, simplify_builtin_strncat,
2780         simplify_builtin_strspn, simplify_builtin_strcspn,
2781         simplify_builtin_next_arg, simplify_builtin_va_start,
2782         simplify_builtin_sprintf): New.
2783         * builtins.def (BUILT_IN_STACK_ALLOC,
2784         BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
2785         BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
2786         BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
2787         BUILT_IN_PROFILE_FUNC_EXIT): Define.
2788         * c-common.c: Include tree-iterator.h and hashtab.h.
2789         (lang_statement_code_p): Declare.
2790         (lang_gimplify_stmt): Declare.
2791         (fix_string_type): Set TREE_INVARIANT for value.
2792         (pointer_int_sum): Rely on build to set TREE_CONSTANT.
2793         (c_type_hash): New.
2794         (c_common_get_alias_set): Handle multiple type nodes
2795         referring to "the same" type, currently for C90 only.
2796         (c_add_case_label): Use create_artificial_label.
2797         (finish_label_address_expr): Don't set TREE_CONSTANT on
2798         result.
2799         (c_expand_expr): Don't handle STMT_EXPR.
2800         (handle_alias_attribute): Marke aliased variables to be
2801         TREE_STATIC.
2802         (handle_nonnull_attribute): Initialize arg_num.
2803         (check_function_nonnull): Likewise.
2804         (c_walk_subtrees): New.
2805         (c_estimate_num_insns_1): Don't handle
2806         EXPR_WITH_FILE_LOCATION nor FILE_STMT.
2807         (c_decl_uninit_1): Remove.
2808         (c_decl_uninit): Remove.
2809         (c_warn_unused_result): New.
2810         * c-common.def (ASM_STMT): Change number of operands
2811         to 4.
2812         (FILE_STMT): Remove.
2813         * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
2814         Remove.
2815         (lang_gimplify_stmt): Add.
2816         (expand_stmt): Remove.
2817         (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
2818         ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
2819         ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
2820         FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
2821         ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
2822         (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
2823         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2824         genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
2825         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2826         genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
2827         genrtl_compound_stmt, genrtl_asm_stmt,
2828         genrtl_cleanup_stmt, c_decl_uninit): Remove.
2829         (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
2830         c_tree_chain_matters_p, c_warn_unused_result,
2831         c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
2832         Declare.
2833         * c-convert.c (convert): Make convert work when
2834         converting to compatible types across translation unit.
2835         * c-decl.c: Include langhooks.h, tree-mudflap.h,
2836         tree-simple.h, diagnostic.h and tree-dump.h
2837         (merge_decls): Initialize oldtype to NULL.
2838         (finish_decl): Use DECL_HARD_REGISTER instead of
2839         DECL_C_HARD_REGISTER.
2840         (check_bitfield_type_and_width): Check for null
2841         lang_type_specific when check the precision of an enum.
2842         (grokdeclarator): Immediately layout an ARRAY_TYPE used
2843         in a pointer-to-array declarator.
2844         (finish_struct): Clear allocated struct lang_type.
2845         (finish_enum): Set enum_min and enum_max.  Set
2846         TYPE_MIN/MAX_VALUE to the limits of the compatible type,
2847         not to the enumerators.
2848         (set_decl_nonlocal): New.
2849         (store_parm_decls): Use it via walk_tree.
2850         (c_finalize): New.
2851         (finish_function): When !targetm.have_ctors_dtors,
2852         record static constructors and destructors here...
2853         (c_expand_body_1): ... not here.
2854         (c_expand_decl): Rename from c_expand_decl_stmt.
2855         Handle all C-specific expansion semantics.
2856         * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
2857         STMT_LINENO.
2858         * c-format.c (handle_format_arg_attribute): Initialize
2859         format_num.
2860         * c-lang.c: Include tree-inline.h
2861         (LANG_HOOKS_EXPAND_DECL,
2862         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2863         LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
2864         LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
2865         LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
2866         (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2867         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
2868         (c_types_compatible_p): New.
2869         * c-mudflap.c: New file.
2870         * c-objc-common.c: Include tree-mudflap.h
2871         (start_cdtor, finish_cdtor): Collapse
2872         together into
2873         (build_cdtor): ...here.  Update to construct a complete tree
2874         for the function.  No need to call push_scope, pop_scope, or
2875         clear_last_expr, or set current_function_cannot_inline.
2876         (c_missing_noreturn_ok_p): Change prototype to return
2877         bool.
2878         (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
2879         * c-opts.c (c_common_handle_option): Move handling of -fdump- to
2880         opts.c.
2881         (c_common_post_options): Don't ever use rtl inlining.
2882         * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
2883         * c-pragma.c (handle_pragma_redefine_extname): Define
2884         always.
2885         (init_pragma): Activate #pragma redefine_extname for mudflap.
2886         * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
2887         (pp_c_initializer): Accept any type CONSTRUCTOR.
2888         (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
2889         COMPLEX_TYPE.
2890         (decl_name_str): New local function.
2891         (pp_c_direct_declarator): Call it.
2892         (pp_c_primary_expression): Call it.
2893         (pp_c_id_expression): Call it.
2894         (pp_c_statement): Call it.
2895         (print_c_tree): Create new pp object.
2896         * c-pretty-print.h (pp_c_tree_decl_identifier,
2897         print_c_tree): Declare.
2898         * c-semantics.c: Include langhooks.h
2899         (lang_expand_stmt, lang_expand_decl_stmt,
2900         find_reachable_label_1, find_reachable_label,
2901         expand_unreachable_if_stmt, expand_unreachable_stmt,
2902         genrtl_do_stmt_1): Remove.
2903         (begin_stmt_tree): Don't check for changed filename.
2904         Call annotate_with_locus.
2905         (finish_stmt_tree): Don't set line for end of function.
2906         (build_stmt): Don't check type nodes for
2907         side effects.
2908         (build_stmt): Set TREE_SIDE_EFFECTS.
2909         Set EXPR_LOCUS instead of STMT_LINENO.
2910         (lang_expand_stmt, lang_expand_decl_stmt,
2911         expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
2912         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2913         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
2914         genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
2915         genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
2916         genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
2917         genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
2918         find_reachable_label_1, expand_unreachable_if_stmt,
2919         expand_unreachable_stmt): Remove.
2920         (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
2921         * c-simplify.c: New file.
2922         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
2923         (struct lang_type): Add fields enum_min and enum_max.
2924         (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
2925         (c_expand_decl, c_missing_noreturn_ok_p,
2926         c_types_compatible_p): Declare.
2927         * c-typeck.c (tagged_types_tu_compatible_p): Allow for
2928         compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
2929         (default_function_array_conversion): Rely on build to
2930         set TREE_CONSTANT.
2931         (parser_build_binary_op, pointer_diff): Likewise.
2932         (build_unary_op, build_binary_op): Likewise.
2933         (build_array_ref):
2934         (build_external_ref): Set TREE_INVARIANT.
2935         (build_c_cast, pop_init_level): Likewise.
2936         (process_init_element): Use ASM_VOLATILE_P.
2937         (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
2938         (c_finish_case): Call c_do_switch_warnings.
2939         * c.opt (fdump-): Remove.
2940         * calls.c (try_to_integrate): Remove.
2941         (prepare_call_address): Replace fndecl arg with a
2942         precomputed static chain value.
2943         (emit_call_1): New argument for full call expr.
2944         (flags_from_decl_or_type): Call special_function_p.
2945         (initialize_argument_information): Add argument
2946         may_tailcall.
2947         (purge_reg_equiv_notes): New.
2948         (expand_call): Do not try to expand calls inline.
2949         (fixup_tail_calls): New.
2950         * cfg.c: Include timevar.h and ggc.h.
2951         (bb_pool, edge_pool): Remove.
2952         (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
2953         (entry_exit_blocks): Remove.
2954         (rbi_pool): Declare.
2955         (init_flow): Do not create pools.
2956         Allocate entry/exit block.
2957         (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
2958         (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
2959         (unlink_block): Clear b->prev_bb and b->next_bb.
2960         (compact_blocks): Clear all slots of BASIC_BLOCK array.
2961         (dump_flow_info): Work on trees too.
2962         (dump_cfg_bb_info): New.
2963         (brief_dump_cfg): New.
2964         * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
2965         (find_edge): New.
2966         * cfgbuild.c (rtl_make_eh_edge): Rename from
2967         make_eh_edge.  Update all users.
2968         (find_basic_blocks): Don't call VARRAY_FREE on
2969         basic_block_info.
2970         * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
2971         and newpos2.
2972         (delete_unreachable_blocks): Return changed status.
2973         (merge_seq_blocks): New.
2974         * cfghooks.c: Include tree-flow.h
2975         (tree_register_cfg_hooks, ir_type): New.
2976         (redirect_edge_and_branch): Change return type to edge.
2977         (predict_edge, predicted_by_p, can_duplicate_block_p,
2978         duplicate_block, block_ends_with_call_p,
2979         block_ends_with_condjump_p, flow_call_edges_add): New.
2980         * cfghooks.h (redirect_edge_and_branch): Change return
2981         type to edge.
2982         (predict_edge, predicted_by_p, can_duplicate_block_p,
2983         duplicate_block, block_ends_with_call_p,
2984         block_ends_with_condjump_p, flow_call_edges_add): Declare.
2985         (redirect_edge_and_branch): Change return type to edge.
2986         (struct cfg_hooks): Add fields block_ends_with_call_p,
2987         block_ends_with_condjump_p, flow_call_edges_add,
2988         predict_edge, predicted_by_p, can_duplicate_block_p and
2989         duplicate_block.
2990         (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
2991         * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
2992         (fixup_reorder_chain): Use initialize_bb_rbi.
2993         (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
2994         (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
2995         (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
2996         (insn_locators_initialize): Use new info about blocks.
2997         * cfglayout.h (typedef struct reorder_block_def): Moved to
2998         basic_block.h.
2999         (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
3000         removed.
3001         * cfgloop.c: Include tree.h and tree-flow.h.
3002         * cfgloop.h (create_loop_notes): Declare.
3003         * cfgloopmanip.c (create_loop_notes): New.
3004         * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
3005         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
3006         and duplicate_block fields.
3007         (create_basic_block_structure): Don't look at
3008         RTX_INTEGRATED_P.
3009         (rtl_block_ends_with_call_p): New.
3010         (rtl_block_ends_with_condjump_p): New.
3011         (need_fake_edge_p): Moved from cfganal.c.
3012         (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
3013         (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
3014         rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
3015         (cfg_layout_rtl_cfg_hooks): Ditto.
3016         * cgraph.c (cgraph_mark_reachable_node): Don't force nested
3017         functions to be reachable.
3018         * cgraphunit.c (decide_is_function_needed):
3019         * cgraphunit.c (decide_is_function_needed): Nested functions of extern
3020         inline functions don't need to be output.
3021         (cgraph_assemble_pending_functions): Don't do anything
3022         special for nested functions.
3023         (cgraph_mark_functions_to_output): Likewise.
3024         (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
3025         (cgraph_analyze_function): Use estimate_num_insns.
3026         (cgraph_mark_functions_to_output): Likewise.
3027         (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
3028         (cgraph_expand_function): Allow functions to not be
3029         emitted.
3030         (cgraph_remove_unreachable_nodes):
3031         (cgraph_recursive_inlining_p): Simplify.
3032         (lookup_recursive_calls,
3033         cgraph_decide_recursive_inlining): New.
3034         (cgraph_decide_inlining_*): Update calls of
3035         cgraph_mark_inline.
3036         * combine.c (get_pos_from_mask): Always set *plen.
3037         * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
3038         ftree-based-profiling, ftree-ccp, ftree-ch,
3039         ftree-combine-temps, ftree-copyrename, ftree-dce,
3040         ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
3041         ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
3042         ftree-lrs): Add.
3043         * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
3044         Undefine.
3045         * configure.ac: Add --enable-tree-browser option.
3046         Add --with-libbanshee option.
3047         Add GMPLIBS and GMPINC.
3048         * configure: Regenerate.
3049         * coverage.c (tree_ctr_tables): New.
3050         (coverage_counter_alloc): Use it.
3051         (build_ctr_info_value): Ditto.
3052         (coverage_counter_ref): Ditto.  Rename to rtl_coverage_counter_ref.
3053         (tree_coverage_counter_ref): New.
3054         * coverage.h (coverage_counter_ref): Remove declaration.
3055         (rtl_coverage_counter_ref): Declare.
3056         (tree_coverage_counter_ref): Declare.
3057         * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
3058         (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
3059         * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
3060         (struct cse_basic_block_data): Rename enum values to not
3061         conflict with profile.h; update all uses.
3062         * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
3063         in comments.
3064         * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
3065         * diagnostic.h (debug_output_buffer, dump_generic_node,
3066         print_generic_stmt, print_generic_stmt_indented,
3067         print_generic_expr, print_generic_decl,
3068         debug_generic_expr, debug_generic_stmt, debug_c_tree):
3069         Declare.
3070         * dominance.c: Cache immediate dominators.
3071         * domwalk.c: New file.
3072         * domwalk.h: New file.
3073         * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
3074         (gen_subprogram_die): Generate a DIE for a named
3075         return value.
3076         (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
3077         (add_location_or_const_value_attribute): Likewise.
3078         (add_bound_info): Likewise.
3079         (gen_decl_die): Likewise.
3080         * emit-rtl.c (maybe_set_first_label_num): New.
3081         (copy_most_rtx): Don't copy the integrated flag.
3082         Copy the new return_val flag.
3083         * et-forest.c (MAX_NODES): Define.
3084         (record_path_before_1): Abort if len is greater than
3085         MAX_NODES.
3086         * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
3087         gen_eh_region_catch, gen_eh_region_allowed,
3088         gen_eh_region_must_not_throw, get_eh_region_number,
3089         get_eh_region_may_contain_throw, get_eh_region_tree_label,
3090         set_eh_region_tree_label, expand_resx_expr): New.
3091         (expand_eh_region_start, expand_start_catch): Use them.
3092         (expand_end_catch): Tidy.
3093         (note_eh_region_may_contain_throw): Take region argument.
3094         (note_current_region_may_contain_throw): New.
3095         (get_exception_filter): Export.
3096         (collect_eh_region_array): Export.
3097         (remove_unreachable_regions): Check ERT_TRY based on reachability
3098         of catches, not reachability of continue_label.  Never remove
3099         ERT_MUST_NOT_THROW regions.
3100         (collect_rtl_labels_from_trees): New.
3101         (convert_from_eh_region_ranges): Use it.
3102         (connect_post_landing_pads): Handle dying cleanups.
3103         (struct reachable_info): Add callback data.
3104         (add_reachable_handler): Invoke the callback.
3105         (foreach_reachable_handler): New.
3106         (reachable_handlers): Use it.
3107         (arh_to_landing_pad, arh_to_label): New.
3108         (can_throw_internal_1): Split out from can_throw_internal.
3109         (can_throw_external_1): Similarly.
3110         * except.h: Update.
3111         * explow.c (emit_stack_save): Remove savearea mode check.
3112         (update_nonlocal_goto_save_area): New.
3113         (allocate_dynamic_stack_space): Use it.
3114         (probe_stack_range): Never emit loop notes.
3115         * expmed.c (extract_fixed_bit_field): Always propagate the
3116         target for the shift if it is a REG.
3117         * expr.c: Include tree-iterator.h
3118         (is_zeros_p): Remove.
3119         (categorize_ctor_elements_1, categorize_ctor_elements): New.
3120         (count_type_elements): New.
3121         (mostly_zeros_p): Use them.
3122         (expr_wfl_stack): Remove.
3123         (convert_move): Do nothing if to and from are the same.
3124         (emit_block_move_via_loop): Don't emit LOOP notes.
3125         (emit_move_insn): Don't handle CONSTANT_P_RTX.
3126         (emit_move_insn_1): Don't generate inline warnings.
3127         (expand_vars, expand_var): Split from ...
3128         (expand_expr_1): ... here.
3129         (expand_expr_real, expand_expr_real_1):  Use new macros
3130         EXPR_LOCATION and EXPR_HAS_LOCATION.
3131         * expr.h (simplify_builtin_fputs,
3132         simplify_builtin_strcpy, simplify_builtin_strncpy,
3133         expand_var, fixup_tail_calls,
3134         update_nonlocal_goto_save_area): Declare.
3135         (lookup_static_chain, expand_inline_function,
3136         mark_seen_cases): Remove.
3137         (prepare_call_address): Change type of 2nd argument to
3138         rtx.
3139         * final.c (profile_function): Update static chain test.
3140         (final): Don't look at RTX_INTEGRATED_P.
3141         * flags.h (flag_mudflap, flag_mudflap_threads,
3142         flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
3143         flag_tree_dce, flag_tree_combine_temps,
3144         flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
3145         flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
3146         flag_tree_points_to): Declare.
3147         (enum pta_type): Declare.
3148         * flow.c (lang_missing_noreturn_ok_p): Remove.
3149         (check_function_return_warnings): Remove.
3150         (update_life_info): Update comments.
3151         (free_basic_block_vars): Don't call VARRAY_FREE for
3152         basic_block_info.
3153         (regno_uninitialized): Remove.
3154         * fold-const.c (int_const_binop): Make extern.
3155         (non_lvalue): Rely on build to set TREE_CONSTANT.
3156         (operand_equal_p): Replace only_const argument with
3157         flags.  Allow pure functions if OEP_PURE_SAME.
3158         (fold): Use OEP_ONLY_CONST.
3159         (invert_truthvalue) <NOP_EXPR> Break if argument is of
3160         boolean type.
3161         (fold_relational_hi_lo,
3162         nondestructive_fold_binary_to_constant,
3163         nondestructive_fold_unary_to_constant,
3164         fold_read_from_constant_string): New.
3165         * function.c (struct function): Remove calls_constant_p.
3166         (current_function_calls_constant_p): Remove.
3167         (inline_function_decl): Remove.
3168         (put_var_into_stack): Don't use it.
3169         (fix_lexical_addr): Likewise.
3170         (inline_function_decl): Remove extern declaration.
3171         (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
3172         (trampolines_created): Move to varasm.c.
3173         (free_after_compilation): Update for removed fields.
3174         (allocate_struct_function): Likewise.
3175         (delete_handlers, lookup_static_chain): Remove.
3176         (fix_lexical_addr): Don't consider non-local variable refs.
3177         (trampoline_address): Remove.
3178         (round_trampoline_addr): Move to builtins.c.
3179         (adjust_trampoline_addr): Remove.
3180         (expand_function_start): Update for changes to static chain
3181         and nonlocal goto handling.
3182         (initial_trampoline): Move to varasm.c.
3183         (expand_function_end): Don't build trampolines or kill
3184         unreferenced nonlocal goto labels.
3185         (free_after_compilation): Don't set it.
3186         (expand_function_end): Likewise.
3187         (setjmp_vars_warning): Rename from
3188         uninitialized_vars_warning, remove uninitialized vars warning.
3189         (uninitialized_vars_warning): Remove old comment
3190         and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
3191         and do not call the langhook.
3192         (expand_function_start, expand_function_end): Don't do
3193         function instrumentation here.
3194         (clear_block_marks): Rename from reorder_blocks_0, export.
3195         (blocks_nreverse): Export.
3196         (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
3197         of rtl.
3198         (reset_block_changes, record_block_change, finalize_block_changes,
3199         check_block_change, free_block_changes): New functions.
3200         (assign_parms): Setting of current_function_stdarg
3201         moved ...
3202         (allocate_struct_function): ... here.
3203         * function.h (struct function): Remove x_nonlocal_labels,
3204         x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
3205         x_context_display, x_trampoline_list, needs_context.
3206         Add static_chain_decl, nonlocal_goto_save_area.
3207         (struct function): Remove x_clobber_return_insn.
3208         Add tail_call_emit field, last_label_uid,
3209         unexpanded_var_list, dont_emit_block_notes,
3210         ib_boundaries_block, function_end_locus and saved_tree/saved_args.
3211         (clear_block_marks): Declare.
3212         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
3213         (mfwrap_spec, mflib_spec): Declare.
3214         (cpp_unique_options, cc1_options): Ditto.
3215         (default_compilers): Add .F and .f90.
3216         (static_specs): Add mfwrap and mflib.
3217         * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
3218         CONSTANT_RTX_P.
3219         (reg_used_on_edge, reg_killed_on_edge, bypass_block):
3220         Update to match insns field in struct edge_def.
3221         * gdbinit.in (pgs, pge): Define.
3222         * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
3223         instead of the integrated flag.
3224         * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
3225         * gengtype-yacc.y (bitfieldlen): Add empty action.
3226         (struct_fields): Accept unnamed bitfields.
3227         (bitfieldlen): Split from ...
3228         (bitfieldopt): ... here.
3229         * gengtype.c (ifiles): Add tree-alias-type.h and
3230         tree-flow.h.
3231         * genrecog.c (validate_pattern): Do not handle
3232         CONSTANT_P_RTX.
3233         * gimple-low.c: New file.
3234         * gimplify.c: New file.
3235         * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
3236         (restore_line_notes): Do not set RTX_INTEGRATED_P.
3237         * ifcvt.c (dead_or_predicable): Initialize local variable
3238         'earliest'.
3239         * input.h (expr_wfl_stack): Remove.
3240         * integrate.c (INTEGRATE_THRESHOLD): Remove.
3241         (setup_initial_hard_reg_value_integration): Likewise.
3242         (initialize_for_inline): Likewise.
3243         (note_modified_parmregs): Likewise.
3244         (integrate_parm_decls): Likewise.
3245         (process_reg_param): Likewise.
3246         (save_parm_insns): Likewise.
3247         (copy_insn_list): Likewise.
3248         (copy_insn_notes): Likewise.
3249         (compare_blocks): Likewise.
3250         (find_block): Likewise.
3251         (inlining): Likewise.
3252         (function_cannot_inline_p): Likewise.
3253         (parmdecl_map): Likewise.
3254         (in_nonparam_insns): Likewise.
3255         (save_for_inline): Likewise.
3256         (FIXED_BASE_PLUS): Likewise.
3257         (expand_inline_function): Likewise.
3258         (copy_rtx_and_substitute): Don't look at map->integrating,
3259         map->inline_target, and inlining, since we are never copying
3260         for integrating.
3261         Don't abort on RTX_INTEGRATED_P.
3262         (old_fun): Remove.
3263         (output_inline_function): Remove.
3264         * integrate.h (struct inline_map): Remove fields integrating,
3265         block_map, leaf_reg_map, inline_target, and local_return_label.
3266         * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
3267         copy_loop_headers, never_reached_warning): Removed.
3268         (any_uncondjump_p): Reject nonlocal goto.
3269         * langhooks-def.h (lhd_types_compatible_p,
3270         lhd_expand_decl, lhd_gimplify_expr): Declare.
3271         (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
3272         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3273         LANG_HOOKS_FUNCTION_LEAVE_NESTED,
3274         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3275         LANG_HOOKS_GIMPLIFY_EXPR,
3276         LANG_HOOKS_GIMPLE_BEFORE_INLINING,
3277         LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
3278         LANG_HOOKS_GIMPLIFY_EXPR,
3279         LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
3280         (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
3281         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
3282         LANG_HOOKS_FUNCTION_LEAVE_NESTED,
3283         LANG_HOOKS_RTL_EXPAND_INITIALIZER,
3284         LANG_HOOKS_DECL_UNINIT,
3285         LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
3286         * langhooks.c: Include tree-simple.h.
3287         (lhd_expand_decl): New.
3288         (lhd_types_compatible_p): New.
3289         (lhd_decl_uninit): Remove.
3290         (lhd_gimplify_expr): New.
3291         * langhooks.h (struct lang_hooks_for_rtl_expansion):
3292         Remove.
3293         (struct lang_hooks_for_functions): Add field
3294         missing_noreturn_ok_p.
3295         (struct lang_hooks): Add field expand_decl,
3296         types_compatible_p, gimplify_expr and
3297         gimple_before_inlining.
3298         Remove fields decl_uninit and rtl_expand
3299         * opts.c (decode_options): Set flag_tree_ccp,
3300         flag_tree_dce, flag_tree_dom, flag_tree_dse,
3301         flag_tree_pre, flag_tree_ter,
3302         flag_tree_live_range_split, flag_tree_sra,
3303         flag_tree_copyrename and flag_tree_ch at -O1 and higher.
3304         (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
3305         OPT_fmudflapth, OPT_fmudflapir,
3306         OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
3307         OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
3308         OPT_ftree_dominator_opts, OPT_ftree_copyrename,
3309         OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
3310         OPT_ftree_points_to_ and OPT_ftree_pre.
3311         * output.h (regno_uninitialized, find_basic_blocks,
3312         cleanup_cfg, delete_unreachable_blocks,
3313         check_function_return_warnings): Remove.
3314         * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
3315         PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
3316         PARAM_MAX_INLINE_RECURSIVE_DEPTH,
3317         PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
3318         PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
3319         * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
3320         Define.
3321         * passes.c (rest_of_decl_compilation):
3322         (rest_of_handle_sibling_calls): Remove.
3323         (rest_of_handle_inlining): Remove.
3324         (rest_of_handle_gcse): Do not run
3325         purge_builtin_constant_p.
3326         (rest_of_compilation): Update.
3327         Do not call copy_loop_headers.
3328         Do rtl-based profiling only when
3329         !flag_tree_based_profiling.  Register rtl-based profiling
3330         hooks.
3331         * predict.c:  Include tree-flow.h, ggc.h, tree-dump.h
3332         (predicted_by_p): Rename to ...
3333         (rtl_predicted_by_p): .. this one; make global
3334         (tree_predicted_by_p): New.
3335         (dump_prediction): Add FILE argument.
3336         (predict_edge): Rename to ...
3337         (rtl_predict_edge): .. this one.
3338         (tree_predict_edge): New.
3339         (combine_predictions_for_insn): Update calls of predict_edge.
3340         (predict_loops): Break out from ...
3341         (estimate_probability): ... here; update comments; move updating
3342         of unknown probabilities from ...
3343         (estimate_bb_frequencies): ... here.
3344         (combine_predictions_for_bb): New.
3345         (tree_predict_by_opcode): New.
3346         (tree_estimate_probability): New.
3347         * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
3348         PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
3349         * predict.h: Add include guard.
3350         (predict_edge, predict_edge_def): Move prototypes to basic_block.h
3351         * pretty-print.c (pp_write_text_to_stream): Make extern.
3352         * pretty-print.h (pp_write_text_to_stream): Declare.
3353         * print-rtl.c (print_rtx): Don't print the integrated flag.
3354         Print the return_val flag.
3355         * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
3356         of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
3357         Remove support for EXPR_WITH_FILE_LOCATION nodes.
3358         (print_node): Print TREE_INVARIANT and TREE_VISITED.
3359         * profile.c: Include cfghooks.h, tree-flow.h.
3360         (profile_hooks): New.
3361         (profile_dump_file): New.
3362         (instrument_edges): Use hooks instead of RTL-specific code.
3363         (instrument_values): Ditto.
3364         (get_exec_counts): Ditto.
3365         (compute_branch_probabilities): Ditto.
3366         (compute_value_histograms): Ditto.
3367         (branch_prob): Ditto.
3368         (find_spanning_tree): Ditto.
3369         (end_branch_prob): Ditto.
3370         (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
3371         (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
3372         (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
3373         (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
3374         (tree_register_profile_hooks): New.
3375         (rtl_register_profile_hooks): New.
3376         * ra-rewrite.c (rewrite_program): Clear variable info.
3377         * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
3378         * regs.h: Add include guards.
3379         * reload.c (decompose): Clear val using memset.
3380         * rtl.def (CONSTANT_P_RTX): Remove.
3381         * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
3382         (copy_loop_headers): Remove.
3383         (struct rtx_def): Replace the integrated flag with the
3384         return_val flag.
3385         (maybe_set_first_label_num): Declare.
3386         (init_branch_prob): Move declaration to value-prof.h.
3387         (end_branch_prob): Ditto.
3388         (branch_prob): Ditto.
3389         (never_reached_warning): Don't declare it.
3390         * rtlanal.c (get_related_value): Initialize get_jump_table_offset
3391         (hoist_insn_to_edge): Update to match field insns in
3392         struct edge_def.
3393         * sbitmap.c (sbitmap_realloc): New.
3394         * sbitmap.h (sbitmap_realloc): Declare.
3395         * sibcall.c: Remove file.
3396         * simplify-rtx.c (simplify_rtx): Do not handle
3397         CONSTANT_P_RTX.
3398         * stmt.c (parse_output_constraint): Don't warn for read-write
3399         memory operand.
3400         (tail_recursion_args): Use types_compatible_p langhook.
3401         (force_label_rtx): Don't look at inline_function_decl.
3402         (label_rtx): Set LABEL_PRESERVE_P appropriately.
3403         (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.