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