OSDN Git Service

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