1 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
3 * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
4 which matches behavior of gcc 4.0 and older for RTEMS targets. The
5 default now includes a linker group which makes the RTEMS one nest.
7 2005-11-22 Ben Elliston <bje@au.ibm.com>
9 * cse.c (fold_rtx): Typo fix.
10 (find_comparison_args): Pass the mode of arg1, not arg1 itself.
12 2005-11-21 Richard Henderson <rth@redhat.com>
14 * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
15 langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
17 * c-tree.h (lookup_name): Move declaration ...
18 * c-common.h (lookup_name): ... here.
19 * config/darwin-c.c: Include c-common.h.
20 * config/t-darwin: Update dependencies.
22 2005-11-22 Ben Elliston <bje@au.ibm.com>
24 * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
25 explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
26 * genopinit.c (gen_insn): Likewise.
27 * reload.c (find_equiv_reg): Likewise.
28 * loop.c (load_mems): Likewise.
29 * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
30 * cse.c (find_comparison_args, fold_rtx): Likewise.
31 * dwarf2out.c (add_const_value_attribute): Likewise.
32 * expr.c (convert_move): Likewise.
33 * recog.c (general_operand, register_operand): Likewise.
34 * reg-stack.c (replace_reg): Likewise.
35 * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
36 * c-common.c (handle_vector_size_attribute): Likewise.
37 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
38 (simplify_binary_operation_1): Likewise.
39 (simplify_const_binary_operation): Likewise.
40 (simplify_relational_operation): Likewise.
41 (simplify_const_relational_operation): Likewise.
42 (simplify_immed_subreg): Likewise.
43 * emit-rtl.c (gen_lowpart_common): Likewise.
44 * expmed.c (expand_mult): Likewise.
45 * stor-layout.c (layout_type): Likewise.
47 2005-11-21 Paolo Bonzini <bonzini@gnu.org>
50 * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
51 cst2 only for SPE vectors.
53 2005-11-21 David Edelsohn <edelsohn@gnu.org>
56 * config/rs6000/predicates.md (vrsave_operation): Check
57 UNSPEC_VOLATILE value.
59 2005-11-21 Jan Hubicka <jh@suse.cz>
61 PR tree-optimization/24653
62 * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
64 2005-11-21 Uros Bizjak <uros@kss-loka.si>
66 * config/i386/predicates.md (ax_reg_operand): New predicate.
67 (memory_displacement_only_operand): New predicate.
68 * config/i386/i386.md ("modrm" attribute): Return 0 if one
69 operand is AX register and the other operand is memory operand
70 with displacement only.
72 2005-11-21 Uros Bizjak <uros@kss-loka.si>
74 * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
75 if we don't care about NaNs or Infinities.
77 2005-11-20 Ian Lance Taylor <ian@airs.com>
79 PR rtl-optimization/24883
80 * combine.c (combinable_i3pat): When checking whether the
81 destination of i3 is used in i3, consider paradoxical subregs.
83 2005-11-21 Kazu Hirata <kazu@codesourcery.com>
86 * cse.c (cse_insn): Reject invalid forms of CONST earlier.
88 2005-11-20 Joseph S. Myers <joseph@codesourcery.com>
90 * combine.c (try_combine): Do not run subst on i1src and i2src in
91 the case of generating a PARALLEL for a comparison.
93 2005-11-20 Richard Henderson <rth@redhat.com>
96 * tree-sra.c (struct sra_elt): Add all_no_warning.
97 (struct sra_walk_fns) <use>: Add use_all argument.
98 (sra_walk_expr): Pass it.
99 (sra_walk_modify_expr): Likewise.
100 (scalarize_ldst): Likewise.
101 (scan_use): Update for new argument.
102 (mark_no_warning): New.
103 (scalarize_use): Use it.
105 2005-11-20 Bernd Schmidt <bernd.schmidt@analog.com>
107 * expr.c (expand_expr_real): Use usmul_optab for widening
108 signed * unsigned multiplies.
109 * genopinit.c (optabs): Add usmul_widen_optab.
110 * optabs.c (init_optabs): Likewise.
111 * optabs.h (enum optab_index): Add OTI_usmul_widen.
112 (usmul_widen_optab): Define.
113 * config/bfin/bfin.md (usmulhisi3): New pattern.
115 * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
117 2005-11-20 Graham Stott <btinternet.com>
119 * gensupport.c (std_preds): Fixed extraneous `false` in last change.
121 2005-11-20 Andreas Schwab <schwab@suse.de>
124 * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
127 2005-11-19 Richard Henderson <rth@redhat.com>
130 * tree-gimple.c (is_gimple_id): Export.
131 * tree-gimple.h (is_gimple_id): Declare.
132 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
133 (get_default_value): Use it.
134 (maybe_fold_stmt_indirect): Likewise.
136 2005-11-19 James A. Morrison <phython@gcc.gnu.org>
138 * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
139 than VR1 or vice-versa.
141 2005-11-19 Hans-Peter Nilsson <hp@axis.com>
145 * reload.c (find_reloads_address_1): Mention dependency on
147 * reload1.c (gen_reload): For IN with an unary operation, try
148 moving inner expression to OUT if trivial SET is not valid.
149 Confirm that the result is valid. Move common code block into...
150 (emit_insn_if_valid_for_reload): New function.
152 2005-11-19 Richard Guenther <rguenther@suse.de>
154 * fold-const.c (fold_indirect_ref_1): Make sure we fold
155 ARRAY_REFs of constant strings.
157 2005-11-19 Jakub Jelinek <jakub@redhat.com>
159 * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
162 2005-11-19 Joseph S. Myers <joseph@codesourcery.com>
164 * combine.c (make_compound_operation): Swap operands of
165 commutative operation if necessary before returning.
167 2005-11-19 Richard Guenther <rguenther@suse.de>
170 * fold-const.c (fold_plusminus_mult_expr): New function.
171 (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
172 cases, remove now unnecessary code.
174 2005-11-19 Paolo Bonzini <bonzini@gcc.gnu.org>
176 * gensupport.c (old_preds): Rename to std_preds, add special field.
177 (struct old_pred_table): Rename to struct std_pred_table, add special
179 (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
180 (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
181 (init_predicate_table): Adjust, and set along the way whether a
182 predicate is special.
184 2005-11-18 Mark Mitchell <mark@codesourcery.com>
186 * BASE-VER: Change to 4.2.0.
188 2005-11-18 James E Wilson <wilson@specifix.com>
190 * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
193 2005-11-18 Mike Stump <mrs@apple.com>
195 * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
196 * config/darwin-c.c (darwin_pragma_unused): Likewise.
197 * c-decl.c (lookup_name_two) Remove.
198 * c-tree.h (lookup_name_two): Remove.
199 * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
200 * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
201 (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
202 * langhooks.h (lang_hooks_for_decls): Add lookup_name.
204 2005-11-18 Richard Earnshaw <richard.earnshaw@arm.com>
207 * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
208 when not generating code to use that co-processor.
210 2005-11-18 James A. Morrison <phython@gcc.gnu.org>
212 * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
213 add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
214 these functions are now in tree-phinodes.c.
216 2005-11-18 Jie Zhang <jie.zhang@analog.com>
218 * config/bfin/bfin.md (trap): New pattern.
220 2005-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
222 * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
225 * expr.c (expand_expr_real): Don't call record_block_change unless
226 ib_boundaries_block is non-null
228 * postreload.c (reload_cse_move2add): Don't try to work with BImode.
230 * fold-const.c (build_range_check): Use proper type for subtraction
231 when merging lower bound.
233 2005-11-18 Zdenek Dvorak <dvorakz@suse.cz>
235 PR rtl-optimization/24497
236 * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
239 2005-11-18 Zdenek Dvorak <dvorakz@suse.cz>
241 * tree-scalar-evolution.c (expression_expensive_p): New function.
242 (scev_const_prop): Use compute_overall_effect_of_inner_loop.
244 2005-11-18 Bernd Schmidt <bernd.schmidt@analog.com>
246 * config/bfin/crtlibid.s: New file.
248 2005-11-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
251 * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
252 when not using sjlj exceptions.
253 * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
254 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
255 * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
256 * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
257 DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
258 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
259 * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
260 DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
261 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
262 * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
263 (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
264 DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
265 ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
267 * config/pa/hpux-unwind.h: New file.
269 2005-11-17 Alexandre Oliva <aoliva@redhat.com>
271 * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
272 * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
273 * varasm.c (do_assemble_alias): Adjust call.
274 (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
276 * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
278 2005-11-17 James E Wilson <wilson@specifix.com>
280 * tree.def (FUNCTION_DECL): Correct typo in comment.
282 2005-11-17 Richard Henderson <rth@redhat.com>
284 * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
285 (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
286 and DW_CFA_def_cfa_sf.
287 (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
288 (dbx_reg_number): Don't assert particular registers here.
289 (based_loc_descr): ... do it here instead. Fold in ...
290 (eliminate_reg_to_offset): ... this function.
291 (compute_frame_pointer_to_cfa_displacement): Fold in the effects
292 of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
293 * unwind-dw2.c (execute_cfa_program): Apply data align factor
294 to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
295 * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
296 (instantiate_virtual_regs): Likewise.
297 * var-tracking.c (adjust_stack_reference): Likewise.
298 * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
300 2005-11-17 Bernd Schmidt <bernd.schmidt@analog.com>
302 * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
303 * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
304 * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
306 ($(T)crtlibid.o): New rule.
308 2005-11-16 Richard Guenther <rguenther@suse.de>
311 * fold-const.c (extract_array_ref): Return byte offset
313 (fold_binary): Fold &x[a] CMP &x[b] to
314 a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
317 2005-11-16 Richard Henderson <rth@redhat.com>
320 * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
321 parts of an SSA_NAME.
323 2005-11-16 Richard Earnshaw <richard.earnshaw@arm.com>
326 * arm.md (split for movsf with immediate): Restrict split to insns
327 that set a general register.
329 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
331 * config/ia64/unwind-ia64.c (uw_advance_context): New. Call
333 * unwind-dw2.c (uw_advance_context): Likewise.
334 * unwind-sjlj.c (uw_advance_context): Likewise. Also call
335 _Unwind_SjLj_Unregister.
336 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
338 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
340 * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
342 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
344 * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
345 langhook to get a DImode integer type.
347 2005-11-16 Richard Henderson <rth@redhat.com>
348 J"orn Rennecke <joern.rennecke@st.com>
349 Ulrich Weigand <uweigand@de.ibm.com>
353 * reload1.c (reg_equiv_invariant): New.
354 (reload): Allocate, initialize, and free it.
355 (calculate_needs_all_insns): Check it when skipping equivalence
357 (alter_reg): Likewise.
358 (eliminate_regs_1): Rename from eliminate_regs. Add new
359 may_use_invariant argument; only use reg_equiv_invariant when true.
360 (eliminate_regs): New.
361 (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
362 a context for which may_use_invariant may be true.
364 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
366 * fold-const.c (const_binop): Don't constant fold the operation
367 if the result has overflowed and flag_trapping_math.
368 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
370 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
372 * config/arm/unwind-arm.c (abort): Add prototype here.
373 (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
374 (struct phase1_vrs): Add prev_sp.
375 (unwind_phase2_forced): Save the original core registers instead of
376 modifying entry_vrs. Take a new flag argument for resuming unwinding
377 and set action flags accordingly. Always set _US_END_OF_STACK when
378 get_eit_entry fails. Unwind before calling the stop function.
379 (_Unwind_GetCFA): New function.
380 (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
381 (__gnu_Unwind_Resume_or_Rethrow): Likewise.
382 (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
383 just call unwind_phase2_forced.
384 (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
385 * config/arm/unwind-arm.h (abort): Remove prototype.
386 (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
388 (_Unwind_GetCFA): New prototype.
389 * config/arm/pr-support.c (abort): Add prototype here.
390 * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
392 * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
393 not schedule the prologue with non-call exceptions and EABI.
395 2005-11-16 Nathan Sidwell <nathan@codesourcery.com>
397 * config/arm/unwind-arm.h: Reorder interface function declarations.
398 (_URC_END_OF_STACK): New enumeration value.
399 (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
400 (struct _Unwind_Control_Block): Document reserved field use.
401 (_Unwind_Stop_Fn): New typedef.
402 (_Unwind_ForcedUnwind): Declare.
403 (_Unwind_Resume_or_Rethrow): Declare.
404 * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
406 (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
407 * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
408 (UCB_FORCED_STOP_ARG): New.
409 (search_EIT_table): Update boundary condition checks.
410 (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
411 (unwind_phase2): Replace for with do..while.
412 (unwind_phase2_forced): New.
413 (__gnu_Unwind_RaiseException): Replace for with do..while.
414 (__gnu_Unwind_ForcedUnwind): New.
415 (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
416 Use appropriate phase2 unwinder.
417 (__gnu_Unwind_Resume_or_Rethrow): New.
418 (__gnu_unwind_pr_common): Cope with forced unwinding.
420 2005-11-16 David Edelsohn <edelsohn@gnu.org>
423 * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
425 * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
426 roundsf2): Remove "s" from mnemonic.
428 2005-11-16 Bernd Schmidt <bernd.schmidt@analog.com>
430 * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
432 * config/bfin/crtn.s: Change epilogues to match.
433 * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
434 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
437 2005-11-16 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
440 * doc/invoke.texi: Distinguish between free and fixed form instead of
441 Fortran and Fortran 90/95. Remove ratfor from the list of supported
443 * gcc.c (default_compilers): Remove double entries, add entries for
444 suffixes '.F90' and '.F95'.
446 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
448 * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
449 in the stack probing loop.
451 2005-11-15 David Edelsohn <edelsohn@gnu.org>
453 * configure.ac: Use .machine power5 not power5x.
454 * configure: Regenerate.
456 2005-11-15 Mike Stump <mrs@apple.com>
458 * c-decl.c (lookup_name_two): Add.
459 * c-tree.h (lookup_name_two): Likewise.
460 * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
461 * config/darwin-c.c (darwin_pragma_unused): Likewise.
463 2005-11-16 Alan Modra <amodra@bigpond.net.au>
465 PR rtl-optimization/23392
466 * regrename.c (enum scan_actions) Add mark_access.
467 (scan_actions_name): Ditto.
468 (scan_rtx_reg): Handle mark_access.
469 (scan_rtx_address): Do nothing for mark_access.
470 (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
471 and regs in REG_INC notes before closing chains for dead regs.
472 Mark destination regs in REG_FRAME_RELATED_EXPR notes after
473 opening chains for new writes.
475 2005-11-15 David Edelsohn <edelsohn@gnu.org>
477 * c.opt (ffixed-line-length-none): New.
479 2005-11-15 Steve Ellcey <sje@cup.hp.com>
481 * mklibgcc.in: Change contents of eh_dummy.c.
483 2005-11-15 Daniel Jacobowitz <dan@codesourcery.com>
485 * loop.c (scan_loop): Do not insert temporaries for hard registers.
487 2005-11-15 Daniel Jacobowitz <dan@codesourcery.com>
489 * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
491 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define. Set r7 also.
493 2005-11-15 Jan Hubicka <jh@suse.cz>
495 * invoke.texi (large-unit-insns): Document.
496 * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
497 * params.def (large-unit-insns): New param.
499 2005-11-15 Hans-Peter Nilsson <hp@axis.com>
502 * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
503 special register for operand 3. Reindent constraints to align
506 2005-11-14 David Edelsohn <edelsohn@gnu.org>
508 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
509 -mpopcntb, -mfprnd. Add -mcpu=power5+.
510 * configure.ac: Add test for FP rounding instructions.
511 * configure: Regenerate.
512 * config.in: Regenerate.
513 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
514 _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
516 * config/rs6000/rs6000.opt (mfprnd): New.
517 * config/rs6000/rs6000.c (processor_target_table): Add power5+.
518 (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
519 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
520 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
522 * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
524 (btrunc<mode>2): New.
529 2005-11-14 Geoffrey Keating <geoffk@apple.com>
531 * gcc.c (version_compare_spec_function): Use fatal() rather than
534 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
535 (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
536 * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
538 * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
541 * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
542 on -mmacosx-version-min setting.
544 2005-11-14 Diego Novillo <dnovillo@redhat.com>
547 * tree-vrp.c (infer_value_range): Return false if STMT is a
548 block terminator and its basic block has no successors.
550 2005-11-14 Mike Stump <mrs@apple.com>
552 * config/i386/i386.c (override_options): -masm=intel isn't
554 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
556 2005-11-15 Joseph S. Myers <joseph@codesourcery.com>
558 * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
559 vfork after including auto-host.h.
561 2005-11-15 Alan Modra <amodra@bigpond.net.au>
563 PR rtl-optimization/22002
564 * combine.c (distribute_notes): Detect cases where a reg dies
565 two or more times in a bb, including on the insn we are combining,
566 and place the death note on the correct range.
568 2005-11-14 Dale Johannesen <dalej@apple.com>
570 * expmed.c (store_bit_field): Add offset unconditionally for
572 (extract_bit_field): Don't force extzv or extv operand into
573 a register if field is too big.
575 2005-11-14 Daniel Jacobowitz <dan@codesourcery.com>
577 * config/arm/arm.c (pic_labelno): New.
578 (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
579 LABEL_REF. Pass only the labelno to PIC insns.
580 (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
581 (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
582 * arm.md (UNSPEC_PIC_LABEL): New constant.
583 (pic_add_dot_plus_four, pic_add_dot_plus_eight)
584 (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
585 Use the correct label prefix.
587 2005-11-14 Daniel Jacobowitz <dan@codesourcery.com>
589 * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
592 2005-11-14 Richard Earnshaw <richard.earnshaw@arm.com>
594 * loop-invariant.c: Include tm_p.h.
595 * Makefile.in: Updated.
597 2005-11-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
599 * pa.c (store_reg): Revise generation of frame notes in large frames.
600 (set_reg_plus_d): Likewise.
602 2005-11-13 Andrew MacLeod <amacleod@redhat.com>
604 PR tree-optimization/24709
605 * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
608 2005-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
610 * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
611 and duplicate declaration of pthread_self.
613 2005-11-13 Eric Botcazou <ebotcazou@adacore.com>
614 Ian Lance Taylor <ian@airs.com>
617 * calls.c (expand_call): If TARGET is a MEM and some part of the
618 argument area has been saved, force TARGET to a register.
620 2005-11-13 Razya Ladelsky <razya@il.ibm.com>
622 * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
625 2005-11-13 Jason Merrill <jason@redhat.com>
628 * dwarf2out.c (gen_subprogram_die): Force a declaration die for
629 lazily declared methods.
630 (force_decl_die): Stop if forcing out the context already make a
632 (force_type_die): Likewise.
634 2005-11-13 Andrew Pinski <pinskia@physics.uc.edu>
637 * builtins.c (integer_valued_real_p): Add break in
638 REAL_CST having TREE_OVERFLOW set.
640 2005-11-13 Zdenek Dvorak <dvorakz@suse.cz>
642 * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
643 addressing modes during calculation of costs.
645 2005-11-12 Eric Botcazou <ebotcazou@adacore.com>
647 * function.c (assign_stack_local_1): Restrict sanity check
648 on frame size overflow to 32-bit and above platforms.
650 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
652 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
653 * config/cris/cris.c: Include reload.h.
654 (cris_initial_elimination_offset): New function.
655 * config/cris/cris-protos.h: (cris_initial_elimination_offset):
658 2005-11-12 Richard Guenther <rguenther@suse.de>
660 * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
662 2005-11-12 Jan Hubicka <jh@suse.cz>
664 * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
665 to compare against 0 when possible.
667 2005-11-12 Jie Zhang <jie.zhang@analog.com>
669 * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
670 HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
671 REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
672 * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
675 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
677 * recog.c (constrain_operands) <case 'g'>: For a match, require
678 that a non-register matches general_operand when strict >= 0.
680 2005-11-11 Steven Bosscher <stevenb@suse.de>
682 * loop-invariant.c (move_loop_invariants): Fix a thinko in the
685 2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
687 * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
688 (memory_address_same): New.
689 (dse_optimize_stmt): Call memory_address_same.
691 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
694 * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
695 ZERO_EXTEND>: New cases.
697 2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
699 * longlong.h (__clz_tab): Always provide.
701 2005-11-11 Steven Bosscher <stevenb@suse.de>
704 * loop-invariant.c (may_assign_reg_p): Make sure a hard register
706 (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
707 before check_maybe_invariant.
708 (move_invariant_reg): Use gen_move_insn instead of replacing
709 SET_DEST with the temporary for the invariant.
710 (move_loop_invariants): If checking is enabled, do internal
711 consistency checks after completing the pass.
713 2005-11-11 David Edelsohn <edelsohn@gnu.org>
716 * common.opt (Wvolatile-register-var): New.
717 * varasm.c (make_decl_rtl): Only emit warning when option
718 specified. Clarify warning message.
719 * doc/invoke.texi (Wvolatile-register-var): Document new option.
721 * doc/md.texi (copysign): Document standard named pattern.
723 2005-11-11 Jie Zhang <jie.zhang@analog.com>
725 * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
726 bytes when align is 2.
727 * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
728 by the first instruction of the loop.
730 2005-11-11 Jason Merrill <jason@redhat.com>
733 * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
736 2005-11-11 Zdenek Dvorak <dvorakz@suse.cz>
738 PR rtl-optimization/22509
739 * local-alloc.c (memref_used_between_p): Check whether a function call
740 could not reference the memref.
742 2005-11-11 Ulrich Weigand <uweigand@de.ibm.com>
744 * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
745 algorithm so as to choose the best, not the worst, alternative.
746 Reset accumulated register class before processing next alternative.
748 2005-11-11 Kaz Kojima <kkojima@gcc.gnu.org>
751 * calls.c (expand_call): Copy a return value to a plain register
754 2005-11-10 Alexandre Oliva <aoliva@redhat.com>
757 * varasm.c (assemble_name): Recompute name only for transparent
760 2005-11-10 Hans-Peter Nilsson <hp@axis.com>
762 * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
764 2005-11-04 Jeff Law <law@redhat.com>
767 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
768 perform reassociation if the parent statement will not die as
769 a result of the optimization.
771 2005-11-10 Daniel Berlin <dberlin@dberlin.org>
773 * tree-ssa-alias.c (compute_may_aliases): Remove call to
774 delete_old_heap_vars.
775 * tree-dfa.c (referenced_var_remove): Remove function.
776 * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
777 (delete_tree_ssa): Remove call to delete_old_heapvars.
778 Add call to delete_alias_heapvars.
779 * tree-flow.h (referenced_var_remove): Remove prototype
780 (init_alias_heapvars): New prototype.
781 (delete_alias_heapvars): Ditto.
782 * Makefile.in (tree-ssa-structalias.o): Add
783 gt-tree-ssa-structalias.o
784 (GTFILES): Add tree-ssa-structalias.h and
785 tree-ssa-structalias.c.
786 (s-gtype): Add gt-tree-ssa-structalias.h.
787 * tree-ssa-structalias.c (heapvars): Remove.
788 (oldheapvars): Remove.
789 (heapvar_for_stmt): New variable.
790 (heapvar_lookup): New function.
791 (heapvar_insert): Ditto.
792 (get_constraint_for): See if we have an old heapvar
794 (init_alias_heapvars): New function.
795 (delete_alias_heapvars): Ditto.
796 Add include of gt-tree-ssa-structalias.h.
798 2005-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
801 * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
803 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
805 * tree.c (int_fits_type_p): Only look at the base type
806 if it has the same precision as the original type.
808 2005-11-10 Jakub Jelinek <jakub@redhat.com>
811 * varasm.c (assemble_alias): Use %q+D in the error
812 message instead of %J and %qD.
814 2005-11-10 Richard Guenther <rguenther@suse.de>
816 * gcse.c (free_ldst_entry): Only free hashtable if
819 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
821 * function.c (assign_stack_local_1): Issue an error message if
822 the frame size overflows in the signed target arithmetics.
824 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
826 * tree.c (build_qualified_type): Chain the new type to the original
827 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
828 a POINTER_TYPE or a REFERENCE_TYPE respectively.
829 (build_pointer_type_for_mode): Only return unqualified types.
830 (build_reference_type_for_mode): Likewise.
832 2005-11-09 Jakub Jelinek <jakub@redhat.com>
834 * Makefile.in (gnucompare): Do comparison of all files using one of
835 the chosen methods and only afterwards decide if just warning should
836 be issued or comparison failure raised.
838 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
840 * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
841 (noce_try_abs): Negate if the comparison is reversed.
842 Look only one instruction backwards for a REG_EQUAL note.
844 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
847 * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
848 gthr-tpf.h: Define __gthrw. For all identifiers that might
849 be weak, introduce weakrefs or non-weak aliases with __gthrw,
850 and prefix all uses with __ghtrw.
852 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
855 * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
856 (TREE_DEPRECATED): Adjust comment. Check for a DECL.
857 * c-common.c (handle_weakref_attribute): New.
858 (c_common_attribute_table): Add weakref.
859 * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
861 * configure, config.in: Rebuilt.
862 * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
863 * doc/extend.texi: Document weakref attribute.
864 * varasm.c (ultimate_transparent_alias_target): New
865 (assemble_name): Use it.
866 (weak_finish_1): Split out of...
867 (weak_finish): ... and deal with weakrefs in...
868 (weakref_targets): ... new list.
869 (globalize_decl): Clean up weakref_targets.
870 (do_assemble_alias): Handle weakrefs.
871 (finish_aliases_1): Do not reject weakrefs to external symbols.
872 (assemble_alias): Handle weakrefs.
874 2005-11-09 Richard Guenther <rguenther@suse.de>
876 PR tree-optimization/24716
877 * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
878 t_bool to track results from follow_ssa_edge.
880 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
882 * final.c (force_source_line): New global variable.
883 (final_scan_insn): Set it to true instead of clearing last_filename.
884 (notice_source_line): Return true if force_source_line is true,
885 unless source info is absent.
887 2005-11-09 Andrew Pinski <pinskia@physics.uc.edu>
890 * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
891 a linkage name for a variable if it a register variable.
892 * c-decl.c (grokdeclarator): Global register variables
893 should be set as PUBLIC.
895 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
898 * config/s390/s390.c (struct s390_frame_layout): New fields
899 first_save_gpr_slot and last_save_gpr_slot.
900 (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
901 s390_emit_epilogue, s390_initial_elimination_offset): Replaced
902 first_save_gpr and last_save_gpr with the _slot variants.
903 (s390_register_info): Calculate first_save_gpr_slot and
904 last_save_gpr_slot using regs_ever_live.
906 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
909 * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
910 for a function containing a landing pad.
912 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
915 * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
918 2005-11-08 Bernd Schmidt <bernd.schmidt@analog.com>
920 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
921 MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
923 2005-11-09 Nathan Sidwell <nathan@codesourcery.com>
926 * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
928 (call,load,store): New insn types.
929 (mem_access, branch_access): Adjust reservation conditions.
930 (define_delay): Adjust condition.
931 (decrement_and_branch_until_zero): Allow for ms2. Set branch
933 (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
934 (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
936 (call_internal, call_value_internal, return_internal,
937 return_interrupt_internal, eh_return_internal, indirect_jump,
938 tablejump): Set call insn type.
939 (blockage, ei, di): Use appropriate unspec const.
940 * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
941 (ms1_get_attr_type): Adjust to give load & store types.
942 (ms1_final_prescan_insn): Adjust for new insn types. Don't look
943 backwards past a barrier.
944 (ms1_override_options): Accept ms2 arch. Copy and reset delayed
946 (struct branch_info, struct label_info): New.
948 (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
949 (ms1_machine_reorg): New.
950 (TARGET_MACHINE_DEPENDENT_REORG): Override.
951 * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
952 * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
953 (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
956 2005-11-09 Per Bothner <per@bothner.com>
957 Uros Bizjak <uros@kss-loka.si>
960 * toplev.c (process_options): Initialize debug_hooks early
961 in case lang_hooks.post_options ends up calling a debug_hook.
963 2005-11-08 Jakub Jelinek <jakub@redhat.com>
965 * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
966 DBX_REGISTER_NUMBER being contiguous.
968 2005-11-08 James A. Morrison <phython@gcc.gnu.org>
969 Diego Novillo <dnovillo@redhat.com>
972 * tree-vrp.c (register_edge_assert_for): Do not register
973 always-false predicates.
975 2005-11-08 Devang Patel <dpatel@apple.com>
977 PR tree-optimization/23115
978 * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
981 2005-11-08 Joseph S. Myers <joseph@codesourcery.com>
983 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
986 2005-11-08 Daniel Berlin <dberlin@dberlin.org>
988 Fix PR tree-optimization/23382
990 * tree-ssa-alias.c (compute_may_aliases): Call
991 delete_old_heap_vars.
992 * tree-dfa.c (referenced_var_remove): New function.
993 * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
994 * tree-flow.h (referenced_var_remove): Add prototype.
995 (delete_old_heap_vars): Ditto.
996 * tree-ssa-structalias.c (heapvars): New variable.
997 (oldheapvars): Ditto.
998 (get_constraint_for): Put heap vars on heapvars list.
999 (delete_old_heap_vars): New function.
1001 2005-11-08 Jason Merrill <jason@redhat.com>
1003 * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
1005 2005-11-08 Uros Bizjak <uros@kss-loka.si>
1008 * reg-stack.c (reg_to_stack): Update register liveness also
1009 for flag_sched2_use_traces.
1011 2005-11-08 Alan Modra <amodra@bigpond.net.au>
1014 * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
1015 override prior explicit -mno-powerpc-gfxopt.
1017 2005-11-07 Eric Botcazou <ebotcazou@adacore.com>
1019 * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
1020 if the bitsize is zero.
1021 * doc/md.texi (Standard Pattern Names): Document it.
1023 * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
1024 (TARGET_PASS_BY_REFERENCE): Likewise.
1026 2005-11-07 Ian Lance Taylor <ian@airs.com>
1028 PR rtl-optimization/24683
1029 * config/i386/i386.c (legitimize_pic_address): If constant operand
1030 to PLUS is too large, put it in a register.
1032 2005-11-07 Jie Zhang <jie.zhang@analog.com>
1034 * configure.ac: Enable checking assembler dwarf2 support for bfin
1036 * configure: Regenerate.
1038 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
1042 * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
1043 gen_easy_vector_constant_add_self): Delete.
1044 (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
1046 (output_vec_const_move): Use gen_easy_altivec_constant.
1047 (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
1048 * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
1049 (easy_vector_constant_add_self): Rewritten.
1050 * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
1051 easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
1052 (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
1053 * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
1054 Macroize and adjust for the other changes.
1056 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
1060 * c-typeck.c (build_c_cast): Try using a shared constant, and see
1061 if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
1063 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1065 PR rtl-optimization/23567
1066 * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
1067 (noce_process_if_block): Don't do any optimizations except
1068 if (cond) x = x; if !set_b and write into orig_x may trap
1069 or fault. Remove the MEM_READONLY_P check.
1071 2005-11-06 Diego Novillo <dnovillo@redhat.com>
1074 * tree-vrp.c (fix_equivalence_set): New.
1075 (extract_range_from_assert): Call it.
1077 2005-11-05 Ian Lance Taylor <ian@airs.com>
1080 * combine.c (apply_distributive_law): Don't distribute across a
1083 2005-11-05 Kazu Hirata <kazu@codesourcery.com>
1085 * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
1086 config/ms1/ms1.h, config/rs6000/predicates.md,
1087 config/s390/s390.c, params.def, postreload-gcse.c,
1088 tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
1089 tree-vrp.c, tree.c: Fix comment typos.
1090 * doc/invoke.texi: Fix typos.
1092 2005-11-05 Sebastian Pop <pop@cri.ensmp.fr>
1094 * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
1095 for testing whether the data_dependence_relation contains distance
1096 vectors. Iterate over all distance vectors of the ddr.
1097 * lambda.h: Define a vec of lambda_vector pointers.
1098 * tree-data-ref.c (dump_data_dependence_relation,
1099 dump_data_dependence_direction): Iterate over all distance and
1100 direction vectors of the ddr.
1101 (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
1103 (build_classic_dist_vector, build_classic_dir_vector): Push a set
1104 of distance/direction vectors instead of a single one.
1105 * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
1106 lambda_vectors with a vec of lambda_vectors.
1107 (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
1108 (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
1109 DDR_NUM_DIST_VECTS): New.
1110 * tree-loop-linear.c (gather_interchange_stats): Test for the
1111 existence of distance vectors only after having checked that there
1112 is a dependence. Iterate over all distance vectors of the ddr.
1113 (linear_transform_loops): Use dump_data_dependence_relation.
1114 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
1115 distance vectors using DDR_NUM_DIST_VECTS. Iterate over all the
1116 distance vectors of the ddr.
1118 2005-11-05 Bernd Schmidt <bernd.schmidt@analog.com>
1120 * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
1121 expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
1122 IS_INTHANDLER; all callers changed.
1123 (n_regs_saved_by_prologue): Take interrupt handler attributes into
1125 (do_link, do_unlink): New argument ALL; all callers changed.
1126 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
1127 If function isn't leaf, save and restore all registers.
1128 (bfin_function_ok_for_sibcall): Only true if not an interrupt or
1131 2005-11-05 Jan Hubicka <jh@suse.cz>
1133 PR rtl-optimization/23490
1134 * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
1135 max-flow-memory-location): Document.
1136 * flow.c: Include params.h
1137 (MAX_MEM_SET_LIST_LEN): Kill.
1138 (add_to_mem_set_list): Use new param.
1139 * cse.c (cse_basic_block): Replace 1000 by new param.
1140 * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
1141 PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
1142 * predict.c (predict_loops): Use new param.
1143 * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
1145 * ipa-inline.c (cgraph_decide_inlining_of_small_function,
1146 cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1147 Do not hold memory returned by cgraph_node_name across other call.
1149 2005-11-04 Hans-Peter Nilsson <hp@axis.com>
1152 * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
1155 2005-11-04 Jeff Law <law@redhat.com>
1158 * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
1159 * tree-ssa-dom.c: Include params.h.
1160 (thread_across_edge): If there are too many statements in the
1161 target block, then do not thread through it.
1162 * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
1163 * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
1165 2005-11-03 Diego Novillo <dnovillo@redhat.com>
1168 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
1169 TODO_update_ssa instead of TODO_update_ssa_no_phi.
1171 2005-11-04 Sebastian Pop <pop@cri.ensmp.fr>
1174 * tree-scalar-evolution.c (instantiate_parameters_1,
1175 instantiate_parameters, resolve_mixers): Compute the size of an
1176 expression to be instantiated and give up the instantiation if the
1177 size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1179 2005-11-04 Richard Guenther <rguenther@suse.de>
1181 * tree-flow.h (ref_contains_indirect_ref): Rename to
1182 array_ref_contains_indirect_ref.
1183 * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
1184 (array_ref_contains_indirect_ref): Make comment match the code
1186 (ref_contains_array_ref): Likewise.
1187 * tree-ssa-structalias.c (find_func_aliases): Remove call to
1188 ref_contains_indirect_ref.
1189 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1190 Rename calls to ref_contains_indirect_ref.
1192 2005-11-04 Paul Brook <paul@codesourcery.com>
1194 * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
1195 gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
1196 (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
1197 * config/arm/arm.md: Use match_operand in peephole input templates
1198 and match_dup in peephole output templates.
1200 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
1202 * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
1205 2005-11-04 Mark Mitchell <mark@codesourcery.com>
1206 Daniel Jacobowitz <dan@codesourcery.com>
1208 * longlong.h (add_ssaaaa): Clobber condition code register
1210 (sub_ddmmss): Likewise.
1211 (umul_ppmm): Likewise.
1213 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
1214 Paul Brook <paul@codesourcery.com>
1215 Phil Blundell <pb@reciva.com>
1217 * configure.ac: Add test for ARM TLS support.
1218 * configure: Regenerated.
1219 * config/arm/arm-protos.h (legitimize_tls_address)
1220 (arm_tls_referenced_p, tls_mentioned_p)
1221 (arm_output_addr_const_extra): New prototypes.
1222 (thumb_legitimize_pic_address): Delete.
1223 * config/arm/arm.c: Include "gt-arm.h".
1224 (enum tls_reloc): New.
1225 (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
1226 (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
1227 (arm_call_tls_get_addr, legitimize_tls_address)
1228 (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
1229 (arm_init_tls_builtins, arm_emit_tls_decoration)
1230 (arm_output_addr_const_extra): New functions.
1231 (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
1232 (TARGET_HAVE_TLS): Define.
1233 (target_thread_pointer): New.
1234 (arm_override_options): Handle -mtp=.
1235 (legitimize_pic_address): Ignore UNSPECs.
1236 (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
1238 (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
1239 (tls_get_addr_libfunc): New variable.
1240 (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
1241 (arm_init_builtins): Call arm_init_tls_builtins.
1242 (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
1243 (arm_encode_section_info): Call default_encode_section_info.
1244 * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
1245 (enum arm_tp_type): New.
1246 (target_thread_pointer): Add declaration.
1247 (LEGITIMATE_CONSTANT_P): Handle TLS.
1248 (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
1249 (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
1250 (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
1251 * config/arm/arm.md: Add UNSPEC_TLS.
1252 (movsi): Handle TLS.
1253 (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
1255 (tls_load_dot_plus_eight): New insn and a peephole to create it.
1256 (load_tp_hard, load_tp_soft): New insns.
1257 * arm.opt: Add -mtp=.
1258 * doc/invoke.texi (ARM Options): Document -mtp.
1260 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
1262 * config/arm/lib1funcs.asm: Don't include "libunwind.S".
1263 * config/arm/libunwind.S: Include "lib1funcs.asm".
1264 * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
1265 (LIB2ADDEH): Add libunwind.S.
1266 (LIB2ADDEHDEP): Add lib1funcs.asm.
1267 * mklibgcc.in: Handle asm files in libgcc_eh.a.
1269 2005-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1272 * gcc/c.opt: Add a -lang-fortran option.
1273 * gcc/c-opts.c: Add a lang_fortran flag.
1274 (c_common_init_options): Handling the -lang-fortran option.
1275 (c_common_handle_option): Add a case for Fortran options in
1276 preprocessing. Remove cases for -ffixed-form and
1277 -ffixed-line-length. Add a case for -lang-fortran.
1279 2005-11-03 David Edelsohn <edelsohn@gnu.org>
1281 * config/rs6000/rs6000.c: Include params.h
1282 (optimization_options): Set max-grow-copy-bb-insns default to 16.
1283 (bdesc_2arg): Delete vpkuhss and vpkuwss.
1284 * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
1285 (UNSPEC_VPKUWSS): Delete.
1286 (altivec_vpkuhss): Delete.
1287 (altivec_vpkuwss): Delete.
1288 * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
1290 (neg_eq0<mode>): Remove final condition.
1291 (neg_eq<mode>): Remove condition and split-condition.
1293 2005-11-04 Alan Modra <amodra@bigpond.net.au>
1295 * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
1296 Use associated print macros.
1298 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
1301 * diagnostic.c (diagnostic_set_info_translated): New function.
1302 (diagnostic_set_info): Use it. Add comment.
1303 * diagnostic.h (diagnostic_set_info_translated): Declare.
1305 2005-11-03 Eric Botcazou <ebotcazou@adacore.com>
1307 * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
1308 On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
1309 reference only if 'public' is true.
1310 (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
1311 emit the .hidden directive only if the indirect reference is public.
1312 (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
1313 Pass it to dw2_force_const_mem.
1314 * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
1315 * dwarf2out.c (output_cfi): Adjust calls to above function.
1316 (output_call_frame_info): Likewise.
1317 * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
1318 as 'public' argument to dw2_asm_output_encoded_addr_rtx.
1320 2005-11-03 Zdenek Dvorak <dvorakz@suse.cz>
1322 PR tree-optimization/24483
1323 * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
1324 field to elts if possible.
1326 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1329 * gimplifier.c (gimplify_expr): Create a temporary for lvalue
1332 2005-11-03 Daniel Berlin <dberlin@dberlin.org>
1334 Fix PR tree-optimization/24351
1336 * tree-ssa-structalias.c (struct variable_info): Add
1338 (get_varinfo_fc): New function to follow collapsing.
1339 (new_var_info): Set collapsed_to to NULL.
1340 (dump_constraint): Follow collapsing.
1341 (build_constraint_graph): Handle collapsing.
1342 (do_simple_structure_copy): Return false if something bad
1344 (collapse_rest_of_var): New function.
1345 (do_structure_copy): Collapse if do_simple_structure_copy returns
1348 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1351 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
1352 expressions to a statement list instead of gimplifying them.
1354 2005-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
1356 PR rtl-optimization/23585
1357 * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
1358 that can't trap plus a constant integer, if the mode has zero size.
1360 2005-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1363 * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
1365 ("*insv<mode>_reg_extimm"): Likewise.
1367 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
1370 * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
1371 c_common_type_for_mode returns an unnamed type.
1373 2005-11-02 Richard Henderson <rth@redhat.com>
1377 * dwarf2out.c (dwarf2out_reg_save_reg): New.
1378 (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
1379 * function.c (assign_parms): Use calls.internal_arg_pointer.
1380 (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
1382 * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
1383 (TARGET_CALLS): Add it.
1384 * target.h (struct gcc_target): Add calls.internal_arg_pointer.
1385 * targhooks.c (default_internal_arg_pointer): New.
1386 * targhooks.h (default_internal_arg_pointer): Declare.
1387 * tree.h (dwarf2out_reg_save_reg): Declare.
1388 * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
1389 * config/i386/i386.c (dbx_register_map): Add return column.
1390 (dbx64_register_map, svr4_dbx_register_map): Likewise.
1391 (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
1392 (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
1393 (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
1394 (ix86_save_reg): Save force_align_arg_pointer.
1395 (ix86_emit_save_regs): Make regno unsigned.
1396 (ix86_emit_save_regs_using_mov): Likewise.
1397 (ix86_expand_prologue): Handle force_align_arg_pointer.
1398 (ix86_expand_epilogue): Likewise.
1399 * config/i386/i386.h: (dbx_register_map): Update.
1400 (dbx64_register_map, svr4_dbx_register_map): Update.
1401 (struct machine_function): Add force_align_arg_pointer.
1402 * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
1403 (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
1404 (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
1406 2005-11-02 Jan Hubicka <jh@suse.cz>
1409 * i386.md: Add peep2 for simplyfing array accesses.
1411 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1414 * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
1415 * config/s390/s390.c (s390_decompose_shift_count): New function.
1416 (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
1417 (print_shift_count_operand): Use s390_decompose_shift_count.
1418 * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
1419 Use s390_decompose_shift_count. Do not accept any non-base hard regs.
1421 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1424 * loop.c (loop_givs_rescan): Use force_operand to expand
1427 2005-11-02 Andrew Pinski <pinskia@physics.uc.edu>
1430 * fold-const.c (build_range_check): Use unsigned when signed
1431 overflow is undefined also. If etype is subtype, make sure that
1432 the subtraction is in the supertype.
1434 2005-11-02 Richard Henderson <rth@redhat.com>
1437 * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
1440 2005-11-01 Richard Henderson <rth@redhat.com>
1443 * loop.c (scan_loop): Do not propagate computations to a hard
1444 register destination with SMALL_REGISTER_CLASSES.
1446 2005-11-01 Joseph S. Myers <joseph@codesourcery.com>
1448 * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
1449 costs for MULT inside PLUS or MINUS.
1451 2005-11-01 Bob Wilson <bob.wilson@acm.org>
1453 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
1454 (TRAMPOLINE_SIZE): Round up to 60.
1455 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
1457 2005-10-31 James E. Wilson <wilson@specifix.com>
1460 * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
1461 ifdef. Put ifdefs around call in gen_subprogram_die.
1462 (compute_frame_pointer_to_cfa_displacement): Likewise.
1463 (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
1466 PR rtl-optimization/17356
1467 * cfgrtl.c (purge_dead_edges): Undo last change. In EDGE_EH code,
1468 add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
1470 2005-10-31 Jan Hubicka <jh@suse.cz>
1473 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
1476 * i386.c (legitimize_pic_address): Deal with large immediates.
1479 * coverage.c (coverage_checksum_string): Fix code to stip random seeds
1480 from symbol names while computing checkup.
1483 * predict.c (predict_loops): Do not estimate more than
1484 MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
1485 * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
1487 2005-10-31 Andrew MacLeod <amacleod@redhat.com>
1489 PR tree-optimization/19097
1490 * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
1492 2005-10-31 J"orn Rennecke <joern.rennecke@st.com>
1494 * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
1496 2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
1499 * tree-inline.c (setup_one_parameter): If the init_stmt
1500 is NULL, don't insert the statement.
1502 2005-10-30 Jan Hubicka <jh@suse.cz>
1504 PR tree-optimization/24172
1505 * tree-inline.c (copy_body_r): Unshare the substituted value first.
1507 2005-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1509 * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
1510 constants for hosts with long != 32 bits.
1512 2005-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
1515 * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
1517 2005-10-28 Aldy Hernandez <aldyh@redhat.com>
1519 * config/ms1/ms1.h (TARGET_MS1_64_001): New.
1520 (TARGET_MS1_16_002): New.
1521 (TARGET_MS1_16_003): New.
1523 * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
1524 ("*decrement_and_branch_until_zero_no_clobber"): New.
1525 Add corresponding splitter for decrement_and_branch_until_zero
1527 Key all decrement_and_branch_until_zero patterns off of
1530 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
1533 * tree-complex.c (extract_component): Treat RESULT_DECL
1534 like the rest of the decls.
1536 2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
1538 * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
1539 indirect call to _mcount if the function needs a static chain.
1541 2005-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
1542 Caroline Tice <ctice@apple.com>
1544 PR rtl-optimization/24460
1545 * dwarf2out.c (have_switched_text_sections): New boolean variable.
1546 (dwarf2out_switch_text_section): Set it to true instead of
1547 incrementing separate_line_info_table_in_use.
1548 (output_loc_list): Additionally test have_switched_text_sections.
1549 (output_ranges): Likewise.
1550 (dwarf2out_finish): Likewise.
1551 * varasm.c (assemble_start_function): Do not call
1552 insert_section_boundary_note.
1553 (assemble_end_function): If flag_reorder_blocks_and_partition,
1554 switch to the function's section before emitting the .size directive.
1555 * bb-reorder.c (insert_section_boundary_note): Staticify.
1556 (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
1557 * output.h (insert_section_boundary_note): Delete.
1559 2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
1562 * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
1563 instead of pointer equality when comparing types.
1565 2005-10-24 James E. Wilson <wilson@specifix.com>
1567 * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
1568 add_dependence_list_and_free calls.
1570 2005-10-24 Steven Bosscher <stevenb@suse.de>
1572 * contrib.texi: Add the names of the LLNL folks who donated
1573 Cray pointer support for gfortran.
1575 2005-10-24 Steven Bosscher <stevenb@suse.de>
1577 PR tree-optimization/24225
1578 * profile.c (branch_prob): Look from end to start through a
1579 basic block when looking for a locus.
1581 2005-10-24 Richard Henderson <rth@redhat.com>
1583 * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
1585 (hppa_expand_prologue): Likewise.
1587 2005-10-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1589 * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
1590 (NO_DEFERRED_PROFILE_COUNTERS): Define.
1591 * pa.h (NO_PROFILE_COUNTERS): Define.
1592 * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
1593 (funcdef_nos): New vector to hold label numbers of deferred profile
1595 (output_deferred_profile_counters): New function.
1596 (hppa_profile_hook): Push label number onto funcdef_nos.
1597 (pa_hpux_file_end): Call output_deferred_profile_counters if
1598 NO_DEFERRED_PROFILE_COUNTERS is false.
1600 * pa-protos.h (get_deferred_plabel): New prototype.
1601 * pa.c (get_plabel): Rename to get_deferred_plabel. Return plabel.
1603 (output_call): Adjust calls.
1605 2005-10-24 Alan Modra <amodra@bigpond.net.au>
1607 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
1608 peculiarity of GOT/TOC section usage.
1610 2005-10-23 Andrew Pinski <pinskia@physics.uc.edu>
1613 * c-common.c (constant_string_class_name): Add documentation.
1615 2005-10-23 Kaz Kojima <kkojima@gcc.gnu.org>
1618 * recog.c (peephole2_optimize): Increment peep2_current_count
1619 only when the slot is empty.
1621 2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1624 * except.c (output_function_exception_table): Call
1625 assemble_external_libcall if we need a personality function.
1627 2005-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
1629 PR rtl-optimization/24460
1630 * bb-reorder.c (fix_crossing_unconditional_branches): Do not
1631 set the basic block for barriers.
1633 2005-10-21 Janis Johnson <janis187@us.ibm.com>
1635 * var-tracking.c (vt_initialize): Initialize post.
1637 2005-10-21 Devang Patel <dpatel@apple.com>
1640 * c-common.c (vector_types_convertible_p): Check vector element type.
1642 2005-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
1644 * config/sh/sh.c (prepare_move_operands): Handle the address
1645 constant which is a tls symbolic address plus a constant.
1647 2005-10-21 Andrew Pinski <pinskia@physics.uc.edu>
1650 * gcc.c (main): Use the correct counter for erroring out
1651 about mulitple files.
1653 2005-10-21 Alan Modra <amodra@bigpond.net.au>
1656 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
1657 use r2 for 64-bit tls .got access.
1659 2005-10-21 Paolo Bonzini <bonzini@gnu.org>
1661 * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
1664 2005-10-20 Steven Bosscher <stevenb@suse.de>
1666 PR tree-optimization/24307
1667 * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
1669 2005-10-20 Alexandre Oliva <aoliva@redhat.com>
1672 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
1674 * varasm.c (find_decl_and_mark_needed): After cgraph global info
1675 is ready, stop marking functions, but still mark variables.
1677 2005-10-20 Richard Guenther <rguenther@suse.de>
1680 * fold-const.c (invert_truthvalue): Handle COND_EXPR with
1683 2005-10-20 Eric Botcazou <ebotcazou@libertysurf.fr>
1685 PR rtl-optimization/23585
1686 * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
1687 (rtx_addr_can_trap_p): ... here. Invoke rtx_addr_can_trap_p_1.
1688 (may_trap_p_1): New predicate extracted from...
1689 (may_trap_p): ... here. Invoke may_trap_p_1.
1690 (may_trap_or_fault_p): New predicate.
1691 * rtl.h (may_trap_or_fault_p): Declare it.
1692 * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
1693 instead of may_trap_p.
1694 (steal_delay_list_from_fallthrough): Likewise.
1695 (fill_simple_delay_slots): Likewise.
1696 (fill_slots_from_thread): Likewise.
1697 * function.c (pad_to_arg_alignment): Rework comment about
1698 SPARC_STACK_BOUNDARY_HACK.
1699 * config/sparc/sparc.h: Likewise.
1701 2005-10-19 Adrian Straetling <straetling@de.ibm.com>
1703 * config/s390/s390.c (s390_expand_insv): New.
1704 * config/s390/s390-protos.h (s390_expand_insv): Declare.
1705 * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
1706 ("icm_hi"): Remove mode attribute.
1707 ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
1709 ("*extracthi", "*extractqi"): Remove.
1710 (extv<mode>", "*extzv<mode>"): New.
1711 ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
1712 "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
1714 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1716 * cfgexpand.c (discover_nonconstant_array_refs_r,
1717 discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
1718 (tree_expand_cfg): Call discover_nonconstant_array_refs.
1719 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
1720 discover_nonconstant_array_refs.
1722 2005-10-19 Steven Bosscher <stevenb@suse.de>
1725 * c-decl.c (pop_scope): Don't warn about an unused variable
1726 if it is marked with TREE_NO_WARNING.
1727 (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
1728 somenow mismatch and olddecl is to be replaced.
1730 2005-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
1733 * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
1734 whether registers live on the edge can be saved/restored.
1736 2005-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
1738 * config/sh/sh.c (fixup_mova): Skip notes.
1740 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1742 * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
1743 * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
1744 (s390_can_eliminate): Handle BASE_REGNUM elimination.
1745 (s390_initial_elimination_offset): Likewise.
1746 (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
1747 register on TARGET_ZARCH targets.
1748 * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
1749 (INITIAL_FRAME_POINTER_OFFSET): Remove.
1750 (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
1751 (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
1753 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
1755 * config/s390/s390.md: Comment describing output modifiers updated.
1756 * config/s390/s390.c (print_operand): Likewise.
1758 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
1760 * config/s390/s390.c (override_options): Added check for -mstack-size
1762 * doc/invoke.texi: Mention that limit in the documenation.
1764 2005-10-18 Paolo Bonzini <bonzini@gnu.org>
1767 * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
1769 2005-10-18 Daniel Berlin <dberlin@dberlin.org>
1771 Fix PR tree-optimization/24231
1773 * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
1774 (compute_avail): Ditto.
1776 2005-10-18 Richard Henderson <rth@redhat.com>
1779 * config/i386/i386.c (legitimate_constant_p): Check
1780 SYMBOL_REF_TLS_MODEL directly. Don't fallthru to SYMBOL_REF
1782 (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
1783 (legitimate_pic_address_disp_p): Reorg CONST checking to make
1784 sure SYMBOL_REF_TLS_MODEL is tested. Test SYMBOL_REF_TLS_MODEL
1786 (print_operand_address): Likewise.
1787 * config/i386/predicates.md (x86_64_immediate_operand): Test
1788 SYMBOL_REF_TLS_MODEL properly inside CONST.
1789 (x86_64_zext_immediate_operand): Likewise.
1790 (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
1791 initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
1792 * config/i386/i386-protos.h: Remove predicates.md entries.
1794 2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
1796 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
1797 Check that elements of TYPE_METHODS are FUNCTION_DECLs.
1799 2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
1800 Ian Lance Taylor <ian@airs.com>
1803 * fold-const.c (fold_widened_comparison): Do not allow range based
1804 constant folding when right operand cannot be unwidened.
1806 2005-10-17 Richard Henderson <rth@redhat.com>
1808 * builtins.c (expand_builtin_synchronize): Build a new-style asm
1809 with a memory clobber.
1811 2005-10-17 James E Wilson <wilson@specifix.com>
1813 PR rtl-optimization/17356
1814 * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
1815 checking for EDGE_EH.
1817 2005-10-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1819 * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
1820 the slot on an even boundary for any type with 16-byte alignment.
1822 2005-10-17 Hans-Peter Nilsson <hp@axis.com>
1825 * md.texi (Modifiers) <%>: Clarify that % doesn't work
1826 after register allocation.
1828 2005-10-17 DJ Delorie <dj@redhat.com>
1830 * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
1833 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
1836 * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
1839 2005-10-17 Kaz Kojima <kkojima@gcc.gnu.org>
1841 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
1842 to 2 if it's already non-zero.
1843 (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
1844 is set and warn about it if flag_schedule_insns is 1.
1846 2005-10-17 Paul Woegerer <paul.woegerer@nsc.com>
1848 * config/crx/crx.md: Compare-and-branch instructions need to
1851 2005-10-17 Uros Bizjak <uros@kss-loka.si>
1854 * config/i386/i386.md (*pushdi2_rex64 splitter)
1855 (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
1856 (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
1857 flow2 pass only when (optimize > 0 && flag_peephole2).
1859 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
1862 * gcc.c (have_c): New static variable.
1864 (process_command): Remove declation of have_c.
1865 Set have_o to 1 when handling -o.
1866 (main): Add a fatel error if there are multiple
1867 files specified and -o and -c/-S is passed witout
1868 -combine or multiple languages.
1870 2005-10-16 Daniel Berlin <dberlin@dberlin.org>
1872 Fix PR tree-optimization/22444
1873 * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
1874 Assert that we don't hit something with subvars.
1875 (setup_pointers_and_addressables): Don't add things with subvars,
1876 because we'll already process the subvars for aliasing purposes.
1878 2005-10-16 Hans-Peter Nilsson <hp@axis.com>
1881 * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
1882 ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
1883 ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
1884 ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
1885 ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
1886 swapped, alternatives for the R constraint.
1889 * builtins.c (get_builtin_sync_mode): Make unlimited
1890 mode_for_size request.
1892 2005-10-15 Richard Henderson <rth@redhat.com>
1894 * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
1895 (gimplify_expr): ... here.
1896 (gimplify_compound_lval): Use it in initial scan loop. Allow
1897 fb_lvalue in base expression.
1899 2005-10-15 Richard Henderson <rth@redhat.com>
1902 * builtins.c (expand_builtin_trap): Export.
1903 * expr.h (expand_builtin_trap): Declare.
1904 * expr.c (expand_assignment): Emit a trap for integral offsets
1905 from registers that weren't reduced to bitpos.
1907 * tree-cfg.c (mark_array_ref_addressable_1): Remove.
1908 (mark_array_ref_addressable): Remove.
1909 * tree-flow.h (mark_array_ref_addressable): Remove.
1910 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
1912 2005-10-15 James E Wilson <wilson@specifix.com>
1915 * sched-deps.c (add_dependence_list): New arg UNCOND. Fix all callers.
1916 (add_dependence_list_and_free): Likewise.
1917 (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
1920 2005-10-15 Diego Novillo <dnovillo@redhat.com>
1924 * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
1925 sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
1927 (vrp_visit_phi_node): Only prevent infinite iterations when
1928 the previous result and the new result are both VR_RANGEs.
1930 2005-10-15 Ranjit Mathew <rmathew@gcc.gnu.org>
1932 * tree-into-ssa.c (mark_def_sites): Correct minor typo in
1935 2005-10-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1938 * c-parser.c (c_parser_for_statement): Use location of RID_FOR
1941 2005-10-14 Per Bothner <per@bothner.com>
1943 PR preprocessor/21250
1944 * c-ppoutput.c (print_line): Print internal line 0 as 1.
1946 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
1949 * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
1950 overflow flags. Refactor some conditionals.
1952 2005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
1955 * tree-dfa.c (add_referenced_var): Only look at decls which
1956 have TREE_CONSTANT or TREE_READONLY set instead of if
1957 !TREE_PUBLIC or !TREE_CONSTANT.
1959 2005-10-13 James E Wilson <wilson@specifix.com>
1961 * doc/invoke.texi: For -x, add f95-cpp-input.
1962 * doc/install.texi: For --enable-languages doc, change f95 to fortran.
1964 2005-10-12 Sebastian Pop <pop@cri.ensmp.fr>
1966 PR tree-optimization/24262
1967 * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
1968 in loop all the time.
1970 2005-10-12 Richard Henderson <rth@redhat.com>
1973 * tree.h (DECL_TRANSPARENT_UNION): Remove.
1974 * function.c (assign_parm_find_data_types): Don't support it.
1975 * print-tree.c (print_node): Likewise.
1976 * c-common.c (handle_transparent_union_attribute): Likewise.
1977 Use build_duplicate_type.
1978 * tree-inline.c (remap_type_1): Split out of remap_type;
1979 properly remap aggregate fields.
1980 (build_duplicate_type): New.
1981 * doc/extend.texi (Variable Attributes): Remove documentation
1982 for transparent_union.
1984 2005-10-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1987 * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
1988 (gen_stack_pointer_dec): Likewise.
1990 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
1994 * target.h (struct gcc_target): Add valid_dllimport_attribute_p
1996 (struct cxx): Add adjust_class_at_definition target hook.
1997 * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
1998 defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
1999 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
2000 hook_void_tree. Add to TARGET_CXX.
2001 * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
2003 (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
2004 * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
2005 instead of attribute. Check for dllexport override. Warn if
2006 inconsistent dll linkage. Don't lose old dllimport if decl has
2007 had address referenced. Tweak lookup of dllimport atribute.
2008 (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
2009 for target specific rules. Don't add dllimport attribute if
2010 DECL_DECLARED_INLINE_P. Set DECL_DLLIMPORT_P when adding
2011 dllimport attribute.
2012 (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
2013 * varasm.c (initializer_constant_valid_p): Replace
2014 DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
2018 * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
2019 'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
2020 (i[34567]86-*-mingw32*): Likewise.
2022 * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
2023 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
2025 * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
2026 C++-specific code. Change return value to bool.
2027 (i386_pe_dllimport_p): Likewise.
2028 (associated_type): Simplify and make language-independent
2029 (i386_pe_encode_section_info): Replace override of ambiguous
2030 dllimport symbol refs with a gcc_assert.
2031 (i386_pe_valid_dllimport_attribute_p): Define.
2032 * config/i386/winnt-cxx.c: New file. Define C++ versions of
2033 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2034 i386_pe_adjust_class_at_definition.
2035 * config/i386/winnt-stubs.c: New file. Define stub versions of
2036 lang-specific functions.
2037 * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
2038 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2039 i386_pe_adjust_class_at_definition.
2040 (i386_pe_valid_dllimport_attribute_p): Declare.
2041 * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
2042 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
2043 * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
2046 * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
2047 dllimport attribute with test of DECL_DLLIMPORT_P.
2049 2005-10-12 Adrian Straetling <straetling@de.ibm.com>
2051 * combine.c (make_extraction): Correct offset computation.
2053 2005-10-12 Hans-Peter Nilsson <hp@axis.com>
2055 * config/cris/t-linux (LIMITS_H_TEST): Define.
2057 2005-10-12 Richard Henderson <rth@redhat.com>
2060 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
2062 2005-10-12 Richard Guenther <rguenther@suse.de>
2064 * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
2066 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
2069 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
2070 DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
2073 2005-10-12 Richard Guenther <rguenther@suse.de>
2076 * varasm.c (output_constant): Correct typo from previous
2079 2005-10-11 Ian Lance Taylor <ian@airs.com>
2081 PR rtl-optimization/13931
2082 * combine.c: Revert patch of 2003-05-14, and:
2083 (try_combine): Only set elim_i1 and elim_i2 if the destination is
2084 completely killed in the appropriate insn.
2085 (distribute_notes): Don't skip multiple hard register test for
2086 elim_i1 and elim_i2.
2088 2005-10-11 Richard Henderson <rth@redhat.com>
2091 * c-typeck.c (convert_for_assignment): Use build_constructor_single
2092 to initialize a transparent union instead of a nop_expr.
2094 2005-10-11 Richard Henderson <rth@redhat.com>
2096 * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
2097 * tree-ssa-dce.c: Include tree-scalar-evolution.h.
2098 (tree_ssa_dce_loop): Call scev_reset.
2101 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
2102 * tree-ssa-dce.c: Include cfgloop.h.
2103 (tree_ssa_dce_loop, pass_dce_loop): New.
2104 * tree-pass.h (pass_dce_loop): Declare it.
2105 * passes.c (init_optimization_passes): Use it.
2107 2005-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2110 * convert.c (convert_to_real): Revert 2005-10-05 patch.
2111 Only apply the optimization for rounding builtins if the inner
2112 cast is also an extension.
2114 2005-10-11 Andrew Pinski <pinskia@physics.uc.edu>
2117 * tree-ssa-ccp.c (execute_fold_all_builtins): Call
2118 mark_new_vars_to_rename instead of update_stmt.
2120 2005-10-11 Bernd Schmidt <bernd.schmidt@analog.com>
2122 * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
2124 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2126 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
2127 for setting MMX register to 0 rather than mmx.
2129 2005-10-10 Steve Ellcey <sje@cup.hp.com>
2132 * configure.ac: Move gas check from mips specific case to common case.
2133 Do check for GNU as for mips*-*-* and *-*-hpux* targets.
2134 * configure: Regenerate
2135 * doc/install.texi: Update.
2137 2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2140 * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
2142 2005-10-10 Maciej W. Rozycki <macro@linux-mips.org>
2144 * gcc.c (do_spec_1): Accept numeric characters in file name
2147 2005-10-10 Nick Clifton <nickc@redhat.com>
2149 * config/arm/arm.c: Remove extraneous whitespace. Remove comment
2150 describing the deleted arm_gen_rotated_half_load function.
2152 2005-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
2154 * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
2157 2005-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2159 * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
2161 * config/arm/t-linux-eabi (LIB1ASMFUNCS)
2162 (EXTRA_MULTILIB_PARTS): Define.
2163 * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2164 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2165 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
2166 * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2167 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2168 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
2170 2005-10-09 Zdenek Dvorak <dvorakz@suse.cz>
2172 PR tree-optimization/24226
2173 * tree-cfg.c (remove_bb): Clean up unreachable loops.
2174 * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
2175 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
2178 2005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
2180 * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
2182 2005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2185 * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
2186 Rewrite for no need for the early clobber.
2188 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
2190 Merge from csl-arm-branch:
2191 2005-09-07 Paul Brook <paul@codesourcery.com>
2192 * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
2195 2005-04-30 Paul Brook <paul@codesourcery.com>
2196 * config/arm/bpabi.h (TARGET_DEFAULT): Define.
2197 * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
2199 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
2200 * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
2201 (arm_override_options): Use TARGET_AAPCS_BASED.
2202 * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
2203 (PTRDIFF_TYPE): Use int for AAPCS.
2204 (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
2205 * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
2206 (DEFAULT_SHORT_ENUMS): Delete.
2207 * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
2209 2004-12-15 Daniel Jacobowitz <dan@codesourcery.com>
2210 * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
2211 * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
2212 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
2214 2004-12-03 Mark Mitchell <mark@codesourcery.com>
2215 * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
2217 2004-11-22 Mark Mitchell <mark@codesourcery.com>
2218 * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
2220 2004-11-19 Mark Mitchell <mark@codesourcery.com>
2221 * config.gcc (arm*-*-linux-gnueabi): Add it.
2222 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
2224 (TARGET_OS_CPP_BUILTINS): Likeiwse.
2225 * config/arm/linux-eabi.h: New file.
2226 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
2227 (LINUX_TARET_LINK_SPEC): Likewise.
2228 (LINK_SPEC): Use it.
2229 * config/arm/t-linux-eabi: New file.
2231 2005-10-08 Steven Bosscher <stevenb@suse.de>
2234 * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
2236 (PARAM_SMS_DFA_HISTORY): Likewise.
2238 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
2241 * calls.c (mem_overlaps_already_clobbered_arg_p): New.
2242 (load_register_parameters): Call it.
2243 (check_sibcall_argument_overlap_1): Likewise.
2244 (store_one_arg): Likewise.
2246 2005-10-07 James E. Wilson <wilson@specifix.com>
2248 * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
2249 DImode not VECINT24 for operand 2.
2252 * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
2256 * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
2257 fr_spill): Use destination_operand for operand 0.
2259 2005-10-07 DJ Delorie <dj@redhat.com>
2261 * varasm.c (output_constant): Limit error to expanding
2264 2005-10-07 Richard Guenther <rguenther@suse.de>
2267 * fold-const.c (fold_binary): Fix operand types during folding
2268 of X op (A, Y). Evaluation order of the side-effects of
2269 X and A are frontend-defined, so ensure we honour that even for
2270 tcc_comparison class operands; eased by removing duplicate code.
2272 2005-10-07 Steve Ellcey <sje@cup.hp.com>
2274 * stor-layout.c (layout_type): Do not allow alignment of array
2275 elements to be greater than their size.
2277 2005-10-07 Steve Ellcey <sje@cup.hp.com>
2279 * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
2281 (hppa*-*-linux*): Ditto.
2282 (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
2283 * config/host-hpux.c: New.
2284 * config/x-hpux: New.
2285 * config/pa/x-hpux: Remove.
2286 * config/pa/x-linux: Remove.
2287 * config/pa/pa-host.c: Remove.
2289 2005-10-07 Jeff Law <law@redhat.com>
2291 * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
2292 determine whether or not to try and thread outgoing edges.
2294 2005-10-07 David Edelsohn <edelsohn@gnu.org>
2296 * config/rs6000/rs6000.md (eqsi_power): New.
2297 (neg_eq0si): Add TARGET_POWER to final condition.
2300 2005-10-06 Richard Henderson <rth@redhat.com>
2302 * config/rs6000/rs6000.c: Revert last change.
2304 2005-10-06 Richard Henderson <rth@redhat.com>
2306 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
2307 (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
2309 2005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
2313 * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
2314 out return_label and naked_return_label.
2316 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
2318 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
2321 2005-10-06 Richard Henderson <rth@redhat.com>
2324 * tree-inline.c (declare_return_variable): Handle modify_dest not
2327 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
2329 Fix PR tree-optimization/22488
2330 * tree-ssa-structalias.c (check_for_overlaps): New function.
2331 (create_variable_info_for): Use it.
2333 2005-10-06 Richard Henderson <rth@redhat.com>
2336 * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
2337 (dwarf2out_start_source_file): Print it.
2339 2005-10-06 Geoffrey Keating <geoffk@apple.com>
2341 * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
2343 2005-10-06 Richard Henderson <rth@redhat.com>
2346 * mode-switching.c (optimize_mode_switching): Clear transp bit
2347 for block with incomming abnormal edges.
2349 * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
2350 (fpscr_set_from_mem): Use them.
2351 * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
2352 (fpscr postinc splitters): Rewrite as peephole2+split.
2354 2005-10-06 David Edelsohn <edelsohn@gnu.org>
2356 * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
2357 (eq<mode>_compare): Same.
2359 2005-10-06 Richard Guenther <rguenther@suse.de>
2361 PR tree-optimization/24238
2362 * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
2364 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
2366 * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
2367 here. Use AC_PATH_PROG for environment variables instead of
2369 * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
2371 * configure: Regenerated.
2373 2005-10-06 Richard Earnshaw <richard.earnshaw@arm.com>
2376 * arm.md (call): If the address isn't a SYMBOL_REF or a register,
2377 then force it into a register.
2378 (call_value): Likewise.
2380 2005-10-06 Richard Henderson <rth@redhat.com>
2383 * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
2384 under pass_vectorize. Clear TODO_ggc_collect from the dce pass
2385 under pass_vectorize.
2387 2005-10-05 Devang Patel <dpatel@apple.com>
2390 * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
2391 handling constants. Check NAMESPACE_DECL context for constants.
2393 2005-10-05 Eric Christopher <echristo@apple.com>
2395 * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
2397 2005-10-05 Richard Henderson <rth@redhat.com>
2400 * tree-cfg.c (mark_array_ref_addressable_1): New.
2401 (mark_array_ref_addressable): New.
2402 * tree-flow.h (mark_array_ref_addressable): Declare.
2403 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
2405 2005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
2409 * reload.c (subst_reloads): When adding a REG_LABEL to a
2410 jump instruction, also update JUMP_LABEL.
2412 2005-10-05 David Edelsohn <edelsohn@gnu.org>
2414 * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
2415 * bb-reorder.c (copy_bb_p): Use it.
2416 * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
2418 2005-10-05 Richard Henderson <rth@redhat.com>
2421 * toplev.c (process_options): Warn about unsupported combinations
2422 of unwind tables and omit-frame-pointer.
2423 * config/i386/i386.c (override_options): Similarly. Enable
2424 accumulate-outgoing-args if not explicitly disabled.
2426 2005-10-05 Steve Ellcey <sje@cup.hp.com>
2428 * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
2429 Handle big endian vs. small endian.
2430 (vec_initv2sf): Handle big endian vs. small endian.
2431 (*vec_extractv2sf_1): Ditto.
2433 2005-10-05 Dale Johannesen <dalej@apple.com>
2435 * convert.c (convert_to_real): Don't convert
2436 (float)floor(double d) to floorf((float)d).
2438 2005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2440 * config/arm/arm.md (insv): Use gen_int_mode in more places.
2442 2005-10-05 Andrew MacLeod <amacleod@redhat.com>
2444 PR tree-optimization/18587
2445 * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
2446 (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
2447 build_vuses): Change to VEC type.
2448 (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
2449 opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
2450 opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
2451 opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
2452 (get_name_decl): New. Return DECL_UID of base variable.
2453 (operand_build_cmp): New. qsort comparison routine.
2454 (operand_build_sort_virtual): New. Sort virtual build vector.
2455 (init_ssa_operands, fini_ssa_operands): Use VEC routines.
2456 (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
2457 (FINALIZE_BASE): Use get_name_decl.
2458 (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
2459 finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
2460 (start_ssa_stmt_operands, append_def, append_use, append_vuse,
2461 append_v_may_def, append_v_must_def): Replace opbuild_* routines with
2462 direct VEC_* manipulations.
2463 (build_ssa_operands): Call operand_build_sort_virtual.
2464 (copy_virtual_operand, create_ssa_artficial_load_stmt,
2465 add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
2466 with direct VEC_* manipulations.
2467 * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
2468 with direct VEC manipulations.
2470 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
2472 PR tree-optimization/21419
2473 PR tree-optimization/24146
2474 PR tree-optimization/24151
2476 * c-typeck.c (readonly_error): Handle USE being lv_asm.
2477 (build_asm_expr): Call it if outputs are read-only.
2478 * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
2480 2005-10-05 Billy Biggs <billy.biggs@gmail.com>
2481 Paolo Bonzini <bonzini@gnu.org>
2485 * doc/extend.texi (x86 Built-ins): Document that -msse and friends
2486 enable the instructions and not just the built-ins.
2487 * doc/invoke.texi (x86 Options): Likewise.
2489 2005-10-04 Geoffrey Keating <geoffk@apple.com>
2491 * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
2493 * doc/invoke.texi (Option Summary): Correct spelling
2494 of -mmacosx-version-min.
2496 2005-10-04 Devang Patel <dpatel@apple.com>
2498 * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
2501 2005-10-04 Steve Ellcey <sje@cup.hp.com>
2503 * tree-vect-transform.c (vect_create_epilog_for_reduction):
2504 Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
2506 2005-10-04 Adrian Straetling <straetling@de.ibm.com>
2508 * config/s390/s390.md ("TDSI","DP"): New mode macros.
2509 ("TE","tg"): New mode attributes.
2510 ("sync_compare_and_swap<mode>"): Replace with a define_expand.
2511 ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
2512 ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
2513 dword_mode and one for GPRmode.
2515 2005-10-04 Ian Lance Taylor <ian@airs.com>
2517 PR preprocessor/13726
2518 * c-ppoutput.c (cb_include): Add comments parameter, and print out
2519 any comments passed in.
2521 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
2523 * tree.c (annotate_with_file_line): Fix typo.
2525 2005-10-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2528 * builtins.c (fold_builtin_memcmp): When constructing the pointer
2529 type used to access data in the inlined length == 1 case, use
2530 build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
2531 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
2533 2005-10-04 Uros Bizjak <uros@kss-loka.si>
2535 * config/i386/i386.h (TARGET_FISTTP): Enable also for
2536 TARGET_SSE3 and only for TARGET_80387.
2537 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
2538 (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
2539 Do not depend on TARGET_80387.
2541 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
2543 * tree.c (last_annotated_node): Change type to location_t*.
2544 (annotate_with_file_line): Reflect the change of
2545 last_annotated_node type.
2547 2005-10-04 Richard Guenther <rguenther@suse.de>
2550 * c-decl.c (grokdeclarator): Don't write to fields
2553 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
2556 * c-decl.c (finish_decl): Use set_user_assembler_name even for
2558 * varasm.c (make_decl_rtl): If a register variable does not
2559 have a set user assmbler name, error out.
2560 Decode the asmspec is now name+1 bypassing '*'.
2562 2005-10-04 Steven Bosscher <stevenb@suse.de>
2564 PR tree-optimization/23049
2565 * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
2566 of a COND_EXPR is folded before calling fold on the whole rhs of a
2567 conditional assignment.
2568 * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
2569 document that a COND_EXPR may appear there.
2571 2005-10-03 Diego Novillo <dnovillo@redhat.com>
2574 * tree-vrp.c (extract_range_from_assert): If the new numeric
2575 range created out of the assertion contradicts the existing
2576 numeric range of the ASSERT_EXPR variable, make the new range
2579 2005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
2581 * config/sh/sh.c (sh_register_move_cost): Add case for moving
2582 from T_REGS to FP register class.
2584 2005-10-03 Richard Henderson <rth@redhat.com>
2587 * tree-nested.c (convert_nl_goto_reference): Lookup a translation
2588 before creating a new one.
2590 2005-10-03 David Edelsohn <edelsohn@gnu.org>
2592 * config/rs6000/t-aix43 (LDFLAGS): New.
2593 * config/rs6000/t-aix52 (LDFLAGS): New.
2595 2005-10-03 Ian Lance Taylor <ian@airs.com>
2597 * gimplify.c (find_single_pointer_decl_1): New static function.
2598 (find_single_pointer_decl): New static function.
2599 (internal_get_tmp_var): For a formal variable, set restrict base
2600 information if appropriate.
2601 * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
2603 * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
2604 (DECL_GET_RESTRICT_BASE): Define.
2605 (SET_DECL_RESTRICT_BASE): Define.
2606 (decl_restrict_base_lookup): Declare.
2607 (decl_restrict_base_insert): Declare.
2608 (struct tree_decl_with_vis): Add based_on_restrict_p field.
2609 * tree.c (restrict_base_for_decl): New static variable.
2610 (init_ttree): Initialize restrict_base_for_decl.
2611 (copy_node_stat): Copy restrict base information.
2612 (decl_restrict_base_lookup): New function.
2613 (decl_restrict_base_insert): New function.
2614 (print_restrict_base_statistics): New static function.
2615 (dump_tree_statistics): Call print_restrict_base_statistics.
2617 2005-10-02 Diego Novillo <dnovillo@redhat.com>
2620 * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
2621 case of anti-ranges.
2623 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
2626 * c-typeck.c (tagged_tu_seen): Rename to ...
2627 (tagged_tu_seen_cache): this and add val field.
2628 (comptypes): Move functional to comptypes_internal
2629 and free tagged_tu_seen.
2630 (comptypes_internal): New function and call comptypes_internal
2631 instead of comptypes. Speed up by sibcalling
2632 tagged_types_tu_compatible_p.
2633 (alloc_tagged_tu_seen): New function
2634 (free_all_tagged_tu_seen_up_to): New function.
2635 (tagged_types_tu_compatible_p): Return the val of the seen two
2637 Add that the two types are the same to tagged_tu_seen_base
2638 if they are and call comptypes_internal instead of comptypes.
2639 <case UNION_TYPE>: Speed up common type where the fields are
2641 (function_types_compatible_p): Call comptypes_internal instead of
2643 (type_lists_compatible_p): Likewise.
2644 (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
2646 2005-10-02 Matthias Klose <doko@debian.org>
2648 * doc/invoke.texi: Fix typo and speling error.
2650 2005-10-01 Richard Henderson <rth@redhat.com>
2652 * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
2654 2005-10-01 Mark Mitchell <mark@codesourcery.com>
2656 * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
2657 using --start-group and --end-group.
2659 2005-10-01 Diego Novillo <dnovillo@redhat.com>
2661 * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
2662 FIXME note regarding quirky semantics.
2664 2005-10-01 Diego Novillo <dnovillo@redhat.com>
2667 * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
2668 non-null range as a last resort.
2670 2005-10-01 James A. Morrison <phython@gcc.gnu.org>
2671 Diego Novillo <dnovillo@redhat.com>
2674 * tree-vrp.c (extract_range_from_assert): For !=
2675 assertions, only build an anti-range if LIMIT is a
2676 single-valued range.
2678 2005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
2680 * arm.md (movqi): On thumb when optimizing, handle loading from
2681 memory by describing this as taking a subreg of a zero-extended load
2682 into an SImode register.
2685 2005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2687 * reload1.c (merge_assigned_reloads): Do not change any
2688 RELOAD_FOR_OUTPUT_ADDRESS reloads.
2690 2005-09-30 Geoffrey Keating <geoffk@apple.com>
2692 * Makefile.in (LIPO_FOR_TARGET): Define.
2693 (STRIP_FOR_TARGET): Define.
2695 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
2696 before creating new ones. Do symlinks before creating the actual
2699 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
2700 to work out which multilibs are actually being built.
2702 2005-09-30 Kazu Hirata <kazu@codesourcery.com>
2704 * tree-vect-transform.c, config/ms1/ms1.md,
2705 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
2706 Follow spelling conventions.
2707 * doc/invoke.texi, doc/md.texi: Fix typos.
2709 2005-09-30 Andrew Macleod <amacleod@redat.com>
2711 PR tree-optimization/21430
2712 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
2713 use operands, and set stmt pointer if need be.
2714 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
2715 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
2718 2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2721 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
2723 2005-09-29 Mark Mitchell <mark@codesourcery.com>
2725 * optabs.c (expand_binop): Initialize first_pass_p.
2727 2005-09-29 Jakub Jelinek <jakub@redhat.com>
2730 * c-decl.c (c_write_global_declarations_1): If any
2731 wrapup_global_declaration_2 call returned true, restart the loop.
2733 2005-09-29 Daniel Berlin <dberlin@dberlin.org>
2735 Fix PR tree-optimization/24117
2736 * tree-ssa-structalias.c (find_func_aliases): Strip nops
2737 before considering whether to use anyoffset.
2739 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
2743 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
2745 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2747 (swap_commutative_operands_with_target): New.
2749 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
2752 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
2755 2005-09-29 Steven Bosscher <stevenb@suse.de>
2757 PR tree-optimization/23911
2758 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
2759 and IMAGPART_EXPR too.
2761 2005-09-28 Mark Mitchell <mark@codesourcery.com>
2764 * expmed.c (expand_shift): Move logic to reverse rotation
2765 direction when rotating by constants ...
2766 * optabs.c (expand_binop): ... here.
2767 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
2768 (ix86_rotrdi3): New pattern.
2769 (rotldi3): Handle 32-bit mode.
2770 (ix86_rotldi3): New pattern.
2772 2005-09-29 Alan Modra <amodra@bigpond.net.au>
2775 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
2776 check for numbers that need no bit twiddle.
2778 2005-09-28 Geoffrey Keating <geoffk@apple.com>
2780 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
2781 multilib to be built.
2783 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
2784 (stage1-start): Delete old libgcc and libunwind before moving
2785 anything into the stage directory.
2786 (stage2-start): Likewise.
2787 (stage3-start): Likewise.
2788 (stage4-start): Likewise.
2789 (stageprofile-start): Likewise.
2790 (stagefeedback-start): Likewise.
2791 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
2792 header in tm_file and CPU-specific t-darwin in tmake_file.
2793 (i[34567]86-*-darwin*): Don't change tm_file.
2794 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
2795 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
2796 shared library stub for target OS version.
2797 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
2798 (SHLIB_LINK): Don't make SHLIB_SOLINK.
2799 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
2800 (libgcc_s.%.dylib): New.
2802 (install-darwin-libgcc-stubs): New.
2803 (INSTALL_LIBGCC): New append.
2804 * config/i386/darwin-libgcc.10.4.ver: New.
2805 * config/i386/darwin-libgcc.10.5.ver: New.
2806 * config/i386/t-darwin: New.
2807 * config/rs6000/darwin-libgcc.10.4.ver: New.
2808 * config/rs6000/darwin-libgcc.10.5.ver: New.
2809 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
2810 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
2812 2005-09-28 Paul Brook <paul@codesourcery.com>
2814 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
2817 2005-09-28 Richard Guenther <rguenther@suse.de>
2819 PR tree-optimization/23853
2820 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
2821 host_integerp to verify misalignment value.
2823 2005-09-28 Richard Henderson <rth@redhat.com>
2825 * builtins.c (get_builtin_sync_mode): New.
2826 (expand_builtin_sync_operation): Pass in mode argument.
2827 (expand_builtin_compare_and_swap): Likewise.
2828 (expand_builtin_lock_test_and_set): Likewise.
2829 (expand_builtin_lock_release): Likewise.
2830 (expand_builtin): Update to match.
2832 2005-09-28 Nick Clifton <nickc@redhat.com>
2834 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
2835 formatting. Add check to PLUS case to ensure that the offset is
2836 within an acceptable range.
2838 * config/v850/v850.md (casesi): Disable the generation of the
2839 switch pattern as it is not being handled properly at the moment.
2841 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
2842 for when the high words are identical.
2844 2005-09-27 Richard Henderson <rth@redhat.com>
2846 * pretty-print.c (pp_base_format): Fix typo for %>.
2848 2005-09-27 Daniel Berlin <dberlin@dberlin.org>
2849 Devang Patel <dpatel@apple.com>
2851 PR tree-optimization/23625
2852 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
2853 LABEL_EXPR, assertion check.
2855 2005-09-27 J"orn Rennecke <joern.rennecke@st.com>
2857 * optabs.c (no_conflict_move_test): Check if a result of a
2858 to-be-moved insn would be clobbered by an originally
2861 2005-09-27 Jeff Law <law@redhat.com>
2863 * passes.c (init_optimization_passes): Replace copy propagation
2864 passes immediately after DOM with phi-only copy propagation
2865 pases. Add phi-only copy propagation pass after first DOM pass.
2866 * tree-pass.h (pass_phi_only_copy_prop): Declare.
2867 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
2868 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
2869 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
2870 to init_copy_prop. Callers updated.
2871 (do_phi_only_copy_prop): New function.
2872 (pass_phi_only_copy_prop): New pass descriptor.
2874 2005-09-27 Nick Clifton <nickc@redhat.com>
2876 * libgcc2.c (__popcount_tab): Remove redundant prototype.
2878 2005-09-26 Jason Merrill <jason@redhat.com>
2881 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
2883 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
2885 2005-09-26 James E Wilson <wilson@specifix.com>
2887 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
2888 copyright. Add gcc copyright plus libgcc exception.
2889 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
2891 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
2893 2005-09-26 Jeff Law <law@redhat.com>
2895 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
2896 about when to iterate.
2898 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
2901 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
2902 for __complex__ double in -mcpu=G5 mode.
2904 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
2906 PR tree-optimization/23942
2907 * Makefile.in (SCEV_H): Depends on PARAMS_H.
2908 * tree-scalar-evolution.c: Include params.h.
2910 (follow_ssa_edge, follow_ssa_edge_in_rhs,
2911 follow_ssa_edge_in_condition_phi_branch,
2912 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
2913 Change return type to t_bool. Use a parameter to limit the size of
2914 trees that are walked before stopping
2915 (analyze_evolution_in_loop): Initialize the limit to 0.
2916 (follow_ssa_edge): Give up by returning t_dont_know if the limit
2917 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
2919 2005-09-26 Uros Bizjak <uros@kss-loka.si>
2922 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
2923 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
2925 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
2927 * combine.c (make_extraction): Check for valid use of subreg.
2929 2005-09-26 Uros Bizjak <uros@kss-loka.si>
2932 * config/i386/i386.md ("*fistdi2_1"): New pattern.
2933 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
2934 ("fist<mode>2_with_temp"): Use only register operands.
2936 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
2938 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
2939 CALL_INSN_FUNCTION_USAGE.
2941 2005-09-26 Richard Guenther <rguenther@suse.de>
2944 * gcse.c: Include hashtab.h, define ldst entry hashtable.
2945 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
2946 (ldst_entry): Use the hashtable instead of list-walking.
2947 (find_rtx_in_ldst): Likewise.
2948 (free_ldst_entry): Free the hashtable.
2949 (compute_ld_motion_mems): Create the hashtable.
2950 (trim_ld_motion_mems): Remove entry from hashtable if
2951 removing it from list.
2952 (compute_store_table): Likewise^2.
2953 (store_motion): Free hashtable in case we did not see
2956 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
2958 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
2959 and arg1 if we are passing them to fold_build2.
2961 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
2964 * config/i386/i386.c (ix86_function_regparm): Fix the test for
2967 2005-09-25 Richard Henderson <rth@redhat.com>
2969 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
2970 SYMBOL_REF_TLS_MODEL to be correct.
2972 2005-09-24 Richard Henderson <rth@redhat.com>
2974 * ipa-type-escape.c (discover_unique_type): Remove dead code at
2975 end of function. Reindent.
2977 2005-09-24 Ian Lance Taylor <ian@airs.com>
2979 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
2980 NEGATE_EXPR/BIT_NOT_EXPR case.
2982 2005-09-24 Richard Henderson <rth@redhat.com>
2984 * c-common.c (handle_mode_attribute): When not modifying in place,
2985 create subtypes for enumerations.
2986 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
2987 * gimplify.c (create_tmp_from_val): Likewise.
2989 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
2991 * config/i386/i386.md (*tls_global_dynamic_64,
2992 *tls_local_dynamic_base_64): Add missing mode to call.
2993 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
2995 2005-09-24 Jan Hubicka <jh@suse.cz>
2997 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
2998 (cgraph_clone_node): Likewise.
2999 * cgraph.h (cgraph_clone_edge): Update prototype.
3000 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
3001 duplicated prototypes; add updating argument.
3002 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
3003 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
3005 (cgraph_mark_inline_edge): Likewise.
3006 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
3007 (cgraph_flatten_node): Likewise.
3008 (cgraph_decide_recursive_inlining): Likewise.
3009 (cgraph_decide_inlining_of_small_function): Likewise.
3010 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3012 2005-09-23 David Edelsohn <edelsohn@gnu.org>
3013 Pete Steinmetz <steinmtz@us.ibm.com>
3015 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
3016 (rldic.): Set type to "compare".
3018 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
3019 mfjmpr for MFCTR/MFLR.
3020 (movdf_hardfloat64): Same.
3021 (movdf_softfloat64): Same. Correct order of store and move types.
3022 (movti_string): Set type to store_ux/load_ux.
3023 (load_multiple): Set type to load_ux.
3024 (store_multiple): Set type to store_ux.
3025 (movmemsi): Set type to store_ux.
3026 (output_cbranch direct_return): Set type to jmpreg.
3027 (stmw): Set type to store_ux.
3028 (lmw): Set type to load_ux.
3029 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
3030 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
3031 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
3032 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
3033 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
3034 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
3035 (rios1-fpstore): Increase latency to 3.
3036 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
3037 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
3039 2005-09-23 David Edelsohn <edelsohn@gnu.org>
3040 Andrew Pinski <pinskia@physics.uc.edu>
3042 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
3043 operand2 constraint to "b".
3044 (sync_<fetchop_name>di_internal): Same.
3045 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
3047 (sync_old_<fetchop_name>di_internal): Same.
3048 (sync_new_<fetchop_name>si_internal): Same.
3049 (sync_new_<fetchop_name>di_internal): Same.
3051 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
3054 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
3055 case, define as macros.
3057 PR rtl-optimization/23837
3058 * optabs.c (no_conflict_move_test): Don't set must_stay for a
3059 clobber / clobber match between dest and p->first.
3061 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
3062 (no_conflict_move_test): Update comments.
3064 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
3066 * doc/install.texi: Update URL for Jacks.
3067 * doc/sourcebuild.texi: Likewise.
3069 2005-09-22 David Edelsohn <edelsohn@gnu.org>
3072 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
3073 registers when choosing register preferences.
3074 (movdf_hardfloat64): Same.
3076 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
3078 * expmed.c (expand_shift): Don't use the target of the rotate as
3079 target for the first expanded shift insn.
3080 * testsuite/gcc.dg/20050922-1.c: Testcase added.
3082 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
3084 PR tree-optimization/22438
3085 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
3086 preserved iv rhs rewriting specially.
3088 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
3090 * tree-data-ref.c (analyze_array_indexes): Only estimate when
3091 estimate_only is true.
3092 * tree-flow.h (ref_contains_indirect_ref): New prototype.
3093 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
3094 tree-ssa-structalias.c
3095 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
3096 ref_contains_indirect_ref.
3097 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
3099 2005-09-21 DJ Delorie <dj@redhat.com>
3101 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
3103 (mn10300_return_in_memory): Support variable size types also.
3104 (mn10300_pass_by_reference): Likewise.
3105 (mn10300_function_value): New.
3106 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
3107 (FUNCTION_OUTGOING_VALUE): Likewise.
3108 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
3109 * doc/invoke.texi: Document it.
3111 2005-09-21 Uros Bizjak <uros@kss-loka.si>
3114 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
3115 force integer op1 into register for XFmode compares.
3117 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
3120 * expmed.c (alg_code): Add alg_impossible.
3121 (alg_hash_entry): Add cost.
3122 (synth_mult): Record alg_impossible in the hash table if
3123 multiplication by a given integer is impossble within the
3124 limit. Speed up using alg_impossible.
3126 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
3128 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
3129 argument. Allow and set any offset if needs_anyoffset is passed
3131 (get_constraint_for): Add argument here too.
3133 (do_structure_copy): Pass NULL to get_constraint_for.
3134 (handle_ptr_arith): Ditto.
3135 (find_func_aliases): Ditto.
3137 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
3139 PR rtl-optimization/23898
3140 * output.h (get_attr_min_length): Declare.
3141 * final.c (get_attr_length_1): New function, broken out of:
3143 (get_attr_min_length): New function.
3144 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
3145 (duplicate_computed_gotos): Likewise.
3146 * genattr.c (insn_min_length): Generate declaration.
3147 * genattrtab.c (min_fn, min_attr_value): New functions.
3148 (make_length_attrs): Generate insn_min_length.
3150 2005-09-20 Steve Ellcey <sje@cup.hp.com>
3152 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
3154 2005-09-20 Richard Henderson <rth@redhat.com>
3156 PR tree-optimization/24059
3157 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
3160 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
3162 * c.opt (fextended-identifiers): New.
3163 * c-opts.c (c_common_handle_option): Handle
3164 -fextended-identifiers.
3165 * doc/cpp.texi: Update documentation of extended identifiers.
3166 * doc/cppopts.texi (-fextended-identifiers): Document.
3168 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3170 PR tree-optimization/23929
3171 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
3174 PR tree-optimization/23818
3175 * tree-stdarg.c (execute_optimize_stdarg): Call
3176 calculate_dominance_info.
3178 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
3180 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
3181 (analyze_siv_subscript_cst_affine): Add weak SIV test.
3182 (compute_overlap_steps_for_affine_1_2): Use
3183 get_number_of_iters_for_loop.
3184 (analyze_subscript_affine_affine): Check whether difference is
3186 Use get_number_of_iters_for_loop.
3187 Check whether overlap occurs outside of bounds.
3188 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
3190 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
3192 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
3193 base register if possible.
3195 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
3197 PR tree-optimization/18463
3198 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
3199 converting it directly is not possible.
3200 (chrec_convert_aggressive): New function.
3201 * tree-chrec.h (chrec_convert_aggressive): Declare.
3202 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
3203 Fold chrec conversions aggressively if asked to.
3204 (instantiate_parameters): Modified because of changes in
3205 instantiate_parameters_1.
3207 2005-09-19 Richard Henderson <rth@redhat.com>
3209 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
3210 (reduc_splus_v2df): New.
3212 2005-09-19 Richard Sandiford <richard@codesourcery.com>
3214 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
3215 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
3217 2005-09-19 Richard Henderson <rth@redhat.com>
3219 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
3222 2005-09-19 Richard Henderson <rth@redhat.com>
3224 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
3225 (ia64_expand_dot_prod_v8qi): New.
3226 * config/ia64/ia64-protos.h: Update.
3227 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
3228 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
3229 sdot_prodv8qi, sdot_prodv4hi): New.
3230 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
3232 2005-09-19 Richard Henderson <rth@redhat.com>
3235 * real.c (exact_real_truncate): Return false if the format cannot
3236 represent the number as a normal.
3238 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
3239 for a memory source.
3241 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
3243 * tree-ssa-operands.c (swap_tree_operands): Export.
3244 * tree.h (swap_tree_operands): Declare.
3245 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
3246 Call swap_tree_operands.
3248 2005-09-19 Richard Henderson <rth@redhat.com>
3250 * tree-flow.h (merge_alias_info): Declare.
3251 * tree-ssa-copy.c (merge_alias_info): Export.
3252 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
3253 (vect_create_data_ref_ptr): Use create_iv directly.
3254 (vectorizable_load): Use correct types for integer constants.
3255 (vect_generate_tmps_on_preheader): Likewise.
3256 (vect_gen_niters_for_prolog_loop): Likewise.
3258 2005-09-19 Steven Bosscher <stevenb@suse.de>
3260 PR rtl-optimization/23943
3261 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
3263 2005-09-18 Jan Hubicka <jh@suse.cz>
3265 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
3267 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
3269 * varasm.c (output_constant): Do not abort on conversions to union
3270 types between different sizes.
3272 2005-09-18 Richard Guenther <rguenther@suse.de>
3275 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
3278 2005-09-18 Paul Brook <paul@codesourcery.com>
3280 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
3282 2005-09-17 Richard Henderson <rth@redhat.com>
3284 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
3285 * tree-ssa-loop.c (pass_vect_dce): Remove.
3286 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
3289 2005-09-17 Richard Henderson <rth@redhat.com>
3291 * tree-pass.h (pass_vect_dce): Declare.
3292 * passes.c (init_optimization_passes): Add it.
3293 * tree-flow.h (tree_ssa_dce): Declare.
3294 * tree-ssa-dce.c (tree_ssa_dce): Export.
3295 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
3296 (gate_tree_vectorize): ... here.
3297 (pass_vect_dce): New.
3299 2005-09-17 Jan Hubicka <jh@suse.cz>
3301 * except.c (struct eh_status): Turn region_array into vec.
3302 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
3303 convert_from_eh_region_ranges, find_exception_handler_labels,
3304 current_function_has_exception_handlers, assign_filter_values,
3305 build_post_landing_pads, dw2_build_landing_pads,
3306 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
3307 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
3308 foreach_reachable_handler, can_throw_internal_1,
3309 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
3311 (duplicate_eh_region_1): Update region_array.
3312 (duplicate_eh_regions): Resize region_array and avoid recomputing.
3314 2005-09-17 David Edelsohn <edelsohn@gnu.org>
3317 * expmed.c (expand_mult): Substitute simple register for op0 when
3320 2005-09-17 Richard Henderson <rth@redhat.com>
3322 * expr.c (emit_move_via_integer): Add force argument, pass it on
3323 to emit_move_change_mode. Update callers.
3324 (emit_move_complex): Pass true to new force argument.
3325 * function.c (expand_function_end): Move expand_eh_return call
3326 earlier. Merge sub-word complex values into a pseudo before
3327 copying to the return hard register.
3329 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
3331 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
3332 between different sizes.
3334 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
3338 * passes.c (init_optimization_passes): Register dump files for
3341 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
3343 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
3344 * config/s390/s390.c (s390_overlap_p): New function.
3345 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
3346 peephole2, "*xc" peephole2): Added overlap check to the peephole2
3349 2005-09-16 Richard Guenther <rguenther@suse.de>
3351 * ipa-pure-const.c (static_execute): Free auxiliar information.
3352 * ipa-type-escape.c (discover_unique_type): Free temporary key.
3353 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
3355 2005-09-15 DJ Delorie <dj@redhat.com>
3357 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
3359 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
3361 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3363 (swap_commutative_operands_with_target): New.
3365 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
3367 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
3370 (estimate_iters_using_array): New function.
3371 * tree-data-ref.h (estimate_iters_using_array): Prototype
3372 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3373 Use estimate_iters_using_array instead of analyze_array.
3375 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
3377 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
3380 2005-09-15 Michael Matz <matz@suse.de>
3382 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
3384 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
3386 PR tree-optimization/23835
3387 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
3388 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
3390 2005-09-14 Richard Henderson <rth@redhat.com>
3392 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
3393 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
3395 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
3397 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
3398 in the ARRAY_TYPE case.
3400 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
3402 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
3404 2005-09-14 Uros Bizjak <uros@kss-loka.si>
3407 * tree-vect-transform.c (vectorizable_operation): Return false for
3408 scalar shift operations and for vector shift operations with
3409 non-invariant shift arguments. Use scalar tree operand op1 as
3410 a shift operand when vector shift insn pattern uses scalar shift
3412 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
3414 2005-09-14 Olivier Hainque <hainque@adacore.com>
3416 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
3417 value if it has side-effects.
3419 2005-09-14 David Edelsohn <edelsohn@gnu.org>
3422 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
3424 2005-09-14 Alan Modra <amodra@bigpond.net.au>
3426 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
3427 passed as NAME as if it were label at start of function code.
3429 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
3431 * config/sh/sh.md (*movv4sf_i): Add general register cases to
3434 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
3436 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
3437 as early clobber. Rewrite so the PIC register is not implicitly used.
3439 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3441 * tree.c (annotate_with_file_line): Compare line numbers before
3444 2005-09-13 Uros Bizjak <uros@kss-loka.si>
3447 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
3448 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
3450 2005-09-13 Ian Lance Taylor <ian@airs.com>
3452 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
3453 than a HOST_WIDEST_INT to gen_doloop_begin.
3455 2005-09-13 Diego Novillo <dnovillo@redhat.com>
3457 * tree-dfa.c (dump_variable): Guard against NULL annotations.
3459 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
3461 PR tree-optimize/23817
3462 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
3464 2005-09-13 Alan Modra <amodra@bigpond.net.au>
3467 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
3468 word before changing the stack pointer. Use gen_frame_mem for MEMs.
3469 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
3470 (restore_stack_nonlocal): Likewise.
3471 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
3473 2005-09-12 Ian Lance Taylor <ian@airs.com>
3476 * c.opt (ffriend-injection): New C++ option.
3477 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
3478 (C++ Dialect Options): Document -ffriend-injection.
3480 2005-09-12 Josh Conner <jconner@apple.com>
3483 * ipa-reference.c (static_execute): Don't mark variables in
3484 named sections TREE_READONLY.
3486 2005-09-12 Alan Modra <amodra@bigpond.net.au>
3488 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
3491 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
3493 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
3494 V_MUST_DEF instead of just the first_use_p.
3495 Don't mark the virtual variables for renaming on the statement which
3497 (pass_dse): Remove TODO_update_ssa.
3499 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
3502 * stor-layout.c (compute_record_mode): For records with a single
3503 field, actually check the field's mode size against the type size.
3505 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
3506 registers for TARGET_SHMEDIA.
3507 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
3508 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
3509 of GENERAL_REGS and FP_REGS.
3511 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
3513 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
3515 2005-09-12 Alan Modra <amodra@bigpond.net.au>