OSDN Git Service

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