OSDN Git Service

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