1 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3 * config/rs6000/rs6000.c (rs6000_parm_start): New function.
4 (function_arg_advance): Use rs6000_parm_start.
5 (function_arg, rs6000_arg_partial_bytes): Likewise.
7 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
9 * c-common.c (check_case_value): Adjust comment about stripping
11 (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
12 * c-typeck.c (default_conversion, convert_arguments,
13 build_modify_expr, convert_for_assignment, store_init_value,
14 digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
15 manually. Remove inaccurate comments.
17 2005-03-20 Roger Sayle <roger@eyesopen.com>
18 Joseph S. Myers <joseph@codesourcery.com>
20 * varasm.c (do_assemble_alias): Restore comment describing function.
21 Annotate the target parameter as potentially unused.
23 2005-03-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
26 * config/avr/avr.c (avr_output_function_prologue): Do not use
27 current_function_name() in a label, use a local label instead.
29 2005-03-20 David Edelsohn <edelsohn@gnu.org>
31 * config/rs6000/rs6000.c (rs6000_generate_compare): Test
32 flag_finite_math_only, not flag_unsafe_math_optimizations.
34 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
36 * builtins.c (fold_builtin_1): Update a call to
38 * hooks.c (hook_tree_tree_bool_null): Rename to
39 hook_tree_tree_tree_bool_null. Take one more argument of type
41 * hooks.h: Update the prototype of hook_tree_tree_bool_null.
42 * target-def.h (TARGET_FOLD_BUILTIN): Define it as
43 hook_tree_tree_tree_bool_null.
44 * target.h (gcc_target): Update the prototype of fold_builtin.
45 * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
46 arguments of CALL_EXPR.
47 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update. Mention the
50 2005-03-20 Jan Hubicka <jh@suse.cz>
52 * cgraph.h (cgraph_node): Add prev_clone pointer.
53 * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
54 (cgraph_clone_node): Produce doubly linked chain.
56 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
58 * c-common.c (handle_aligned_attribute, check_function_sentinel,
59 get_nonnull_operand, handle_sentinel_attribute,
60 check_function_arguments_recurse): Do not strip NOPS from
62 * c-decl.c (check_bitfield_type_and_width, build_enumerator):
64 * c-format.c (get_constant): Likewise.
65 * c-parser.c (c_parser_postfix_expression): Likewise.
66 * c-typeck.c (set_init_index): Likewise.
67 (convert_arguments): Don't check for NOP_EXPR containing integer
70 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
72 * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
73 fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
74 Take decomposed arguments of CALL_EXPR.
75 (fold_builtin_1): Update calls to the functions mentioned
78 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
80 * c-decl.c (check_bitfield_type_and_width): Require bit-field
81 width to have integer type.
82 (build_enumerator): Require enumerator value to have integer type.
84 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
86 * doc/extend.texi (__builtin_inf): Move statement about INFINITY
89 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
91 * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
92 std=iso9899:199x): Correct descriptions.
94 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
96 * config.gcc: Consistently use solaris2.1[0-9]* instead of
99 2005-03-19 Kazu Hirata <kazu@cs.umass.edu>
101 * builtins.c (fold_builtin_memcpy): Take decomposed arguments
103 (expand_builtin_memcpy, fold_builtin_1): Update calls to
106 * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
107 arguments of CALL_EXPR.
108 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
109 fold_builtin_found, fold_builtin_1): Update calls to
110 fold_trunc_transparent_mathfn.
112 2005-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
115 * fold-const.c (fold_widened_comparison): Don't optimize casts of
116 function pointers on targets that require function pointer
118 (fold_sign_changed_comparison): Likewise.
120 2005-03-19 Bernd Schmidt <bernd.schmidt@analog.com>
122 * combine.c (try_combine): When changing the mode of a hard reg, make
123 sure that doing so is valid.
125 2005-03-19 Richard Sandiford <rsandifo@redhat.com>
127 * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
128 (TARGET_HANDLE_OPTION): Override default.
129 (avr_handle_option): New function.
130 * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
131 (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
132 (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
133 (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
134 (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
135 (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
136 (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
137 (TARGET_OPTIONS): Delete.
138 * config/avr/avr.opt: New file.
140 2005-03-18 James E Wilson <wilson@specifixinc.com>
143 * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
146 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
148 * config/mn10300/mn10300-protos.h: Remove the prototypes for
149 call_address_operand, const_8bit_operand.
150 * config/mn10300/mn10300.c (call_address_operand,
151 const_8bit_operand, const_1f_operand): Move to predicates.md.
152 * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
153 * config/mn10300/mn10300.md: Include predicates.md.
154 * config/mn10300/predicates.md: New.
156 2005-03-18 Joseph S. Myers <joseph@codesourcery.com>
158 * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
159 declarations in diagnostics and %E for identifiers, not %s.
161 2005-03-18 Jan Hubicka <jh@suse.cz>
162 Dale Johannesen <dalej@apple.com>
164 * basic-block.h (scale_bbs_frequencies_int,
165 scale_bbs_frequencies_gcov_type): Declare.
166 * cfg.c (RDIV): New macro.
167 (update_bb_frequency_for_threading): Fix.
168 * basic-block.h (scale_bbs_frequencies_int,
169 scale_bbs_frequencies_gcov_type): New.
170 * cfgloopmanip.c (scale_bbs_frequencies): Kill.
171 (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
172 scale_bbs_frequencies_int.
173 * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
175 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
177 * config/m32r/m32r-protos.h: Remove the prototypes for
178 call_address_operand, symbolic_operand, seth_add3_operand,
179 cmp_int16_operand, uint16_operand, reg_or_int16_operand,
180 reg_or_uint16_operand, reg_or_cmp_int16_operand,
181 two_insn_const_operand, move_src_operand,
182 move_double_src_operand, move_dest_operand,
183 eqne_comparison_operator, signed_comparison_operator,
184 large_insn_p, conditional_move_operand, carry_compare_operand,
185 m32r_block_immediate_operand, extend_operand,
186 reg_or_eq_int16_operand, int8_operand, and
188 * config/m32r/m32r.c (call_address_operand, symbolic_operand,
189 seth_add3_operand, int8_operand, cmp_int16_operand,
190 uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
191 reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
192 reg_or_zero_operand, two_insn_const_operand, move_src_operand,
193 move_double_src_operand, move_dest_operand,
194 eqne_comparison_operator, signed_comparison_operator,
195 extend_operand, small_insn_p, large_insn_p,
196 conditional_move_operand, carry_compare_operand,
197 m32r_block_immediate_operand): Move to predicates.md.
198 (MAX_MOVE_BYTES): Move to m32r.h.
199 * config/m32r/m32r.h (PREDICATE_CODES): Remove.
200 * config/m32r/m32r.md: Include predicates.md.
201 * config/m32r/predicates.md: New.
203 * config/pa/pa-protos.h: Add prototypes for magic_milli and
205 * config/pa/pa.c (reg_or_0_operand, call_operand_address,
206 symbolic_operand, symbolic_memory_operand,
207 reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
208 indexed_memory_operand, move_dest_operand, move_src_operand,
209 prefetch_cc_operand, prefetch_nocc_operand,
210 reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
211 arith_operand, arith11_operand, pre_cint_operand,
212 post_cint_operan, arith_double_operand, ireg_or_int5_operand,
213 ireg_operand, int5_operand, uint5_operand, int11_operand,
214 uint32_operand, arith5_operand, and_operand, ior_operand,
215 lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
216 pc_or_label_operand, div_operand, plus_xor_ior_operator,
217 shadd_operand, movb_comparison_operator,
218 cmpib_comparison_operator): Move to predicates.md.
219 (magic_milli, shadd_constant_p): Make it extern.
220 * config/pa/pa.h (PREDICATE_CODES): Remove.
221 * config/pa/pa.md: Include predicates.md.
222 * config/pa/predicates.md: New.
224 * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
227 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
229 * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
230 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
231 config/alpha/freebsd.h, config/alpha/linux.h,
232 config/alpha/netbsd.h, config/alpha/osf5.h,
233 config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
234 config/h8300/h8300-protos.h, config/h8300/h8300.c,
235 config/h8300/h8300.h, config/ia64/unwind-ia64.c,
236 doc/cppopts.texi: Update copyright.
238 2005-03-18 Jan Hubicka <jh@suse.cz>
241 * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
243 * varasm.c (find_decl_and_mark_needed): Mark needed only when not
246 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
248 * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
251 2005-03-18 Paolo Bonzini <bonzini@gnu.org>
253 * combine.c (gen_binary): Remove.
254 (known_cond, simplify_shift_const, find_split_point,
255 combine_simplify_rtx, simplify_if_then_else, simplify_set,
256 simplify_logical, expand_field_assignment, extract_left_shift,
257 force_to_mode, if_then_else_cond, apply_distributive_law,
258 simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
259 simplify_comparison, reversed_comparison): Replace with
260 simplify_gen_binary, simplify_gen_relational or
261 distribute_and_simplify_rtx.
262 (distribute_and_simplify_rtx): New function.
264 2005-03-18 Alexey Neyman <alex.neyman@auriga.ru>
265 Paolo Bonzini <gcc.gnu.org>
267 * calls.c (setjmp_call_p, special_function_p): Update comments
268 at the head of the functions.
270 2005-03-18 Jan Hubicka <jh@suse.cz>
272 * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
274 * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
275 function body should be released; do not proactively release function
276 bodies in non-unit-at-a-time mode.
278 2005-03-18 Ralf Corsepius <ralf.corsepius@rtems.org>
280 * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
281 mno-fp-ret-in-387 multilib variants.
283 2005-03-18 Richard Sandiford <rsandifo@redhat.com>
285 * common.opt (m): Remove.
286 * opts.c (handle_option): Pass 'm' options to set_target_switch if
288 (common_handle_option): Remove OPT_m case.
290 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
292 * builtins.c (fold_builtin_bitop): Take decomposed arguments
294 (fold_builtin_1): Update a call to fold_builtin_bitop.
296 * builtins.c (fold_builtin_signbit): Take decomposed arguments
298 (fold_builtin_1): Update a call to fold_builtin_signbit.
300 2005-03-17 Dorit Naishlos <dorit@il.ibm.com>
302 PR tree-optimization/20474
303 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
304 size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
306 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
308 * config/h8300/h8300-protos.h: Remove prototypes for
309 general_operand_src, general_operand_dst, single_one_operand,
310 single_zero_operand, call_insn_operand,
311 two_insn_adds_subs_operand, small_call_insn_operand,
312 jump_address_operand, bit_operand, bit_memory_operand,
313 stack_pointer_operand, const_int_gt_2_operand,
314 const_int_ge_8_operand, const_int_qi_operand,
315 const_int_hi_operand, incdec_operand, bit_operator,
316 nshift_operator, eqne_operator, gtle_operator,
317 gtuleu_operator, iorxor_operator.
318 Add prototypes for h8sx_shift_type h8sx_classify_shift and
319 h8300_ldm_stm_parallel.
320 * config/h8300/h8300.c (h8sx_shift_type,): Move to
322 (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
323 SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
324 (h8300_ldm_stm_parallel): Make it extern.
325 (h8300_ldm_parallel, h8300_stm_parallel,
326 h8300_return_parallel, general_operand_src,
327 general_operand_dst, h8300_dst_operand, h8300_src_operand,
328 nibble_operand, reg_or_nibble_operand, single_one_operand,
329 single_zero_operand, call_insn_operand,
330 two_insn_adds_subs_operand, small_call_insn_operand,
331 jump_address_operand, bit_operand, bit_memory_operand,
332 stack_pointer_operand, const_int_gt_2_operand,
333 const_int_ge_8_operand, const_int_qi_operand,
334 const_int_hi_operand, incdec_operand, eqne_operator,
335 gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
336 h8sx_binary_memory_operator, h8sx_unary_memory_operator,
337 h8sx_unary_shift_operator, h8sx_binary_shift_operator,
338 nshift_operator): Move to predicates.md.
339 * config/h8300/h8300.h (PREDICATE_CODES): Remove.
340 * config/h8300/h8300.md: Include predicates.md.
341 * config/h8300/predicates.md: New.
343 2005-03-17 Richard Henderson <rth@redhat.com>
345 * config.gcc (ia64*-*-hpux*): Add extra_options.
346 * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
347 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
348 * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
349 (ia64_tls_size_string, ia64_tune_string): Remove.
350 (ia64_tune): Init to PROCESSOR_ITANIUM2.
351 (TARGET_DEFAULT_TARGET_FLAGS): New.
352 (TARGET_HANDLE_OPTION): New.
353 (ia64_override_options): Move options parsing ...
354 (ia64_handle_option): ... here. New.
355 * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
356 MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
357 MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
358 MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
359 MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
360 MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
361 MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
362 TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
363 TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
364 TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
365 TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
366 TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
367 TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
368 TARGET_EARLY_STOP_BITS): Remove.
369 (TARGET_ILP32): Default false.
370 (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
371 (enum ia64_inline_type): New.
372 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
373 * config/ia64/ia64.md: Update for new definitions of
374 TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
375 * config/ia64/ia64.opt: New file.
376 * config/ia64/ilp32.opt: New file.
378 2005-03-17 H.J. Lu <hongjiu.lu@intel.com>
381 * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
383 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
385 * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
386 instead of MASK_H8300S.
387 * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
388 MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
389 MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
390 MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
391 TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
392 TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
393 TARGET_SWITCHES): Remove.
394 (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
396 * config/h8300/h8300.opt: New.
398 * config/alpha/alpha.opt, config/arc/arc.opt,
399 config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
402 2005-03-17 Ian Lance Taylor <ian@airs.com>
406 2005-03-17 Richard Sandiford <rsandifo@redhat.com>
408 * config/arc/arc.c (arc_cpu_string): Make static. Default to "base"
409 (arc_text_string, arc_data_string, arc_rodata_string): Make static.
410 (TARGET_HANDLE_OPTION): Override default.
411 (arc_handle_option): New function.
412 (arc_init): Remove code to set arch_cpu_string.
413 * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
414 (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
415 (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
416 (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
417 (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
418 (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
419 (arc_rodata_string, TARGET_OPTIONS): Delete.
420 * config/arc/arc.opt: New file.
422 2005-03-17 Richard Henderson <rth@redhat.com>
424 * doc/extend.texi (Weak Pragmas): New section.
425 (attribute alias): Clarify that target must be in the same
428 2005-03-17 Richard Henderson <rth@redhat.com>
430 * config/alpha/alpha.opt: New file.
431 * config/alpha/alpha.c (alpha_tune): New. Rename all existing uses
433 (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
434 alpha_fprm_string, alpha_fptm_string): Make static.
435 (alpha_tls_size_string): Remove.
436 (alpha_handle_option): New.
437 (override_options): Update for alpha_cpu/alpha_tune split.
438 (alpha_file_start): Likewise.
439 (TARGET_DEFAULT_TARGET_FLAGS): New.
440 (TARGET_HANDLE_OPTION): New.
441 * config/alpha/alpha.h (alpha_tune): Declare.
442 (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
443 MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
444 MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
445 TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
446 TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
447 TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
448 MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
449 MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
450 TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
451 TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
452 (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
453 (TARGET_DEFAULT): Remove MASK_FP.
454 (TARGET_FP): Redefined based on TARGET_SOFT_FP.
455 (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
456 (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
457 alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
458 alpha_tls_size_string): Remove.
459 * config/alpha/alpha.md (prefetch): Use alpha_cpu.
460 (attribute tune): Rename from attribute cpu.
461 * config/alpha/ev4.md: Update to match.
462 * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
463 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
464 * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
465 * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
466 * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
467 * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
469 2005-03-16 James E. Wilson <wilson@specifixinc.com>
471 * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
472 and return without creating new state if before_nops_num is nonzero.
473 * config/ia64/ia64.md (first_insn): New attribute.
474 (alloc): Set it to yes.
476 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
478 * tree-vectorizer.c (new_vec_stmt_info): Initialize
479 STMT_VINFO_SUBVARS to NULL.
480 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
482 2005-03-16 Dale Johannesen <dalej@apple.com>
484 * rtlanal.c (find_first_parameter_load): Rewrite to
485 return actual first param load or the call if none,
486 instead of first in block, when not all loads exist.
488 2005-03-16 Roger Sayle <roger@eyesopen.com>
490 * optabs.c (expand_copysign_absneg): Make static.
491 * optabs.h (expand_copysign_absneg): Delete prototype.
492 * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
494 2005-03-16 Richard Henderson <rth@redhat.com>
497 * varasm.c (struct alias_pair): Rename from struct output_def_pair.
498 (alias_pairs): Rename from output_defs.
499 (find_decl_and_mark_needed): Split out from assemble_alias.
500 (do_assemble_alias): New.
501 (assemble_output_def): Remove.
502 (finish_aliases_1, finish_aliases_2): New.
503 (process_pending_assemble_output_defs): Remove.
504 (assemble_alias): Defer aliases for which we don't yet have a
505 non-external decl for the target symbol.
506 * passes.c (rest_of_decl_compilation): Register variables with cgraph.
507 * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
508 * toplev.c (compile_file): Use finish_aliases_2 instead of
509 process_pending_assemble_output_defs.
510 * tree.h (finish_aliases_1, finish_aliases_2): Declare.
511 (process_pending_assemble_output_defs): Remove.
513 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
515 Fix PR tree-optimization/20489
517 * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
518 for empty structures.
520 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
522 Fix PR tree-optimization/20490
524 * tree-ssa-pre.c (create_expression_by_pieces): Use
525 force_gimple_operand on result of fold.
527 2005-03-16 Andrew Pinski <pinskia@physics.uc.edu>
529 * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
530 of closing parenthesis.
532 2005-03-16 Kazu Hirata <kazu@cs.umass.edu>
534 * builtins.c (expand_movstr): Update a call to
536 (expand_builtin_strncpy): Update a call to
537 fold_builtin_strncpy.
538 (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
539 arguments of CALL_EXPR.
540 (fold_builtin_1): Update calls to fold_builtin_strcpy and
541 fold_builtin_strncpy.
542 * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
543 * tree.h: Update the prototypes of fold_builtin_strcpy and
544 fold_builtin_strncpy.
546 2005-03-16 Steven Bosscher <stevenb@suse.de>
547 Dorit Naishlos <dorit@il.ibm.com>
549 * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
550 UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
553 2005-03-16 Steven Bosscher <stevenb@suse.de>
555 * tree-inline.c (walk_type_fields, walk_tree,
556 walk_tree_without_duplicates): Move from here...
557 * tree.c: ...to here.
559 2005-03-15 Zack Weinberg <zack@codesourcery.com>
561 * BASE-VER, DATESTAMP, DEV-PHASE: New files.
562 * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
563 (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
564 (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
565 (version): Define using $(BASEVER_c).
566 (Makefile, config.status, build/gcov-iov.o): No longer depends on
568 (version.o): Depend on version files; add custom generation command.
569 (prefix.o): Define BASEVER on command line.
570 (s-iov): Depend on version files; adjust command.
571 (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
573 (gcc-vers.texi): New rule.
574 (doc/%.info, doc/%.dvi): Add -I . to command line.
575 (doc/gccinstall.dvi): Likewise.
576 (PACKAGE): Delete. All uses replaced with "gcc".
577 * aclocal.m4: Do not include gcc-version.m4.
578 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
579 Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
580 Set is_release based on contents of DEV-PHASE.
581 Set gcc_version based on contents of BASE-VER.
582 Define WIN32_REGISTRY_KEY only if the user overrode the default.
583 * config.in, configure: Regenerate.
584 * gccbug.in: Determine version of GCC in use at runtime.
585 * gcov-iov.c: Get version number and development phase from
586 command line, not by including version.c.
587 * intl.c: Replace all uses of PACKAGE with "gcc".
588 * libada-mk.in: Delete unused "gcc_version" variable.
589 * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
590 * version.c: (VERSUFFIX): New hook for redistributors; adjust
592 (version_string): Put together from pieces.
593 * config/alpha/x-vms: Do not use $(gcc_version).
594 * config/i386/t-nwld: Likewise.
595 * doc/include/gcc-common.texi: Include gcc-vers.texi for
596 version-GCC and DEVELOPMENT.
598 2005-03-15 Roger Sayle <roger@eyesopen.com>
600 PR tree-optimization/17454
601 * tree.c (tree_size): Add case for TREE_BINFO.
602 * fold-const.c (fold_checksum_tree): Only clear the overloaded
603 field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
605 2005-03-15 Roger Sayle <roger@eyesopen.com>
607 * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
608 op1 whilst expanding the signed widenening multiply variant.
610 2005-03-15 Richard Sandiford <rsandifo@redhat.com>
612 * toplev.c (display_target_options): Avoid unused variable warning if
613 TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
614 * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
615 (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
616 (mips_isa): Initialize to MIPS_ABI_DEFAULT.
617 (mips_isa_info): New variable.
618 (mips_parse_cpu): Remove the first argument and leave the caller
620 (TARGET_HANDLE_OPTION): Override default.
621 (mips_handle_option): New function. Move option validation code from...
622 (override_options): ...here. Update calls to mips_parse_cpu.
623 * config/mips/mips.h (mips_arch_string, mips_tune_string)
624 (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
625 (SUBTARGET_TARGET_OPTIONS): Delete.
626 * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
627 (mno-flush-func, mtune=): New options.
629 2005-03-15 Roger Sayle <roger@eyesopen.com>
630 Richard Henderson <rth@redhat.com>
632 * real.c (c4x_single_format, c4x_extended_format): Provide values
633 for signbit_ro for c4x's single and extended floating point formats.
634 * optabs.c (expand_copysign): Use the floating point format's
635 signbit_ro for expanding via expand_copysign_absneg, and it's
636 signbit_rw field for expanding via expand_copysign_bit.
638 2005-03-15 Dorit Naishlos <dorit@il.ibm.com>
640 * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
641 known_alignment_for_access_p.
642 (known_alignment_for_access_p): New.
643 (do_peeling_for_alignment): Field made int instead of bool and renamed
644 to peeling_for_alignment.
645 (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
646 * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
647 functionality used to be in vect_analyze_operations.
648 (vect_analyze_operations): Code to determine vectorization factor was
649 moved to vect_determine_vectorization_factor.
650 (vect_enhance_data_refs_alignment): Update to correct alignment when it
651 is known instead of -1. Set LOOP_PEELING_FOR_ALIGNMENT to peeling
653 (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
654 be part of vect_analyze_operations).
655 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
656 creating the guard condition, as the number of iterations may be
658 (slpeel_tree_peel_loop_to_edge): Use new name of
659 LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
660 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
661 alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
662 (vect_do_peeling_for_alignment): Use fold.
663 (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
665 (vect_update_inits_of_dr): Renamed to
666 vect_update_init_of_dr.
667 (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
668 (vectorizable_store): Fix assertion to use == instead of =.
670 2005-03-15 Daniel Jacobowitz <dan@codesourcery.com>
672 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
673 call_used_regs for wCG registers.
675 2005-03-15 Ulrich Weigand <uweigand@de.ibm.com>
677 * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
678 for non-offsettable memory references to cope with outstanding reload
679 replacements, take 2.
681 2005-03-15 Uros Bizjak <uros@kss-loka.si>
684 * config/i386/i386.h (x86_fisttp): New.
685 (TARGET_FISTTP): New macro.
686 * config/i386/i386.c (x86_fisttp): Set for NOCONA.
687 (output_fix_trunc): Add fisttp parameter. Generate fisttp x87
688 instruction when fisttp flag is set.
689 * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
691 * config/i386/i386.md (type attribute): Add fisttp.
692 (unit attribute): Set to i387 for fisttp type.
693 (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
694 (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
696 (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
697 Generate fisttp patterns for TARGET_FISTTP. Implement using mode
699 (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
700 patterns for TARGET_FISTTP. Enable patterns for
701 (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
702 (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
703 fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
704 implement fisttp x87 insn.
705 (fix_trunc*_i387_fisttp splitters): New patterns.
706 (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
707 Rename to *fix_trunc<mode>_i387_1. Implement using mode macros.
708 Disable patterns for TARGET_FISTTP. Add comment about FLAGS_REG
710 (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
711 Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
712 Implement using mode macros. Disable patterns for TARGET_FISTTP.
713 (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
714 fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
715 fix_trunc<mode>_i387_with_temp. Implement using mode macros.
716 Disable patterns for TARGET_FISTTP.
717 (fix_trunc*_i387 splitters): Implement usign mode macros.
718 (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
719 fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
720 (fix_trunx*_sse peephole2s): Implement using mode macros.
722 2005-03-15 J"orn Rennecke <joern.rennecke@st.com>
724 PR rtl-optimization/20291
725 * combine.c (try_combine): If splitting fails, re-try with
726 original combined pattern, i.e. before clobber stripping.
728 2005-03-14 Eric Christopher <echristo@redhat.com>
730 * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
731 STACK_GROWS_DOWNWARD.
733 2005-03-14 Roger Sayle <roger@eyesopen.com>
735 * real.h (struct real_format): Split the signbit field into two
736 two fields, signbit_ro and signbit_rw.
737 * real.c (ieee_single_format, mips_single_format, ieee_double_format,
738 mips_double_format, ieee_extended_motorola_format,
739 ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
740 ieee_extended_intel_128_format, ibm_extended_format,
741 mips_extended_format, ieee_quad_format, mips_quad_format,
742 vax_f_format, vax_d_format, vax_g_format, i370_single_format,
743 i370_double_format, c4x_single_format, c4x_extended_format,
744 real_internal_format): Update initializers for new field.
745 * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
746 real_format structure.
747 * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
748 field of the real_format structure.
750 2005-03-14 Daniel Berlin <dberlin@dberlin.org>
752 Fix PR tree-optimization/20458
754 * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
755 DECL_EXTERNAL on STRUCT_FIELD tags.
756 (clear_call_clobbered): Ditto.
757 * tree-ssa-operands.c (note_addressable): Make sure the original
758 variable doesn't slip into the addressable list if we have
760 * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
763 2005-03-14 Geoffrey Keating <geoffk@apple.com>
765 * doc/cppopts.texi (-fexec-charset): Add concept index entry.
766 (-fwide-exec-charset): Likewise.
767 (-finput-charset): Likewise.
768 * doc/invoke.texi (Warning Options): Document -Wnormalized=.
769 * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
770 * c.opt (Wnormalized): New.
772 2005-03-14 Devang Patel <dpatel@apple.com>
774 * doc/invoke.texi: Add reference to Visibility document.
776 2005-03-14 Richard Sandiford <rsandifo@redhat.com>
778 * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
779 MASK_SPLIT_ADDRESSES.
780 * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
781 (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
782 (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
783 (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
784 (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
785 (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
786 (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
787 (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
788 (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
789 (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
790 (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
791 (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
792 (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
793 (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
794 (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
795 (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
796 (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
797 (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
798 (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
799 (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
800 (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
801 (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
802 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
803 (TARGET_EXPLICIT_RELOCS): Delete.
804 (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
805 (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
806 * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
807 (override_options): Set MASK_LONG64 if -mint64 is given and no
808 -mlongXX option is. Complain about -mint64 -mlong32.
809 (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
810 MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
811 * config/mips/mips.opt: New file.
813 2005-03-14 Richard Sandiford <rsandifo@redhat.com>
815 * config.gcc (extra_options): New variable for listing option files.
816 Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
817 * configure.ac (extra_opt_files): New AC_SUBST variable.
818 (tm_file_list, tm_include_list): Include options.h first.
819 * configure: Regenerate.
820 * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
821 (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
822 (s-options-h): New rule.
823 (options.h): Depend on it.
824 (TEXI_GCCINT_FILES): Add options.texi.
825 * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
826 * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
827 * target.h (gcc_target): Add default_target_flags and handle_option.
828 * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
829 (TARGET_HANDLE_OPTION): New macros.
830 (TARGET_INITIALIZER): Include them.
831 * opt-functions.awk (opt_args, nth_arg): New functions.
832 (switch_flags): Handle the "Target" flag.
834 (var_name): Use opt_args and nth_arg.
835 (var_set, var_ref): Likewise. Handle "Mask" and "InverseMask".
836 * opth-gen.awk: Declare target_flags. Declare MASK_* and TARGET_*
837 macros for the "Mask" and "InverseMask" options.
838 * opts.h (cl_var_cond): New enum.
839 (cl_option): Replace the "has_set_value" and "set_value" fields with
840 "var_cond" and "var_value".
841 (CL_TARGET): New macro.
842 (option_enabled, print_filtered_help): Declare.
843 (decode_options): Move definition.
844 * opts.c (handle_option): Search for the original option before
845 removing any "no-" prefix. Handle CL_TARGET. Adjust for the new
846 var_cond and var_value fields. Use targetm.handle_option to handle
848 (decode_options): Set target_flags to targetm.default_target_flags.
849 (print_filtered_help): Make global. Handle CL_TARGET.
850 (option_enabled): New function.
851 * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
852 (display_target_options, set_target_switch, print_switch_values)
853 (default_pch_valid_p): Guard uses of target_switches with
854 #ifdef TARGET_SWITCHES. Also...
855 (display_target_options): Display the CL_TARGET entries in cl_options.
856 (set_target_option): Don't complain about the "" option when
857 TARGET_SWITCHES is undefined.
858 (print_switch_values): Use option_enabled.
859 (default_pch_valid_p): Check cl_options[] when looking for something
860 that has changed the value of target_flags.
861 * c.opt: Remove documentation from top of file.
862 * doc/gccint.texi: Add an "Options" chapter. Include options.texi.
863 * doc/sourecebuild.texi: Refer to the new options documentation
864 instead of c.opt. Document machine-specific .opt files.
865 * doc/tm.texi (target_flags): Say that this variable is declared
867 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
868 (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
870 * doc/options.texi: New file.
872 2005-03-14 Alexandre Oliva <aoliva@redhat.com>
875 * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
878 2005-03-14 Alexandre Oliva <aoliva@redhat.com>
881 * gimplify.c (gimplify_cond_expr): Add fallback argument. Use a
882 temporary variable of pointer type if an lvalues is required.
883 (gimplify_modify_expr_rhs): Request an rvalue from it.
884 (gimplify_expr): Pass fallback on.
886 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
888 * cfgbuild.c: Update comments.
890 2005-03-14 Roger Sayle <roger@eyesopen.com>
892 PR rtl-optimization/17236
893 * optabs.c (expand_doubleword_mult): New helper function split out
894 from expand_binop. Permute the order in which instructions are
895 emitted to minimize the number of simultaneously live registers.
896 (expand_binop): Call expand_doubleword_mult to synthesize a double
899 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
901 * basic-block.h: Update the prototypes of cached_make_edge and
903 * cfg.c (cached_make_edge): Take edge_cache representing one
904 row of the adjacency matrix of edges.
905 * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
906 (make_edges): Initialize edge_cache to represent one row of
907 the adjacency matrix of edges.
909 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
911 * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
913 (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
914 Remove unused removed_phis variable.
915 (conditional_replacement): Use build1/build2.
916 (abs_replacement): Use last_and_only_stmt and build1/build2.
918 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
920 * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
921 ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
922 * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
923 (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
924 * c-common.c (handle_novops_attribute): New function.
925 (c_common_attribute_table): Add "no vops" entry.
926 * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
927 * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
928 * tree-ssa-operands.c (get_call_expr_operands): Do not
929 create virtual operands for calls with ECF_NOVOPS flag.
930 * tree.h (DECL_IS_NOVOPS): New macro.
931 (struct tree_decl): Add novops_flag.
932 (ECF_NOVOPS): New constant.
934 2005-03-14 Uros Bizjak <uros@kss-loka.si>
937 * config/i386/i386.c (x86_use_himode_fiop): New.
938 (x86_use_simode_fiop): Rename from x86_use_fiop.
939 * config/i386/i386.h (x86_use_himode_fiop): Declare.
940 (TARGET_USE_HIMODE_FIOP): New.
941 (x86_use_simode_fiop): Rename from x86_use_fiop.
942 (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
944 * config/i386/i386.md (X87MODEI12): New mode macro define.
945 (*cmpfp_<mode>): Rename from *cmpfp_si. Use X87MODEI12 mode macro
946 to implement x87 FP compare with HImode input operands.
947 (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
948 Use X87MODEI12 mode macro to handle HImode input operands.
949 (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
950 *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
951 Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
952 *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
953 macro to implement x87 operators with HImode input operands.
954 (fop splitters): Use X87MODEI12 mode macro to handle HImode
957 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
959 * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
961 * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
964 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
966 * basic-block.h (BB_VISITED): Removed.
967 * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
969 2005-03-14 Falk Hueffner <falk@debian.org>
972 * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
974 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
976 * ggc-zone.c: Fix comment typos.
978 * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
979 stringpool.c, config/mips/mips-protos.h: Update copyright.
981 2005-03-14 Alan Modra <amodra@bigpond.net.au>
983 * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
984 throughout with its typedef, "rtx".
985 * config/rs6000/rs6000.c: Likewise. Formatting fixes.
986 (rs6000_tls_symbol_ref_1): Remove inline keyword.
987 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting. Reorder
988 regs in comment to match code.
990 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
992 * except.c (check_handled): Make it static.
993 * except.h: Remove the corresponding prototype.
995 * function.c (get_func_frame_size): Make it static.
996 * function.h: Remove the corresponding type.
998 * regclass.c (reg_class_superclasses, reg_class_subclasses):
1000 * hard-reg-set.h: Remove the corresponding declarations.
1002 * tree-cfg.c (verify_stmts): Check that
1003 bb_for_stmt (stmt) == bb for every PHI node and statement.
1005 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1007 * config.gcc: Remove excess indentation.
1008 (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
1010 2005-03-13 Roger Sayle <roger@eyesopen.com>
1013 * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
1014 * fold-const.c (fold_sign_changed_comparison): Likewise.
1015 (fold_binary): Optimize comparisons against widened operands if
1016 the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
1018 2005-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1020 * config/sparc/sparc.c (struct_value_alias_set): New global variable.
1021 (sparc_override_options): Initialize it.
1022 (sparc_struct_value_rtx): Set it on the MEM to be returned.
1024 2005-03-13 David Edelsohn <edelsohn@gnu.org>
1026 * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
1027 (reg_or_none500mem_operand): New predicate.
1028 (zero_reg_mem_operand): New predicate.
1029 * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
1030 to reg_or_none500mem_operand.
1031 (extendsfdf2_fpr): Add MEM alternative.
1032 (extenddftf2_internal): Change operand2 predicate to
1033 zero_reg_mem_operand.
1035 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
1037 * ggc-zone.c: Rewritten.
1039 * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
1041 * configure.ac: Define GGC_ZONE for --with-gc=zone.
1042 * config.in: Regenerated.
1043 * configure: Regenerated.
1044 * gengtype.c (write_types_process_field, write_func_for_structure):
1045 Pass new argument to gt_pch_note_object.
1046 * ggc-common.c (struct ptr_data): Add TYPE.
1047 (gt_pch_note_object): Take TYPE argument and save it.
1048 (call_count): Update call to ggc_pch_count_object.
1049 (call_alloc): Update call to ggc_pch_alloc_object.
1050 (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
1052 * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
1053 * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
1054 (ggc_alloc_zone_stat): Delete.
1055 (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
1056 * ggc.h (gt_pch_note_object, ggc_pch_count_object)
1057 (ggc_pch_alloc_object): Update prototypes.
1058 (garbage_zone): Delete.
1059 (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
1060 GGC_ZONE conditional. Update. Change tree_zone and rtl_zone into
1062 (tree_id_zone): New variable.
1063 (ggc_alloc_cleared_zone): Remove unused.
1064 (ggc_alloc_zone): Define.
1065 (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
1066 * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
1067 ggc_alloc_zone_stat.
1068 * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
1069 * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
1070 (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
1071 (make_node_stat): Likewise. Use tree_id_zone.
1073 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
1074 Joseph S. Myers <joseph@codesourcery.com>
1076 * configure.ac: Check for MIPS TLS.
1077 * configure: Regenerated.
1078 * config/mips/mips-protos.h (enum mips_symbol_type): Add
1079 SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
1080 SYMBOL_GOTTPREL, and SYMBOL_TPREL.
1081 * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
1082 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
1083 (mips_classify_symbol, mips_symbolic_constant_p)
1084 (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
1085 (mips_tls_operand_p, mips_call_tls_get_addr)
1086 (mips_legitimize_tls_address, mips_cannot_force_const_mem)
1087 (mips_tls_symbol_ref_1): New functions.
1088 (mips_legitimize_address, mips_legitimize_const_move): Call
1089 mips_legitimize_tls_address.
1090 (override_options): Handle V1_REG and TLS symbols. Disable TLS
1092 * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
1093 (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
1094 (mips_char_to_class): Document V1_REG.
1095 (HAVE_AS_TLS): Provide default.
1096 * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
1098 (load_got<mode>): Renamed from *load_got<mode>. Allow when
1100 (tls_get_tp_<mode>): New instruction.
1102 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
1104 * configure.ac: Update checks for target tools.
1105 * configure: Regenerated.
1107 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
1109 * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
1111 2005-03-13 Roger Sayle <roger@eyesopen.com>
1113 * expmed.c (expand_mult): Use synthetic multiplication sequences for
1114 more classes of DImode multiplication by constant. Allow both
1115 multiplication by small negative constants (by performing a
1116 multiplication by a positive constant and negating the result) and
1117 multiplications by large powers of two, by using a left shift.
1119 2005-03-13 Kazu Hirata <kazu@cs.umass.edu>
1121 * tree-into-ssa.c (find_idf): Speed up by putting the indexes
1122 of basic blocks into work_stack.
1124 * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
1125 config/mips/vr.h: Update copyright.
1127 * c-decl.c (c_init_decl_processing): Remove useless calls to
1128 build_function_type.
1130 * builtins.c (fold_trunc_transparent_mathfn,
1131 fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
1132 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
1133 fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
1134 fold_builtin_strcpy, fold_builtin_strncpy,
1135 fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
1138 * builtins.c (expand_builtin_mathfn_3): Remove local variable
1141 * lambda-code.c (lambda_compute_auxillary_space): Remove local
1142 variable determinant.
1144 * tree-cfg.c (group_case_labels): Remove local variable type.
1146 * tree-ssa-live.c (build_tree_conflict_graph): Remove local
1149 * tree-ssa-phiopt.c (value_replacement): Remove local variable
1152 2005-03-13 Andy Hutchinson <HutchinsonAndy@netscape.net>
1155 * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
1156 (*movmemqi_insn): Delete.
1157 (*movmemhi): Delete.
1159 2005-03-13 Kazu Hirata <kazu@cs.umass.edu>
1161 * builtins.c (fold_builtin_classify): Take decomposed
1162 arguments of CALL_EXPR.
1163 (fold_builtin_1): Update a call to fold_builtin_classify.
1165 2005-03-13 Joseph S. Myers <joseph@codesourcery.com>
1168 * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
1169 through into call to parser_xref_tag after parse error.
1170 (c_parser_struct_declaration): Consistently return NULL_TREE on
1173 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
1175 * tree-flow-inline.h (ref_contains_array_ref): New function.
1176 (lookup_subvars_for_var): Ditto.
1177 (get_subvars_for_var): Ditto.
1178 (var_can_have_subvars): Ditto.
1180 * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
1181 (struct subvar): New type.
1183 * tree-dfa.c (okay_component_ref_for_subvars): New function.
1185 * tree-optimize.c (init_tree_optimization_passes): Call
1186 pass_create_structure_vars.
1188 * tree-ssa-alias.c: Include vec.h.
1189 (init_alias_info): Don't auto-clear call clobbered on struct-field
1191 (compute_flow_insensitive_aliasing): Handle subvars.
1192 (group_aliases): Handle STRUCT_FIELD aliases.
1193 (setup_pointers_and_addressables): Ditto.
1194 Don't mark variables non-addressable if they still have
1195 addressable subvars.
1196 Also mark subvars addressable when the real variable is marked
1198 (add_pointed_to_var): Try to prune the pointed-to set by only
1199 pointing to subvars when possible.
1200 Otherwise, make sure we set addresses_needed and pt_vars to
1201 properly include subvars.
1202 (bitpos_of_field): New function.
1203 (push_fields_onto_fieldstack): Ditto.
1204 (get_or_create_used_part_for): Ditto.
1205 (create_overlap_variables_for): Ditto.
1206 (find_used_portions): Ditto.
1207 (create_structure_vars): Ditto.
1208 (pass_create_structure_vars): New structure.
1210 * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
1211 (get_expr_operands): Handle subvars. Also try to turn
1212 COMPONENT_REF accesses into must-defs now that we can accurately
1214 (note_addressable): Try to only mark as addressable those subvars
1215 we know a COMPONENT_REF touches.
1216 (overlap_subvar): New function.
1218 * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
1219 Handle subvar storing.
1220 (vect_address_analysis): Update caller of vect_object_analysis.
1222 * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
1224 * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
1225 (STMT_VINFO_SUBVARS): New macro.
1227 * common.opts: add flag_tree_salias.
1229 * opts.c (decode_options): flag_tree_salias defaults to on.
1231 * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
1233 * doc/tree-ssa.texi: Document structural alias analysis.
1235 2005-03-12 Steven Bosscher <stevenb@suse.de>
1237 * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
1238 * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
1239 * tree-ssa-operands.c (get_expr_operands): Likewise.
1240 (get_expr_operands): Likewise for ERROR_MARK.
1242 2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
1244 * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
1247 * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
1250 * tree-ssa-pre.c (compute_avail): Remove local variable val.
1251 (mark_operand_necessary): Remove local variable ver.
1253 * tree-vect-transform.c (vect_get_new_vect_var): Remove local
1254 variable prefix_len.
1256 * value-prof.c (mod_subtract_transform): Remove local variable
1259 * builtins.c (fold_builtin_exponent): Take decomposed
1260 arguments of CALL_EXPR.
1261 (fold_builtin_1): Update a call to fold_builtin_exponent.
1263 * builtins.c (fold_builtin_logarithm): Take decomposed
1264 arguments of CALL_EXPR.
1265 (fold_builtin_1): Update a call to fold_builtin_logarithm.
1267 * c-decl.c (c_init_decl_processing): Remove local variables
1268 ptr_ftype_void and ptr_ftype_ptr.
1270 * gimplify.c (gimplify_expr): Remove local variables r0 and
1273 * reg-stack.c (move_for_stack_reg): Remove local variable
1275 (compare_for_stack_reg): Remove local variable flags_user.
1276 (convert_regs_1): Remove local variable deleted.
1278 * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
1280 (combine_blocks): Remove local variables exits and new_e.
1282 * tree-inline.c (expand_call_inline): Remove local variable
1285 * tree-ssa-live.c (create_ssa_var_map,
1286 calculate_live_on_entry): Remove local variable snn.
1288 2005-03-12 Geoffrey Keating <geoffk@apple.com>
1290 * c-lex.c (c_lex_with_flags): Add parameter to call to
1293 2005-03-11 Per Bothner <per@bothner.com>
1295 * c-tree.h (struct c_declarator): New id_loc field.
1296 * c-pragma.h (c_lex_with_flags): Take position reference.
1297 * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
1298 iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
1299 (c_lex): Pass dummy location to c_lex_with_flags.
1300 * c-parser.c (c_lex_one_token): Set c_token's location using
1301 c_lex_with_flags, instead of input_location, which might be "ahead".
1302 (c_parser_direct_declarator): Set declarator's id_loc from
1304 * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
1305 declarator's id_loc, rather than probably-imprecise input_location.
1306 (build_id_declarator): Initialize c_declarator's id_loc field.
1308 2005-03-11 Roger Sayle <roger@eyesopen.com>
1311 * builtins.c (expand_builtin_signbit): Force the signbit's word
1312 into an integer register to avoid SUBREGs of floating point modes.
1314 2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
1316 * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
1317 target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
1318 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
1319 config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
1321 2005-03-11 David Edelsohn <edelsohn@gnu.org>
1323 PR rtl-optimization/20306
1324 * expr.c (emit_move_complex): Set try_int false if mode is
1325 MODE_COMPLEX_FLOAT and mov_optab exists for inner mode. Only try
1326 emit_block_move if try_int is true.
1328 2005-03-11 Richard Henderson <rth@redhat.com>
1331 * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
1332 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
1335 2005-03-11 Richard Sandiford <rsandifo@redhat.com>
1337 * config/mips/mips.h (mips_fix_vr4130_string): Declare.
1338 (TARGET_FIX_VR4130): New macro.
1339 (TARGET_OPTIONS): Add -mfix-vr4130.
1340 (ISA_HAS_MACCHI): New macro.
1341 (ASM_SPEC): Add -mfix-vr4130.
1342 * config/mips/mips.c (mips_fix_vr4130_string): New variable.
1343 (override_options): Handle mips_fix_vr4130_string.
1344 (mips_avoid_hazards): Clear all_noreorder_p
1345 if we're working around VR4130 errata and the macc alternatives
1347 * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
1348 (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
1349 * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
1350 (MULTILIB_DEFAULTS): Remove leading "march=".
1351 (DRIVER_SELF_SPECS): Likewise. Make -mfix-vr4130 imply -march=vr4130
1352 if no architecture option is given.
1353 * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
1355 (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
1356 * doc/invoke.texi: Document -mfix-vr4130.
1358 2005-03-11 Richard Sandiford <rsandifo@redhat.com>
1360 * config/mips/mips.c (override_options): Only warn about -mint64
1361 deprecation if TARGET_INT64.
1363 2005-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1365 * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
1366 ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
1367 ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
1368 are non-specific regarding the nonnull parameter positions.
1369 (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
1370 ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
1371 ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
1372 ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
1374 * builtins.def: Use the non-specific "nonnull" attibute lists.
1376 2005-03-11 Zdenek Dvorak <dvorakz@suse.cz>
1378 * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
1379 single_pred_edge, single_succ, single_pred): Improve comments.
1381 2005-03-11 Zdenek Dvorak <dvorakz@suse.cz>
1383 * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
1384 single_pred_edge, single_succ, single_pred): New inline functions.
1385 * bb-reorder.c (rotate_loop, find_traces_1_round,
1386 add_labels_and_missing_jumps, fix_up_fall_thru_edges,
1387 duplicate_computed_gotos): Use the single_succ/pred functions.
1388 * cfganal.c (forwarder_block_p): Ditto.
1389 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1390 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1391 outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
1392 merge_seq_blocks): Ditto.
1393 * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
1394 * cfglayout.c (fixup_reorder_chain): Ditto.
1395 * cfgloop.c (mark_single_exit_loops, update_latch_info,
1396 canonicalize_loop_headers, verify_loop_structure): Ditto.
1397 * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
1398 mfb_update_loops, create_preheader, force_single_succ_latches,
1399 create_loop_notes): Ditto.
1400 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1401 force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
1402 commit_one_edge_insertion, purge_dead_edges,
1403 cfg_layout_can_merge_blocks_p): Ditto.
1404 * except.c (sjlj_emit_function_enter): Ditto.
1405 * flow.c (init_propagate_block_info): Ditto.
1406 * function.c (thread_prologue_and_epilogue_insns): Ditto.
1407 * gcse.c (find_implicit_sets, bypass_conditional_jumps,
1408 insert_insn_end_bb): Ditto.
1409 * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
1410 find_if_case_2): Ditto.
1411 * lambda-code.c (perfect_nestify): Ditto.
1412 * lcm.c (optimize_mode_switching): Ditto.
1413 * loop-doloop.c (doloop_modify): Ditto.
1414 * loop-init.c (loop_optimizer_init): Ditto.
1415 * loop-iv.c (simplify_using_initial_values): Ditto.
1416 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
1417 * loop-unswitch.c (unswitch_loop): Ditto.
1418 * modulo-sched.c (generate_prolog_epilog): Ditto.
1419 * predict.c (combine_predictions_for_insn, estimate_probability,
1420 tree_estimate_probability, last_basic_block_p,
1421 estimate_bb_frequencies): Ditto.
1422 * profile.c (branch_prob): Ditto.
1423 * regrename.c (copyprop_hardreg_forward): Ditto.
1424 * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
1425 * tracer.c (layout_superblocks): Ditto.
1426 * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
1427 cfg_remove_useless_stmts_bb, cleanup_control_flow,
1428 cleanup_control_expr_graph, disband_implicit_edges,
1429 tree_find_edge_insert_loc, bsi_commit_edge_inserts,
1430 tree_verify_flow_info, tree_make_forwarder_block,
1431 tree_forwarder_block_p, remove_forwarder_block,
1432 remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
1433 * tree-if-conv.c (tree_if_conversion): Ditto.
1434 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
1435 * tree-ssa-dce.c (remove_dead_stmt): Ditto.
1436 * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
1437 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
1438 copy_loop_headers): Ditto.
1439 * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
1440 * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
1441 * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
1442 lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
1443 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
1444 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
1445 * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
1446 * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
1447 * tree-ssa-threadupdate.c (redirect_edges): Ditto.
1448 * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
1449 eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
1450 * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
1451 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
1452 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
1453 slpeel_add_loop_guard): Ditto.
1455 2005-03-11 James A. Morrison <phython@gcc.gnu.org>
1457 PR tree-optimization/15784
1458 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
1461 * stmt.c (expand_case): Don't change index_type. Convert minval
1464 PR tree-optimization/20130
1465 * fold-const.c (fold): Fold x * -1 into -x.
1467 2005-03-11 Kaz Kojima <kkojima@gcc.gnu.org>
1469 PR rtl-optimization/20331
1470 * rtlanal.c (modified_between_p): Check its address first for MEM.
1471 (modified_in_p): Likewise.
1473 2005-03-11 Joseph S. Myers <joseph@codesourcery.com>
1475 * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
1477 2005-03-10 Steven Bosscher <stevenb@suse.de>
1479 * expr.c (expand_expr_real_1): If possible, use a conditional
1480 move for expanding MIN_EXPR and MAX_EXPR.
1481 Use temp for moving around rtx-en.
1483 2005-03-10 Andrew Pinski <pinskia@physics.uc.edu>
1486 * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
1489 2005-03-10 Roger Sayle <roger@eyesopen.com>
1491 * builtins.c (expand_builtin_signbit): Extend to handle floating
1492 point modes wider than the largest integer type, using the
1493 operand_subword_force function to obtain the signbit's word.
1495 2005-03-10 Jakub Jelinek <jakub@redhat.com>
1498 * combine.c (try_combine): If recog_for_combine added CLOBBERs
1499 to NEWI2PAT, fail to combine if they are used by NEWPAT.
1501 2005-03-10 Aldy Hernandez <aldyh@redhat.com>
1503 * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
1505 2005-03-10 Kazu Hirata <kazu@cs.umass.edu>
1507 * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
1509 (perform_edge_inserts): Unconditionally call
1510 free_dominator_info.
1512 * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
1514 2005-03-10 Bob Wilson <bob.wilson@acm.org>
1516 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
1518 2005-03-10 Nathan Sidwell <nathan@codesourcery.com>
1520 * bitmap.c (bitmap_copy): Remove manual loop unrolling.
1522 * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
1524 (rtl_register_value_prof_hooks,
1525 tree_value_profile_transformations,
1526 tree_register_value_prof_hooks): Likewise.
1527 * var-tracking.c (stack_adjust_offset_pre_post,
1528 variable_htab_free, variable_union, dataflow_set_different_2,
1529 count_uses, variable_was_changed, set_frame_base_location,
1530 set_variable_part, emit_note_insn_var_location, vt_emit_notes,
1531 vt_add_function_parameters): Likewise.
1532 * varasm.c (named_section_real, named_section, make_decl_rtl,
1533 asm_emit_uninitialised, assemble_integer, decode_addr_const,
1534 const_hash_1, compare_constant, copy_constant, force_const_mem,
1535 output_constant_pool_2, output_constant_pool_1, output_constant,
1536 output_constructor, make_decl_one_only, decl_tls_model,
1537 default_no_named_section, default_elf_select_section_1,
1538 default_unique_section_1): Likewise.
1539 * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
1540 * vmsdbgout.c (addr_const_to_string): Likewise.
1543 * function.c (struct assign_parm_data_one): Remove last_named
1545 (assign_parm_find_data_types): Don't determine last_named.
1546 Reorder named_parm determination.
1547 (assign_parms): Only setup varargs on the last non-varadic
1550 2005-03-10 Kazuhiro Inaoka <inaoka.lazuhiro@renesas.com>
1552 * config/m32r/m32r.md (load_sda_base_32): New pattern. Loads
1553 sda base address on medium model.
1555 2005-03-10 Zdenek Dvorak <dvorakz@suse.cz>
1557 * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
1558 * cfgloop.c (flow_loop_nodes_find): Export.
1559 * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
1561 * cfgloopmanip.c (fix_loop_structure): New function.
1562 * predict.c (predict_loops): Clean up the loops information.
1563 * tree-cfg.c (cleanup_tree_cfg_loop): New function.
1564 (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
1566 * tree-flow.h (cleanup_tree_cfg_loop): Declare.
1567 (rewrite_into_loop_closed_ssa): Declaration changed.
1568 * tree-loop-linear.c (linear_transform_loops): Add argument to
1569 rewrite_into_loop_closed_ssa call.
1570 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1571 * tree-ssa-loop-im.c (move_computations): Ditto.
1572 * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
1573 * tree-vectorizer.c (vectorize_loops): Ditto.
1574 * tree-optimize.c: Include cfgloop.h.
1575 (execute_todo): Choose whether to call cleanup_tree_cfg or
1576 cleanup_tree_cfg_loop.
1577 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
1578 (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
1579 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
1580 cleanup_tree_cfg_loop call.
1581 * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
1582 (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
1583 work on part of cfg.
1585 2005-03-10 Jakub Jelinek <jakub@redhat.com>
1588 * gimplify.c (gimplify_asm_expr): Handle input/output constraints
1589 with multiple alternatives.
1591 * stmt.c (parse_output_constraint): Fix a typo.
1593 2005-03-09 Bob Wilson <bob.wilson@acm.org>
1595 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
1596 assembly directive instead of deprecated "no-generics".
1598 2005-03-09 Ulrich Weigand <uweigand@de.ibm.com>
1600 * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
1601 for non-offsettable memory references to cope with outstanding reload
1603 * config/s390/s390.md ("reload_outti"): Call find_replacement to
1604 avoid losing outstanding address reloads.
1605 ("reload_outdi", "reload_outdf"): Likewise.
1607 2005-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1609 * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
1610 code. Add more cbrt transformations.
1612 2005-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1614 * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
1616 2005-03-09 Kazu Hirata <kazu@cs.umass.edu>
1618 * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
1619 NULL_TREE when a given tree is not simplified.
1620 (fold): Return the original tree when any of the functions
1621 mentioned above NULL_TREE.
1623 * fold-const.c (fold_unary, fold_binary): Take decomposed
1624 arguments, code, type, op0, and op1 in case of fold_binary.
1625 (fold): Update calls to fold_unary and fold_binary.
1627 2005-03-09 Roger Sayle <roger@eyesopen.com>
1629 * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
1630 a fndecl and an arglist instead of a CALL_EXPR, exp.
1632 2005-03-09 Kazu Hirata <kazu@cs.umass.edu>
1634 * cfglayout.c (fixup_reorder_chain): Remove old_bb.
1636 * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
1638 * expr.c (expand_assignment): Remove orig_to_rtx.
1640 * fold-const.c (int_const_binop): Remove no_overflow.
1642 * ifcvt.c (noce_emit_move_insn): Remove inmode.
1644 * loop-iv.c (get_biv_step_1): Remove lhs.
1646 * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
1648 * real.c (real_nan): Remove neg.
1650 * function.c (thread_prologue_and_epilogue_insns): Remove i
1653 * tree-data-ref.c (array_base_name_differ_p): Remove ta and
1656 * tree-eh.c (tree_could_trap_p): Remove idx.
1658 * tree-into-ssa.c (ann): Remove ann.
1660 * tree-outof-ssa.c (num_nodes): Remove num_nodes.
1662 * tree-sra.c (decide_block_copy): Remove inst_count.
1664 * tree-ssa-alias.c (may_alias_p): Remove v_ann.
1666 * tree-ssa-loop-im.c (lhs): Remove.
1668 * cfgbuild.c (state, STATE, SET_STATE,
1669 BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
1671 (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
1672 (find_basic_blocks): Set the state of each basic block to
1675 2005-03-08 Jeff Law <law@redhat.com>
1677 * tree-cfg.c (cleanup_control_flow): If removal of a computed
1678 goto results in the removal of edges in the CFG, then we need
1679 to recompute dominators.
1681 2005-03-09 Ben Elliston <bje@au.ibm.com>
1683 * c-common.c (c_do_switch_warnings): Comment fix.
1685 2005-03-08 Julian Brown <julian@codesourcery.com>
1687 * Patch from 2005-03-08 reverted for causing regressions and
1688 ppc-darwin bootstrap failure.
1690 2005-03-08 Fariborz Jahanian <fjahanian@apple.com>
1692 * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
1693 Define the real function for ppc-darwin.
1694 * c-typeck.c (convert_arguments): Check for target-specific
1695 invalid argument call to unprototyped function.
1696 * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
1698 * target.h (invalid_arg_for_unprototyped_fn): New field
1700 * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
1701 default target hook.
1702 * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
1705 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1707 * c-typeck.c (constructor_stack, constructor_range_stack,
1708 initializer_stack): Make them static.
1710 * cfg.c (rbi_pool): Make it static.
1712 * gimple-low.c (lower_stmt_body): Make it static.
1713 * tree-flow.h: Remove the corresponding prototype. Don't
1716 * sched-deps.c (cache_size): Make it static.
1718 * stor-layout.c (lang_adjust_rli): Make it static.
1720 2005-03-08 Julian Brown <julian@codesourcery.com>
1722 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
1723 from being used for symbols with vague linkage when
1724 HAVE_GAS_COMDAT_GROUP is true.
1726 2005-03-08 J"orn Rennecke <joern.rennecke@st.com>
1728 * jump.c (invert_jump_1): Don't call redirect_jump_1 with
1729 nlabel == JUMP_LABEL (jump).
1731 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1733 * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
1734 gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
1735 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
1736 tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
1738 2005-03-08 Alexey Neyman <alex.neyman@auriga.ru>
1741 * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
1742 * c-common.c (handle_returns_twice): New function.
1743 (c_common_attribute_table): Declare eturns_twice' attribute.
1744 * doc/extend.texi: Document eturns_twice' attribute.
1745 * tree.h (DECL_IS_RETURNS_TWICE): New macro.
1746 (struct tree_decl): Add returns_twice_flag.
1748 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1750 * tree-ssa-phiopt.c: Fix a comment typo.
1752 * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
1753 loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
1754 config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
1757 2005-03-08 Richard Henderson <rth@redhat.com>
1759 * config/alpha/alpha.c (code_for_builtin): Replace special-case
1760 builtin codes with ctzdi2, clzdi2, popcountdi2.
1761 (struct alpha_builtin_def): Add is_const.
1762 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
1763 (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
1764 (alpha_init_builtins): Init them. Set nothrow and const attributes
1766 (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
1767 alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
1768 alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
1769 alpha_fold_vector_minmax, alpha_fold_builtin_perr,
1770 alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
1771 alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
1772 alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
1773 alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
1774 (TARGET_FOLD_BUILTIN): New.
1775 * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
1776 (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
1778 (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
1780 2005-03-08 Ira Rosen <irar@il.ibm.com>
1782 PR tree-optimization/20122
1783 * tree-vect-analyze.c (vect_object_analysis): Analyze initial
1784 condition of access function instead of base.
1786 2005-03-07 Jeff Law <law@redhat.com>
1787 Steven Bosscher <stevenb@suse.de>
1789 * tree-cfg.c (find_taken_edge_computed_goto): New function.
1790 (find_taken_edge): Call find_taken_edge_computed_goto as
1791 appropriate. Allow any gimple invariant rather than just
1792 INTEGER_CST for VAL.
1793 (cleanup_control_flow): Cleanup a computed goto which has turned
1795 (tree_merge_blocks): If block B has any forced labels, move
1796 them to the start of block A.
1797 * tree-ssa-dom.c (thread_across_edge): Allow threading across
1798 computed gotos as well.
1799 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
1800 removal of unnecessary computed gotos too.
1801 (lookup_redirection_data): Fix type of INSERT argument. Callers
1804 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1806 * tree-ssa-phiopt.c: Update copyright. Fix indentations.
1807 Remove trailing spaces.
1809 * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
1810 unshare_all_trees): Make them static.
1811 * tree-gimple.h: Remove the corresponding prototypes.
1813 * diagnostic.h: Remove unused prototype
1814 debug_output_buffer.
1815 * modulo-sched.c: Remove unused prototype
1816 set_row_column_for_ps.
1818 * tree-ssa-phiopt.c (tree_ssa_phiopt,
1819 replace_phi_edge_with_variable): Remove unused variable i.
1821 2005-03-07 Per Bothner <per@bothner.com>
1823 * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
1825 2005-03-06 Andrew Pinski <pinskia@physics.uc.edu>
1828 * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
1829 bbs on the COND_EXPR instead of the PHI_NODEs.
1830 (candidate_bb_for_phi_optimization): Remove.
1831 (replace_phi_with_stmt): Rename to ...
1832 (replace_phi_edge_with_variable): this and change so that we
1833 replace the phi argument instead of removing the PHI.
1834 (conditional_replacement): Change so we deal with PHI with more
1836 (value_replacement): Likewise.
1837 (abs_replacement): Likewise.
1839 2005-03-07 Aldy Hernandez <aldyh@redhat.com>
1841 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
1842 output_e500_flip_gt_bit.
1844 * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
1846 (rs6000_generate_compare): Fix logic to look at the correct bits.
1847 (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
1849 (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
1850 gen_e500_flip_gt_bit. Rename gen_move_from_CR_eq_bit to
1851 gen_move_from_CR_gt_bit.
1853 * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
1854 ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
1855 (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
1857 * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
1858 (E500_CR_IOR_COMPARE): New constant.
1860 2005-03-08 Earl Chew <earl_chew@agilent.com>
1861 David Billinghurst <David.Billinghurst@riotinto.com>
1863 * config/i386/host-cygwin.c: New file to support precompiled
1865 * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
1866 * config.host: Use above files for cygwin host.
1868 2005-03-07 David Edelsohn <edelsohn@gnu.org>
1870 * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
1871 ordering ops from earlier change.
1873 2005-03-07 Per Bothner <per@bothner.com>
1875 Various fixes to allow us to again build if --enable-mapped-location:
1876 * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
1877 unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
1878 * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
1879 local variable loc. Change logic appropriately.
1880 * tree-vect-transform.c (vect_finish_stmt_generation): Use
1881 EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
1882 * c-parser.c (c_parser_for_statement): Initialize loc variable.
1883 * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
1884 DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
1886 2005-03-07 Richard Sandiford <rsandifo@redhat.com>
1888 PR rtl-optimization/19683
1889 * reload1.c (choose_reload_regs): Pass the number of bits, not the
1890 number of bytes, to smallest_int_for_mode. Fix arguments to
1891 REG_CANNOT_CHANGE_MODE_P.
1893 2005-03-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1895 * reorg.c (relax_delay_slots): Check that the jump is
1896 conditional before trying to invert it.
1898 2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
1900 * bb-reorder.c (max_entry_frequency, max_entry_frequency):
1903 * calls (stack_arg_under_construction): Make it static.
1905 * flow.c (regs_live_at_setjmp): Make it static.
1906 * flow.h: Remove the corresponding prototype.
1908 * reload1.c (reload_startobj, reload_firstobj,
1909 something_needs_operands_changed, reload_inherited,
1910 reload_inheritance_insn, reload_override_in,
1911 reload_spill_index): Make them static.
1913 * recog.c (verify_changes): Make it static.
1914 * recog.h: Remove the corresponding prototype.
1916 * cfgbuild.c (find_sub_basic_blocks): Remove.
1917 * basic-block.h: Remove the corresponding prototype.
1918 * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
1920 * doc/cfg.texi: Don't mention find_sub_basic_blocks.
1922 * tree-ssa-operands.c (check_build_stmt): Remove.
1924 * stor-layout.c (set_alignment): Remove.
1925 * tree.h: Remove the corresponding prototype.
1927 * tree-ssa-pre.c (has_abnormal_preds): Make it static.
1929 * tree-ssa-dce.c (control_dependence_map,
1930 visited_control_parents): Make them static.
1932 * cfghooks.c (verify_flow_info): Remove local variable
1935 * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
1938 * loop-unswitch.c (unswitch_loop): Remove local variable src.
1940 2005-03-07 David Billinghurst <David.Billinghurst@riotinto.com>
1942 * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
1944 2005-03-07 Joseph S. Myers <joseph@codesourcery.com>
1946 * config/ia64/hpux.h (LINK_SPEC): Add -z.
1947 * config/ia64/ia64.c (ia64_function_value): Return a REG not a
1948 PARALLEL for an empty structure.
1950 2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
1952 * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
1954 * fold-const.c (fold_binary): Unroll the very first "for"
1957 2005-03-06 David Edelsohn <edelsohn@gnu.org>
1959 * config/rs6000/predicates.md (branch_comparison_operator): Remove
1960 redundant match_code test.
1961 (scc_comparison_operator): Swap match_operand and match_code
1963 (branch_positive_comparison_operator): Same.
1964 (trap_comparison_operator): Use comparison_operator and swap with
1967 2005-03-06 Marek Michalkiewicz <marekm@amelek.gda.pl>
1970 * config/avr/avr.c (print_operand): Add 'p' and 'r'.
1971 (out_movhi_r_mr): Read low byte of volatile MEM first.
1972 (out_movhi_mr_r): Write high byte of volatile MEM first.
1974 2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
1976 * cselib.c (reg_values, reg_values_size): Make them static.
1978 * cse.c (cse_reg_info_table): Make it static.
1980 * fold-const.c (fold_unary): Use build1 instead of copy_node.
1982 2005-03-06 Zdenek Dvorak <dvorakz@suse.cz>
1984 * cse.c (find_best_addr): Use canon_for_address.
1986 2005-03-06 Kazu Hirata <kazu@cs.umass.edu>
1988 * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
1989 (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
1990 SUBREG and MEM, respectively.
1992 * fold-const.c (fold_binary): Use code instead of t.
1994 * fold-const.c (optimize_minmax_comparison): Take decomposed
1995 arguments code, type, op0, and op1 instead of t.
1996 (fold_binary): Update a call to optimize_minmax_comparison.
1998 * fold-const.c (fold_range_test): Take decomposed arguments
1999 code, type, op0, and op1 instead of t.
2000 (fold_binary): Update a call to fold_range_test.
2002 * fold-const.c (fold_binary_op_with_conditional_arg): Take
2003 decomposed arguments code, type, op0, and op1 instead of t.
2004 (fold_binary): Update a call to fold_range_test.
2006 2005-03-06 Kazu Hirata <kazu@cs.umass.edu>
2008 * fold-const.c (fold_binary): Avoid directly using the original
2009 expression t as much as possible.
2011 2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
2013 * c-semantics.c (build_stmt): Use TYPE_P instead of
2014 IS_NON_TYPE_CODE_CLASS.
2015 * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
2016 (NON_TYPE_CHECK): Use TYPE_P instead of
2017 IS_NON_TYPE_CODE_CLASS.
2019 * fold-const.c (fold): Remove handling of binary expressions.
2021 2005-03-05 James A. Morrison <phython@gcc.gnu.org>
2023 * doc/c-tree.texi: Wrap comments in @r{}.
2024 * doc/cpp.texi: Likewise.
2025 * doc/cppinternals.texi: Likewise.
2026 * doc/extend.texi: Likewise.
2027 * doc/md.texi: Likewise.
2028 * doc/objc.texi: Likewise.
2029 * doc/sourcebuild.texi: Likewise.
2030 * doc/tm.texi: Likewise.
2033 2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
2035 * predict.c (apply_return_prediction): Standardize PHI chain
2037 * tree-ssa.c (ssa_redirect_edge): Likewise.
2039 * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
2040 gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
2043 * tree-phinodes.c (remove_phi_node): Drop the last argument.
2044 * tree-flow.h: Adjust the prototype for remove_phi_node.
2045 * lambda-code.c (perfect_nestify): Adjust a call to
2048 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
2049 * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
2051 * tree-ssa-dce.c (remove_dead_phis): Likewise.
2052 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
2053 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
2054 * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
2056 * combine.c (simplify_and_const_int): Use gen_int_mode instead
2057 of GEN_INT (trunc_int_for_mode (...)).
2058 * loop-iv.c (iv_number_of_iterations): Likewise.
2059 * postreload.c (reload_cse_move2add): Likewise.
2060 * simplify-rtx.c (simplify_const_unary_operation,
2061 simplify_const_binary_operation): Likewise.
2062 * stor-layout.c (get_mode_bounds): Likewise.
2064 * fold-const.c (fold_binary): New.
2065 (fold): Call fold_binary on binary expressions.
2067 2005-03-05 Richard Sandiford <rsandifo@redhat.com>
2069 * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
2070 * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
2071 (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
2072 (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
2073 (ASM_SPEC): Pass down -msym32 and -mno-sym32.
2075 2005-03-04 Devang Patel <dpatel@apple.com>
2077 PR tree-optimization/18815
2078 * tree-if-conv.c (combine_blocks): Adjust loop header edges for
2079 loops with zero exit edges.
2081 2005-03-04 Devang Patel <dpatel@apple.com>
2083 * doc/invoke.texi: Remove reference to webpage that does not exist.
2085 2005-03-04 John David Anglin <dave.danglin@nrc-cnrc.gc.ca>
2086 Joseph S. Myers <joseph@codesourcery.com>
2089 * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
2090 (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
2091 * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
2092 * pa.c (get_plabel): Change argument to symbol_ref. Call
2093 maybe_get_identifier instead of get_identifier.
2094 (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
2095 (struct deferred_plabel): Replace name field with symbol field.
2096 (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
2097 ASM_OUTPUT_EXTERNAL_REAL is defined.
2098 (output_global_address): Use output_addr_const for output of all
2100 (output_deferred_plabels): Use symbol_ref instead of name for address
2102 * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
2103 ASM_OUTPUT_SYMBOL_REF): New macros.
2104 * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw. Update
2106 (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
2109 2005-03-05 Joseph S. Myers <joseph@codesourcery.com>
2111 * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
2112 *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
2114 2005-03-04 Jeff Law <law@redhat.com>
2116 * basic-block.h (rediscover_loops_after_threading): Declare.
2117 * tree-ssa-dom.c: Include cfgloop.h.
2118 (tree_ssa_dominator_optimize): Discover loops and some basic
2119 properties. Remove forwarder blocks recreated by loop header
2120 canonicalization. Also mark backedges in the CFG.
2121 * tree-ssa-threadupdate.c: Include cfgloop.h
2122 (rediscover_loops_after_threading): Define.
2123 (struct local_info): New field, JUMP_THREADED.
2124 (prune_undesirable_thread_requests): New function.
2125 (redirect_edges): Clear EDGE_ABNORMAL. If edges were threaded
2126 then record that fact for the callers of redirct_edges.
2127 (thread_block): If BB has incoming backedges, then call
2128 prune_undesirable_thraed_requests. Note when we are
2129 going to have to rediscover loop information. Return a
2130 boolean indicating if any jumps were threaded.
2131 (thread_through_all_blocks): Bubble up boolean indicating
2132 if any jumps were threaded.
2133 * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
2134 (tree-ssa-threadupdate.o): Similarly.
2136 2005-03-04 Kazu Hirata <kazu@cs.umass.edu>
2138 * fold-const.c (fold_ternary): Unroll the "for" loop to
2141 2005-03-04 Andrew Haley <aph@redhat.com>
2143 * unwind-dw2-fde-glibc.c (struct
2144 unw_eh_callback_data.check_cache): New field.
2145 (frame_hdr_cache): New.
2146 (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
2147 Cache frame header info.
2149 2005-03-04 Richard Sandiford <rsandifo@redhat.com>
2151 * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2152 (print_c_condition): Declare.
2153 * read-rtl.c (ptr_loc): New structure.
2154 (ptr_locs, ptr_loc_obstack, joined_conditions)
2155 (joined_conditions_obstack): New variables.
2156 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
2157 (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2158 (join_c_conditions, print_c_condition): New functions.
2159 (apply_macro_to_string): Associate the new string with the same
2160 source location as the old one.
2161 (add_condition_to_string): Use join_c_conditions.
2162 (read_string): Use set_rtx_ptr_loc to record a filename and line
2163 number for the string.
2164 (read_rtx): Initialize the new variables above.
2165 * genattrtab.c (write_test_expr, write_attr_value): Use
2167 * genconditions.c (write_header): Don't define MAYBE_EVAL. Move its
2168 comment above the GCC_VERSION check.
2169 (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
2170 Inline the definition of MAYBE_EVAL.
2171 * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
2172 * genoutput.c (process_template): Likewise.
2173 * genpreds.c (write_predicate_subfunction): Likewise.
2174 (write_predicate_expr): Use print_c_condition.
2175 * genrecog.c (write_cond): Likewise.
2176 * gensupport.c (process_rtx): Use join_c_conditions to join the
2177 conditions of a define_insn_and_split. Record a source location
2178 for the string after the "&&".
2179 (alter_test_for_insn): Use join_c_conditions.
2181 2005-03-04 Andrew Pinski <pinskia@physics.uc.edu>
2184 2005-03-03 James A. Morrison <phython@gcc.gnu.org>
2185 PR tree-optimization/15784
2186 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
2189 2005-03-04 Ben Elliston <bje@au.ibm.com>
2191 * gcc.c (option_map): Add --coverage.
2192 (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
2193 (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
2194 * config/darwin.h: Pass -lgcov for `coverage'.
2195 * doc/invoke.texi (Debugging Options): Document --coverage.
2197 2005-03-04 Kazu Hirata <kazu@cs.umass.edu>
2199 * gcse.c (bypass_block): Use find_edge wherever possible.
2201 2005-03-03 Daniel Berlin <dberlin@dbrelin.org>
2205 * c-opts.c (c_common_parse_file): Call start_source_file
2206 and end_source_file at the approriate times.
2208 * dwarf2out.c (dwarf2out_finish): Don't auto-end
2209 the main file, it will be done for us now.
2211 2005-03-04 Kazu Hirata <kazu@cs.umass.edu>
2213 * fold-const.c (fold_ternary): New.
2214 (fold): Call fold_ternary on ternary expressions. Remove
2215 handling of ternary expressions.
2217 2005-03-03 James A. Morrison <phython@gcc.gnu.org>
2219 PR tree-optimization/15784
2220 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
2223 2005-03-03 David Edelsohn <edelsohn@gnu.org>
2225 * config/rs6000/predicates.md (branch_comparison_operator):
2226 Convert from C block to conditional format.
2228 2005-03-03 Jan Hubicka <jh@suse.cz>
2230 * tree-dfa.c (add_referenced_var): Don't walk initializer of external
2231 and non-constant public variables.
2233 2005-03-03 Kazu Hirata <kazu@cs.umass.edu>
2235 * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
2238 * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
2241 * tree-phinodes.c (remove_phi_node): Clean up by factoring out
2242 calls to release_ssa_name and release_phi_node.
2244 * fold-const.c (fold): Remove handling of unary expressions.
2246 * fold-const.c (fold_unary): Avoid directly using the original
2247 expression t as much as possible.
2249 2005-03-03 Roger Sayle <roger@eyesopen.com>
2250 Andrew Pinski <pinskia@physics.uc.edu>
2252 * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
2253 RETURN rtx, and not a LABEL_REF containing a NULL pointer.
2255 2005-03-03 Hans-Peter Nilsson <hp@axis.com>
2257 Describe special registers SRP and MOF as allocatable registers.
2258 * config/cris/cris.c (cris_md_asm_clobbers): New function.
2259 (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
2260 (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
2261 TARGET_HAS_MUL_INSNS.
2262 (cris_print_operand) <case 'd'>: New case.
2263 <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
2264 * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
2266 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
2267 (REG_ALLOC_ORDER): Update for MOF.
2268 (enum reg_class): New members MOF_REGS, GENERAL_REGS and
2270 (GENERAL_REGS): No longer a define of ALL_REGS.
2271 (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
2272 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
2274 (CRIS_SPECIAL_REGS_CONTENTS): New macro.
2275 (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
2276 (SECONDARY_RELOAD_CLASS): Define.
2277 (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
2278 (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
2279 (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
2280 (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
2281 (REGISTER_MOVE_COST): Define.
2282 (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
2283 * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
2284 (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
2285 (CRIS_MOF_REGNUM): New define_constants.
2286 ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
2288 ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
2290 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
2291 ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
2292 Adjust for MOF being properly described as a register.
2293 (indir_to_reg_split): Name this split. Conditionalize on the
2294 destination register being a general register.
2295 (movei): Conditionalize on on operands 0 and 1 having the same
2298 2005-03-03 Alan Modra <amodra@bigpond.net.au>
2301 * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
2302 -mcpu to override any other explicitly given flags.
2304 2005-03-02 J"orn Rennecke <joern.rennecke@st.com>
2306 * recog.c (verify_changes, confirm_change_group): New functions,
2307 broken out of apply_change_group.
2308 (apply_change_group): Use them.
2309 * recog.h (verify_change, confirm_change_group): Declare.
2310 * rtl.h (redirect_jump_2): Declare.
2311 * jump.c (redirect_exp, invert_exp): Delete.
2312 (invert_exp_1): Take second parameter. Return value. Changed caller.
2313 (redirect_jump_2): New function, broken out of redirect_jump.
2314 (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
2315 (invert_jump): Use invert_jump_1 and redirect_jump_2.
2316 * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
2318 2005-03-02 Geoffrey Keating <geoffk@apple.com>
2320 * varasm.c (named_section): Use xstrdup rather than doing it by
2323 * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
2325 2005-03-02 Devang Patel <dpatel@apple.com>
2327 Undo PR tree-optimization/18815 fix.
2329 2005-03-02 Devang Patel <dpatel@apple.com>
2331 PR tree-optimization/18815
2332 * tree-if-conv.c (combine_blocks): Adjust loop header edges for
2333 loops with zero exit edges.
2335 2005-03-02 Kazu Hirata <kazu@cs.umass.edu>
2337 * cfg.c (connect_src, connect_dest, disconnect_src,
2338 disconnct_dest): New.
2339 (unchecked_make_edge, remove_edge, redirect_edge_succ,
2340 redirect_edge_pred): Use the new functions.
2342 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
2343 free_dominance_info only when needed.
2345 2005-03-02 David Edelsohn <edelsohn@gnu.org>
2348 * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
2349 (reg_or_sub_cint64_operand): Same.
2351 2005-03-02 Jeff Law <law@redhat.com>
2353 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
2354 CFG_ALTERED in the main DOM iteration loop.
2356 2005-03-02 Mark Mitchell <mark@codesourcery.com>
2359 * varasm.c (initializer_constant_valid_p): Allow conversions
2360 between OFFSET_TYPEs. Tidy.
2362 2005-03-02 Hans-Peter Nilsson <hp@axis.com>
2364 * config/cris/cris.md ("return"): Remove epilogue delay list
2367 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2369 * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
2371 * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
2373 2005-03-02 Kazu Hirata <kazu@cs.umass.edu>
2375 * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
2376 loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
2377 config/m68k/m68k.c, config/mips/mips.h,
2378 config/rs6000/rs6000-protos.h, doc/contrib.texi,
2379 doc/include/gcc-common.texi: Update copyright.
2381 PR middle-end/18029 and PR middle-end/18030
2382 * expr.c (optimize_bitfield_assignment_op): Add a special case
2383 to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
2385 * fold-const.c (fold_unary): New.
2386 (fold): Call fold_unary on unary expressions.
2388 2005-03-02 Richard Guenther <rguenth@gcc.gnu.org>
2390 * cgraph.h (struct cgraph_edge): Add prev_caller and
2392 (cgraph_node_remove_callees): Export.
2393 * cgraph.c (cgraph_create_edge): Initialize prev_caller
2395 (cgraph_edge_remove_callee): New function.
2396 (cgraph_edge_remove_caller): Likewise.
2397 (cgraph_remove_edge): Use.
2398 (cgraph_redirect_edge_callee): Likewise.
2399 (cgraph_node_remove_callees): New function.
2400 (cgraph_node_remove_callers): Likewise.
2401 (cgraph_remove_node): Use.
2402 * tree-optimize.c (tree_rest_of_compilation): Use
2403 cgraph_node_remove_callees instead of manual loop.
2404 * cgraphunit.c (cgraph_finalize_function): Likewise.
2405 (cgraph_expand_function): Likewise.
2406 (cgraph_remove_unreachable_nodes): Likewise.
2408 2005-03-02 Joseph S. Myers <joseph@codesourcery.com>
2411 * c-tree.h (undeclared_variable, build_external_ref): Add extra
2413 * c-decl.c (undeclared_variable): Take location as argument.
2414 * c-typeck.c (build_external_ref): Likewise.
2415 * c-parser.c (c_parser_postfix_expression): Pass location of
2416 identifier to build_external_ref.
2418 2005-03-01 David Edelsohn <edelsohn@gnu.org>
2420 * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
2421 CCEQ mode for branch_positive_comparison_operator test.
2422 * config/rs6000/predicates (branch_comparison_operator): Revert to
2424 (scc_comparison_operator): Same.
2425 (branch_positive_comparison_operator): Same.
2427 2005-03-01 Hans-Peter Nilsson <hp@axis.com>
2429 * config/cris/cris.c (cris_eligible_for_epilogue_delay)
2430 (cris_delay_slots_for_epilogue): Remove.
2431 (save_last): Move into cris_target_asm_function_epilogue.
2432 (cris_target_asm_function_epilogue): Remove tests for file being
2434 * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
2435 (cris_delay_slots_for_epilogue): Remove prototypes.
2436 * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
2437 (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
2439 2005-03-01 David Edelsohn <edelsohn@gnu.org>
2441 * config/rs6000/predicates.md (branch_comparison_operator): Change
2442 to define_special_predicate.
2443 (scc_comparison_operator): Same.
2444 (branch_positive_comparison_operator): Same.
2446 2005-03-01 Daniel Berlin <dberlin@dberlin.org>
2448 * Makefile.in (tree-ssa-sink.o): New.
2449 (OBJS-common): Add tree-ssa-sink.o.
2450 * common.opt: Add -ftree-sink
2451 * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
2452 * timevar.def (TV_TREE_SINK): new timevar.
2453 * tree-flow.h (is_hidden_global_store): Prototype.
2454 * tree-optimize.c (init_tree_optimization_passes): Add
2456 * tree-pass.h (pass_sink_code): New.
2457 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
2458 for non-obvious global store store to is_hidden_global_store, and
2459 call that new function.
2460 * tree-ssa-sink.c: New file.
2461 * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
2462 * doc/passes.texi: Document forward store motion.
2463 * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
2464 * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
2465 * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
2466 * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
2468 2005-03-01 Per Bothner <per@bothner.com>
2470 * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
2471 and we have a non-zero column-number, add it to the message.
2472 Also factor out the diagnostic_kind_text.
2474 2005-03-01 Zdenek Dvorak <dvorakz@suse.cz>
2476 * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2477 flow_loop_pre_header_scan, flow_loop_pre_header_find,
2478 flow_loop_scan): Removed.
2479 (flow_loop_dump): Do not dump removed fields.
2480 (flow_loop_free): Do not free removed fields.
2481 (flow_loops_find): Flags argument removed. Do not call flow_loop_scan.
2482 (loop_exit_edge_p): New function.
2483 * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
2484 num_pre_header_edges, entry_edges, num_entries, exit_edges,
2485 num_exits, exits_doms.
2486 (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
2487 LOOP_EDGES, LOOP_ALL): Removed.
2488 (flow_loop_scan): Declaration removed.
2489 (loop_exit_edge_p, mark_loop_exit_edges): Declare.
2490 * cfgloopmanip.c (create_loop_notes): Do not pass flags to
2492 * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
2493 (if_convert): Call flow_loops_find and flow_loops_free
2494 when calling mark_loop_exit_edges.
2495 * cfgloopanal.c (mark_loop_exit_edges): Moved from
2496 ifcvt.c. Removed the flow_loops_find, flow_loops_free and
2497 free_dominance_info calls.
2498 * loop-init.c (flow_loops_find): Ditto.
2499 * passes.c (rest_of_handle_branch_prob): Ditto.
2500 * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
2501 * loop-unroll.c (analyze_insns_in_loop): Do not use
2503 * predict.c (predict_loops): Do not call flow_loop_scan.
2504 Use get_loop_exit_edges.
2505 (tree_estimate_probability): Do not pass flags to flow_loops_find.
2506 * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
2507 Do not use EDGE_LOOP_EXIT.
2508 (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
2509 to bb_with_exit_edge_p.
2510 (if_convertible_loop_p): Do not call flow_loop_scan. Use
2511 loop->single_exit. Do not use EDGE_LOOP_EXIT. Pass loop
2512 to bb_with_exit_edge_p.
2513 (combine_blocks): Pass loop to bb_with_exit_edge_p. Do not use
2515 * tree-loop-linear.c (linear_transform_loops): Do not call
2516 flow_loop_scan. Use loop->single_exit.
2517 * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
2518 (vect_analyze_loop_form): Do not call flow_loop_scan.
2519 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
2521 (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
2523 * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
2524 slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
2525 slpeel_tree_duplicate_loop_to_edge_cfg,
2526 slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
2527 Use loop_preheader_edge and loop->single_exit. Do not call
2530 2005-03-01 Nick Clifton <nickc@redhat.com>
2532 * config/arm/arm.c (thumb_find_work_register): Check all of the
2533 argument registers to see if they are free, and a couple of
2534 special cases where the last argument register but can be proved
2535 to be available during the function's prologue.
2536 (print_multi_reg, arm_compute_save_reg0_reg12_mask,
2537 output_return_instruction, emit_multi_reg_push, thumb_pushpop,
2538 thumb_unexpanded_epilogue): Use unsigned long as the type for the
2540 (thumb_compute_save_reg_mask): Likewise. Also use
2541 thumb_find_work_register() to ensure that there is agreement about
2542 which work register is going to be used in the prologue.
2543 (thumb_output_function_prologue): Use unsigned long as the type
2544 for the register bit-mask. Also delay pushing the link register if
2545 other high registers are going to be pushed.
2546 (thumb_compute_save_reg_mask, emit_multi_reg_push,
2547 print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
2548 redundant prototypes.
2550 2005-02-28 John David Anglin <dave.anglin#nrc-cnrc.gc.ca>
2553 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
2554 and after reload in REG+REG indexed addresses without REG_POINTER
2555 set in the base and not set in the index.
2557 2005-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
2559 * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
2560 Don't undefine here.
2561 (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
2562 (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
2563 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
2564 (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
2565 LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
2567 * config.gcc (sh*-*-linux*): Use config/linux.h.
2569 2005-02-28 Dale Johannesen <dalej@apple.com>
2570 Stan Shebs <shebs@apple.com>
2572 Rewrite of 64-bit Darwin structure-by-value pass/return.
2573 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
2574 intoffset, use_stack, named.
2575 * config/rs6000/rs6000.c (rs6000_darwin64_function_arg): Remove.
2576 (rs6000_darwin64_record_arg_advance_flush): New.
2577 (rs6000_darwin64_record_arg_advance_recurse): New.
2578 (rs6000_darwin64_record_arg_flush): New.
2579 (rs6000_darwin64_record_arg_recurse): New.
2580 (rs6000_darwin64_record_arg): New.
2581 (rs6000_return_in_memory): Remove AGGREGATE_TYPE_P check.
2582 (function_arg_boundary): Handle 128-bit aligned structs.
2583 (function_arg_advance): Rewrite darwin64 struct handling.
2584 (function_arg): Call rs6000_darwin64_record_arg.
2585 (function_arg_partial_nregs): Handle darwin64 structs.
2586 (rs6000_darwin64_function_value): Remove.
2587 (rs6000_function_value): Call rs6000_darwin64_record_arg.
2589 2005-02-28 Roger Sayle <roger@eyesopen.com>
2591 PR tree-optimization/20216
2592 * tree-chrec.c (tree_fold_factorial): Delete.
2593 (tree_fold_binomial): Change argument list to take a return type
2594 and change the type of K to unsigned int. Rewrite to avoid explicit
2595 evaluation of factorials, and (recursively) calling fold to perform
2596 compile-time arithmetic. Return NULL on (internal) overflow.
2597 (chrec_evaluate): Change type of K to an unsigned int. Avoid
2598 calling tree_fold_binomial unnecessarily. Return chrec_dont_know
2599 if any intermediate calculation overflows.
2600 (chrec_apply): Update call to chrec_evaluate.
2602 2005-02-28 James E Wilson <wilson@specifixinc.com>
2604 * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
2606 2005-02-28 Joseph S. Myers <joseph@codesourcery.com>
2609 * c-parser.c (c_parser_compound_statement): Return error_mark_node
2610 instead of NULL_TREE on error.
2612 2005-02-28 David Edelsohn <edelsohn@gnu.org>
2614 * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
2615 (EASY_VECTOR_15_ADD_SELF): Remove.
2616 (num_insns_constant_wide): Not static.
2617 (validate_condition_mode): Not static.
2618 (toc_relative_expr_p): Not static.
2619 (legitimate_indirect_address_p): Not static.
2620 (macho_lo_sum_memory_operand): Not static.
2621 (invalid_e500_subreg): Not static.
2622 (easy_vector_same): Not static.
2623 (easy_vector_splat_const): Not static.
2624 (RS6000_SYMBOL_REF_TLS_P): Remove.
2625 (any_operand): Delete.
2626 (any_parallel_operand): Delete.
2627 (count_register_operand): Delete.
2628 (altivec_register_operand): Delete.
2629 (xer_operand): Delete.
2630 (s8bit_cint_operand): Delete.
2631 (short_cint_operand): Delete.
2632 (u_short_cint_operand): Delete.
2633 (non_short_cint_operand): Delete.
2634 (exact_log2_cint_operand): Delete.
2635 (gpc_reg_operand): Delete.
2636 (cc_reg_operand): Delete.
2637 (cc_reg_not_cr0_operand): Delete.
2638 (reg_or_short_operand): Delete.
2639 (reg_or_neg_short_operand): Delete.
2640 (reg_or_aligned_short_operand): Delete.
2641 (reg_or_u_short_operand): Delete.
2642 (reg_or_cint_operand): Delete.
2643 (reg_or_arith_cint_operand): Delete.
2644 (reg_or_add_cint64_operand): Delete.
2645 (reg_or_sub_cint64_operand): Delete.
2646 (reg_or_logical_cint_operand): Delete.
2647 (got_operand): Delete.
2648 (got_no_const_operand): Delete.
2649 (easy_fp_constant): Delete.
2650 (easy_vector_constant): Delete.
2651 (easy_vector_constant_add_self): Delete.
2652 (zero_constant): Delete.
2653 (zero_fp_constant): Delete.
2654 (volatile_mem_operand): Delete.
2655 (offsettable_mem_operand): Delete.
2656 (mem_or_easy_const_operand): Delete.
2657 (add_operand): Delete.
2658 (non_add_cint_operand): Delete.
2659 (logical_operand): Delete.
2660 (non_logical_cint_operand): Delete.
2661 (mask_operand): Delete.
2662 (mask_operand_wrap): Delete.
2663 (mask64_operand): Delete.
2664 (mask64_2_operand): Delete.
2665 (and64_operand): Delete.
2666 (and64_2_operand): Delete.
2667 (and_operand): Delete.
2668 (reg_or_mem_operand): Delete.
2669 (lwa_operand): Delete.
2670 (symbol_ref_operand): Delete.
2671 (call_operand): Delete.
2672 (current_file_function_operand): Delete.
2673 (input_operand): Delete.
2674 (rs6000_nonimmediate_operand): Delete.
2675 (rs6000_tls_symbol_ref): Delete.
2676 (save_world_operation): Delete.
2677 (restore_world_operation): Delete.
2678 (load_multiple_operation): Delete.
2679 (store_multiple_operation): Delete.
2680 (vrsave_operation): Delete.
2681 (mfcr_operation): Delete.
2682 (mtcrf_operation): Delete.
2683 (lmw_operation): Delete.
2684 (stmw_operation): Delete.
2685 (branch_comparison_operator): Delete.
2686 (branch_positive_comparison_operator): Delete.
2687 (scc_comparison_operator): Delete.
2688 (trap_comparison_operator): Delete.
2689 (boolean_operator): Delete.
2690 (boolean_or_operator): Delete.
2691 (min_max_operator): Delete.
2692 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
2693 (EASY_VECTOR_15): Moved to here.
2694 (EASY_VECTOR_15_ADD_SELF): Move to here.
2695 (PREDICATE_CODES): Delete.
2696 * config/rs6000/rs6000-protos.h: Delete predicate functions.
2697 Declare functions no longer static.
2698 * config/rs6000/predicates.md: New.
2699 * config/rs6000/rs6000.md: Include predicates.md
2701 2005-02-28 Kazu Hirata <kazu@cs.umass.edu>
2703 * calls.c (emit_call_1): Don't use REG_ALWAYS_RETURN.
2704 (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
2706 * cfgrtl.c (need_fake_edge_p): Likewise.
2707 * combine.c (distribute_notes): Likewise.
2708 * emit-rtl.c (try_split): Likewise.
2709 * recog.c (peephole2_opimize): Likewise.
2710 * reg-notes.def (ALWAYS_RETURN): Remove.
2711 * rtl.h (LCT_ALWAYS_RETURN): Remove.
2712 * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
2713 * tree.h (ECF_ALWAYS_RETURN): Remove.
2715 2005-02-28 Roger Sayle <roger@eyesopen.com>
2718 * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
2719 between different machine modes is never a "useless" conversion.
2721 2005-02-28 Geert Bosch <bosch@gnat.com>
2724 * doc/contrib.texi: List contributors for Ada front end
2726 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2728 * simplify-rtx.c (simplify_unary_operation_1,
2729 simplify_const_unary_operation): New, extracted from...
2730 (simplify_unary_operation): ... this one.
2731 (simplify_binary_operation_1,
2732 simplify_const_binary_operation): New, extracted from...
2733 (simplify_binary_operation): ... this one.
2734 * rtl.h (simplify_const_unary_operation,
2735 simplify_const_binary_operation): Add prototypes.
2737 2005-02-28 Julian Brown <julian@codesourcery.com>
2739 * config/elfos.h: Revert my patch from 2005-02-25 since it broke
2740 building libjava and caused PR regression/20228.
2742 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2745 * Makefile.in (host_subdir): New.
2746 (build_objdir): New. Replace ../$(build_subdir) with it throughout.
2747 * configure: Regenerate.
2749 2005-02-27 Zack Weinberg <zack@codesourcery.com>
2751 * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
2752 * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
2753 installation directory first.
2755 2005-02-28 Hans-Peter Nilsson <hp@axis.com>
2758 * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
2759 not including (reg). Do not check for reg being CRIS_PC_REGNUM.
2760 (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
2761 * config/cris/cris.md: Tweak comments referring to Q.
2762 ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
2763 ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
2764 ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
2765 ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
2766 ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
2767 Insert spaces in constraints to align alternatives vertically for
2769 ("cmphi"): Ditto. Add separate alternative for operand 0 "r",
2772 2005-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2774 PR rtl-optimization/17728
2775 * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
2776 operand 0 from general_operand to move_dest_operand.
2778 2005-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2780 * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
2781 instead of trying to save and restore TREE_SYMBOL_REFERENCED.
2782 * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
2783 (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
2785 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
2787 * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
2788 * configure: Regenerate.
2789 * libada-mk.in: Remove CC; rename
2790 cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
2792 2005-02-26 Andrew Pinski <pinskia@physics.uc.edu>
2795 * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
2796 for the lhs, also walk over the tree. Likewise for rhs.
2798 2005-02-26 Zdenek Dvorak <dvorakz@suse.cz>
2800 * tree-ssa-dom.c (simple_iv_increment_p): New function.
2801 (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
2802 Do not propagate value of iv before increment over the increment.
2804 2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
2806 * c-parser.c: New file.
2807 * c-parse.in: Remove.
2808 * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
2810 (c-parser.o): Add dependencies.
2811 (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
2812 maintainer-clean, TAGS): Update.
2813 * c-config-lang.in (gtfiles): Update.
2814 * gengtype-lex.l: Don't handle "@@".
2815 * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
2816 objc_build_synchronized, objc_begin_try_stmt,
2817 objc_begin_catch_clause, objc_finish_catch_clause,
2818 objc_build_finally_clause, objc_finish_try_stmt): New.
2819 * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
2821 (c_parse_init): Update comment.
2822 * c-decl.c (c_init_decl_processing): Update comment.
2823 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2824 declspecs_add_scspec, declspecs_add_attrs): Initialize and update
2825 new c_declspecs members.
2827 2005-02-25 Julian Brown <julian@codesourcery.com>
2829 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
2830 from being used for symbols with vague linkage when
2831 HAVE_GAS_COMDAT_GROUP is true.
2833 2005-02-25 Mark Mitchell <mark@codesourcery.com>
2835 * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
2837 2005-02-25 Steve Ellcey <sje@cup.hp.com>
2840 * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
2841 (LIBGCC2_HAS_DF_MODE): New.
2842 (LIBGCC2_HAS_XF_MODE): New.
2843 (LIBGCC2_HAS_TF_MODE): New.
2844 * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2845 (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2846 * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2847 (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2848 (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
2849 * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
2850 and add _fixtfdi, _fixunstfdi, _floatditf
2851 * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
2852 L_fixunstfdi, L_floatditf.
2853 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
2854 (LIBGCC2_HAS_TF_MODE): Define.
2856 2005-02-25 Diego Novillo <dnovillo@redhat.com>
2858 PR tree-optimization/20204
2859 * tree-into-ssa.c (insert_phi_nodes_for): Do not use
2860 REWRITE_THIS_STMT markers on PHI nodes.
2861 (rewrite_initialize_block): Likewise.
2863 2005-02-25 Mark Mitchell <mark@codesourcery.com>
2865 * version.c (version_string): Update to 4.1.
2867 2005-02-25 Paolo Carlini <pcarlini@suse.de>
2869 * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
2870 Clarify that the alternative way doesn't work in GNU C++.
2872 2005-02-25 Zdenek Dvorak <dvorakz@suse.cz>
2874 PR tree-optimization/19937
2875 * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
2876 to the type of the induction variable.
2878 2005-02-25 Kaz Kojima <kkojima@gcc.gnu.org>
2880 PR rtl-optimization/20117
2881 * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
2882 the block including noncopyable insn.
2884 2005-02-24 Kazu Hirata <kazu@cs.umass.edu>
2886 * cse.c (delete_trivially_dead_insns): Speed up by minimizing
2887 calls to find_reg_note.
2889 2005-02-24 Richard Henderson <rth@redhat.com>
2892 * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
2895 2005-02-24 Fariborz Jahanian <fjahanian@apple.com>
2897 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
2898 vector types if to use base reg for misaligned non-word ld/std.
2900 2005-02-24 Hans-Peter Nilsson <hp@axis.com>
2903 * config/cris/cris.c (cris_target_asm_function_prologue): Create
2904 dwarf2 label manually and put it after, not before the prologue.
2906 2005-02-24 David Edelsohn <edelsohn@gnu.org>
2909 * reload.c (operands_match_p): Only increment register number for
2910 SCALAR_INT_MODE_P modes in multiple hard registers.
2912 * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
2915 2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2917 * ChangeLog.5: Fix log message typo(s).
2918 * ChangeLog.7: Likewise.
2919 * ChangeLog.tree-ssa: Likewise.
2920 * cfgexpand.c: Fix comment typo(s).
2921 * conflict.c: Likewise.
2922 * defaults.h: Likewise.
2923 * dwarf2out.c: Likewise.
2925 * ggc-page.c: Likewise.
2926 * tree-eh.c: Likewise.
2927 * tree-ssa-dom.c: Likewise.
2929 2005-02-24 Jakub Jelinek <jakub@redhat.com>
2932 * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
2933 * config/rs6000/darwin-ldouble.c: Only use the .symver directives
2934 if SHARED is defined.
2937 * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
2938 allow splitting only if operands 0 and 3 don't overlap.
2940 2005-02-24 Richard Henderson <rth@redhat.com>
2943 * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
2944 (fold_builtin_1): Call them.
2945 * fold-const.c (fold_complex_mult_parts): Split out from ...
2946 (fold_complex_mult): ... here. Fix typo in both imaginary case.
2947 (fold_complex_div_parts, fold_complex_div): New.
2949 * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
2951 2005-02-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2953 * tree-ssa-ccp.c (visit_assignment): Verify that result of
2954 VIEW_CONVERT_EXPR is_gimple_min_invariant.
2956 * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
2957 (print_node): Likewise.
2958 Print TYPE_SIZES_GIMPLIFIED.
2960 2005-02-24 Hans-Peter Nilsson <hp@axis.com>
2962 * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
2963 ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
2964 operands as commutative in constraints.
2966 2005-02-24 Diego Novillo <dnovillo@redhat.com>
2968 * tree-into-ssa.c: Re-organize internal functions.
2970 2005-02-24 Richard Henderson <rth@redhat.com>
2973 * c-opts.c (c_common_post_options): Set flag_complex_method to 2
2975 * common.opt (fcx-limited-range): New.
2976 * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
2977 * toplev.c (flag_complex_method): Initialize to 1.
2978 (process_options): Set flag_complex_method to 0 if
2979 flag_cx_limited_range.
2980 * doc/invoke.texi (-fcx-limited-range): New.
2982 2005-02-24 Kazu Hirata <kazu@cs.umass.edu>
2984 * cse.c (delete_trivially_dead_insns): Speed up by using
2985 NEXT_INSN and PREV_INSN directly instead of next_real_insn and
2988 2005-02-24 Andrea Tarani <andrea.tarani@gilbarco.com>
2990 * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
2991 functions when -mid-shared-library is being used.
2993 2005-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2995 * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
2996 (LINK_LIBGCC_SPECIAL_1): Don't mention it.
2997 * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
2998 * system.h: Poison LINK_LIBGCC_SPECIAL.
3000 2005-02-23 James E Wilson <wilson@specifixinc.com>
3002 * gengtype.c (note_insn_name): Make 1 element larger.
3004 2005-02-23 Roger Sayle <roger@eyesopen.com>
3007 PR rtl-optimization/20097
3008 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
3009 BImode SUBREGs of SImode registers which confuse the ia64 backend.
3011 2005-02-23 David Edelsohn <edelsohn@gnu.org>
3013 * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
3014 * t-aix52 (SHLIB_INSTALL): Same.
3016 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
3018 * genpreds.c: Update copyright.
3020 2005-02-23 Michael Beach <michaelb@ieee.org>
3023 * config/sparc/t-elf (startup files): Assemble with CPP.
3025 2005-02-23 Paolo Bonzini <bonzini@gnu.org>
3027 * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
3028 (write_predicate_expr): Likewise.
3030 2005-02-22 Diego Novillo <dnovillo@redhat.com>
3032 PR tree-optimization/20100
3033 PR tree-optimization/20115
3034 * tree-optimize.c (init_tree_optimization_passes): Remove
3035 pass_maybe_create_global_var.
3036 * tree-pass.h (pass_maybe_create_global_var): Remove.
3037 * tree-ssa-alias.c (aliases_computed_p): Declare.
3038 (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
3039 (count_calls_and_maybe_create_global_var): Remove.
3040 (pass_maybe_create_global_var): Remove.
3041 (init_alias_info): Do not declare aliases_computed_p.
3042 (maybe_create_global_var): If the function contains no
3043 call-clobbered variables and a mix of pure/const and regular
3044 function calls, create .GLOBAL_VAR.
3045 Mark all call-clobbered variables for renaming.
3046 (merge_pointed_to_info): Update comment.
3047 (add_pointed_to_var): Likewise.
3048 (is_escape_site): Likewise.
3049 Accept struct alias_info * instead of size_t *.
3051 Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
3053 * tree-ssa-operands.c (get_call_expr_operands): If
3054 ALIASES_COMPUTED_P is false, do not add call-clobbering
3056 * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
3057 (delete_tree_ssa): Likewise.
3059 2005-02-22 James E Wilson <wilson@specifixinc.com>
3061 * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
3062 (do_compile): Do call it here.
3064 2005-02-22 Kazu Hirata <kazu@cs.umass.edu>
3066 PR rtl-optimization/20017.
3067 * passes.c (rest_of_handle_combine, rest_of_handle_cse,
3068 rest_of_handle_cse2, rest_of_handle_gcse): Call
3069 delete_dead_jumptables immediately before calling cleanup_cfg.
3071 2005-02-22 Devang Patel <dpatel@apple.com>
3074 * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
3077 2005-02-22 David Edelsohn <edelsohn@gnu.org>
3079 * config/rs6000/aix.h (WINT_TYPE): Define.
3081 2005-02-22 Stan Shebs <shebs@apple.com>
3083 * config/rs6000/rs6000.c (rs6000_override_options): Default to
3084 natural alignment for 64-bit Darwin.
3085 (rs6000_parse_alignment_option): Warn about uses of -malign-power
3087 * doc/invoke.texi: Document this.
3089 2005-02-22 DJ Delorie <dj@redhat.com>
3091 * c-common.c (c_common_type_for_mode): Pass the mode's precision
3092 to make_[un]signed_type, not the mode itself.
3094 2005-02-22 Kazu Hirata <kazu@cs.umass.edu>
3096 * cfg.c (cached_make_edge): Call make_edge if edge cache is
3097 not available. Use tail calls wherever possible.
3098 (make_edge): Call unchecked_make_edge to create an edge.
3100 * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
3101 (coalesce_ssa_name): Don't check for
3102 SSANORM_USE_COALESCE_LIST.
3103 (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
3105 2005-02-22 Diego Novillo <dnovillo@redhat.com>
3107 * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
3108 (rewrite_into_ssa): ... here.
3110 2005-02-21 Alexandre Oliva <aoliva@redhat.com>
3112 PR tree-optimization/19786
3113 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
3114 tag to another's may-alias bitmap when adding to the other's list.
3116 2005-02-21 DJ Delorie <dj@redhat.com>
3118 * tree-ssa-loop-ivopts.c (computation_cost): Start register
3119 numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
3120 registers in unsupported ways.
3121 * expmed.c (init_expmed): Likewise.
3123 2005-02-21 Stan Cox <scox@redhat.com>
3125 * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
3127 2005-02-21 Kazu Hirata <kazu@cs.umass.edu>
3129 * tree-cfg.c (fold_cond_expr_cond): New.
3130 (make_edges): Call fold_cond_expr_cond.
3131 (find_taken_edge): Accept nothing but INTEGER_CST.
3132 (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
3134 (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
3136 * flow.c (delete_dead_jumptables): Speed up by scanning insns
3137 that do not belong to any basic block.
3139 2005-02-21 Jeff Law <law@redhat.com>
3141 * cfganal.c (find_unreachable_blocks): Manually CSE load of
3144 2005-02-21 Kazu Hirata <kazu@cs.umass.edu>
3146 * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
3147 (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
3148 Adjust their definitions.
3149 (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
3150 (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
3152 * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
3153 genautomata.c, langhooks.c, langhooks.h, system.h,
3154 config/arm/lib1funcs.asm: Update copyright.
3156 2005-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3158 * dbxout.c (dbxout_function_end): Emit Lscope label always.
3160 2005-02-21 Richard Guenther <rguenth@gcc.gnu.org>
3163 * doc/install.texi: Document --with-gc.
3165 2005-02-21 Paolo Bonzini <bonzini@gnu.org>
3167 * simplify-rtx.c (simplify_unary_operation): Add a missing
3170 2005-02-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3172 PR tree-optimization/18663
3173 * tree-ssa-dom.c (extract_range_from_cond): Return 0
3174 if the type has variable bounds.
3176 2005-02-20 Kazu Hirata <kazu@cs.umass.edu>
3178 * gcse.c: Remove an obsolete comment.
3180 * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
3182 2005-02-20 Hans-Peter Nilsson <hp@axis.com>
3184 * doc/extend.texi (Function Attributes) <Attribute const>: The
3185 attribute "pure" is below this text, not above.
3187 2005-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3189 * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
3190 (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
3191 * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
3193 2005-02-20 Zack Weinberg <zack@codesourcery.com>
3196 * langhooks.h (struct lang_hooks): Add to_target_charset.
3197 * langhooks.c (lhd_to_target_charset): New function.
3198 * langhooks-def.h: Declare lhd_to_target_charset.
3199 (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
3200 (LANG_HOOKS_INITIALIZER): Update.
3201 * c-common.c (c_common_to_target_charset): New function.
3202 * c-common.h: Declare it.
3203 * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
3204 c_common_to_target_charset.
3206 * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
3207 (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
3209 * system.h: Poison them.
3210 * doc/tm.texi: Don't discuss them.
3211 * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
3212 * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
3213 (pp_c_char): Do not attempt to generate letter escapes for
3215 * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
3216 * config/mips/mips.c (mips_output_ascii): Likewise.
3218 2005-02-20 Dorit Naishlos <dorit@il.ibm.com>
3220 PR tree-optimization/19951
3221 * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
3224 2005-02-19 Steven Bosscher <stevenb@suse.de>
3227 * function.h (struct function): New field `max_loop_depth'.
3228 * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
3229 (flow_loops_find): Reset the max loop depth count before finding loops.
3230 * flow.c (MAX_LIVENESS_ROUNDS): New constant.
3231 (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
3232 (calculate_global_regs_live): Make sure the loop will terminate
3233 when the initial sets are not empty.
3235 2005-02-19 Zack Weinberg <zack@codesourcery.com>
3237 * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
3239 * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
3241 2005-02-19 Richard Sandiford <rsandifo@redhat.com>
3244 * doc/invoke.texi: Remove documentation of %M spec.
3246 (init_spec): Remove %M suffix from -lgcc_s.
3247 (do_spec_1): Remove 'M' case.
3248 * mklibgcc.in: Remove SHLIB_MULTILIB handling. Expect SHLIB_LINK
3249 to put shared libraries in the multilib directory. Remove the
3250 shlib_so_soname substitution variable. Don't add a multilib encoding
3251 to shlib_base_name. Set shlib_slibdir_qual to the full pathname
3252 reported by -print-multi-os-directory. Pass @multilib_dir@ to
3253 SHLIB_INSTALL as well as SHLIB_LINK.
3254 * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
3255 (SHLIB_NAME): Delete.
3256 (SHLIB_DIR): New macro.
3257 (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
3258 (SHLIB_INSTALL): Adjust accordingly.
3259 * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
3260 * config/t-slibgcc-sld: Likewise.
3261 * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
3262 (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
3263 (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
3265 (SHLIBUNWIND_INSTALL): Adjust accordingly.
3266 * config/i386/t-nwld (SHLIB_SONAME): Delete.
3267 (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
3268 Use @shlib_base_name@ instead of @shlib_so_name@.
3269 * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
3270 and @shlib_base_name@.so in @multilib_dir@.
3271 (SHLIB_INSTALL): Adjust accordingly. Add @shlib_slibdir_qual@
3272 to the install path.
3273 * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
3274 (SHLIB_LINK): Remove previous workaround.
3275 * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
3276 (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
3277 (SHLIB_INSTALL): Adjust accordingly. Add $(SHLIB_SLIBDIR_QUAL) to
3279 * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
3280 @multilib_dir@. Use @multilib_dir@ to check for threading libraries.
3281 (SHLIB_INSTALL): Adjust accordingly.
3282 (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
3283 * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
3284 * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
3285 config/t-slibgcc-elf-ver.
3287 2005-02-19 Zdenek Dvorak <dvorakz@suse.cz>
3288 Jakub Jelinek <jakub@redhat.com>
3290 PR tree-optimization/19828
3291 * tree-ssa-loop-im.c: Add a TODO comment.
3292 (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
3293 without side-effects.
3295 2005-02-18 James A. Morrison <phython@gcc.gnu.org>
3297 * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
3300 2005-02-18 James E. Wilson <wilson@specifixinc.com>
3302 * doc/invoke.texi (IA-64 Options): Delete -mb-step.
3303 * config/ia64/ia64.c (last_group, group_idx): Delete variables.
3304 (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
3306 (ia64_reorg): Delete fixup_errata call.
3307 * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
3308 (TARGET_SWITCHES): Delete -mb-step entry.
3310 2005-02-19 Jakub Jelinek <jakub@redhat.com>
3313 * c-typeck.c (composite_type): Handle quals in transparent unions.
3314 (type_lists_compatible_p): Likewise.
3316 2005-02-18 Stan Shebs <shebs@apple.com>
3318 * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
3319 expressions in the .literal8 section.
3321 2005-02-18 Geoffrey Keating <geoffk@apple.com>
3323 * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
3325 2005-02-18 Roger Sayle <roger@eyesopen.com>
3327 * fold-const.c (constant_boolean_node): Always create values of the
3328 specified type, don't bother calling truthvalue_conversion.
3330 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
3332 * except.c (output_function_exception_table): Call
3333 assemble_external_libcall (eh_personality_libfunc).
3335 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
3338 * config/ia64/ia64.h (struct machine_function): Add state_num.
3339 * config/ia64/ia64.c (process_epilogue,
3340 process_for_unwind_directive): Use new unwind state numbers each
3341 time rather than state 1.
3343 2005-02-18 Ulrich Weigand <uweigand@de.ibm.com>
3346 * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
3347 before the "*llgt_didi" pattern.
3349 2005-02-18 Jason Merrill <jason@redhat.com>
3351 * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
3353 2005-02-18 Richard Earnshaw <rearnsha@arm.com>
3355 * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
3356 (div0): Use it in place of ARM_FUNC_ALIAS.
3357 (lshrdi3, ashrdi3, ashlrdi3): Likewise.
3359 2005-02-18 Andrew Pinski <pinskia@physics.uc.edu>
3362 * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
3363 access, the lower bound of the array type if it exists.
3365 2005-02-18 Alexandre Oliva <aoliva@redhat.com>
3368 * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
3369 cases that are out-of-range for the index type.
3371 2005-02-18 James A. Morrison <phython@gcc.gnu.org>
3373 * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
3374 (estimate_case_costs): Don't call convert.
3375 * expmed.c (expand_shift): Likewise.
3376 (make_tree): Call fold_convert instead of convert.
3378 2005-02-18 Jakub Jelinek <jakub@redhat.com>
3381 * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
3382 that ref to be marked MEM_READONLY_P doesn't have base that needs
3385 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
3387 * genautomata.c (output_get_cpu_unit_code_func,
3388 output_cpu_unit_reservation_p): Don't generate old-style function
3391 2005-02-18 Jakub Jelinek <jakub@redhat.com>
3394 PR tree-optimization/20009
3395 * convert.c (convert_to_integer): Revert 2005-02-16 change.
3397 PR tree-optimization/18947
3398 * cgraphunit.c (cgraph_finalize_function): When redefining an extern
3399 inline, remove all nodes that are inlined into the extern inline
3402 2005-02-17 Kazu Hirata <kazu@cs.umass.edu>
3404 * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
3405 loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
3406 tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
3407 config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
3410 2005-02-17 Roger Sayle <roger@eyesopen.com>
3412 PR tree-optimization/19917
3413 * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
3414 to be potentially trapping.
3416 2005-02-17 Kazu Hirata <kazu@cs.umass.edu>
3418 * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
3420 2005-02-17 Andreas Krebbel <krebbel1@de.ibm.com>
3422 * builtins.c (expand_builtin_return_addr): Remove tem parameter.
3423 tem becomes a local variable which is set to the value of the
3424 back end defined INITIAL_FRAME_ADDRESS macro.
3425 (expand_builtin_frame_address): Omit the base parameter to
3426 expand_builtin_return_addr.
3427 (expand_builtin_profile_func): Likewise.
3428 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
3429 (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
3430 * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
3432 2005-02-17 Jakub Jelinek <jakub@redhat.com>
3434 * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
3435 s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
3436 * config/frv/frv.c (frv_function_epilogue): Likewise.
3438 2005-02-17 Daniel Berlin <dberlin@dberlin.org>
3440 * lambda-code (perfect_nestify): Remove mark/unmark
3442 * tree-loop-linear.c (linear_transform_loops): Add
3443 rewrite_into_ssa call so that ssa is correct for
3444 rewriting into loop closed.
3446 2005-02-17 Nathan Sidwell <nathan@codesourcery.com>
3448 * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
3449 * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
3451 * bt-load.c (btr_def_live_range, combine_btr_defs,
3452 migrate_btr_def, migrate_btr_defs): Likewise.
3453 * cfgcleanup.c (thread_jump): Likewise.
3454 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
3455 * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
3456 df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
3457 df_rd_local_compute, df_reg_info_compute): Likewise.
3458 * dominance.c (init_dom_info, free_dom_info): Likewise.
3459 * flow.c (init_propagate_block_info,
3460 free_propagate_block_info): Likewise.
3461 * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
3462 * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
3463 modify_reg_pav): Likewise.
3464 * loop-invariant.c (find_defs, find_invariant_insn,
3465 find_invariants, free_inv_motion_data): Likewise.
3466 * predict.c (tree_predict_by_opcode,
3467 estimate_bb_frequencies): Likewise.
3468 * stmt.c (expand_case): Likewise.
3469 * tree-cfg.c (tree_duplicate_sese_region): Likewise.
3470 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3471 * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
3472 * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
3473 get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
3474 rewrite_ssa_into_ssa): Likewise.
3475 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3476 * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
3477 analyze_edges_for_bb, perform_edge_inserts): Likewise.
3478 * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
3479 * tree-sra.c (tree_sra): Likewise.
3480 * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
3481 * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
3482 * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
3483 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3484 * tree-ssa-dse.c (tree_ssa_dse): Likewise.
3485 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
3487 * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
3488 calculate_live_on_entry, calculate_live_on_exit,
3489 build_tree_conflict_graph): Likewise.
3490 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
3491 record_important_candidates, set_use_iv_cost, find_depends,
3492 determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
3493 tree_ssa_iv_optimize_finalize): Likewise.
3494 * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
3495 find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
3496 tree_duplicate_loop_to_header_edge): Likewise.
3497 * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
3498 * tree-ssa.c (verify_flow_insensitive_alias_info,
3499 verify_name_tags, verify_ssa, init_tree_ssa,
3500 delete_tree_ssa): Likewise.
3501 * tree-ssanames.c (marked_ssa_names, init_ssanames,
3502 fini_ssanames): Likewise.
3503 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
3505 2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
3507 * config/rs6000/t-rtems: Completely reworked.
3509 2005-02-17 Ira Rosen <irar@il.ibm.com>
3511 * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
3513 2005-02-17 Ira Rosen <irar@il.ibm.com>
3515 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
3516 POINTER_TYPE_P when checking that type is a pointer.
3517 (vect_get_memtag): Remove.
3518 (vect_address_analysis): Use POINTER_TYPE_P. Call
3519 vect_object_analysis with dummy parameter for memtag.
3520 (vect_object_analysis): Extract memtag (functionality that
3521 used to be in vect_get_memtag and moved here). Fix printings.
3522 (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
3523 with correct parameters. Remove call to vect_get_memtag.
3525 2005-02-17 Dorit Naishlos <dorit@il.ibm.com>
3527 * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
3528 (tree-vectorizer.o): Added missing dependencies.
3530 * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
3532 (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
3533 declaration in tree-vectorizer.c, now has an extern declaration in
3535 (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
3536 slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3537 get_vectype_for_scalar_type, vect_is_simple_use,
3538 vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3539 vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
3540 new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
3541 vectorizable_store, vectorizable_operation, vectorizable_assignment,
3542 vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
3543 find_loop_location): Likewise.
3545 * tree-vectorizer.c (langhooks.h): #include removed.
3546 (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
3547 moved to tree-vectorized.h.
3548 (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
3549 slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3550 get_vectype_for_scalar_type, vect_is_simple_use,
3551 vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3552 vect_supportable_dr_alignment, new_loop_vec_info,
3553 destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
3554 vect_set_verbosity_level, find_loop_location): Likewise.
3556 (vect_analyze_loop): Function externalized. Declaration moved to
3557 tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
3558 (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
3559 (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
3560 vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
3561 vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
3562 vect_enhance_data_refs_alignment, vect_analyze_operations,
3563 exist_non_indexing_operands_for_use_p, vect_mark_relevant,
3564 vect_stmt_relevant_p, vect_get_loop_niters,
3565 vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
3566 vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
3567 vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
3568 vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
3569 vect_get_memtag): Likewise.
3571 (vectorizable_load): Function externalized. Declaration moved to
3572 tree-vectorized.h. Function definition moved to tree-vect-transform.c.
3573 (vectorizable_store, vectorizable_operation, vectorizable_assignment,
3574 vect_transform_loop): Likewise.
3575 (vect_transform_stmt): Moved to tree-vect-transform.c.
3576 (vect_align_data_ref, vect_create_destination_var,
3577 vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
3578 vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
3579 vect_get_vec_def_for_operand, vect_init_vector,
3580 vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
3581 vect_build_loop_niters, vect_update_ivs_after_vectorizer,
3582 vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
3583 vect_update_inits_of_drs, vect_do_peeling_for_alignment,
3584 vect_do_peeling_for_loop_bound): Likewise.
3586 * tree-vect-analyze.c: New file.
3587 * tree-vect-transform.c: New file.
3589 2005-02-17 Jason Merrill <jason@redhat.com>
3591 PR mudflap/19319, c++/19317
3592 * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
3595 2005-02-17 Gerald Pfeifer <gerald@pfeifer.com>
3597 * doc/install.texi (Specific): Update link for Darwin-specific
3600 2005-02-16 James A. Morrison <phython@gcc.gnu.org>
3602 * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
3603 constant_boolean_node.
3605 2005-02-16 David Edelsohn <edelsohn@gnu.org>
3608 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
3609 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
3611 2005-02-16 Richard Henderson <rth@redhat.com>
3614 * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
3616 (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
3617 replace uses with Wtype_MAXp1_F.
3618 (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
3619 L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
3620 L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
3621 L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
3622 and HAVE_TFMODE as appropriate.
3623 (__fixunssfDI): Provide an implementation that doesn't need DFmode.
3624 (__floatdisf): Likewise.
3625 * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
3626 (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
3627 (Wtype_MAXp1_F): New.
3628 (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
3629 __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
3631 2005-02-16 Richard Earnshaw <rearnsha@arm.com>
3634 * arm.c (arm_apply_result_size): New function.
3635 * arm.h (APPLY_RESULT_SIZE): Define.
3636 * arm-protos.h (arm_apply_result_size): Add prototype.
3637 * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
3638 (movxf): New expand.
3639 (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
3640 (call_value_symbol): Remove predicate for operand 0.
3641 (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
3642 (untyped_call): Rework to correclty return values for any type.
3643 (untyped_return): New expand.
3644 * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
3646 2005-02-16 Stan Shebs <shebs@apple.com>
3648 * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
3649 * config/rs6000/t-darwin8: New, for 64-bit multilib.
3651 2005-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
3653 * doc/install.texi (sparc-sun-solaris2*): Document required GMP
3654 configure settings on Solaris 7 and later.
3656 2005-02-16 Diego Novillo <dnovillo@redhat.com>
3658 PR tree-optimization/19865
3659 * tree-optimize.c (init_tree_optimization_passes): Run
3660 pass_may_alias after pass_sra.
3662 2005-02-16 Richard Henderson <rth@redhat.com>
3663 Stuart Hastings <stuart@apple.com>
3666 * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
3667 Do nothing if debug info suppressed for this function.
3668 (dbxout_begin_function): Early exit if debug info suppressed for
3671 2005-02-16 Kazu Hirata <kazu@cs.umass.edu>
3674 * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
3676 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3678 PR tree-optimization/19967
3679 * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
3680 expand_builtin_strchr, expand_builtin_strrchr): Take a new
3681 argument TYPE. Adjust calls to fold_builtin_XXX.
3682 (expand_builtin, fold_builtin_1): Adjust calls to
3684 (fold_builtin_strchr, fold_builtin_strpbrk,
3685 fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
3686 result to a requested type TYPE.
3688 2005-02-16 Jakub Jelinek <jakub@redhat.com>
3691 * fold-const.c (fold): Don't optimize (T)(x & cst) to
3692 (T)x & (T)cst if (T)cst overflows.
3693 * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
3694 TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
3696 2005-02-15 Jeff Law <law@redhat.com>
3698 * gcse.c (blocks_with_calls): New bitmap.
3699 (alloc_gcse_mem): Allocate it.
3700 (free_gcse_mem): Free it.
3701 (clear_modifY_mem_tables): Clear it.
3702 (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
3703 when we encounter CALL_INSNs.
3704 (compute_transp, case MEM): Handle blocks with calls separate
3705 from blocks without calls. Use bitmap iterators rather than
3708 2005-02-15 Peter O'Gorman <peter@pogma.com>
3711 * mklibgcc.in (vis_hide): Use a temporary object file, not
3714 2005-02-15 Andy Hutchinson <HutchinsonAndy@netscape.net>
3717 * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
3718 access optimization.
3720 2005-02-15 David Edelsohn <edelsohn@gnu.org>
3721 Alan Modra <amodra@bigpond.net.au>
3724 * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
3725 (_xlqsub): Rename to __gcc_qsub.
3726 (_xlqmul): Rename to __gcc_qmul.
3727 (_xlqdiv): Rename to __gcc_qdiv.
3728 Provide versioned symbol aliases with old names.
3729 * config/rs6000/libgcc-ppc64.ver: Rename symbols.
3730 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
3731 * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
3732 * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
3733 * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
3735 2005-02-15 James A. Morrison <phython@gcc.gnu.org>
3737 * fold-const.c (fold): Fold -(~A) to A + 1. Fold ~(-A) to A - 1.
3738 Fold ~(A - 1) and ~(A + -1) to -A.
3740 2005-02-15 James A. Morrison <phython@gcc.gnu.org>
3744 * config/host-linux.c (linux_gt_pch_use_address): Copy from
3745 config/pa/pa-host.c:pa_gt_pch_use_address.
3747 2005-02-15 Daniel Berlin <dberlin@dberlin.org>
3749 * tree-vn.c (get_value_handle): Make sure that given an
3750 is_gimple_min_invariant expression, we always return it.
3752 2005-02-15 Kazu Hirata <kazu@cs.umass.edu>
3754 * passes.c (rest_of_handle_gcse): Fix a comment.
3756 2005-02-15 Jeff Law <law@redhat.com>
3758 * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
3760 (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
3761 (canon_list_insert, record_last_mem_set_info): Similarly.
3762 (clear_modify_mem_tables): Similarly.
3764 2005-02-15 Kazu Hirata <kazu@cs.umass.edu>
3766 * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
3767 tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
3768 config/mips/mips.md, config/rs6000/aix.h,
3769 config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
3771 2005-02-15 Richard Henderson <rth@redhat.com>
3773 * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
3774 call to be best_edge.
3776 2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
3778 * basic-block.h: Adjust the prototype for find_basic_blocks.
3779 * cfgbuild.c (find_basic_blocks): Remove unused arguments.
3780 * passes.c (rest_of_handle_loop_optimize): Adjust the call to
3783 * flow.c (recompute_reg_usage): Remove all arguments.
3784 * passes.c (rest_of_compilation): Adjust the call to
3785 recompute_reg_usage.
3786 * rtl.h: Adjust the prototype for recompute_reg_usage.
3788 2005-02-14 Daniel Berlin <dberlin@dberlin.org>
3790 * tree-dump.c (dump_files): Update to reflect new member
3792 (dump_register): Add new argument.
3794 (dump_switch_p_1): Check against glob name if doglob was passed.
3795 (dump_switch_p): Check against regular first, then glob if
3796 we didn't have any hits on the dump name.
3797 * tree-optimize.c (register_one_dump_file):
3798 Pass in glob name as well.
3799 * tree-pass.h (struct dump_file_info): Add glob
3802 2005-02-14 Joseph S. Myers <joseph@codesourcery.com>
3804 PR preprocessor/16323
3805 * doc/invoke.texi: Document that -Wendif-labels is on by default.
3807 2005-02-14 David Edelsohn <edelsohn@gnu.org>
3810 * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
3811 (trunctfdf2_internal1): New.
3812 (trunctfdf2_internal2): Renamed from trunctfdf2.
3814 2005-02-14 Diego Novillo <dnovillo@redhat.com>
3816 PR tree-optimization/19853
3817 * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
3819 2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
3821 * passes.c (rest_of_handle_loop_optimize): Remove calls to
3822 delete_dead_jumptables and cleanup_cfg.
3824 2005-02-14 Ulrich Weigand <uweigand@de.ibm.com>
3826 * reload.c (find_reloads): Swap address_reloaded flags when
3827 swapping commutative operands.
3829 2005-02-14 Sebastian Pop <pop@cri.ensmp.fr>
3831 * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
3832 Use standard_iv_increment_position for computing the bsi position
3834 * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
3837 2005-02-13 Zdenek Dvorak <dvorakz@suse.cz>
3840 * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
3841 life range of hard registers.
3842 * value-prof.c (insn_prefetch_values_to_profile): Only
3845 * value-prof.c (rtl_find_values_to_profile): Do not look for values to
3846 profile in libcalls.
3848 2005-02-13 Nathan Sidwell <nathan@codesourcery.com>
3850 * bitmap.h (bitmap_and_compl_into): Return bool.
3851 * bitmap.c (bitmap_and_compl_into): Return changed flag.
3853 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
3855 PR tree-optimization/19944
3856 * fold-const.c (fold): Re-add ABS_EXPR folding.
3858 2005-02-13 David Edelsohn <edelsohn@gnu.org>
3861 * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
3862 {TARGET,MASK}_XL_COMPAT.
3863 (SUBTARGET_SWITCHES): Rename xl-call to xl-compat. Use
3865 * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
3866 * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
3868 (rs6000_arg_partial_bytes): Same.
3869 (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
3870 and XL compatibility enabled.
3871 * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
3872 * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
3873 test to final condition.
3874 (cmptf_internal2): New.
3875 * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
3876 xl-compat. Add TFmode information to description.
3878 2005-02-13 Kazu Hirata <kazu@cs.umass.edu>
3880 * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
3882 2005-02-13 Jason Merrill <jason@redhat.com>
3885 * fold-const.c (fold_indirect_ref_1): Split out from...
3886 (build_fold_indirect_ref): Here.
3887 (fold_indirect_ref): New fn.
3888 * tree.h: Declare it.
3889 * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
3890 (gimplify_modify_expr_rhs): Likewise.
3891 (gimplify_expr): Likewise.
3893 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
3895 PR tree-optimization/14303
3896 PR tree-optimization/15784
3897 * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
3898 Fold ABS_EXPR<x> < 0 to false. Fold ABS_EXPR<x> == 0 to x == 0 and
3899 ABS_EXPR<x> != 0 to x != 0.
3901 2005-02-12 Kazu Hirata <kazu@cs.umass.edu>
3903 * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
3904 simplify-rtx.c, tree-ssa-live.h: Fix comment typos. Follow
3905 spelling conventions.
3907 * passes.c (rest_of_handle_gcse): Don't run cse_main and
3908 delete_trivially_dead_insns too many times.
3910 * passes.c (rest_of_handle_gcse): Remove dead assignments to
3913 2005-02-12 Ira Rosen <irar@il.ibm.com>
3915 * tree-vectorizer.c (vect_get_base_and_offset): Remove.
3916 (vect_is_simple_iv_evolution): Remove redundant parameter
3918 (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
3919 without last parameter.
3920 (vect_analyze_pointer_ref_access): Get access_fn as parameter.
3921 Return pointer step. Call vect_is_simple_iv_evolution without
3922 last parameter. Check only that the step is multiple of size
3923 type. Remove stmt_vinfo updates.
3924 (vect_get_memtag_and_dr): Remove.
3925 (vect_get_memtag): New function.
3926 (vect_address_analysis): New function.
3927 (vect_object_analysis): New function.
3928 (vect_analyze_data_refs): Call vect_object_analysis and
3929 vect_get_memtag. Update stmt_vinfo fields.
3931 2005-02-12 Ira Rosen <irar@il.ibm.com>
3933 * tree-data-ref.c (array_base_name_differ_p): Check that the bases
3934 exist and are objects. Remove checks for pointer.
3935 * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
3936 STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
3937 (vect_create_data_ref_ptr): Likewise.
3938 (vect_base_addr_differ_p): New function.
3939 (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
3940 (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
3941 Don't set the DR_BASE_NAME field of data-ref.
3942 (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
3944 2005-02-12 Uros Bizjak <uros@kss-loka.si>
3946 * optabs.h (enum optab_index): Add new OTI_ldexp.
3947 (ldexp_optab): Define corresponding macro.
3948 * optabs.c (init_optabs): Initialize ldexp_optab.
3949 * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
3951 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
3953 (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
3954 expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
3956 * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
3957 to implement ldexpf, ldexp and ldexpl built-ins as inline x87
3960 2005-02-12 Ira Rosen <irar@il.ibm.com>
3962 * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
3964 * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
3966 (vect_get_base_and_offset): Always return an address.
3967 (vect_create_addr_base_for_vector_ref): Remove treatment for
3968 different data reference types.
3969 (vect_compute_data_ref_alignment): Rename base to base_address in
3970 stmt_vec_info. Get the object in order to force its alignment.
3971 (vect_get_memtag_and_dr): Rename base to base_address in
3972 stmt_vec_info. Extract the object for memtag analysis.
3974 2005-02-12 Hans-Peter Nilsson <hp@axis.com>
3976 PR regression/19898.
3977 * config/cris/cris.c (cris_notice_update_cc): When testing if insn
3978 changes cc_status, use apply modified_in_p to part of cc_status
3979 and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
3982 2005-02-11 Richard Henderson <rth@redhat.com>
3984 * tree-complex.c (expand_complex_libcall): New.
3985 (expand_complex_multiplication): Use it for c99 compliance.
3986 (expand_complex_division): Likewise.
3987 * fold-const.c (fold_complex_add, fold_complex_mult): New.
3989 * builtins.c (built_in_names): Remove const.
3990 * tree.c (build_common_builtin_nodes): Build complex arithmetic
3992 * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
3993 (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
3994 (built_in_names): Remove const.
3995 * c-common.c (c_common_type_for_mode): Handle complex modes.
3996 * flags.h, toplev.c (flag_complex_method): Rename from
3997 flag_complex_divide_method.
3998 * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
3999 __mulsc3, __muldc3, __mulxc3, __multc3): New.
4000 * libgcc2.h: Declare them.
4001 * libgcc-std.ver: Export them.
4002 * mklibgcc.in (lib2funcs): Build them.
4004 2005-02-11 Steven Bosscher <stevenb@suse.de>
4006 PR tree-optimization/19876
4007 Partially revert my change from 2005-01-14
4008 * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
4009 (compute_antic): ...and remove the loop here.
4011 2005-02-11 Jakub Jelinek <jakub@redhat.com>
4014 * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
4015 is number of inner's bits, avoid creating a BIT_FIELD_REF.
4017 * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
4018 crtend.o if -pie. Use %{x:a;:b} spec syntax.
4020 2005-02-11 Daniel Jacobowitz <dan@codesourcery.com>
4022 * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
4023 offsets for the big-endian 32-bit case.
4025 2005-02-11 Joseph S. Myers <joseph@codesourcery.com>
4027 * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
4029 2005-02-11 Dale Johannesen <dalej@apple.com>
4031 * cselib.c (cselib_process_insn): Clear out regs where
4032 HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
4033 * reload.c (find_equiv_reg): Ditto.
4035 2005-02-11 Ian Lance Taylor <ian@airs.com>
4037 * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
4040 * tree.c (build_function_type_list): Work correctly if there are
4043 2005-02-11 Ulrich Weigand <uweigand@de.ibm.com>
4045 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
4046 "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
4047 ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
4048 TARGET_ZARCH instead of TARGET_64BIT.
4050 2005-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>
4052 * config/rs6000/t-rtems:
4053 (MULTILIB_OPTIONS): Remove mcpu=602.
4054 (MUTLILIB_DIRNAMES): Remove m602.
4055 (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
4056 Let mcpu=602 match mcpu=603.
4057 (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
4059 2005-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4061 * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
4064 2005-02-10 David Daney <ddaney@avtrex.com>
4066 * config/alpha/linux-unwind.h: Add exception clause to copyright.
4067 * config/i386/linux-unwind.h: Likewise.
4068 * config/ia64/linux-unwind.h: Likewise.
4069 * config/mips/linux-unwind.h: Likewise.
4070 * config/pa/linux-unwind.h: Likewise.
4071 * config/rs6000/linux-unwind.h: Likewise.
4072 * config/s390/linux-unwind.h: Likewise.
4073 * config/sh/linux-unwind.h: Likewise.
4074 * config/sparc/linux-unwind.h: Likewise.
4076 2005-02-10 Steven Bosscher <stevenb@suse.de>
4078 PR tree-optimization/17549
4079 * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
4080 TER to replace a DEF with its expression if the DEF and the
4081 rhs of the expression we replace into have the same root
4084 2005-02-10 Richard Sandiford <rsandifo@redhat.com>
4086 * config/mips/mips.md: Fix the placement of the match_scratch in the
4089 2005-02-10 Kazu Hirata <kazu@cs.umass.edu>
4091 * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
4094 2005-02-10 Zdenek Dvorak <dvorakz@suse.cz>
4096 * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
4097 (strip_offset): Handle addresses.
4098 (add_address_candidates): Use strip_offset.
4099 (difference_cost): Reflect strip_offset change.
4100 (force_var_cost, difference_cost): Strip nops.
4102 2005-02-10 Kazu Hirata <kazu@cs.umass.edu>
4104 * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
4106 * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
4107 tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
4108 config/cris/cris-protos.h, config/cris/cris.c: Update
4111 2005-02-10 Jeff Law <law@redhat.com>
4113 * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
4114 (lookup_avail_expr): Similarly.
4116 2005-02-10 Richard Guenther <rguenth@gcc.gnu.org>
4118 * builtins.c (fold_builtin_powi): New function.
4119 (fold_builtin_1): Call it.
4121 2005-02-10 Steven Bosscher <stevenb@suse.de>
4123 PR documentation/19309
4124 * doc/cpp.texi: The __GNUC__ and related predefined macros
4125 are also defined for the "standalone" cpp.
4126 Some non-GCC compilers may also define __GNUC__.
4128 2005-02-10 Jakub Jelinek <jakub@redhat.com>
4131 * c-typeck.c (common_type): New routine. Old common_type renamed
4133 (c_common_type): ...this.
4134 (build_conditional_expr, build_binary_op): Use c_common_type instead
4137 2005-02-10 Steven Bosscher <stevenb@suse.de>
4139 * doc/md.texi: Replace @samp{length} with @code{length}.
4141 2005-02-09 Zdenek Dvorak <dvorakz@suse.cz>
4143 PR tree-optimization/18687
4144 * tree-flow.h (find_loop_niter): Declare.
4145 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
4146 Try using scev even for loops with more than one exit.
4147 * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
4148 (struct ivopts_data): Added niters field.
4149 (struct nfe_cache_elt): New.
4150 (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
4152 (tree_ssa_iv_optimize_init): Initialize niters cache.
4153 (determine_number_of_iterations): Removed.
4154 (find_induction_variables): Do not call determine_number_of_iterations.
4155 Access niters for single exit through niter_for_single_dom_exit.
4156 (add_iv_outer_candidates): Access niters for single exit through
4157 niter_for_single_dom_exit.
4158 (may_eliminate_iv): Take data argument. Use niter_for_exit. Do not use
4159 number_of_iterations_cond.
4160 (iv_period): New function.
4161 (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
4162 (may_replace_final_value): Take data argument. Use
4163 niter_for_single_dom_exit.
4164 (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
4165 (rewrite_use_compare): Pass data to may_eliminate_iv.
4166 (rewrite_use_outer): Pass data to may_replace_final_value.
4167 (free_loop_data): Clean up the niters cache.
4168 (tree_ssa_iv_optimize_finalize): Free the niters cache.
4169 (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
4170 * tree-ssa-loop-niter.c (find_loop_niter): New function.
4171 (find_loop_niter_by_eval): Use tree_int_cst_lt.
4172 (num_ending_zeros): Moved to tree.c.
4173 * tree.h (num_ending_zeros): Declare.
4174 * tree.c (num_ending_zeros): Moved from tree.c.
4176 2005-02-09 Richard Henderson <rth@redhat.com>
4178 * builtins.c (DEF_BUILTIN): Add COND argument.
4179 * tree.h (DEF_BUILTIN): Likewise.
4180 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
4181 DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
4183 (DEF_BUILTIN_STUB): New.
4184 (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
4185 BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
4186 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
4187 * c-common.c (DEF_BUILTIN): Add COND argument.
4188 * tree.c (local_define_builtin): New.
4189 (build_common_builtin_nodes): New.
4191 2005-02-09 Roger Sayle <roger@eyesopen.com>
4193 * fold-const.c (fold_strip_sign_ops): New function to simplify a
4194 floating point expression ignoring the sign of the result.
4195 (fold) <ABS_EXPR>: Use it to simplify fabs(x).
4196 (fold) <MULT_EXPR>: Use it to simplify x*x.
4197 * tree.h (fold_strip_sign_ops): Prototype here.
4198 * builtins.c (fold_builtin_copysign): Take an additional FNDECL
4199 argument. Use fold_strip_sign_ops to simplify the first argument.
4200 (fold_builtin_pow): Use fold_strip_sign_ops to simplify the
4201 first argument when the second argument is an even integer
4202 constant, but only with -funsafe_math_optimizations.
4203 (fold_builtin_1): Update call to fold_builtin_copysign.
4205 2005-02-09 Ian Lance Taylor <ian@airs.com>
4208 * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
4209 just check whether EH_FILTER_FAILURE falls through.
4211 2005-02-09 Andreas Krebbel <krebbel1@de.ibm.com>
4213 * gcc/haifa-sched.c (schedule_block): Make queued sched group
4214 insns return to ready list in the next turn.
4216 2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
4219 * builtins.def: New __builtin_powi[lf].
4220 * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
4221 (expand_builtin_powi): New function.
4222 (expand_builtin): Dispatch to expand_builtin_powi.
4223 * libgcc2.h: Add prototypes for __builtin_powi[lf].
4224 * libgcc2.c: Add __builtin_powi[lf] implementation.
4225 * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
4226 * optabs.h: Add powi_optab.
4227 * optabs.c (init_optabs): Initialize powi_optab.
4228 * doc/extend.texi: Document __builtin_powi[lf].
4230 2005-02-09 Dorit Naishlos <dorit@il.ibm.com>
4232 * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
4235 2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
4238 * fold-const.c (try_move_mult_to_index): Remove redundant
4239 type argument. Create ADDR_EXPR with correct type.
4240 (fold): Update callers of try_move_mult_to_index. Convert
4241 result to the appropriate type.
4243 2005-02-09 Roger Sayle <roger@eyesopen.com>
4246 * config/avr/avr.c (default_rtx_costs): Delete.
4247 (avr_operand_rtx_cost): New function.
4248 (avr_rtx_costs): Completely rewrite.
4250 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
4253 * config/cris/cris.c (in_code): New variable.
4254 (cris_output_addr_const): Now a static function, a wrapper for
4256 (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
4257 case from old cris_output_addr_const.
4258 (cris_asm_output_label_ref): Similar for LABEL_REF.
4259 (cris_output_addr_const_extra): Similar for UNSPEC.
4260 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
4261 (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
4262 * config/cris/cris-protos.h (cris_output_addr_const): Remove
4264 (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
4265 (cris_asm_output_label_ref): Declare.
4267 2005-02-08 Paolo Bonzini <bonzini@gnu.org>
4269 PR preprocessor/19801
4270 * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
4271 filenames that changed when libcpp was moved to the toplevel.
4273 2005-02-07 Roger Sayle <roger@eyesopen.com>
4275 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
4276 zero extensions of BImode operands. Call lowpart_subreg instead
4277 of gen_lowpart_common and gen_lowpart_SUBREG.
4279 2005-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
4282 * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
4283 * configure.ac: Set cc_for_cross_gnattools.
4284 * configure: Regenerate.
4286 2005-02-08 Alan Modra <amodra@bigpond.net.au>
4289 * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
4291 2005-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4294 * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
4295 of nested functions.
4297 2005-02-07 Jonathan Wakely <redi@gcc.gnu.org>
4299 * doc/extend.texi: Document deprecated extensions allowing
4300 static floating-point members to have initializers and allowing
4301 floating-point literals in integral constant expressions.
4303 2005-02-07 Kazu Hirata <kazu@cs.umass.edu>
4305 * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
4306 config/darwin7.h, config/mips/mips.c,
4307 config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
4310 * cse.c: Update comments.
4312 2005-02-07 Richard Guenther <rguenth@gcc.gnu.org>
4315 * builtins.c (fold_builtin_sqrt): Transform
4316 sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
4319 2005-02-07 Leehod Baruch <leehod@il.ibm.com>
4320 Dorit Naishlos <dorit@il.ibm.com>
4322 * doc/invoke.texi (ftree-vectorizer-verbose): New.
4323 * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
4324 * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
4326 * tree.h (vect_set_verbosity_level): New extern function declaration
4328 * tree-vectorizer.h (verbosity_levels): New enum type.
4329 * tree-vectorizer.c (vect_debug_stats): Function removed.
4330 (vect_debug_details): Likewise.
4331 (vect_verbosity_level): Global variable was defined and initialized.
4332 (vect_dump): Global variable definition.
4333 (vect_print_dump_info): New function.
4334 (vect_set_dump_settings): New function.
4335 (vect_set_verbosity_level): New function.
4336 (vectorize_loops): Add call to vect_set_dump_settings.
4338 (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
4339 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4340 (slpeel_tree_peel_loop_to_edge): Likewise.
4342 (vect_analyze_offset_expr): Call to vect_print_dump_info with
4343 appropriate verbosity level instead of call to vect_debug_details
4344 or vect_debug_stats.
4345 (vect_get_base_and_offset):
4346 (vect_create_addr_base_for_vector_ref):
4347 (get_vectype_for_scalar_type):
4348 (vect_create_data_ref_ptr):
4350 (vect_get_vec_def_for_operand):
4351 (vect_finish_stmt_generation):
4352 (vectorizable_assignment):
4353 (vectorizable_operation):
4354 (vectorizable_store):
4355 (vectorizable_load):
4356 (vect_transform_stmt):
4357 (vect_update_ivs_after_vectorizer):
4358 (vect_do_peeling_for_loop_bound):
4359 (vect_update_inits_of_drs):
4360 (vect_do_peeling_for_alignment):
4361 (vect_transform_loop):
4362 (vect_is_simple_use):
4363 (vect_analyze_operations):
4364 (vect_is_simple_iv_evolution):
4365 (vect_analyze_scalar_cycles):
4366 (vect_analyze_data_ref_dependence):
4367 (vect_analyze_data_ref_dependences):
4368 (vect_compute_data_ref_alignment):
4369 (vect_enhance_data_refs_alignment):
4370 (vect_analyze_data_refs_alignment):
4371 (vect_analyze_data_ref_access):
4372 (vect_analyze_data_ref_accesses):
4373 (vect_analyze_pointer_ref_access):
4374 (vect_get_memtag_and_dr):
4375 (vect_analyze_data_refs):
4376 (vect_mark_relevant):
4377 (vect_stmt_relevant_p):
4378 (vect_mark_stmts_to_be_vectorized):
4379 (vect_can_advance_ivs_p):
4380 (vect_get_loop_niters):
4381 (vect_analyze_loop_form):
4382 (vect_analyze_loop):
4383 (vectorize_loops): Likewise.
4385 (vect_do_peeling_for_loop_bound): Dump format slightly changed.
4386 (vect_update_inits_of_drs):
4387 (vect_do_peeling_for_alignment):
4388 (vect_transform_loop):
4389 (vect_analyze_operations):
4390 (vect_analyze_scalar_cycles):
4391 (vect_analyze_data_ref_dependences):
4392 (vect_analyze_data_refs_alignment):
4393 (vect_analyze_data_ref_accesses):
4394 (vect_analyze_data_refs):
4395 (vect_mark_stmts_to_be_vectorized):
4396 (vect_get_loop_niters):
4397 (vect_analyze_loop_form):
4398 (vect_analyze_loop): Likewise.
4399 (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
4401 2005-02-07 Richard Sandiford <rsandifo@redhat.com>
4405 2005-01-26 Richard Sandiford <rsandifo@redhat.com>
4406 * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
4407 either -ffast-math or -funsafe-math-optimizations is in use.
4409 2005-01-24 Richard Sandiford <rsandifo@redhat.com>
4410 * config/mips/irix-csr.c: New file.
4411 * config/mips/t-iris6 (irix-csr.o): New rule to build it.
4412 (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
4413 * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
4416 2005-02-07 Alexandre Oliva <aoliva@redhat.com>
4418 * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
4419 redundant, incorrect definitions.
4421 * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
4423 ("*tls_indirect_call"): New, reference hard regs directly.
4424 * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
4426 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
4428 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
4429 Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
4431 2005-02-06 Roger Sayle <roger@eyesopen.com>
4433 PR rtl-optimization/19800
4434 * simplify_rtx.c (simplify_relational_operation_1): Explicitly
4435 call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
4438 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
4440 * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
4442 2005-02-07 Joseph S. Myers <joseph@codesourcery.com>
4445 * doc/invoke.texi: Correct documentation of -freorder-functions.
4447 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
4450 * doc/invoke.texi: Don't mention gccbug.
4452 2005-02-06 Roger Sayle <roger@eyesopen.com>
4453 Andrew Pinski <pinskia@physics.uc.edu>
4454 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
4456 * simplify-rtx.c (simplify_relational_operation_1): Simplify
4457 (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
4458 into just (zero_extract:SI FOO (const_int 1) BAR).
4460 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
4462 * doc/cpp.texi: Include gcc-common.texi. Don't define gcctabopt
4463 macro locally. Don't give last revision date. Use GCC version
4464 number from gcc-common.texi.
4465 * doc/cppinternals.texi: Include gcc-common.texi. Don't give last
4466 revision date. Use GCC version number from gcc-common.texi.
4467 Describe being a library as current state rather than as 3.x
4469 * doc/gcc.texi: Remove last update date.
4470 * doc/gccint.texi: Likewise. Update copyright dates.
4471 * doc/install.texi: Update copyright dates.
4473 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
4476 * doc/invoke.texi: Mention for each option included in -Wall that
4477 it is included in -Wall.
4478 * doc/gcc.texi: Update copyright and last modification date.
4480 2005-02-06 Zdenek Dvorak <dvorakz@suse.cz>
4482 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
4483 unnecessary cast to original induction variable increments.
4485 2005-02-06 Zdenek Dvorak <dvorakz@suse.cz>
4487 PR tree-optimization/18219
4488 * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
4489 in distributed form.
4491 2005-02-06 Richard Sandiford <rsandifo@redhat.com>
4493 * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
4494 Set bitpos and offset later in the function. Do nothing if the
4495 target is a register and if the bitfield lies completely outside
4497 (extract_bit_field): Make the same SUBREG, bitpos and offset changes
4498 here. Return an uninitialised register if the source value is stored
4499 in a register and the bitfield lies completely outside that register.
4501 2005-02-06 Steven Bosscher <stevenb@suse.de>
4503 * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
4506 2005-02-06 Marcin Dalecki <martin@dalecki.de>
4508 * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
4510 2005-02-06 Geoffrey Keating <geoffk@apple.com>
4512 * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
4513 * config/darwin8.h: New.
4514 * config/darwin7.h: Update comment.
4516 2005-02-03 Leehod Baruch <leehod@il.ibm.com>
4517 Dorit Naishlos <dorit@il.ibm.com>
4519 * tree-vectorizer.h (LOC): New type.
4520 (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
4521 (loop_line_number): New field in struct _loop_vec_info.
4522 (LOOP_VINFO_LOC, LOOP_LOC): New macros.
4524 * tree-vectorizer.c (input.h): Included.
4525 (find_loop_location): New function.
4526 (vect_debug_stats): Argument changed from loop to LOC. Computation of
4527 loop line number removed.
4528 (vect_debug_details): Likewise.
4529 (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
4531 (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
4532 call to vect_debug_details/stats changed from loop to loop_loc.
4533 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4534 (slpeel_tree_peel_loop_to_edge): Likewise.
4536 (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
4537 changed from NULL to UNKNOWN_LOC.
4538 (vect_get_base_and_offset):
4539 (vect_create_addr_base_for_vector_ref):
4540 (get_vectype_for_scalar_type):
4541 (vect_create_data_ref_ptr):
4543 (vect_get_vec_def_for_operand):
4544 (vect_finish_stmt_generation):
4545 (vectorizable_assignment):
4546 (vectorizable_operation):
4547 (vectorizable_store):
4548 (vectorizable_load):
4549 (vect_transform_stmt):
4550 (vect_update_ivs_after_vectorizer):
4551 (vect_do_peeling_for_loop_bound):
4552 (vect_do_peeling_for_alignment):
4553 (vect_transform_loop):
4554 (vect_is_simple_use):
4555 (vect_analyze_operations):
4556 (vect_is_simple_iv_evolution):
4557 (vect_analyze_scalar_cycles):
4558 (vect_analyze_data_ref_dependences):
4559 (vect_compute_data_ref_alignment):
4560 (vect_enhance_data_refs_alignment):
4561 (vect_analyze_data_ref_access):
4562 (vect_analyze_data_ref_accesses):
4563 (vect_analyze_pointer_ref_access):
4564 (vect_get_memtag_and_dr):
4565 (vect_analyze_data_refs):
4566 (vect_mark_relevant):
4567 (vect_stmt_relevant_p):
4568 (vect_mark_stmts_to_be_vectorized):
4569 (vect_can_advance_ivs_p):
4570 (vect_get_loop_niters):
4571 (vect_analyze_loop):
4572 (vectorize_loops): Likewise.
4574 (vectorizable_load): Argument in call to vect_debug_details/stats
4575 changed from loop to LOOP_LOC (loop_vinfo).
4576 (vect_transform_loop):
4577 (vect_analyze_operations):
4578 (vect_analyze_scalar_cycles):
4579 (vect_analyze_data_ref_dependence):
4580 (vect_enhance_data_refs_alignment):
4581 (vect_analyze_data_ref_accesses):
4582 (vect_analyze_pointer_ref_access):
4583 (vect_analyze_data_refs):
4584 (vect_analyze_loop): Likewise.
4586 (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
4587 changed from loop to loop_loc.
4589 (vect_enhance_data_refs_alignment): Removed unused variable loop.
4591 2005-02-03 Leehod Baruch <leehod@il.ibm.com>
4592 Dorit Naishlos <dorit@il.ibm.com>
4594 * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
4596 (vect_analyze_data_ref_dependences): Likewise.
4598 (vect_is_simple_use): Argument changed from loop structure to
4599 loop_vect_info structure.
4600 (vect_can_advance_ivs_p): Likewise.
4601 (vect_create_index_for_vector_ref): Likewise.
4602 (vect_update_ivs_after_vectorizer): Likewise.
4603 (new_stmt_vec_info): Likewise.
4605 (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
4606 changed from loop to loop_vinfo.
4607 (vect_create_data_ref_ptr): First argument in call to
4608 vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
4609 (vectorizable_assignment): Second argument in call to vect_is_simple_use
4610 was changed from loop to loop_vinfo.
4611 (vectorizable_operation): Likewise.
4612 (vectorizable_store): Likewise.
4613 (vect_mark_stmts_to_be_vectorized): Likewise.
4614 (vect_do_peeling_for_loop_bound): First argument in call to
4615 vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
4616 (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
4617 was changed from loop to loop_vinfo.
4618 (vect_analyze_data_ref_dependences): Third argument in call to
4619 vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
4621 (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
4622 (vect_create_data_ref_ptr): Likewise.
4623 (vect_init_vector): Likewise.
4624 (vect_get_vec_def_for_operand): Likewise.
4625 (vectorizable_assignment): Likewise.
4626 (vectorizable_operation): Likewise.
4627 (vectorizable_store): Likewise.
4628 (vectorizable_load): Likewise.
4629 (vect_update_ivs_after_vectorizer): Likewise.
4630 (vect_is_simple_use): Likewise.
4631 (vect_analyze_data_ref_dependence): Likewise.
4632 (vect_analyze_pointer_ref_access): Likewise.
4633 (vect_can_advance_ivs_p): Likewise.
4635 * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
4636 before _stmt_vec_info.
4637 (_stmt_vec_info): Loop field replaced by loop_vec_info.
4638 (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
4639 (new_stmt_vec_info): Argument changed from loop structure to
4640 loop_vect_info structure
4642 (vect_analyze_data_ref_dependences): Unnecessary line was removed.
4643 (vect_analyze_offset_expr): Avoid 80 columns overflow.
4644 (vect_create_addr_base_for_vector_ref): Likewise.
4645 (vect_analyze_pointer_ref_access): Likewise.
4647 2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
4650 * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
4651 phi flag if the phi is abnormal.
4653 2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
4656 * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
4657 information for the new statement.
4659 2005-02-03 Joseph S. Myers <joseph@codesourcery.com>
4662 * gcc.c (main): Include the target in -v output.
4664 2005-02-03 Alexandre Oliva <aoliva@redhat.com>
4666 * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
4667 Do not drop the extend if we'd have to add a paradoxical subreg
4668 later. Include optabs.h and insn-codes.h.
4669 * Makefile.in (combine.o): Depend on $(OPTABS_H).
4671 2005-02-02 Roger Sayle <roger@eyesopen.com>
4674 * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
4675 * fold-const.c (const_binop): Avoid constant folding floating
4676 point operations in modes that use composite representations.
4677 * simplify-rtx.c (simplify_binary_operation): Likewise.
4679 2005-02-02 Geoffrey Keating <geoffk@apple.com>
4681 * config/rs6000/altivec.md (altivec_dst): Make the first operand
4683 (altivec_dstt): Likewise.
4684 (altivec_dstst): Likewise.
4685 (altivec_dststt): Likewise.
4686 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
4689 2005-02-03 Dorit Naishlos <dorit@il.ibm.com>
4691 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
4692 EXPR_LOCUS from orig_cond to the new cond_stmt.
4693 (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
4696 2005-02-03 Dorit Naishlos <dorit@il.ibm.com>
4698 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
4699 standard_iv_increment_position. Remove call to bsi_next
4700 (no need to bump the iterator anymore).
4701 (vect_create_index_for_vector_ref): Call
4702 standard_iv_increment_position. Remove second function argument.
4703 (vect_finish_stmt_generation): Remove call to bsi_next
4704 (no need to bump the iterator anymore).
4705 (vect_create_data_ref_ptr): Remove second argument (bsi) in call
4706 to vect_create_index_for_vector_ref.
4708 2005-02-03 Dorit Naishlos <dorit@il.ibm.com>
4710 * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
4711 phis are used out of the loop.
4713 2005-02-03 Joseph S. Myers <joseph@codesourcery.com>
4716 * c-decl.c (undef_nested_function): New variable.
4717 (pop_scope): Diagnose undefined nested functions.
4718 (finish_function): Don't attempt cgraph processing or genericizing
4719 if current top-level function contained an undefined nested
4720 function. Reset undef_nested_function at the end of a top-level
4723 2005-02-02 Zdenek Dvorak <dvorakz@suse.cz>
4725 * tree.c (build_int_cst_type): Take sign of the value into account
4726 when deciding whether sign extend the value.
4728 2005-02-02 Joseph S. Myers <joseph@codesourcery.com>
4731 * gcc.c (cpp_unique_options): Remove %{trigraphs}.
4732 (cpp_options, cc1_options): Change %{std*&ansi} to
4733 %{std*&ansi&trigraphs}.
4735 2005-02-02 Kazu Hirata <kazu@cs.umass.edu>
4737 * cse.c: Update comments.
4739 2005-02-02 Aldy Hernandez <aldyh@redhat.com>
4741 * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
4742 arguments go on the stack. Do not put complex doubles in odd/even
4745 2005-02-02 Steven Bosscher <stevenb@suse.de>
4747 * doc/invoke.texi: Update the options enabled at -O1, -O2,
4748 and -O3. Update the documentation for -fgcse-sm, -fgcse-las,
4749 -ftree-pre, and -fthread-jumps.
4751 2005-02-02 Richard Sandiford <rsandifo@redhat.com>
4753 PR tree-optimization/19578
4754 * tree-flow.h (modified_noreturn_calls): Declare.
4755 (noreturn_call_p): Declare.
4756 * tree-flow-inline.h (noreturn_call_p): New function.
4757 (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
4758 * tree-cfg.c (modified_noreturn_calls): New variable.
4759 (cleanup_control_flow): Use noreturn_call_p. Split basic blocks
4760 that contain a mid-block noreturn call.
4761 * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
4763 2005-02-02 Kazu Hirata <kazu@cs.umass.edu>
4765 * df.c (df_def_record_1, df_uses_record): Don't use
4767 * df.h (DF_FOR_REGALLOC): Remove.
4769 2005-02-02 Joseph S. Myers <joseph@codesourcery.com>
4772 * c-typeck.c (really_start_incremental_init): Reset
4773 constructor_max_index for arrays of incomplete type.
4775 2005-02-02 Jeff Law <law@redhat.com>
4777 * gcse.c (struct reg_set): Store the block index where the register
4778 was set rather than the setting insn.
4779 (record_one_set, compute_transp): Corresponding changes.
4780 (pre_insert_copy_insn): Do not call replace_one_set.
4781 (replace_one_set): Remove.
4783 2005-02-02 Joseph S. Myers <joseph@codesourcery.com>
4786 * doc/gcov.texi: Fix typo.
4788 2005-02-01 Richard Henderson <rth@redhat.com
4791 * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
4792 * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
4794 (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
4795 * config/i386/i386-protos.h: Update.
4797 2005-02-01 Steven Bosscher <stevenb@suse.de>
4799 PR tree-optimization/19217
4800 * tree-cfg.c (verify_expr): Use the data field to see if TP was
4801 seen inside a PHI node. Do not do the ADDR_EXPR check if it was.
4802 (verify_stmts): Pass (void*)1 as data to verify_expr to signal
4803 that it is walking a PHI node.
4805 2005-02-01 Joseph S. Myers <joseph@codesourcery.com>
4807 * doc/extend.texi (Nested Functions): Update.
4809 2005-02-01 Richard Henderson <rth@redhat.com>
4812 * optabs.c (expand_copysign_absneg): Export.
4813 * optabs.h (expand_copysign_absneg): Declare.
4814 * config/rs6000/rs6000.md (copysigntf3): New.
4816 2005-02-01 Diego Novillo <dnovillo@redhat.com>
4818 PR tree-optimization/19633
4819 * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
4820 * tree-ssa-alias.c (init_alias_info): Initialize.
4821 (merge_pointed_to_info): Set.
4822 (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
4823 (dump_points_to_info_for): Show value of pt_null.
4824 (struct count_ptr_d): Declare.
4825 (find_ptr_dereference): Remove.
4826 (ptr_is_dereferenced_by): Remove.
4827 (count_ptr_derefs): New local function.
4828 (count_uses_and_derefs): New local function.
4829 (compute_points_to_and_addr_escape): Call it. If the number
4830 of dereferences is greater than zero, mark the pointer as
4831 dereferenced. If there are fewer dereferences than uses of
4832 the pointer, the pointer's value escapes.
4834 2005-02-01 Diego Novillo <dnovillo@redhat.com>
4836 PR tree-optimization/19670
4837 * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
4839 (verify_use): ... set it here, instead.
4841 2005-02-01 Janis Johnson <janis187@us.ibm.com>
4843 * doc/sourcebuild.texi (Test directives): Fix formatting.
4845 * doc/sourcebuild.texi (Test directives): Describe selector
4848 2005-02-01 Segher Boessenkool <segher@kernel.crashing.org>
4850 * config.gcc (powerpc64-*-linux*): Default to -m64 also for
4851 specific 64-bit CPUs.
4853 2005-02-01 Richard Earnshaw <rearnsha@arm.com>
4856 * arm.c (arm_eliminable_register): New function.
4857 (adjacent_mem_locations): Don't allow eliminable registers. Use
4858 HOST_WIDE_INT for address offsets.
4859 * arm-protos.h (arm_eliminable_register): Add prototype.
4861 2005-02-01 Steven Bosscher <stevenb@suse.de>
4863 PR optimization/15242
4864 * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
4865 * basic-block.h (duplicate_computed_gotos): Add prototype.
4866 * bb-reorder.c (duplicate_computed_gotos): New function to
4867 duplicate sufficiently small blocks ending in a computed jump.
4868 * passes.c (rest_of_compilation): Call duplicate_computed_gotos
4869 if not optimizing for size.
4870 * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
4871 never do tail merging for blocks ending in a computed jump.
4872 * doc/invoke.texi: Document the max-goto-duplication-insns param.
4874 2005-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
4876 Patch from Richard Sandiford <rsandifo@redhat.com>
4877 * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
4878 from inheriting a subreg equivalence with a non-spill register.
4880 * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
4882 2005-02-01 Alexandre Oliva <aoliva@redhat.com>
4884 * config/frv/frv.c (movcc_fp_destination_operand): New.
4885 (gpr_or_memory_operand): Fix typo in comment.
4886 (gpr_or_memory_operand_with_scratch): New.
4887 * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
4888 * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
4889 movcc_fp_destination_operand.
4890 (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
4891 Legitimize memory addresses using a scratch register.
4893 2005-01-31 Jeff Law <law@redhat.com>
4895 * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
4896 bitmap a sparse bitmap instead of a simple bitmap.
4897 (mark_def_sites_initialize_block): Corresponding changes.
4898 (ssa_mark_def_sites_initialize_block): Likewise.
4899 (ssa_mark_phi_uses): Likewise.
4900 (mark_def_site, ssa_mark_def_sites): Likewise.
4901 (mark_def_site_blocks): Likewise.
4902 (rewrite_ssa_into_ssa): Likewise.
4904 * tree-ssa-dom.c (record_cond): Pass correct variable type
4905 for last argument to htab_find_slot_with_hash.
4907 * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
4908 effects when optimizing 0 % X. Do not try to optimize X % 0.
4910 2005-01-31 James E. Wilson <wilson@specifixinc.com>
4912 * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
4915 2005-02-01 Eric Christopher <echristo@redhat.com>
4917 * config/mips/mips.c (override_options): Warn if -mint64
4919 * doc/invoke.texi (MIPS Options): Document that -mint64 is
4922 2005-02-01 Kazu Hirata <kazu@cs.umass.edu>
4924 * cse.c (cse_reg_info): Remove hash_next, next, regno. Add
4926 (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
4927 REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
4928 cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
4929 (cached_regno): Initialize to INVALID_REGNUM.
4930 (cse_reg_info_table_size,
4931 cse_reg_info_table_first_uninitialized,
4932 cse_reg_info_timestamp): New.
4933 (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
4935 (init_cse_reg_info, get_cse_reg_info_1): New.
4936 (get_cse_reg_info): Cache the last look-up.
4937 (new_basic_block): Update the code to clear mappings from
4938 registers to cse_reg_info entries.
4939 (cse_main): Call init_cse_reg_info.
4941 * cse.c (get_cse_reg_info): Update a comment.
4943 2005-01-31 Steven Bosscher <stevenb@suse.de>
4946 * c-decl.c (start_decl): Do not warn about arrays of elements with
4947 an incomplete type here.
4948 (grokdeclarator): Do it here by making a pedwarn an error.
4949 * c-typeck.c (push_init_level): If there were previous errors with
4950 the constructor type, do not warn about braces for initializers.
4951 (process_init_element): Likewise for excess initializer elements.
4953 2005-01-31 Kazu Hirata <kazu@cs.umass.edu>
4955 * cse.c (delete_trivially_dead_insn): Don't iterate.
4957 2005-01-31 Andrew Pinski <pinskia@physics.uc.edu>
4959 * config/rs6000/rs6000.md (copysignsf3): New expand.
4960 (copysigndf3): Likewise.
4962 2005-01-31 Steven Bosscher <stevenb@suse.de>
4964 * recog.c (constrain_operands): Only look for earlyclobber operand
4965 conflicts if an '&' constraint was seen.
4967 2005-01-31 Marc Espie <espie@openbsd.org>
4969 * config.gcc: Don't include embedded systems fragment, switches default
4970 debugging format to ELF.
4971 * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
4972 longer pick it up there.
4974 2005-01-31 Dale Johannesen <dalej@apple.com>
4976 * doc/extend.texi (nested functions): Fix linkage description.
4977 Clarify that static is not allowed.
4979 2005-01-31 Dale Johannesen <dalej@apple.com>
4981 * config/rs6000/darwin.md (movsf_low_di): Make work.
4982 (movdf_low_di): Make work.
4984 2005-01-31 Dale Johannesen <dalej@apple.com>
4986 * config/rs6000/darwin-tramp.asm (__trampoline_setup):
4987 Make work for 64 bit.
4989 2005-01-31 Roger Sayle <roger@eyesopen.com>
4990 Dale Johannesen <dalej@apple.com>
4993 * fold-const.c (fold_binary_op_with_conditional_arg):
4994 Make types match original operands, before STRIP_NOPS.
4996 2005-01-31 Alan Modra <amodra@bigpond.net.au>
4998 * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
4999 (struct gcc_regs): Rename from gcc_pt_regs. Add more regs.
5000 (struct gcc_sigcontext): Delete. Merge contents to..
5001 (struct gcc_ucontext): ..here.
5002 (get_sigcontext): Delete.
5003 (get_regs): New function, like get_sigcontext but return regs ptr.
5004 64-bit version finds regs from r1 to support vdso.
5005 (ppc_linux_aux_vector): New function.
5006 (ppc_fallback_frame_state): Modify for get_regs. Restore fprs
5009 2005-01-31 Ira Rosen <irar@il.ibm.com>
5011 * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
5013 (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
5014 redundant fold. Fix misalignment for MINUS_EXPR.
5015 (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
5016 (vect_analyze_pointer_ref_access): Likewise.
5017 (vect_get_memtag_and_dr): Likewise.
5019 2005-01-31 Richard Henderson <rth@redhat.com>
5021 * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
5022 (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
5023 absnegdf2_i387, absnegxf2_i387): Likewise.
5025 2005-01-31 Richard Henderson <rth@redhat.com>
5028 * optabs.c (expand_copysign_absneg): New.
5029 (expand_copysign_bit): Split out from ...
5030 (expand_copysign): ... here. Use expand_copysign_absneg.
5032 2005-01-30 Roger Sayle <roger@eyesopen.com>
5035 * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
5036 constant as the second operand and a register as the third.
5038 2005-01-31 Danny Smith <dannysmith@users.sourceforge.net>
5041 * config/i386/i386.c (ix86_function_ok_for_sibcall): Also check
5042 that dllimport'd functions do not use all call-clobbered registers
5045 2005-01-30 Richard Henderson <rth@redhat.com>
5048 * optabs.c (expand_absneg_bit): Split out from expand_unop and
5049 expand_abs_nojump and generalize. Use operand_subword and
5050 emit_no_conflict_block. Support large modes.
5051 (expand_abs_nojump): Use it. Use HONOR_SIGNED_ZEROS to fall
5053 (expand_unop): Likewise. Use HONOR_SIGNED_ZEROS to fall back
5054 negation to subtraction.
5055 (expand_copysign): Check that the format has signed zeros.
5056 Use operand_subword and emit_no_conflict_block. Support large modes.
5058 2005-01-30 Daniel Berlin <dberlin@dberlin.org>
5060 Fix PR tree-optimization/19624
5062 * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
5063 * tree-ssa-pre.c: Add cfgloop.h.
5065 (pre_stats): New member, constified.
5066 (inserted_exprs): New static variable.
5067 (NECESSARY): New macro.
5068 (create_expression_by_pieces): Fold the expression, and
5069 mark it as defaulting to not necessary. Also put in
5071 (fully_constant_expression): New function.
5072 (insert_into_preds_of_block): Modify to not insert phis when we
5073 are playing with induction variables.
5074 Push phis onto the inserted_exprs vector, and mark them as not
5075 necessary by default.
5076 (insert_aux): Call fully_constant_expression on eprime.
5077 If all edges produce the same value, mark it constant.
5078 (mark_operand_necessary): New function.
5079 (remove_dead_inserted_code): New function.
5080 (init_pre): Init loop optimizer to get loop info.
5081 (fini_pre): Free loop_optimizer, and inserted_exprs vec.
5082 (execute_pre): Commit edge inserts, then remove dead code.
5084 2005-01-30 Richard Henderson <rth@redhat.com>
5086 * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
5087 * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
5089 2005-01-30 Richard Henderson <rth@redhat.com>
5092 * config/i386/i386.c (ix86_expand_copysign): New.
5093 (ix86_split_copysign_const): New.
5094 (ix86_split_copysign_var): Rename from ix86_split_copysign,
5095 rearrange op1/nmask operands.
5096 * config/i386/i386-protos.h: Update.
5097 * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
5098 (copysigndf3): Likewise.
5099 (copysignsf3_const, copysigndf3_const): New.
5100 (copysignsf3_var): Rename from copysignsf3, split out splitter
5101 and fix split predicate for X constraint.
5102 (copysigndf3_var): Similarly.
5104 2005-01-30 Kazu Hirata <kazu@cs.umass.edu>
5106 * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
5107 doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
5108 doc/tm.texi, doc/tree-ssa.texi: Update copyright.
5110 2005-01-29 Richard Henderson <rth@redhat.com>
5113 * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
5114 of # and * in constraints.
5116 2005-01-29 Richard Henderson <rth@redhat.com>
5119 * expr.c (store_field): Don't strip sub-mode cast when the input
5120 data is even smaller.
5122 2005-01-29 Richard Henderson <rth@redhat.com>
5125 * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
5128 2005-01-29 Richard Henderson <rth@redhat.com>
5130 * combine.c (make_field_assignment): Fix argument order
5133 2005-01-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
5135 PR tree-optimization/15791
5136 * fold-const.c (extract_array_ref): New function.
5137 (fold): Fold comparisons between &a[i] and &a[j] or
5138 semantically equivalent trees.
5140 2005-01-29 Jeff Law <law@redhat.com>
5142 * gcse.c (insert_expr_in_table): Revamp handling of available
5143 and anticipatable occurrence lists to avoid unnecessary list
5145 (insert_set_in_table): Similarly.
5147 2005-01-29 Joseph S. Myers <joseph@codesourcery.com>
5149 * c-common.c (fix_string_type): Just use c_build_qualified_type to
5151 (c_build_qualified_type): Build qualified array types with
5152 TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
5153 * c-decl.c (c_make_fname_decl): Build unqualified array type
5154 before qualified type.
5155 (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
5156 type is qualified, not just if type itself is. Don't apply
5157 qualifiers to array type when declarator is processed. Apply
5158 qualifiers to field type whether or not it is an array type.
5159 Don't handle array types specially for applying qualifiers to
5161 * c-typeck.c (composite_type): Build unqualified element type and
5162 array type when forming composite of array types.
5163 (common_pointer_type, comptypes, comp_target_types,
5164 type_lists_compatible_p, build_indirect_ref, build_array_ref,
5165 convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
5167 (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
5168 (args2) in variables a1 and a2.
5170 2005-01-29 Kazu Hirata <kazu@cs.umass.edu>
5172 * cse.c (n_elements_made, max_elements_made): Remove.
5173 (insert): Don't touch n_elements_made.
5174 (cse_main): Don't touch n_elements_made or max_elements_made.
5176 2005-01-28 Stephane Carrez <stcarrez@nerim.fr>
5179 * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
5180 configuration part of dp-bit.c to be lost.
5182 2005-01-28 Roger Sayle <roger@eyesopen.com>
5184 * expmed.c (expand_mult_highpart_optab): When attempting to use
5185 a non-widening multiplication in a wider mode, the operands need
5186 to be converted (zero or sign extended) to that mode.
5188 2005-01-28 Ian Lance Taylor <ian@airs.com>
5192 * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
5193 through if both operands fall through.
5195 2005-01-28 Kazu Hirata <kazu@cs.umass.edu>
5197 * cse.c (fold_rtx) <PC>: Don't optimize.
5199 2005-01-28 Jeff Law <law@redhat.com>
5201 * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
5202 (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
5204 2005-01-28 Kazu Hirata <kazu@cs.umass.edu>
5206 * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
5207 cse_reg_info_used_list_end): Remove.
5208 (cse_reg_info_list, cse_reg_info_list_free): New.
5209 (get_cse_reg_info): When allocating an instance of
5210 cse_reg_info, add it to the beginning of the cse_reg_info_list
5211 list. Remove code to maintain cse_reg_info_used_list.
5212 (new_basic_block): Reset the free list to the beginning of
5215 2005-01-28 Richard Sandiford <rsandifo@redhat.com>
5217 * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
5218 (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
5219 (frv_expand_mdpackh_builtin): New function.
5220 (frv_expand_builtin): Use it to expand __MDPACKH.
5221 * doc/extend.texi (__MDPACKH): Update documentation.
5223 2005-01-28 Uros Bizjak <uros@kss-loka.si>
5225 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
5226 SSE_FLOAT_MODE_P for use_sse computation.
5228 2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>
5231 * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
5233 2005-01-27 Richard Henderson <rth@redhat.com>
5235 * builtins.c (expand_builtin_copysign): New.
5236 (expand_builtin): Call it.
5237 * genopinit.c (optabs): Add copysign_optab.
5238 * optabs.c (init_optabs): Initialize it.
5239 (expand_copysign): New.
5240 * optabs.h (OTI_copysign, copysign_optab): New.
5241 (expand_copysign): Declare.
5243 * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
5244 (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
5246 * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
5247 (ix86_expand_fp_absneg_operator): ... here.
5248 (ix86_split_copysign): New.
5249 * config/i386/i386-protos.h: Update.
5250 * config/i386/i386.md (UNSPEC_COPYSIGN): New.
5251 (copysignsf3, copysigndf3): New.
5253 * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
5254 (copysignsf3, ncopysignsf3): New.
5255 (copysigndf3, ncopysigndf3): New.
5256 (copysignxf3, ncopysignxf3): New.
5257 * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
5259 2005-01-27 Arend Bayer <arend.bayer@web.de>
5260 Kazu Hirata <kazu@cs.umass.edu>
5262 * cse.c: (find_best_addr): Don't call copy_rtx before calling
5263 fold_rtx. Save cost recomputation if fold_rtx did nothing.
5264 (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
5267 2005-01-27 Jeff Law <law@redhat.com>
5269 * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
5270 definitions of SSA_NAMEs which are not being rewritten.
5271 (rewrite_ssa_into_ssa): Only initialize the current definition
5272 of an SSA_NAME if that SSA_NAME has been marked for rewriting.
5273 If checking is enabled, assert that SSA_NAME_AUX is clear for all
5274 SSA_NAMEs before returning.
5276 2005-01-27 Kazu Hirata <kazu@cs.umass.edu>
5278 * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
5279 cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
5280 tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
5281 config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
5282 config/mips/iris6.h, config/sh/sh.c: Update copyright.
5284 2005-01-27 Steven Bosscher <stevenb@suse.de>
5287 * opts.c (decode_options): Move flag_thread_jumps from -O1 and
5288 higher to -O2 and higher. Likewise for tree PRE.
5289 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
5292 2005-01-27 Ian Lance Taylor <ian@airs.com>
5295 * gimple-low.c (try_catch_may_fallthru): New static function.
5296 (block_may_fallthru): Handle TRY_CATCH_EXPR.
5297 * tree-inline.c (expand_call_inline): Don't warn about reaching
5298 the end of a non-void function being inlined if the function uses
5301 2005-01-27 Jakub Jelinek <jakub@redhat.com>
5303 * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
5306 * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
5307 (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
5308 (implicitly_declare): Handle error_mark_node.
5310 2005-01-27 Richard Henderson <rth@redhat.com>
5313 * tree.h (struct tree_decl): Add debug_expr_is_from.
5314 (DECL_DEBUG_EXPR_IS_FROM): New.
5315 (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
5316 * dwarf2out.c (dwarf2out_var_location): Update to match.
5317 * tree-outof-ssa.c (create_temp): Likewise.
5318 * var-tracking.c (track_expr_p): Likewise.
5319 * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
5320 * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
5321 * toplev.c (default_tree_printer): Likewise.
5323 2005-01-27 Alexandre Oliva <aoliva@redhat.com>
5325 * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
5326 GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
5328 2005-01-27 Steven Bosscher <stevenb@suse.de>
5330 * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
5331 CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
5332 ASM_CLOBBERS): Add tree checks.
5334 * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
5335 (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
5336 * c-common.def (SWITCH_STMT): Update to match.
5337 * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
5338 macros instead of SWITCH_EXPR ones.
5339 * c-dump.c (c_dump_tree): Likewise.
5340 * c-gimplify.c (gimplify_switch_stmt): Likewise.
5341 * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
5343 * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
5345 2005-01-27 Alan Modra <amodra@bigpond.net.au>
5347 * unwind-dw2.c (execute_stack_op): Add missing cases for
5348 DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
5350 2005-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
5352 * config.gcc (Obsolete configurations): Remove 'dummy', add
5353 sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
5356 2005-01-26 Diego Novillo <dnovillo@redhat.com>
5358 PR tree-optimization/19633
5359 * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
5361 (maybe_create_global_var): Do not create .GLOBAL_VAR if there
5362 are no call-clobbered variables.
5363 * tree-outof-ssa.c (check_replaceable): Return false for calls
5366 2005-01-26 Ulrich Weigand <uweigand@de.ibm.com>
5368 * dbxout.c (dbxout_symbol_location): Resolve constant pool references
5369 even for variables with NULL DECL_INITIAL.
5371 2005-01-26 Stuart Hastings <stuart@apple.com>
5373 * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
5375 2005-01-26 Richard Henderson <rth@redhat.com>
5378 * c-decl.c (finish_struct): Set DECL_MODE after resetting a
5380 * expr.c (store_field): Strip conversions to odd-bit-sized types
5381 if the destination field width matches.
5383 2005-01-26 Richard Henderson <rth@redhat.com>
5385 * c-decl.c, expmed.c, expr.c: Revert last change.
5387 2005-01-26 Richard Henderson <rth@redhat.com>
5390 * c-decl.c (finish_struct): Set DECL_MODE after resetting a
5392 * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
5393 if we don't need the bits above those present in the current mode.
5394 * expr.c (store_field): Strip conversions to odd-bit-sized types
5395 if the destination field width matches.
5397 2005-01-26 Richard Sandiford <rsandifo@redhat.com>
5399 * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
5400 either -ffast-math or -funsafe-math-optimizations is in use.
5402 2005-01-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
5406 * config/avr/avr.c (notice_update_cc): Only set condition code for
5407 ashrqi3 if shift count > 0.
5408 (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
5409 (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
5410 ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
5411 count <= 0 as a no-op, and shift count >= width by copying zero
5412 or sign bit to all bits of the result.
5413 * config/avr/avr.md (all shifts): Add alternatives for zero shift
5414 count, with attribute "length" set to 0 and "cc" set to "none".
5416 2005-01-26 Aldy Hernandez <aldyh@redhat.com>
5418 * doc/invoke.texi: Document -mTLS.
5420 * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
5421 * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
5422 * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
5423 * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
5424 * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
5425 * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
5426 * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
5427 * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
5429 * configure.ac: Check for a TLS capable gas.
5431 * configure: Regenerate.
5433 2005-01-26 Richard Henderson <rth@redhat.com>
5436 * combine.c (make_field_assignment): Simplify store to zero_extract
5437 from a source with an overlapping mask.
5439 2005-01-26 Aldy Hernandez <aldyh@redhat.com>
5441 2004-11-11 Eric Christopher <echristo@redhat.com>
5443 * config/frv/frv.md: Add fr400_integer automaton. Don't
5444 allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
5447 2005-01-26 Steven Bosscher <stevenb@suse.de>
5450 * cfgbuild.c (make_edges): Do not clear or set
5451 current_function_has_computed_jump.
5452 * function.h (struct function): Remove the has_computed_jump field.
5453 (current_function_has_computed_jump): Do not define.
5454 * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
5455 in a computed jump. Ignore current_function_has_computed_jump.
5457 2005-01-26 Richard Henderson <rth@redhat.com>
5460 * expr.c (categorize_ctor_elements): New argument p_must_clear.
5461 (categorize_ctor_elements_1): Likewise. Detect a union that isn't
5463 (mostly_zeros_p): Update for new categorize_ctor_elements argument.
5464 * gimplify.c (gimplify_init_constructor): Likewise. Only shove
5465 objects into static storage if they have more than one non-zero value.
5466 * tree.h (categorize_ctor_elements): Update decl.
5468 2005-01-26 Steven Bosscher <stevenb@suse.de>
5471 * tree.h (CALL_EXPR_TAILCALL): Add comment.
5472 * calls.c (check_sibcall_argument_overlap_1): Revert the change
5473 to this function from 2004-07-10.
5474 * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
5475 the current function for tail call optimizations if the address
5476 of one of it its arguments is taken.
5478 2005-01-26 Kazu Hirata <kazu@cs.umass.edu>
5480 * cse.c (fold_rtx): Call equiv_constant only when necessary.
5482 2005-01-26 Bernd Schmidt <bernd.schmidt@analog.com>
5484 * function.c (expand_function_end): If current_function_calls_alloca,
5485 emit stack restore in a place that is reached when the function falls
5488 2005-01-26 Alexandre Oliva <aoliva@redhat.com>
5490 * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
5491 rule to avoid matching inappropriate suffix rule.
5493 2005-01-26 Jan Hubicka <jh@suse.cz>
5495 PR tree-optimization/19241
5496 * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
5498 2005-01-26 Hans-Peter Nilsson <hp@axis.com>
5500 * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
5501 -lsyssim. Wrap -lc -lsyssim in --start-group --end-group instead
5503 (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
5504 <sim*>: Always use crt1.o, regardless of N in simN.
5505 <!sim>: Drop support for -pg and -p variants; always use crt0.o.
5506 (ENDFILE_SPEC): Add crtn.o, after crtend.o.
5507 (CRT_CALL_STATIC_FUNCTION): Remove.
5508 * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
5509 use crt1.o, regardless of N in simN.
5510 <!sim>: Drop support for -pg and -p variants; always use crt0.o.
5511 (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
5512 (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
5513 case isystem setting.
5514 (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
5516 2005-01-25 Ian Lance Taylor <ian@airs.com>
5518 * gimple-low.c (block_may_fallthru): Correct handling of
5519 SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
5521 2005-01-26 Hans-Peter Nilsson <hp@axis.com>
5523 * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
5524 handlers to match indentation; nested under the mtune=* handler.
5525 Similar for mcpu= and march=.
5527 2005-01-25 Daniel Jacobowitz <dan@codesourcery.com>
5529 * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
5530 * config/mips/linux64.h (LIB_SPEC): Likewise.
5531 * config/mn10300/linux.h (LIB_SPEC): Likewise.
5532 * config/sh/linux.h (LIB_SPEC): Likewise.
5534 2005-01-25 Aldy Hernandez <aldyh@redhat.com>
5536 * config/frv/frv.c (frv_legitimize_tls_address): New.
5537 (TARGET_HAVE_TLS): Define.
5538 (FRV_SYMBOL_REF_TLS_P): Define.
5539 (frv_override_options): Handle new register classes.
5540 (frv_legitimate_address_p): Reject tls addresses.
5541 (frv_legitimize_address): Handle TLS addresses.
5542 (gen_inlined_tls_plt): New.
5544 (frv_legitimize_tls_address): New.
5545 (unspec_got_name): Add TLS entries.
5546 (got12_operand): Add R_FRV_TLSMOFF12 case.
5547 (frv_emit_move): Fixup TLS addresses.
5548 (frv_emit_movsi): Legitimize TLS addresses.
5550 * config/frv/frv.h (MASK_BIG_TLS): New.
5551 (TARGET_BIG_TLS): New.
5552 (HAVE_AS_TLS): Define.
5553 (TARGET_SWITCHES): Add -mTLS and -mtls options.
5554 (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
5555 (REG_CLASS_NAMES): Same.
5556 (REG_CLASS_CONTENTS): Same.
5557 (CONSTRAINT_LEN): New.
5558 (REG_CLASS_FROM_CONSTRAINT): New.
5559 (PREDICATE_CODES): Add symbolic_operand.
5561 * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
5562 UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
5563 UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
5564 UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
5565 R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
5566 R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
5567 R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
5568 GR9_REG, GR14_REG, LRREG.
5569 (type): Add load_or_call attribute.
5570 ("load_or_call"): New reservation.
5571 ("call_gettlsoff"): New.
5572 ("tls_indirect_call"): New.
5573 ("tls_load_gottlsoff12"): New.
5574 ("tlsoff_hilo"): New.
5575 ("tls_tlsdesc_ldd"): New.
5576 ("tls_tlsoff_ld"): New.
5579 * config/frv/frv-protos.h (symbolic_operand): Protoize.
5581 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
5583 * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
5584 * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
5585 * config/frv/frv.c (TLS_BIAS): Define.
5586 (frv_output_dwarf_dtprel): New.
5588 2005-01-26 Jakub Jelinek <jakub@redhat.com>
5590 PR rtl-optimization/19579
5591 * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
5592 both A and B, see if they don't clobber registers the other expr uses.
5594 2005-01-25 J"orn Rennecke <joern.rennecke@st.com>
5596 * real.c (do_add): Initialize signalling and canonical members.
5598 * real.c (real_from_integer): Zero out destination.
5600 2005-01-18 Jan Hubicka <jh@suse.cz>
5602 PR tree-optimize/19337
5603 * tree-inline.c (initialize_inlined_parameters): Copy
5604 saved_static_chain_decl only.
5606 2005-01-25 Richard Henderson <rth@redhat.com>
5610 * config/i386/i386.c (x86_inter_unit_moves): Zero.
5611 (ix86_preferred_reload_class): Rewrite fp-constant section, with
5612 80387 enabled, to return a proper subclass. Return the subset that
5613 overlaps with GENERAL_REGS for PLUS.
5614 * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
5616 2005-01-25 Richard Henderson <rth@redhat.com>
5619 * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
5621 2005-01-25 Roger Sayle <roger@eyesopen.com>
5623 * expmed.c (choose_multiplier): Change interface to return the
5624 multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
5625 (expand_divmod): Update calls to choose_multiplier.
5627 2005-01-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5630 * expmed.c (extract_bit_field): Use adjust_address instead of
5631 gen_lowpart when op0 is a MEM.
5633 2005-01-24 Steven Bosscher <stevenb@suse.de>
5635 * cfgexpand.c (expand_gimple_tailcall): Fix typo.
5637 2005-01-24 Richard Sandiford <rsandifo@redhat.com>
5639 * config/mips/irix-csr.c: New file.
5640 * config/mips/t-iris6 (irix-csr.o): New rule to build it.
5641 (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
5642 * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
5645 2005-01-24 Eric Botcazou <ebotcazou@libertysurf.fr>
5648 * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
5649 sparc/elf.h, add sparc/sp-elf.h.
5650 (sparc-*-rtems*): Likewise.
5651 (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
5652 tm-dwarf2.h, add sparc/sp-elf.h.
5653 (sparc86x-*-elf): Likewise.
5654 (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
5655 * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
5656 TARGET_OS_CPP_BUILTINS.
5657 * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
5658 * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
5660 * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
5661 * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
5662 (SWITCH_TAKES_ARG): Likewise.
5663 (LOCAL_LABEL_PREFIX): Likewise.
5664 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5665 (TARGET_N_FORMAT_TYPES): Delete.
5666 (TARGET_FORMAT_TYPES): Likewise.
5667 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
5668 * config/sparc/elf.h: Delete.
5669 * config/sparc/sp-elf.h: New file.
5671 2005-01-24 Kazu Hirata <kazu@cs.umass.edu>
5673 * tree-flow-inline.h (phi_arg_from_edge): Remove.
5674 * tree-flow.h: Remove the corresponding prototype.
5675 * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
5676 tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
5678 2005-01-24 Jakub Jelinek <jakub@redhat.com>
5681 * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
5682 for AIX ABI or ELF -fPIC.
5683 (rs6000_emit_load_toc_table): Don't create toc_section here.
5684 (rs6000_xcoff_file_start): Nor here.
5686 2005-01-24 J"orn Rennecke <joern.rennecke@st.com>
5688 * sh.c (ra.h): Don't #include.
5689 (hard_regs_intersect_p): New function, resurrected from ra.c.
5691 * sh.c: Fix 1996 Copyright.
5693 2005-01-24 Richard Henderson <rth@redhat.com>
5694 Aldy Hernandez <aldyh@redhat.com>
5696 * regrename.c (note_sets): Handle subregs.
5698 2005-01-24 Joseph S. Myers <joseph@codesourcery.com>
5701 * genconditions.c (write_header, write_conditions): Elide file if
5704 2005-01-24 Kazu Hirata <kazu@cs.umass.edu>
5706 * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
5707 config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
5710 2005-01-24 Jakub Jelinek <jakub@redhat.com>
5712 * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
5713 expand_builtin_printf, expand_builtin_fprintf,
5714 expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
5715 checking against POINTER_TYPE.
5716 (validate_arglist): Handle POINTER_TYPE code by checking
5719 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
5721 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
5723 (for_each_rtx): Call for_each_rtx_1.
5724 * rtl.h (init_rtlanal): Declare.
5725 * toplev.c (backend_init): Call init_rtlanal.
5727 2005-01-24 Jakub Jelinek <jakub@redhat.com>
5729 * flow.c (propagate_one_insn): Formatting.
5732 * flow.c (libcall_dead_p): Be more conservative if unsure.
5733 If there are any instructions between insn and call, see if they are
5734 all dead before saying the libcall is dead.
5736 2005-01-24 Uros Bizjak <uros@kss-loka.si>
5738 * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
5739 operand constraint for operand 0.
5741 2005-01-23 Richard Henderson <rth@redhat.com>
5744 * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
5745 edges leading to join block.
5747 2005-01-23 Roger Sayle <roger@eyesopen.com>
5749 * expmed.c (expand_mult_highpart): Make static. Change type of
5750 constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
5751 (expand_divmod): Updates calls to expand_mult_highpart by using
5752 gen_int_mode to pass a CONST_INT rtx.
5753 * rtl.h (expand_mult_highpart): Remove prototype.
5755 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
5757 * flow.c (regset_bytes, regset_size): Remove.
5759 * cfganal.c: Fix a reference to Harvey's paper.
5761 2005-01-23 Steven Bosscher <stevenb@suse.de>
5763 PR rtl-optimization/19464
5764 * tree-optimize.c (init_tree_optimization_passes): Add one more
5765 copyrename pass just before out-of-ssa.
5767 2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
5770 * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
5771 * ggc-none.c (ggc_free): Define.
5773 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
5775 * cse.c (max_reg, max_insn_uid): Remove.
5776 (cse_main): Don't access max_reg or max_insn_uid.
5778 * c-common.c (explicit_flag_signed_bitfields,
5779 lang_statement_code_p, lang_expand_function_end): Remove.
5780 * c-common.h: Remove the corresponding declarations.
5781 * c-opts.c (c_common_handle_option): Remove all write access
5782 to explicit_flag_signed_bitfields.
5784 * cgraph.c (cgraph_varpool_n_nodes): Remove.
5785 (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
5786 * cgraph.h: Remove the corresponding declaration.
5788 * gcse.c (null_pointer_info): Remove.
5790 2005-01-23 Roger Sayle <roger@eyesopen.com>
5791 Eric Botcazou <ebotcazou@libertysurf.fr>
5793 * combine.c (simplify_logical): Only simplify logical expressions
5794 of the form ior(and(x,y),z) by the inverse distributive law if the
5795 result is cheaper than the original.
5797 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
5799 * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
5800 fold-const.c, gimplify.c, params.h, tree-data-ref.c,
5801 tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
5802 tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
5803 config/freebsd-spec.h, config/arm/arm.h,
5804 config/h8300/h8300.md, config/i386/i386.md,
5805 config/i386/predicates.md, config/i386/sse.md,
5806 config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
5807 config/vax/vax.md: Fix comment typos. Follow spelling
5810 2005-01-23 Steven Bosscher <stevenb@suse.de>
5812 * gengtype.c (walk_type): Produce `not equal to' compares for loop
5813 tests, instead of `less than'.
5815 2005-01-23 Richard Sandiford <rsandifo@redhat.com>
5817 * function.c (assign_parm_setup_block): When creating a new stack slot
5818 for a parameter, get its alignment from the parameter's DECL_ALIGN
5819 rather than the type's TYPE_ALIGN. Make sure that the parameter
5820 is at least word aligned.
5822 2005-01-22 Roger Sayle <roger@eyesopen.com>
5825 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5827 2005-01-22 Richard Henderson <rth@redhat.com>
5830 * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
5831 in both compare operands.
5832 (movdfcc_1_sse_max): Likewise.
5833 (movsfcc_1_sse): Likewise. Add earlyclobber for scratch.
5834 (movdfcc_1_sse): Likewise.
5835 * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
5836 scratch register as needed.
5838 2005-01-22 Richard Henderson <rth@redhat.com>
5840 * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
5842 * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
5844 2005-01-22 Richard Henderson <rth@redhat.com>
5846 * genopinit.c (optabs): Use smin/smax for floating point too.
5847 * doc/md.texi: Update to match. Clarify that floating point
5848 results are undefined for +0/-0 and NaN.
5849 * doc/rtl.texi: Likewise.
5850 * rtl.def (SMIN, SMAX): Likewise
5851 * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
5853 * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
5854 leading 's' to the name.
5855 * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
5856 smaxxf3, sminxf3): Likewise.
5857 * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
5860 2005-01-22 Paul Brook <paul@codesourcery.com>
5862 * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
5864 2005-01-21 Mark Dettinger <dettinge@de.ibm.com>
5866 * config/s390/s390.c (struct processor_costs): New fields
5867 dlgr, dlr, dr, dsgfr, dsgr.
5868 (z900_cost, z990_cost): Values for new fields.
5869 (s390_rtx_costs): New cases MEM und COMPARE in switch
5870 statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
5871 DIV, MOD, UDIV, UMOD.
5873 2005-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5875 * config/s390/s390.md ("doloop_si64"): Reload input value directly
5876 into the register being decremented.
5877 ("doloop_si31", "doloop_di"): Likewise.
5878 ("*doloop_si_long"): Adapt pattern.
5880 2005-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5882 * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
5884 (CLASS_MAX_NREGS): Likewise.
5886 2005-01-21 Daniel Berlin <dberlin@dberlin.org>
5888 * doc/tree-ssa.texi (Statement Operands): Add example for new
5889 must-def macro. Note deprecation of old operands interface.
5891 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
5893 PR tree-optimization/19484
5894 * tree-cfg.c (remove_fallthru_edge): New function.
5895 (cleanup_control_flow): Remove fallthru edges from calls that are
5896 now known not to return.
5898 2005-01-20 Daniel Berlin <dberlin@dberlin.org>
5900 Fix PR tree-optimization/19038
5901 * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
5902 copies with loop variant ones.
5904 2005-01-22 Kazu Hirata <kazu@cs.umass.edu>
5906 * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
5907 config/alpha/alpha-protos.h, config/alpha/alpha.h,
5908 config/alpha/alpha.md, config/alpha/predicates.md,
5909 config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
5910 config/sparc/sol2.h: Update copyright.
5912 * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
5913 first label to see if it is a nonlocal label.
5915 2005-01-22 David Edelsohn <edelsohn@gnu.org>
5916 Andrew Pinski <pinskia@physics.uc.edu>
5919 * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
5920 maximum number of GPRs. Saturate n_fpr at maximum number of FPRs.
5922 2005-01-22 Ralf Corsepius <ralf.corsepius@rtems.org>
5924 * config/rs6000/rtems.h: Update copyright.
5926 2005-01-22 Ralf Corsepius <ralf.corsepius@rtems.org>
5929 * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
5930 (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
5931 (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
5933 2005-01-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5936 * c-typeck.c (convert_arguments): Check for error_mark_node.
5938 2005-01-21 Ian Lance Taylor <ian@airs.com>
5940 PR tree-optimization/13000
5941 * tree-inline.c: Include "tree-flow.h".
5942 (expand_call_inline): If warn_return_type, warn if non-void inline
5943 function falls through.
5944 * tree-cfg.c (execute_warn_function_return): Don't warn about
5945 control reaching end if TREE_NO_WARNING is set. Set
5947 * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
5949 * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
5950 branch if we don't need one.
5951 * c-typeck.c: Include "tree-flow.h"
5952 (c_finish_bc_stmt): Don't add a goto if the current statement
5953 list doesn't fall through to the current point.
5955 2005-01-21 Roger Sayle <roger@eyesopen.com>
5957 PR rtl-optimization/576
5958 * real.c (real_arithmetic): Change return type from void to bool
5959 to return an indication that the result may be inexact.
5960 * real.h (real_arithmeric): Update prototype.
5961 * fold-const.c (const_binop): Don't constant fold floating
5962 point expressions when the user specifies -frounding-math and
5963 the result may depend upon the run-time rounding mode.
5964 (fold_convert_const_real_from_real): Clean-up.
5965 (fold_initializer): Ignore flag_rounding_math for initializers.
5966 * simplify-rtx.c (simplify_binary_operation): Likewise, don't
5967 constant fold FP operations with flag_rounding_math if the
5968 result may depend upon the run-time rounding mode.
5970 2005-01-21 Tom Tromey <tromey@redhat.com>
5972 * c-cppbuiltin.c (define__GNUC__): Correct assertion.
5974 2005-01-21 Kazu Hirata <kazu@cs.umass.edu>
5976 * tree-cfg.c: Fix comment typos.
5978 2005-01-21 J"orn Rennecke <joern.rennecke@st.com>
5980 * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
5981 around the call to rest_of_handle_branch_target_load_optimize.
5983 2005-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
5985 * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
5986 (sparc64-*-openbsd*): Likewise.
5987 (sparclite-*-elf*): Include tm-dwarf2.h.
5988 (sparc86x-*-elf*): Likewise.
5989 (sparc64-*-elf*): Likewise.
5990 * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
5991 (DBX_DEBUGGING_INFO): Likewise.
5992 * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
5993 (PREFERRED_DEBUGGING_TYPE): Likewise.
5994 * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
5995 * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
5996 (PREFERRED_DEBUGGING_TYPE): Likewise.
5997 * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
5998 (PREFERRED_DEBUGGING_TYPE): Likewise.
5999 * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
6001 2005-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6004 * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
6006 2005-01-20 Paul Brook <paul@codesourcery.com>
6008 * doc/rtl.texi: Document value extension requirements for CONST_INT.
6010 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
6012 * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
6013 label is first in a sequence of labels.
6015 * tree-cfg.c (tree_verify_flow_info): Fix a typo.
6017 2005-01-20 Janis Johnson <janis187@us.ibm.com>
6018 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6020 * doc/sourcebuild.texi (Test Directives): New.
6022 2005-01-20 Roger Sayle <roger@eyesopen.com>
6024 * real.c (real_floor): Don't leave the result uninitialized when
6025 mode is VOIDMode, but return the unrounded intermediate value.
6026 (real_ceil): Likewise.
6028 2005-01-20 Paul Brook <paul@codesourcery.com>
6030 * config/arm/arm.md (insv): Use gen_int_mode.
6032 2005-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
6034 * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
6035 * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
6036 * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
6037 * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
6038 * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
6040 2005-01-20 Daniel Berlin <dberlin@dberlin.org>
6043 * dwarf2out.c (concat_loc_descriptor): We don't know we can use
6044 fbreg, so we have to assume we can't.
6045 (loc_descriptor_from_tree_1): Ditto.
6046 (containing_function_has_frame_base): New function.
6047 (add_location_or_const_value_attribute): Use it.
6048 Also try to generate a frame_base from a single element location
6051 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
6053 PR tree-optimization/15349
6054 * timevar.def (TV_TREE_MERGE_PHI): New.
6055 * tree-cfg.c (tree_forwarder_block_p): Add a new argument
6057 (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
6058 calls to tree_forwarder_block_p.
6059 (remove_forwarder_block_with_phi, merge_phi_nodes,
6060 gate_merge_phi, pass_merge_phi): New.
6061 * tree-optimize.c (init_tree_optimization_passes): Add
6063 * tree-pass.h: Add an extern for pass_merge_phi;
6065 2005-01-20 Richard Henderson <rth@redhat.com>
6068 * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
6069 (_mm_castps_pd, _mm_castps_si128): New.
6070 (_mm_castsi128_ps, _mm_castsi128_pd): New.
6072 2005-01-20 Richard Henderson <rth@redhat.com>
6075 * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
6076 __builtin_ia32_vec_init_v2si.
6077 (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
6078 * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
6079 (ix86_init_mmx_sse_builtins): Create it.
6080 (ix86_expand_builtin): Expand it.
6081 (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
6082 * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
6083 (vec_extractv2si_0, vec_extractv2si_1): New.
6085 2005-01-20 Richard Henderson <rth@redhat.com>
6088 * config/i386/i386.c (ix86_expand_push): New.
6089 * config/i386/mmx.md (push<MMXMODE>1): New.
6090 * config/i386/sse.md (push<SSEMODE>1): New.
6091 * config/i386/i386-protos.h: Update.
6093 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
6095 * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
6098 2005-01-20 Richard Henderson <rth@redhat.com>
6100 * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
6101 * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
6103 2005-01-19 Richard Henderson <rth@redhat.com>
6106 * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
6107 to V4SFmode in SSE1 fallback load path.
6109 2005-01-19 Richard Henderson <rth@redhat.com>
6111 * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
6112 in QImode expansion to ix86_expand_vector_set.
6113 (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
6115 2005-01-19 Richard Henderson <rth@redhat.com>
6118 * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
6119 subclass of the input class.
6120 (ix86_secondary_memory_needed): Always true for cross-MMX classes.
6121 Always true for cross-SSE1 classes. Rationalize conditionals.
6122 * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
6123 * config/i386/i386.md (movsi_1): Add MMX/SSE zeros. Fix alternatives
6124 for SSE1. Don't check TARGET_INTER_UNIT_MOVES.
6125 (movdi_2): Add MMX/SSE zeros.
6126 (movdi_1_rex64): Likewise. Don't check TARGET_INTER_UNIT_MOVES.
6127 (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
6128 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
6129 (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
6130 (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
6131 (zero_extendsidi2_rex64_1): Remove.
6132 (MOV0 peephole): Check GENERAL_REG_P.
6134 2005-01-19 Richard Henderson <rth@redhat.com>
6137 * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
6139 (ix86_expand_vector_extract): Likewise.
6141 2005-01-19 Richard Henderson <rth@redhat.com>
6144 * expr.c (emit_move_change_mode): New argument force; use
6145 simplify_gen_subreg if true.
6146 (emit_move_via_alt_mode): Merge into ...
6147 (emit_move_via_integer): ... here.
6148 (emit_move_ccmode): Use emit_move_change_mode directly.
6150 2005-01-19 Richard Henderson <rth@redhat.com>
6153 * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
6154 (alpha_preferred_reload_class): Handle CONST_VECTOR.
6155 (alpha_emit_set_const_1): Add no_output parameter; don't emit
6157 (alpha_emit_set_const): Likewise. Make static.
6158 (alpha_emit_set_long_const): Make static.
6159 (alpha_extract_integer): Split out from alpha_expand_mov.
6160 (alpha_split_const_mov): Likewise.
6161 (alpha_expand_mov): Use them. Handle CONST_VECTOR.
6162 (alpha_legitimate_constant_p): New.
6163 * config/alpha/alpha-protos.h: Update.
6164 * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
6165 (LEGITIMATE_CONSTANT_P): Re-implement with a function.
6166 * config/alpha/alpha.md (movsi): Add n alternative.
6167 (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
6168 (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
6169 (splitters for all of the above): Use alpha_split_const_mov.
6170 * config/alpha/predicates.md (non_add_const_operand): New.
6171 (non_zero_const_operand): New.
6172 (input_operand): Use alpha_legitimate_constant_p after reload.
6174 2005-01-19 Zdenek Dvorak <dvorakz@suse.cz>
6176 PR tree-optimization/19038
6177 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
6178 (add_candidate): Add ivs with increment in latch only if
6179 allow_ip_end_pos_p is true.
6180 (determine_iv_cost): Use empty_block_p.
6182 2005-01-19 Daniel Berlin <dberlin@dberlin.org>
6184 * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
6185 (compute_dominance_frontiers): Ditto.
6187 2005-01-19 Ralf Corsepius <ralf.corsepius@rtems.org>
6190 * config/sh/t-rtems: New.
6191 * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
6193 2005-01-19 Zdenek Dvorak <dvorakz@suse.cz>
6195 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
6196 the offset of the selected field.
6198 2005-01-19 Kazu Hirata <kazu@cs.umass.edu>
6200 * tree-cfg.c (remove_forwarder_block): Fix the check to
6201 prevent a nonlocal label from appearing in the middle of a
6204 2005-01-19 Hans-Peter Nilsson <hp@axis.com>
6206 PR rtl-optimization/19462
6207 * reorg.c (find_end_label): Create return insn only if
6208 current_function_epilogue_delay_list is empty.
6210 2005-01-19 Paolo Bonzini <bonzini@gnu.org>
6212 * doc/passes.texi: Remove paragraph mentioning new-ra.
6214 2005-01-19 Jakub Jelinek <jakub@redhat.com>
6216 PR rtl-optimization/15139
6217 * combine.c: Include params.h.
6218 (count_rtxs): New function.
6219 (record_value_for_reg): If replace_rtx would replace at least
6220 2 occurrences of REG in VALUE and TEM is really large, replace REG with
6221 (clobber (const_int 0)) instead of TEM.
6222 * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
6223 * params.h (MAX_LAST_VALUE_RTL): New.
6224 * Makefile.in (combine.o): Depend on $(PARAMS_H).
6225 * doc/invoke.texi (--param max-last-value-rtl=N): Document.
6228 * c-typeck.c (digest_init): Only call build_vector if all constructor
6229 elements are *_CST nodes.
6230 * gimplify.c (gimplify_init_constructor): Likewise.
6233 * c-typeck.c (digest_init): Only call build_vector if inside_init
6236 2005-01-18 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
6238 * toplev.c (init_asm_output): Remove dead #ifdef.
6240 2005-01-18 Kaz Kojima <kkojima@gcc.gnu.org>
6242 * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
6244 2005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
6246 * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
6247 accessing DECL_FUNCTION_CODE.
6248 * dojump.c (do_jump): Likewise.
6249 * gimplify.c (gimplify_call_expr): Likewise.
6250 * predict.c (expr_expected_value): Likewise.
6251 (strip_builtin_expect): Likewise.
6252 * tree-inline.c (estimate_num_insns_1): Likewise.
6253 * tree-ssa-loop-im.c (stmt_cost): Likewise
6254 * fold-const.c (fold): Test for BUILT_IN_NORMAL.
6255 (tree_expr_nonnegative_p): Likewise.
6257 2005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
6259 * config/sparc/sparc.c (load_pic_register): Emit the appropriate
6260 variant of the load_pcrel_sym pattern.
6261 * config/sparc/sparc.md (P macro): Move to the top.
6262 (load_pcrel_sym): Macroize using P.
6263 (save_register_window): Likewise.
6265 2005-01-18 Aldy Hernandez <aldyh@redhat.com>
6267 * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
6270 2005-01-18 Andrew Pinski <pinskia@physics.uc.edu>
6273 * c-typeck.c (build_asm_expr): Strip nops off
6274 input memory operands.
6276 2005-01-18 David Edelsohn <edelsohn@gnu.org>
6278 * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
6279 _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
6280 * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
6281 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
6283 2005-01-18 Joel Sherrill <joel.sherrill@oarcorp.com>
6286 * config/i386/i386.c (override_options): If the 80387 is disabled,
6287 then do not return FP values using FP registers.
6289 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
6291 * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
6292 c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
6293 combine.c, config.gcc, coverage.h, cse.c, cselib.c,
6294 defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
6295 flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
6296 gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
6297 output.h, postreload-gcse.c, postreload.c, recog.c,
6298 resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
6299 targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
6300 tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
6301 tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
6302 tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
6303 tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
6304 tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
6305 unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
6307 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
6308 config/alpha/alpha.c, config/arm/vfp.md,
6309 config/i386/emmintrin.h, config/i386/i386-modes.def,
6310 config/i386/i386-protos.h, config/i386/i386.h,
6311 config/i386/pmmintrin.h, config/i386/ppro.md,
6312 config/i386/predicates.md, config/i386/xmmintrin.h,
6313 config/i860/i860.c, config/ia64/ia64-modes.def,
6314 config/ia64/ia64-protos.h, config/ia64/ia64.h,
6315 config/ia64/ia64.md, config/ia64/itanium1.md,
6316 config/ia64/itanium2.md, config/ia64/predicates.md,
6317 config/iq2000/iq2000.h, config/mips/linux64.h,
6318 config/rs6000/aix41.h, config/rs6000/aix43.h,
6319 config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
6320 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
6321 config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
6322 config/sparc/linux64.h, config/sparc/litecoff.h,
6323 config/sparc/sp64-elf.h, config/sparc/sparc.c,
6324 config/sparc/sparc.h, config/sparc/sparc.md,
6325 config/sparc/sysv4-only.h: Update copyright.
6327 2005-01-18 Richard Henderson <rth@redhat.com>
6330 * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
6332 2005-01-18 Marc Espie <espie@openbsd.org>
6333 * config/i386/openbsdelf.h: Typo.
6335 2005-01-18 Richard Henderson <rth@redhat.com>
6337 * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
6338 special case for sse.
6339 * config/i386/predicates.md (sse_comparison_operator): Likewise.
6341 2005-01-18 Dorit Naishlos <dorit@il.ibm.com>
6343 * tree-inline.c (estimate_num_insns_1): Added cases for
6344 ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
6346 2005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
6348 PR rtl-optimization/19296
6349 * combine.c (simplify_comparison): Rewrite the condition under
6350 which a non-paradoxical SUBREG of a PLUS can be lifted when
6351 compared against a constant.
6353 2005-01-18 Andi Kleen <ak@muc.de>
6355 * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
6356 * c.opt (-Wpointer-sign): Add.
6357 * doc/invoke.texi: (-Wpointer-sign): Add.
6359 2005-01-18 Uros Bizjak <uros@kss-loka.si>
6361 * config/i386/i386.c (override_options): Revert 2004-11-24 change.
6362 * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
6363 *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
6364 logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
6365 exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
6366 nearbyintsf2): Disable for TARGET_SSE_MATH. Leave patterns enabled
6367 for TARGET_MIX_SSE_I387.
6368 (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
6369 sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
6370 atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
6371 log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
6372 floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
6373 (TARGET_SSE2 && TARGET_SSE_MATH). Leave patterns enabled for
6374 TARGET_MIX_SSE_I387.
6375 (atan2sf3, atan2df3, atan2xf3): Remove register constraints
6378 2005-01-18 Uros Bizjak <uros@kss-loka.si>
6381 * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
6382 Add movaps alternative for xmm reg->reg move.
6384 2005-01-17 Jeff Law <law@redhat.com>
6386 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
6387 at the end of the main DOM loop rather than just before DOM exits.
6389 2005-01-17 Diego Novillo <dnovillo@redhat.com>
6391 PR tree-optimization/19121
6392 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
6393 adding aliases to a name tag, also add them to the pointer's
6395 * tree-ssa-copy.c (merge_alias_info): Do not merge flow
6396 sensitive alias info at all. Only check that the two pointers
6397 have compatible pointed-to sets.
6398 * tree-ssa.c (verify_name_tags): Verify that the alias set of
6399 a pointer's type tag is a superset of the alias set of the
6402 2005-01-17 James E Wilson <wilson@specifixinc.com>
6405 * config/ia64/ia64.md (movxf): Handle general register source. Adjust
6406 comment to document why.
6408 2005-01-17 Richard Henderson <rth@redhat.com>
6410 * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
6411 sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
6412 sse2_vmsmaxv2df3_finite, sminv2df3_finite,
6413 sse2_vmsminv2df3_finite): New.
6414 (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
6415 sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
6416 Force op1 into register.
6418 2005-01-17 Kelley Cook <kcook@gcc.gnu.org>
6420 * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
6421 bubblestrap from always rebuilding build directory.
6423 2005-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6425 * config/s390/s390.md ("*clc"): Remove incorrect '='.
6426 ("*cmpmem_short"): Likewise.
6428 2005-01-17 Steven Bosscher <stevenb@suse.de>
6430 * basic-block.h: Document BB_* flags.
6431 * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
6432 use an sbitmap instead.
6433 * sched-rgn.c (compute_trg_info): Likewise.
6435 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
6437 * config.gcc (mips64*-*-linux*): Set the default abi to n32. Remove
6438 redundant target_cpu_default and extra_parts lines. Use the default
6440 * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
6441 (SUBTARGET_EXTRA_SPECS): Delete.
6442 (DRIVER_SELF_SPECS): Remove architecture lines. Set the ABI directly.
6443 (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
6444 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
6445 and "n32" for -mabi=n32.
6447 2005-01-17 Ian Lance Taylor <ian@airs.com>
6450 * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
6451 fold constant variables into initial values.
6453 2005-01-17 Kazu Hirata <kazu@cs.umass.edu>
6455 * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
6457 * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
6458 through the statements backward.
6460 2005-01-17 Ian Lance Taylor <ian@airs.com>
6462 PR middle-end/13127:
6463 * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
6464 a variable set to the return value of the inlined function.
6466 2005-01-17 Mark Dettinger <dettinge@de.ibm.com>
6468 * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
6469 when modes are tieable.
6471 2005-01-17 Ranjit Mathew <rmathew@hotmail.com>
6473 * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
6474 of pthread_create to find out if threads are enabled.
6475 * gthr-posix95.h (__gthread_active_p): Likewise.
6477 2005-01-17 Paolo Bonzini <bonzini@gnu.org>
6479 * common.opt (-fnew-ra): Remove.
6481 * toplev.h (flag_new_regalloc): Remove.
6482 * Makefile.in (ra*.*): Don't mention.
6483 * passes.c (rest_of_handle_new_regalloc): Remove.
6484 (rest_of_handle_combine, rest_of_compilation): Always consider
6485 flag_new_regalloc as false.
6486 * doc/invoke.texi: Don't document -fnew-ra.
6488 2005-01-17 Paolo Bonzini <bonzini@gnu.org>
6490 * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
6491 last parameter to reg_scan.
6492 * loop.c (loop_optimize): Likewise.
6493 * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
6494 rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
6495 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
6496 rest_of_handle_gcse, rest_of_handle_loop_optimize,
6497 rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
6498 * regclass.c (reg_scan): Likewise, for the declaration.
6499 * rtl.h (reg_scan): Likewise, for the prototype.
6501 2005-01-17 Kazu Hirata <kazu@cs.umass.edu>
6503 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
6504 mark_dfs_back_edges.
6506 2005-01-16 Daniel Berlin <dberlin@dberlin.org>
6508 * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
6509 (compute_avail): Uses don't go in tmp_gen.
6511 2005-01-16 Steven Bosscher <stevenb@suse.de>
6513 * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
6514 loop to look for a free slot in a page entry.
6516 2005-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6519 * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
6520 * toplev.c (compile_file): Call process_pending_assemble_output_defs
6521 just before targetm.asm_out.file_end.
6522 * tree.h (process_pending_assemble_output_defs): Declare.
6523 * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
6525 (assemble_alias): Defer generation of assembly code for defines when
6526 TARGET_DEFERRED_OUTPUT_DEFS is true.
6527 * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
6528 * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
6529 * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
6531 2005-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6534 * pa.c (pa_scalar_mode_supported_p): New function.
6535 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6536 * pa.h (MIN_UNITS_PER_WORD): Add comment.
6538 * pa-protos.h (prefetch_operand): Delete.
6539 (prefetch_cc_operand, prefetch_nocc_operand): New declations.
6540 * pa.c (prefetch_operand): Delete.
6541 (prefetch_cc_operand, prefetch_nocc_operand): New functions.
6542 * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
6543 (PREDICATE_CODES): Delete prefetch_operand. Add prefetch_cc_operand
6544 and prefetch_nocc_operand.
6545 * pa.md (prefetch): Rework to avoid reload problems handling short
6546 displacements when a cache control completer needs to be provided.
6547 (prefetch_32, prefetch_64): Delete.
6548 (prefetch_cc, prefetch_nocc): New patterns.
6550 2005-01-15 David Edelsohn <edelsohn@gnu.org>
6552 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
6554 2005-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6557 * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
6558 exceeds maximum alignment for global common data.
6559 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
6560 * som.h (MAX_OFILE_ALIGNMENT): Likewise.
6562 2004-01-15 Roger Sayle <roger@eyesopen.com>
6564 * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
6566 2004-01-15 Roger Sayle <roger@eyesopen.com>
6568 * harg-reg-set.h (reg_class_names): Prototype global array.
6569 * regclass.c (reg_class_names): Declare here and initialize to
6571 (dump_regclass): Remove local declaration of reg_class_names.
6572 (regclass): Likewise.
6573 * cfg.c (dump_flow_info): Likewise.
6574 * ra-debug.c (reg_class_names): Likewise.
6575 * regrename.c (reg_class_names): Likewise.
6576 * reload.c (reg_class_names): Likewise.
6577 * reload1.c (spill_failure): Likewise.
6578 * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
6580 2005-01-15 Ulrich Weigand <uweigand@de.ibm.com>
6582 * config/s390/s390.md ("reload_outti"): Remove predicate for
6583 output operand. Abort if operand is not a MEM.
6584 ("reload_outdi", "reload_outdf"): Likewise.
6586 2005-01-15 Marc Espie <espie@openbsd.org>
6588 * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
6589 (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
6590 * config/openbsd.h: Fix C++ includes for native configurations.
6591 Add proper OS_CPP_BUILTINS. Fix libspec for recent OpenBSD.
6592 Add trampoline support.
6593 * config/i386/openbsdelf.h: New.
6595 2005-01-15 Marc Espie <espie@openbsd.org>
6597 * collect2.c (main): Explicitly parse -dynamic-linker option.
6599 2005-01-15 Jakub Jelinek <jakub@redhat.com>
6601 PR tree-optimization/19060
6602 * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
6603 Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
6604 (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
6605 and handle extract_range_from_cond returning false.
6606 * fold-const.c (fold): Optimize comparisons with min/max even for
6607 width > HOST_BITS_PER_WIDE_INT.
6609 2005-01-15 Ralf Corsepius <ralf.corsepius@rtems.org>
6611 * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
6612 * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
6613 Remove little endian multilib variants.
6614 Add mips32 multilib variant.
6616 2005-01-15 Kazu Hirata <kazu@cs.umass.edu>
6618 * explow.c (copy_all_reg, stabilize): Remove.
6619 * expr.h: Remove the corresponding prototypes.
6621 * rtlanal.c (regs_set_between_p): Remove.
6622 * rtl.h: Remove the corresponding prototype.
6624 2005-01-14 David Edelsohn <edelsohn@gnu.org>
6626 * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
6627 to rs6000_nonimmediate_operand.
6628 * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
6629 rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
6630 * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
6631 rs6000_nonimmediate_operand.
6632 * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
6633 rs6000_nonimmediate_operand.
6635 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
6637 * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
6639 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
6641 * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
6643 (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
6644 (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
6646 * config/rs6000/rs6000.c (invalid_e500_subreg): New.
6647 (rs6k_nonimmediate_operand): New.
6648 (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
6650 (legitimate_lo_sum_address_p): Same.
6651 (rs6000_legitimize_address): Same.
6652 (rs6000_legitimize_reload_address): Same.
6653 (rs6000_legitimate_address): Same.
6654 (spe_build_register_parallel): Pass DF and DC modes in a DI
6657 * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
6658 to rs6k_nonimmediate_operand.
6660 * config/rs6000/spe.md ("*frob_df_di"): New.
6661 ("*frob_di_df"): New.
6662 ("*frob_di_df_2"): New.
6663 ("*mov_sidf_e500_subreg0"): New.
6664 ("*mov_sidf_e500_subreg4"): New.
6665 ("*movdf_e500_double"): Change predicate to
6666 rs6k_nonimmediate_operand.
6668 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
6670 * postreload.c (move2add_note_store): Only call
6671 trunc_int_for_mode on scalar integers.
6673 2005-01-14 Steven Bosscher <stevenb@suse.de>
6675 * tree-ssa-dce.c (visited_control_parents): New sbitmap to
6676 replace BB_VISITED uses.
6677 (find_obviously_necessary_stmts): Don't clear BB_VISITED.
6678 (propagate_necessity): Check the bitmap instead of BB_VISITED.
6679 (tree_dce_done): Free visited_control_parents.
6680 (perform_tree_ssa_dce): Allocate and clear it.
6681 * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
6682 (compute_antic): Iterate from here using a DFS. Use an sbitmap
6683 instead of BB_VISITED.
6685 2005-01-14 Kazu Hirata <kazu@cs.umass.edu>
6687 * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
6688 rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
6689 Remove unused prototypes.
6691 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
6693 * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
6694 64-bit register usage.
6695 (spe_func_has_64bit_regs_p): Add FIXME note.
6697 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
6699 * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
6700 flag_finite_math_only with flag_unsafe_math_optimizations.
6702 2005-01-14 J. D. Johnston <jjohnst@us.ibm.com>
6704 * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
6706 (__tpf_eh_return): Copy TPF private stack area from the module
6707 boundary stack frame. Add check for when module addresses are
6708 equal, but no stub address is found.
6710 2005-01-14 Richard Earnshaw <rearnsha@arm.com>
6713 * arm.h (struct machine_function): Add call_via field.
6714 (thumb_call_via_label): Declare.
6715 * arm.c (thumb_call_via_label): New variable.
6716 (thumb_call_reg_needed): New variable.
6717 (arm_output_function_epilogue): For Thumb code, output any per-function
6718 call-indirect trampolines.
6719 (thumb_call_via_reg): New function.
6720 (arm_file_end): New function.
6721 (TARGET_ASM_FILE_END): Call arm_file_end.
6722 (aof_file_end): Likewise.
6723 * arm-protos.h (thumb_call_via_reg): Declare.
6724 * arm.md (call_reg_thumb, call_value_reg_thumb): Call
6725 thumb_call_via_reg in normal case.
6727 2005-01-14 Jakub Jelinek <jakub@redhat.com>
6730 PR rtl-optimization/19348
6731 * recog.c (peephole2_optimize): Do global life update if some peephole
6732 decides it doesn't need at least one of its inputs and that change
6733 influences liveness at the start of the basic block.
6735 * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
6736 arguments instead of 1.
6738 2005-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
6741 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
6742 zero for nested functions needing a static chain or functions
6743 with a non-constant address.
6745 2005-01-13 Roger Sayle <roger@eyesopen.com>
6747 * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
6748 (and (sign_extend X) C) into (zero_extend (and X C)).
6750 2005-01-13 David O'Brien <obrien@FreeBSD.org>
6752 * config/freebsd-spec.h: Make KSE pthread lib logic the default.
6754 2005-01-13 Richard Henderson <rth@redhat.com>
6759 * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
6760 bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
6761 not just TARGET_SSE.
6762 (cmpfp_i_387): Rename from cmpfp_i. Move after sse patterns.
6763 (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
6764 (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
6765 (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
6766 (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
6767 (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
6768 (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
6769 fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
6770 (movdicc_c_rex64): Rename with '*'.
6771 (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
6772 (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
6773 (movsfcc_1_387): Rename from movsfcc_1.
6774 (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
6775 (movdfcc_1, movdfcc_1_rex64): Add check for 387.
6776 (sminsf3, smaxsf3, smindf3, smaxdf3): New.
6777 (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
6778 mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
6779 maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
6780 sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
6781 sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
6782 sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
6783 sse_movdfcc_const0_4): Remove.
6784 * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
6785 recognize min/max early. Update for changed sse cmove patterns.
6786 (ix86_split_sse_movcc): New.
6787 * config/i386/i386-protos.h: Update.
6789 2005-01-13 Steven Bosscher <stevenb@suse.de>
6791 * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
6792 (fix_stmt_v_may_defs): Likewise.
6794 2005-01-13 Richard Henderson <rth@redhat.com>
6796 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
6797 for converting the mask.
6799 2005-01-13 David Edelsohn <edelsohn@gnu.org>
6801 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
6804 2005-01-13 Richard Henderson <rth@redhat.com>
6806 * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
6807 IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
6808 IX86_BUILTIN_MOVDQ2Q): Remove.
6809 (IX86_BUILTIN_VEC_EXT_V4SI): New.
6810 (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
6811 (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
6813 * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
6814 (sse2_pextrw): Fix immediate constraint.
6815 (sse2_loadq, sse2_loadq_rex64): Remove.
6816 * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
6817 Use __builtin_ia32_vec_ext_<size>.
6818 (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
6820 2005-01-13 Aldy Hernandez <aldyh@redhat.com>
6822 * function.c (assign_parm_setup_block): Look inside original
6823 entry_parm when inspecting PARALLEL.
6825 2005-01-13 Ralf Corsepius <ralf.corsepius@rtems.org>
6826 Joel Sherrill <joel@oarcorp.com>
6829 * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
6830 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
6831 rtems_gxx_recursive_mutex_init.
6832 (__gthread_recursive_mutex_lock): New function.
6833 (__gthread_recursive_mutex_trylock): Likewise.
6834 (__gthread_recursive_mutex_unlock): Likewise.
6836 2005-01-13 Ralf Corsepius <ralf.corsepius@rtems.org>
6838 * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
6840 2005-01-13 Jan Beulich <jbeulich@novell.com>
6842 * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
6843 (ashrti3_internal): Indicate output is early clobber. Generate result
6844 into output rather than first input. Use move for low word of output
6845 if shift count is exactly 64.
6846 (lshrti3_internal): Likewise.
6848 2005-01-13 Hans-Peter Nilsson <hp@bitrange.com>
6852 * reload1.c (delete_output_reload): Don't delete an output reload
6853 if the pseudo lives longer than a single basic block. Adjust and
6854 improve wording of comment.
6856 2005-01-12 Andrew Pinski <pinskia@physics.uc.edu>
6859 * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
6860 of TYPE_SIZE where we mean the number of bytes.
6862 2005-01-12 Aldy Hernandez <aldyh@redhat.com>
6864 * function.c (assign_parm_setup_block): Relax condition on
6865 multi-register optimization.
6867 2005-01-12 Nick Clifton <nickc@redhat.com>
6869 * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
6870 an "in_delay_slot" attribute of "no" to prevent them being used in
6871 delay slots. This is forbidden because they might generate
6874 2005-01-12 Alan Modra <amodra@bigpond.net.au>
6877 * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
6880 2005-01-12 Nick Clifton <nickc@redhat.com>
6882 * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
6883 passed on to GAS) but do not define, as GAS no longer supports or
6884 needs the -m2000 option.
6886 2005-01-11 Roger Sayle <roger@eyesopen.com>
6888 * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
6889 type as args of unprototyped builtins aren't automatically promoted.
6890 (fold_builtin_abs): Likewise.
6892 2005-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6894 * Makefile.in: Set a `build-warn' variable.
6896 2005-01-11 Zdenek Dvorak <dvorakz@suse.cz>
6898 PR tree-optimization/17949
6899 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
6900 (find_interesting_uses_address): Use it.
6902 2005-01-11 Aldy Hernandez <aldyh@redhat.com>
6904 * regrename.c (kill_value): Handle subreg's that won't simplify.
6906 2005-01-11 Richard Henderson <rth@redhat.com>
6909 * config/i386/i386.h (enum ix86_builtins): Move ...
6910 * config/i386/i386.c: ... here.
6911 (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
6912 IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
6913 IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
6914 IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
6915 IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD, IX86_BUILTIN_STOREHPD,
6916 IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
6917 IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
6918 IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
6919 IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
6920 IX86_BUILTIN_LOADDDUP): Remove.
6921 (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
6922 IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
6923 IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
6924 IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
6925 IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
6926 (ix86_init_builtins): Make static.
6927 (ix86_init_mmx_sse_builtins): Update for changed builtins.
6928 (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
6929 if all the modes match. Otherwise, fake it.
6930 (get_element_number, ix86_expand_vec_init_builtin,
6931 ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
6932 (ix86_expand_builtin): Make static. Update for changed builtins.
6933 (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
6934 operand instead of sse2_loadsd. Cast sse1 fallback to V4SFmode.
6935 (ix86_expand_vector_init_duplicate): New.
6936 (ix86_expand_vector_init_low_nonzero): New.
6937 (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
6938 Split out from ix86_expand_vector_init; handle integer modes.
6939 (ix86_expand_vector_init): Use them.
6940 (ix86_expand_vector_set, ix86_expand_vector_extract): New.
6941 * config/i386/i386-protos.h: Update.
6942 * config/i386/predicates.md (reg_or_0_operand): New.
6943 * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
6944 (movv2sf_internal): Likewise. And a splitter to match them all.
6945 (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
6946 vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
6947 vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
6948 vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
6949 (mmx_pinsrw): Fix operand ordering.
6950 * config/i386/sse.md (movv4sf splitter): Use direct pattern,
6951 rather than sse_loadss expander.
6952 (movv2df splitter): Similarly.
6953 (sse_loadss, sse_loadlss): Remove.
6954 (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
6955 (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
6956 (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
6957 (sse3_movddup): Rename with '*'.
6958 (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
6959 (sse2_loadsd): Remove.
6960 (vec_dupv2df_sse3): Rename from sse3_loadddup.
6961 (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
6962 (sse2_pinsrw): Fix argument ordering.
6963 (sse2_loadld, sse2_loadq): Add sse1 alternatives.
6964 (sse2_stored): Remove 'r' destination.
6965 (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
6966 vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
6967 vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
6968 vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
6969 vec_extractv16qi, vec_initv16qi): New.
6971 * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
6972 (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
6973 _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
6975 (_mm_load_pd, _mm_store_pd): Use plain dereference.
6976 (_mm_load_si128, _mm_store_si128): Likewise.
6977 (_mm_load1_pd): Use _mm_set1_pd.
6978 (_mm_load_sd): Use _mm_set_sd.
6979 (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
6980 (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
6981 (_mm_set_epi64): Use _mm_set_epi64x.
6982 (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
6983 _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
6984 _mm_setr_epi8): Use _mm_set_foo form.
6985 (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
6986 (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
6987 (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
6988 (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
6989 * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
6990 (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
6991 (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
6992 (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
6993 (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
6994 * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
6995 (_mm_movedup_pd): Use _mm_shuffle_pd.
6996 * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
6997 _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
6998 (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
6999 _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
7001 (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
7002 (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
7003 (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
7004 (_mm_store_ps): Use raw dereference.
7005 (_mm_store1_ps): Use _mm_storeu_ps.
7006 (_mm_storer_ps): Use _mm_store_ps.
7007 (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
7008 (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
7010 2005-01-11 Stan Shebs <shebs@apple.com>
7012 * config/rs6000/rs6000.c (machopic_output_stub): Issue
7013 ldu instead of lwzu if 64-bit -mdynamic-no-pic.
7015 2005-01-11 Andrew Pinski <pinskia@physics.uc.edu>
7018 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
7019 Skip all DECLs except for FIELD_DECLs.
7021 2005-01-11 Andreas Krebbel <krebbel1@de.ibm.com>
7023 * config/s390/s390.c (override_options): Return error if
7024 -mbackchain, -mpacked-stack and -mhard-float are used together.
7025 (s390_va_start): Remove the backchain && packed-stack special case.
7026 (s390_gimplify_va_arg): Likewise.
7027 * doc/invoke.texi: Remove the ABI incompatibility note.
7029 2005-01-11 Andreas Krebbel <krebbel1@de.ibm.com>
7031 * config/s390/s390.c (struct s390_frame_layout): Remove
7033 (s390_frame_info, s390_emit_prologue): Replace occurrences of
7034 save_backchain_p with TARGET_BACKCHAIN.
7036 2005-01-11 Alan Modra <amodra@bigpond.net.au>
7039 * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
7040 * expr.h (struct locate_and_pad_arg_data): Add "boundary".
7041 * function.c (locate_and_pad_parm): Set new field.
7042 (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
7043 Tweak where_pad test to include "none". Always set mem align for
7045 (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
7046 not sufficient for type.
7047 (assign_parm_setup_block): If stack_parm is zero on entry, always
7048 make a new stack local. Block move old stack parm if necessary
7049 to new aligned stack local.
7050 (assign_parm_setup_stack): Use a block move to handle
7051 potentially misaligned entry_parm.
7052 (assign_parms_unsplit_complex): Specify required alignment when
7053 creating stack local.
7054 * calls.c (compute_argument_addresses): Override alignment of stack
7055 arg calculated from its type with the alignment given by
7056 FUNCTION_ARG_BOUNDARY.
7057 (store_one_arg): Likewise.
7059 2005-01-11 Jan Beulich <jbeulich@novell.com>
7061 * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
7062 Change respective itanium_class attribute to ialu.
7063 (shladdp4_internal): New.
7064 * config/ia64/predicates.md (shladd_log2_operand): New.
7066 2005-01-11 Richard Henderson <rth@redhat.com>
7068 * expr.c (store_constructor): Use rtvec_alloc instead of
7069 alloca+gen_rtvec_v, and an incorrect number passed to alloca.
7071 2005-01-11 Kazu Hirata <kazu@cs.umass.edu>
7073 * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
7075 2005-01-11 Alan Modra <amodra@bigpond.net.au>
7077 * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
7078 * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
7079 (TARGET_RWRELOC): Define.
7080 (ia64_rwreloc_section_type_flags): Delete.
7081 (ia64_section_type_flags): New function.
7082 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
7083 (TARGET_RWRELOC): Define.
7085 2005-01-10 David Mosberger <davidm@hpl.hp.com>
7088 * config/ia64/ia64.c (process_set): For alloc insn, only call
7089 process_epilogue is !frame_pointer_needed.
7091 2005-01-10 Roger Sayle <roger@eyesopen.com>
7094 * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
7095 unary operator and can't be treated as a binary/comparison operator.
7097 2005-01-10 Richard Henderson <rth@redhat.com>
7099 * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
7100 (ix86_return_in_memory): Likewise.
7101 (function_arg_advance): Likewise. Mirror structure in function_arg
7102 for choosing register to advance.
7104 2005-01-10 Kazu Hirata <kazu@cs.umass.edu>
7106 * tree-vectorizer.c, tree.def: Fix comment typos.
7108 2005-01-10 Mark Dettinger <dettinge@de.ibm.com>
7110 * config/s390/s390.c (struct processor_costs): 4 new fields:
7111 ddbr, ddr, debr, der.
7112 (s390_rtx_costs): More precise handling of divide instructions.
7114 2005-01-10 David Edelsohn <edelsohn@gnu.org>
7116 * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
7118 2005-01-10 Jan Beulich <jbeulich@novell.com>
7120 * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
7121 names resulting from -ffunction-sections/-fdata-sections and linkonce
7123 * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
7124 based on the section name. Rearrange the section name comparison logic
7125 slightly so that each section name is compared against at most once.
7127 2005-01-10 Ben Elliston <bje@au.ibm.com>
7129 * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
7130 targets for which -fPIC reduces limitations on the GOT size.
7132 2005-01-09 Falk Hueffner <falk@debian.org>
7134 * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
7137 2005-01-09 David Edelsohn <edelsohn@gnu.org>
7140 * collect2.c (main): Set aixrtl_flag for -brtl option.
7141 (resolve_lib_name): Search for .so file extension before .a
7144 2005-01-09 Dorit Naishlos <dorit@il.ibm.com>
7146 * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
7147 (vect_analyze_data_refs_alignment): Add dump prints.
7149 2005-01-09 Ira Rosen <irar@il.ibm.com>
7151 * tree-vectorizer.c (vect_analyze_offset_expr): Use
7152 expr_invariant_in_loop_p.
7153 Initialize outputs first thing in the function.
7154 (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
7155 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
7156 (vect_analyze_pointer_ref_access): Check that the initial condition of
7157 the access function is loop invariant.
7159 2005-01-09 Richard Henderson <rth@redhat.com>
7161 * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
7162 (ix86_expand_builtin): Likewise. Frob MASKMOVQ wrt the input mem
7163 just like MASKMOVDQU. Return plain zero for MMX_ZERO.
7164 * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
7165 mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
7166 movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
7167 movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
7168 sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
7169 ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
7170 mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
7171 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
7172 sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
7173 mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
7174 mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
7175 gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
7176 ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
7177 mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
7178 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
7179 mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
7180 eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
7181 pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
7182 pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
7183 pswapdv2sf2): Move to mmx.md; rename as necessary with leading
7185 (mmx_clrdi, pavgusb): Remove.
7186 (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
7187 with leading sse_ prefix.
7188 * config/i386/sse.md: Receive them.
7189 * config/i386/mmx.md: New file.
7190 (MMXMODE12, MMXMODE24, mmxvecsize): New.
7191 (subrv2sf3): Turn into expander for normal subtraction.
7192 (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
7193 mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
7194 mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
7195 mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
7196 commutative; use ix86_binary_operator_ok.
7197 (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
7198 mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
7199 mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
7200 mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
7201 mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
7202 Macroize from existing patterns; use ix86_binary_operator_ok.
7203 (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
7204 (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
7205 mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise. Model
7206 with vec_select+vec_concat.
7207 (mmx_pshufw, mmx_pshufw_1): Likewise.
7208 (mmx_uavgv8qi3): Merge pavgusb. Model correcty.
7209 (mmx_uavgv4hi3): Model correctly.
7210 * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
7211 _mm_xor_si64): Remove casts.
7213 2005-01-09 Zdenek Dvorak <dvorakz@suse.cz>
7215 PR tree-optimization/19224
7216 * tree-scalar-evolution.c (get_instantiated_value,
7217 set_instantiated_value): New functions.
7218 (instantiate_parameters_1): Cache the results.
7219 (instantiate_parameters, resolve_mixers): Initialize and free
7222 2005-01-08 David Edelsohn <edelsohn@gnu.org>
7224 * config/i386/i386.md (addhi_4): Correct reference in comment.
7227 2005-01-08 Richard Henderson <rth@redhat.com>
7229 * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
7230 (_mm_cvtsi128_si64x): Likewise.
7231 (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
7232 _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
7233 the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
7234 * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
7235 * config/i386/i386-protos.h: Update.
7236 * config/i386/i386.c (print_operand): Add 'H'.
7237 (ix86_fixup_binary_operands): Split out from ...
7238 (ix86_expand_binary_operator): ... here.
7239 (ix86_fixup_binary_operands_no_copy): New.
7240 (ix86_expand_fp_absneg_operator): Handle vector mode results.
7241 (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
7242 (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
7243 (safe_vector_operand): Use CONST0_RTX.
7244 (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
7245 (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
7246 CODE_FOR_sse2_maskmovdqu. Special case SSE version of MASKMOVDQU
7247 expansion. Update names for sse{,2,3}_ prefixes. Remove *maskncmp*
7249 * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
7250 (IX86_BUILTIN_CMPNGESS): New.
7251 * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
7252 (attr type): Add sselog1.
7253 (attr unit, attr memory): Handle it.
7254 (movti, movti_internal, movti_rex64): Move near other integer moves.
7255 (movtf, movtf_internal): Move near other fp moves.
7256 (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
7257 vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
7258 movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
7259 movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
7260 sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
7261 sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
7262 sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
7263 mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
7264 rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
7265 sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
7266 sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
7267 sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
7268 vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
7269 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
7270 cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
7271 cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
7272 vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
7273 vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
7274 sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
7275 sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
7276 cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
7277 cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
7278 cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
7279 cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
7280 ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
7281 subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
7282 smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7283 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
7284 sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
7285 sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
7286 gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
7287 ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
7288 ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
7289 sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
7290 sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
7291 sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
7292 sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
7293 sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
7294 sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
7295 sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
7296 mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
7297 addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
7298 movsldup, lddqu, loadddup, movddup): Move to sse.md. Any with
7299 non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
7301 (SSEPUSH, push<SSEPUSH>): Remove.
7302 (MMXPUSH, push<MMXPUSH>): Remove.
7303 (sse_movaps, sse_movaps_1, sse_movups): Remove.
7304 (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
7305 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
7306 (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
7307 (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
7308 (maskncmpv2df3, vmmaskncmpv2df3): Remove.
7309 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
7310 (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
7311 * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
7312 (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
7313 * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
7314 (ppro_sse_log_V4SF_load): Similarly. Handle sselog1.
7315 (ppro_sse_log_V4SF): Handle sselog1.
7316 * config/i386/predicates.md (const_0_to_1_operand): New.
7317 (const_0_to_255_mul_8_operand): New.
7318 (const_1_to_31_operand): Rename from const_int_1_31_operand.
7319 (const_2_to_3_operand, const_4_to_7_operand): New.
7320 * config/i386/sse.md: New file.
7321 (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
7322 (sse_movups): Rename from sse_movups_1.
7323 (sse_loadlss): Rename from sse_loadss_1.
7324 (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
7326 (negv4sf2): Use ix86_expand_fp_absneg_operator.
7327 (absv4sf2, negv2df, absv2df): New.
7328 (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
7329 (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
7330 iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
7331 smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
7332 umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
7333 (sse3_addsubv4sf3): Model correctly.
7334 sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
7335 sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
7336 (sse_movhlps): Model with vec_select+vec_concat.
7337 (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
7338 sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
7339 sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
7340 sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
7341 sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
7342 sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
7343 sse2_pshufhw_1): Likewise.
7344 (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
7345 (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
7346 sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
7347 ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
7348 sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
7349 ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
7350 (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
7351 sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
7352 mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
7353 sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
7354 sminv8hi3): Mark commutative
7355 operands. Use ix86_binary_operator_ok.
7356 (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
7357 sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
7358 sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
7359 sse2_punpcklqdq): Allow operand2 in memory.
7360 (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
7361 sse2_movsd): Add memory alternatives.
7362 (sse_storelps): Turn expander into an insn; split after reload.
7363 (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
7364 (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
7366 2005-01-08 Eric Botcazou <ebotcazou@libertysurf.fr>
7368 * configure.ac (DWARF-2 debug_line): Use objdump.
7369 * configure: Regenerate.
7371 2005-01-08 Jeff Law <law@redhat.com>
7372 Diego Novillo <dnovillo@redhat.com>
7374 PR tree-optimization/18241
7375 * tree-nrv.c (tree_nrv): Ignore volatile return values.
7376 * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
7377 statements with volatile operands.
7378 * tree-ssa-operands.c (add_stmt_operand): Do add volatile
7379 operands after marking a statement with has_volatile_ops.
7381 2005-01-08 Roger Sayle <roger@eyesopen.com>
7383 * tree.c (int_fits_type_p): Always honor integer constant
7384 TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
7386 2005-01-08 Roger Sayle <roger@eyesopen.com>
7388 * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
7389 the latent bug in rtl_delete_block has been resolved.
7391 2005-01-08 Richard Sandiford <rsandifo@redhat.com>
7393 * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
7394 (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
7396 2005-01-08 Richard Sandiford <rsandifo@redhat.com>
7398 * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
7399 library as @multilib_dir@/$(SHLIB_SONAME).
7401 2005-01-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7403 * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
7404 * configure: Regenerate.
7406 2005-01-07 Jakub Jelinek <jakub@redhat.com>
7408 * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
7411 2005-01-07 David Edelsohn <edelsohn@gnu.org>
7414 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
7415 Convert non-word aligned offset address using ld/std into
7418 2005-01-07 Richard Henderson <rth@redhat.com>
7420 * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
7422 2005-01-07 Richard SAndiford <rsandifo@redhat.com>
7424 * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
7426 2005-01-07 Jakub Jelinek <jakub@redhat.com>
7428 PR tree-optimization/19283
7429 * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
7430 is not shorter than the original type.
7432 PR rtl-optimization/19012
7433 * config/i386/i386.md (addqi_1_slp): Set memory attribute.
7435 PR rtl-optimization/18861
7436 * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
7437 (FULL_STATE): Define.
7438 (mark_tablejump_edge): New function.
7439 (purge_dead_tablejump_edges): New function.
7440 (find_bb_boundaries): Use it.
7442 PR tree-optimization/18828
7443 * builtins.c (expand_builtin_next_arg): Remove argument and all
7444 the argument checking.
7445 (expand_builtin): Adjust caller.
7446 (expand_builtin_va_start): Likewise. Remove error for too many
7448 (fold_builtin_next_arg): Issue error for too many arguments.
7449 After checking arguments, replace them with magic arguments that
7450 prevent further checking of the args.
7452 2005-01-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7454 * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
7456 2005-01-06 Roger Sayle <roger@eyesopen.com>
7459 * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
7460 and %{.S:...} (and their negative variants) to test whether the
7461 input file is assembler or pre-processed-assembler independent of
7462 the actual filename extension.
7464 2005-01-06 Roger Sayle <roger@eyesopen.com>
7466 * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
7467 of sign or zero extended values.
7469 2005-01-06 Geoffrey Keating <geoffk@apple.com>
7471 * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
7472 for IBM long double format correctly.
7474 2005-01-06 Daniel Berlin <dberlin@dberlin.org>
7476 Fix PR tree-optimization/18792
7478 * tree-data-ref.c (build_classic_dist_vector): Change first_loop
7479 to first_loop_depth, and use loop depth instead of loop number.
7480 (build_classic_dir_vector): Ditto.
7481 (compute_data_dependences_for_loop): Use depth, not loop number.
7482 * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
7483 number. Pass in loops, instead of loop numbers.
7484 (gather_interchange_stats): Ditto.
7485 (linear_transform_loops): Ditto.
7487 2005-01-06 Richard Sandiford <rsandifo@redhat.com>
7490 * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
7491 biv_fits_mode_p, extension_within_bounds_p): New functions.
7492 (check_ext_dependent_givs): Use them.
7494 2005-01-06 Roger Sayle <roger@eyesopen.com>
7496 * cfgrtl.c (rtl_delete_block): A basic block may be followed by
7497 more than one barrier, in which case we should delete them all.
7499 2005-01-06 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
7501 * gcc.c (process_command): Change year in 'gcc --version' to 2005.
7503 2005-01-05 Daniel Berlin <dberlin@dberlin.org>
7505 Fix PR middle-end/19286
7507 * dwarf2out.c (gen_subprogram_die): If we've already tried to
7508 output this subprogram, simply ignore this attempt to do it again.
7509 (add_abstract_origin_attribute): Don't abort trying to add the abstract
7510 origin attribute if it's not possible.
7511 (gen_block_die): Don't ignore subblocks of "unused" blocks.
7512 (decls_for_scope): Ditto.
7513 * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
7514 (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
7516 2005-01-05 Richard Henderson <rth@redhat.com>
7519 * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
7520 (bdesc_2arg): Use it.
7521 (ix86_expand_binop_builtin): Force operands into registers
7523 (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
7524 ix86_expand_sse_compare, ix86_expand_sse_comi,
7525 ix86_expand_builtin): Likewise.
7527 2005-01-05 Richard Henderson <rth@redhat.com>
7529 * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
7531 * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
7532 (mulv4hi3): Set itanium_class mmmul.
7533 (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
7534 (fpack): Rename from fpack_sfsf.
7536 2005-01-05 Richard Henderson <rth@redhat.com>
7539 * reload1.c (do_input_reload): Restrict the optimization deleteing
7540 a previous output reload to RELOAD_FOR_INPUT.
7542 2005-01-05 Steven Bosscher <stevenb@suse.de>
7544 * combine.c (expand_compound_operation) <ZERO_EXTRACT>: Add
7545 comment that we fall through after case.
7546 (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
7547 (distribute_links): Likewise.
7548 * cse.c (cse_insn): Likewise.
7549 * cselib.c (cselib_invalidate_mem): Likewise.
7550 * df.c: Update comments at the top of the file.
7551 (read_modify_subreg_p): Update comments here too.
7552 (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
7553 * flow.c (mark_set_1): Likewise.
7554 (mark_used_regs): Likewise.
7555 * gcse.c (mems_conflict_for_gcse_p): Likewise.
7556 (canon_list_insert): Likewise.
7557 (mark_set): Likewise.
7558 (try_replace_reg): Likewise.
7559 (store_killed_in_insn): Likewise.
7560 * loop.c (count_one_set): Likewise.
7561 (basic_induction_var): Likewise.
7562 * postreload-gcse.c (find_mem_conflicts): Likewise.
7563 * postreload.c (reload_combine_note_store): Likewise.
7564 (move2add_note_store): Likewise.
7565 * reload.c (find_equiv_reg): Likewise.
7566 (mark_referenced_resources): Likewise.
7567 * rtlanal.c (set_noop_p): Likewise.
7568 (note_stores): Likewise.
7569 (note_uses): Likewise.
7570 * sched-deps.c (sched_analyze_1): Likewise.
7571 * sched-rgn.c (check_live_1): Likewise.
7572 (update_live_1): Likewise.
7573 * config/i860/i860.c: Likewise.
7575 * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
7577 (ZERO_EXTRACT): Mention that this one can be an lvalue.
7579 * doc/rtl.texi: Update documentation for bit-fields and SET.
7581 2005-01-05 Roger Sayle <roger@eyesopen.com>
7583 * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
7585 2005-01-05 Jan Hubicka <jh@suse.cz>
7586 Richard Henderson <rth@redhat.com>
7589 * config/i386/i386.c (ix86_expand_move): Handle tls symbols
7592 2005-01-05 Richard Henderson <rth@redhat.com>
7595 * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
7596 (sse_shufps): Change operand 3 to const_int_operand.
7597 (sse2_storelps): Fix typo in template.
7598 (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
7599 * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
7600 (ix86_expand_builtin): Likewise.
7602 2005-01-05 Julian Brown <julian@codesourcery.com>
7604 * config/arm/arm.c (arm_return_in_memory): Treat complex types
7605 as aggregates for AAPCS ABIs.
7607 2005-01-05 Stan Shebs <shebs@apple.com>
7609 * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
7610 Mach-O getters if ppc64.
7611 * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
7613 * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7614 signed four-byte field for global code case.
7615 (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
7617 2005-01-05 Roger Sayle <roger@eyesopen.com>
7620 * c-common.c: Include real.h.
7621 (c_common_truthvalue_conversion): Avoid destructively modifying expr.
7622 Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
7623 Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
7624 * Makefile.in (c-common.o): Update dependencies.
7626 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
7628 * c-parse.in (asm_string): Add trailing semicolon.
7630 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
7632 * c-parse.in (asm_string): New. Don't allow wide strings in
7634 (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
7635 asm_string instead of STRING.
7637 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
7639 * c-typeck.c (constructor_no_implicit): Remove.
7640 (set_designator, process_init_element): Don't check
7641 constructor_no_implicit.
7643 2005-01-05 J"orn Rennecke <joern.rennecke@st.com>
7644 Kaz Kojima <kkojima@gcc.gnu.org>
7647 * lcm.c (create_pre_exit): New.
7648 (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
7649 ENTRY_EXIT_EXTRA to 3. Use create_pre_exit.
7651 2004-01-05 Richard Earnshaw <rearnsha@arm.com>
7653 * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
7654 -msoft-float in target_float_switch.
7655 * arm.c (arm_override_options): Fix processing of target_float_switch.
7657 2004-01-05 Richard Earnshaw <rearnsha@arm.com>
7659 * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
7662 2004-01-05 Uros Bizjak <uros@kss-loka.si>
7664 * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
7665 Replace i387 with 'i386 compiler' in -mfpmath=sse option.
7667 2005-01-04 Roger Sayle <roger@eyesopen.com>
7669 * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
7670 if deleting the then-block allows the test-block to fallthru to the
7673 2005-01-04 Andrew Pinski <pinskia@physics.uc.edu>
7676 * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
7677 after the full declaration if the are in two different TUs.
7679 2005-01-04 Richard Henderson <rth@redhat.com>
7682 * tree-sra.c (generate_one_element_init): Just
7683 call gimplify_and_add.
7684 (generate_element_init): Record the
7685 new referenced variables and mark them for renaming
7686 and split out to ...
7687 (generate_element_init_1): This.
7688 (scalarize_init): Don't call push_gimplify_context/
7689 pop_gimplify_context.
7691 2005-01-04 Geoffrey Keating <geoffk@apple.com>
7693 * toplev.c (get_src_pwd): Handle failure of getpwd().
7695 2005-01-04 Roger Sayle <roger@eyesopen.com>
7697 * fold-const.c (fold_single_bit_test): Delete unreachable handling
7699 (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
7700 all the cases handled by it are inverted by invert_truthvalue.
7702 2005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7704 * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
7705 (save_register_windowsi): Likewise.
7707 2005-01-04 Richard Henderson <rth@redhat.com>
7709 * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
7711 2005-01-04 Uros Bizjak <uros@kss-loka.si>
7714 * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
7715 any simplifications of vector mode comparison operators.
7716 * simplify-rtx.c (simplify_relational_operation): Fix variable name.
7718 2005-01-04 Paolo Bonzini <bonzini@gnu.org>
7719 Devang Patel <dpatel@apple.com>
7721 PR tree-optimization/18308
7722 * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
7723 the operands before creating a new expression.
7724 * dojump.c (do_jump): Make drop_through_label available
7725 for all cases. Add expansion of COND_EXPR.
7727 2005-01-04 Ira Rosen <irar@il.ibm.com>
7729 * tree-vectorizer.c (vect_analyze_offset_expr): Test for
7730 INTEGER_CST instead of TREE_CONSTANT.
7731 (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
7732 instead of TREE_CONSTANT.
7733 (vect_analyze_pointer_ref_access): Test for INTEGER_CST
7734 instead of TREE_CONSTANT.
7736 2005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7738 * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
7740 2005-01-04 Uros Bizjak <uros@kss-loka.si>
7743 * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
7744 (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
7746 2005-01-03 Richard Henderson <rth@redhat.com>
7748 * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
7749 (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
7750 fold_convert_const_real_from_real): Split out from ...
7751 (fold_convert_const): ... here.
7753 2005-01-03 Richard Henderson <rth@redhat.com>
7756 * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
7757 (mov<MMXMODEI>_internal): Likewise.
7758 (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
7759 Add V2SF case; use it for SSE1; don't use TI.
7760 (movdf_integer): Likewise.
7761 (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
7763 2005-01-03 Ira Rosen <irar@il.ibm.com>
7765 * tree-vectorizer.c (vect_strip_conversions): New function.
7766 (vect_analyze_offset_expr): Call vect_strip_conversions. Add
7767 check for binary class.
7769 2005-01-03 Daniel Berlin <dberlin@dberlin.org>
7773 * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
7775 * gimple-low.c (mark_blocks_with_used_vars): New function.
7776 (mark_blocks_with_used_subblocks): Ditto.
7777 (mark_used_blocks): Ditto.
7778 (pass_mark_used_blocks): New pass.
7779 * tree-inline.c: Include debug.h.
7780 (expand_call_inline): Call outlining_inline_function here.
7781 * tree-optimize.c (init_tree_optimization_passes): Add
7782 pass_mark_used_blocks.
7783 * tree-pass.h (pass_mark_used_blocks): New.
7784 * Makefile.in (tree-inline.o): Add debug.h dependency.
7786 2005-01-03 Geoffrey Keating <geoffk@apple.com>
7788 * config/darwin.c (darwin_handle_weak_import_attribute): Permit
7789 VAR_DECLs to have weak_import attribute.
7791 * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
7794 2004-01-03 Steven Bosscher <stevenb@suse.de>
7796 * passes.c (rest_of_compilation): Don't run regmove if only
7797 flag_expensive_optimizations, require flag_regmove instead.
7799 2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7801 * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
7803 * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
7804 * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
7805 * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
7806 * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
7808 2005-01-03 Richard Henderson <rth@redhat.com>
7810 * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
7811 (ia64_const_ok_for_letter_p): New.
7812 (ia64_const_double_ok_for_letter_p): New.
7813 (ia64_extra_constraint): New.
7814 (ia64_expand_vecint_compare): New.
7815 (ia64_expand_vcondu_v2si): New.
7816 (ia64_expand_vecint_cmov): New.
7817 (ia64_expand_vecint_minmax): New.
7818 (ia64_print_operand): Add 'v'.
7819 (ia64_preferred_reload_class): New.
7820 (ia64_vector_mode_supported_p): New.
7821 * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
7822 (PREFERRED_RELOAD_CLASS): Move to function.
7823 (CONST_OK_FOR_LETTER_P): Move to function.
7824 (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
7825 (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
7826 (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
7827 (EXTRA_CONSTRAINT): Move to function.
7828 * config/ia64/ia64.md: Include vect.md.
7829 (itanium_class): Add mmalua.
7831 * config/ia64/itanium1.md (1_mmalua): New. Add it to bypasses.
7833 * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
7834 * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
7836 (const_int_2bit_operand): New.
7837 (fr_reg_or_0_operand): New.
7838 * config/ia64/ia64-modes.def: Add vector modes.
7839 * config/ia64/ia64-protos.h: Update.
7840 * config/ia64/vect.md: New file.
7842 2005-01-03 Richard Henderson <rth@redhat.com>
7844 * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
7846 2005-01-03 Uros Bizjak <uros@kss-loka.si>
7849 * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
7851 (log1pdf2): Change mode of operands[0,1] to DFmode.
7853 2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7855 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
7856 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
7857 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
7858 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
7859 SPARC_RELAXED_ORDERING.
7861 2005-01-03 Richard Henderson <rth@redhat.com>
7862 Uros Bizjak <uros@kss-loka.si>
7865 * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
7866 IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
7867 * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
7869 (*mmx_pinsrw, *sse2_pinsrw): New patterns.
7870 * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
7871 const_pow2_1_to_128_operand): New predicates.
7873 2005-01-02 Greg McGary <greg@mcgary.org>
7875 * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
7877 (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
7878 object. [ptr_type]: Remove unused variable.
7879 Remember nearest addressable array-element or record-component
7880 when checking bitfield components. Tolerate empty BIND_EXPR.
7882 2005-01-01 Richard Henderson <rth@redhat.com>
7884 * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
7885 that don't narrow the value. Fail for other conversions.
7887 2005-01-01 Richard Henderson <rth@redhat.com>
7890 * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
7891 * c-lang.c (finish_file): Don't do it here.
7892 * objc/objc-act.c (objc_finish_file): Likewise.
7894 * cgraph.c (decl_assembler_name_equal): New.
7895 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
7896 (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
7897 * cgraph.h (struct cgraph_varpool_node): Add next.
7898 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
7899 * varasm.c (assemble_alias): Mark the target as needed.
7901 2005-01-01 Andrew Pinski <pinskia@physics.uc.edu>
7904 * function.c (get_arg_pointer_save_area): Use entry_of_function
7905 instead of get_insns.
7907 2005-01-01 Roger Sayle <roger@eyesopen.com>
7908 Andrew Pinski <pinskia@physics.uc.edu>
7909 James E. Wilson <wilson@specifixinc.com>
7911 PR rtl-optimization/12092
7912 * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
7915 2005-01-01 Roger Sayle <roger@eyesopen.com>
7916 Olivier Hainque <hainque@act-europe.fr>
7918 * tree.c (int_fits_type_p): A narrower type always fits in a
7919 wider one, except for negative values into unsigned types.
7921 2005-01-01 Roger Sayle <roger@eyesopen.com>
7923 * tree.c (int_fits_type_p): Compare the result of force_fit_type
7924 with the original constant rather than require TREE_OVERFLOW.
7926 2005-01-01 Steven Bosscher <stevenb@suse.de>
7929 * c-decl.c (finish_function): If compiling C99, annotate the
7930 compiler generated return with the current file name and line 0.
7931 * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
7932 the source line is greater than 0.
7933 (remove_bb): Likewise.
7935 See ChangeLog.12 for earlier changes.