OSDN Git Service

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