OSDN Git Service

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