OSDN Git Service

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