OSDN Git Service

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