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