OSDN Git Service

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