OSDN Git Service

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