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