OSDN Git Service

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