OSDN Git Service

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