Preparatory work for PR target/21623:
[official-gcc.git] / gcc / ChangeLog
blobd4789389e1ba16834d4c6ba2e01d3ca6aed5fa77
1 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
3         Preparatory work for PR target/21623:
4         * alpha.c (secondary_reload_class): Rename to:
5         (alpha_secondary_reload_class).
6         * alpha.h, alpha-protos.h: Likewise.
7         * mn10300.c (secondary_reload_class): Rename to:
8         (mn10300_secondary_reload_class).
9         * mn10300.h, mn10300-protos.h: Likewise.
10         * pa.c (secondary_reload_class): Rename to:
11         (pa_secondary_reload_class).
12         * pa.h, pa-protos.h: Likewise.
13         * rs6000.c (secondary_reload_class): Rename to:
14         rs6000_secondary_reload_class.
15         * rs6000.h, rs6000-protos.h: Likewise.
17 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
19         PR middle-end/22561
20         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
22 2005-11-22  Ian Lance Taylor  <ian@airs.com>
24         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
25         a mode_class.
26         (prepare_cmp_insn): Likewise.
28 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
30         PR target/23435
31         * m68k.md (zero_extendsidi2): Force operands[1] to a register
32         if both operands[0] and operands[1] are memory.
34 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
36         PR middle-end/23606
37         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
38         COMPARISON_CLASS_P and an integral types create create a new
39         expression with the new type and fold that.
41 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
43         PR target/24988
44         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
45         to SUBTARGET_OS_CPP_BUILTINS.
46         
47 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
49         * arm.c (emit_set_insn): New function.
50         (arm_split_constant): Call it.
51         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
52         (arm_legitimize_address): Likewise.  Use plus_constant.
53         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
54         (thumb_expand_prologue): Likewise.
55         (arm_gen_load_multiple): Use VOIDmode in SET.
56         (arm_gen_store_multiple): Likewise.
57         (vfp_emit_fstmx): Likewise.  Use plus_constant.
58         (emit_multi_reg_push): Likewise.
59         (emit_sfm): Use plus_constant.
60         
61 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
63         PR target/24954
64         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
65         typo last change.
67 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
69         PR middle-end/24950
70         * expmed.c (store_bit_field): Don't attempt to insv a field
71         larger than the reg.
73 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
75         PR target/24954
76         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
77         explicit sign extension, not a (char) cast.
79 2005-11-22  Ben Elliston  <bje@au.ibm.com>
81         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
82         GET_MODE_CLASS (x) == MODE_FLOAT.
83         * config/i386/i386.c: Likewise.
84         * config/rs6000/xcoff.h: Likewise.
85         * config/rs6000/linux64.h: Likewise.
86         * config/rs6000/rs6000.c: Likewise.
87         * config/rs6000/rs6000.h: Likewise.
88         * config/rs6000/predicates.md: Likewise.
89         * config/rs6000/sysv4.h: Likewise.
91 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
93         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
94         flag_pic is set.
95         
96         * config/alpha/freebsd.h, config/alpha/linux.h,
97         config/arm/linux-elf.h, config/bfin/bfin.h,
98         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
99         config/i386/beos-elf.h, config/i386/gnu.h,
100         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
101         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
102         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
103         config/rs6000/linux64.h, config/rs6000/sysv4.h,
104         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
105         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
106         config/sparc/linux.h, config/sparc/linux64.h,
107         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
109         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
110         are both defined when either flag -fpic or -fPIC are used.
112 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
114         * config/fp-bit.c (clzusi): New function.
115         (si_to_float, usi_to_float): Use it to compute proper shift.
116         (usi_to_float): Preserve guard bits when shifting right.
117         * libgcc-std.ver (GCC_4.2.0): New version.
118         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
119         __floatundisf): New functions.
120         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
121         __floatundisf): Declare.
122         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
123         _floatundixf, and _floatunditf.
124         * optabs.c (expand_float): If target does not define a pattern for
125         signed or unsigned conversion, use an unsigned libcall instead of
126         a signed one.
127         (init_optabs): Initialize ufloat_optab.
129 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
131         * config/rs6000/rs6000.opt (mmulhw): New option.
132         * doc/invoke.texi (-mmulhw): Document.
133         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
134         for 405 and 440.
135         * config/rs6000/rs6000.md: Add half-word multiply and
136         multiply-accumulate instructions for 405 and 440.
138 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
140         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
141         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
142         default now includes a linker group which makes the RTEMS one nest.
144 2005-11-22  Ben Elliston  <bje@au.ibm.com>
146         * cse.c (fold_rtx): Typo fix.
147         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
149 2005-11-21  Richard Henderson  <rth@redhat.com>
151         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
152         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
154         * c-tree.h (lookup_name): Move declaration ...
155         * c-common.h (lookup_name): ... here.
156         * config/darwin-c.c: Include c-common.h.
157         * config/t-darwin: Update dependencies.
159 2005-11-22  Ben Elliston  <bje@au.ibm.com>
161         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
162         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
163         * genopinit.c (gen_insn): Likewise.
164         * reload.c (find_equiv_reg): Likewise.
165         * loop.c (load_mems): Likewise.
166         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
167         * cse.c (find_comparison_args, fold_rtx): Likewise.
168         * dwarf2out.c (add_const_value_attribute): Likewise.
169         * expr.c (convert_move): Likewise.
170         * recog.c (general_operand, register_operand): Likewise.
171         * reg-stack.c (replace_reg): Likewise.
172         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
173         * c-common.c (handle_vector_size_attribute): Likewise.
174         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
175         (simplify_binary_operation_1): Likewise.
176         (simplify_const_binary_operation): Likewise.
177         (simplify_relational_operation): Likewise.
178         (simplify_const_relational_operation): Likewise.
179         (simplify_immed_subreg): Likewise.
180         * emit-rtl.c (gen_lowpart_common): Likewise.
181         * expmed.c (expand_mult): Likewise.
182         * stor-layout.c (layout_type): Likewise.
184 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
186         PR target/24951
187         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
188         cst2 only for SPE vectors.
190 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
192         PR target/24953
193         * config/rs6000/predicates.md (vrsave_operation): Check
194         UNSPEC_VOLATILE value.
196 2005-11-21  Jan Hubicka  <jh@suse.cz>
198         PR tree-optimization/24653
199         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
201 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
203         * config/i386/predicates.md (ax_reg_operand): New predicate.
204         (memory_displacement_only_operand): New predicate.
205         * config/i386/i386.md ("modrm" attribute): Return 0 if one
206         operand is AX register and the other operand is memory operand
207         with displacement only.
209 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
211         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0 
212         if we don't care about NaNs or Infinities.
214 2005-11-20  Ian Lance Taylor  <ian@airs.com>
216         PR rtl-optimization/24883
217         * combine.c (combinable_i3pat): When checking whether the
218         destination of i3 is used in i3, consider paradoxical subregs.
220 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
222         PR middle-end/20583
223         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
225 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
227         * combine.c (try_combine): Do not run subst on i1src and i2src in
228         the case of generating a PARALLEL for a comparison.
230 2005-11-20  Richard Henderson  <rth@redhat.com>
232         PR 24931
233         * tree-sra.c (struct sra_elt): Add all_no_warning.
234         (struct sra_walk_fns) <use>: Add use_all argument.
235         (sra_walk_expr): Pass it.
236         (sra_walk_modify_expr): Likewise.
237         (scalarize_ldst): Likewise.
238         (scan_use): Update for new argument.
239         (mark_no_warning): New.
240         (scalarize_use): Use it.
242 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
244         * expr.c (expand_expr_real): Use usmul_optab for widening
245         signed * unsigned multiplies.
246         * genopinit.c (optabs): Add usmul_widen_optab.
247         * optabs.c (init_optabs): Likewise.
248         * optabs.h (enum optab_index): Add OTI_usmul_widen.
249         (usmul_widen_optab): Define.
250         * config/bfin/bfin.md (usmulhisi3): New pattern.
252         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
254 2005-11-20  Graham Stott <btinternet.com>
256         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
258 2005-11-20  Andreas Schwab  <schwab@suse.de>
260         PR target/24757
261         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
262         insn.
264 2005-11-19  Richard Henderson  <rth@redhat.com>
266         PR tree-opt/24665
267         * tree-gimple.c (is_gimple_id): Export.
268         * tree-gimple.h (is_gimple_id): Declare.
269         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
270         (get_default_value): Use it.
271         (maybe_fold_stmt_indirect): Likewise.
273 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
275         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
276         than VR1 or vice-versa.
278 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
280         PR middle-end/24912
281         PR middle-end/24750
282         * reload.c (find_reloads_address_1): Mention dependency on
283         gen_reload.
284         * reload1.c (gen_reload): For IN with an unary operation, try
285         moving inner expression to OUT if trivial SET is not valid.
286         Confirm that the result is valid.  Move common code block into...
287         (emit_insn_if_valid_for_reload): New function.
289 2005-11-19  Richard Guenther  <rguenther@suse.de>
291         * fold-const.c (fold_indirect_ref_1): Make sure we fold
292         ARRAY_REFs of constant strings.
294 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
296         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
297         fatal format string.
299 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
301         * combine.c (make_compound_operation): Swap operands of
302         commutative operation if necessary before returning.
304 2005-11-19  Richard Guenther  <rguenther@suse.de>
306         PR middle-end/23294
307         * fold-const.c (fold_plusminus_mult_expr): New function.
308         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
309         cases, remove now unnecessary code.
311 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
313         * gensupport.c (old_preds): Rename to std_preds, add special field.
314         (struct old_pred_table): Rename to struct std_pred_table, add special
315         field.
316         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
317         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
318         (init_predicate_table): Adjust, and set along the way whether a
319         predicate is special.
321 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
323         * BASE-VER: Change to 4.2.0.
325 2005-11-18  James E Wilson  <wilson@specifix.com>
327         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
328         returning it.
330 2005-11-18  Mike Stump  <mrs@apple.com>
332         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
333         * config/darwin-c.c (darwin_pragma_unused): Likewise.
334         * c-decl.c (lookup_name_two) Remove.
335         * c-tree.h (lookup_name_two): Remove.
336         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
337         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
338         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
339         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
340         
341 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
343         PR target/24914
344         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
345         when not generating code to use that co-processor.
347 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
349         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
350         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
351         these functions are now in tree-phinodes.c.
353 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
355         * config/bfin/bfin.md (trap): New pattern.
357 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
359         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
360         on types.
362         * expr.c (expand_expr_real): Don't call record_block_change unless
363         ib_boundaries_block is non-null
365         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
367         * fold-const.c (build_range_check): Use proper type for subtraction
368         when merging lower bound.
370 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
372         PR rtl-optimization/24497
373         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
374         the copied insn.
376 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
378         * tree-scalar-evolution.c (expression_expensive_p): New function.
379         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
381 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
383         * config/bfin/crtlibid.s: New file.
385 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
387         PR target/24348
388         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
389         when not using sjlj exceptions.
390         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
391         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
392         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
393         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
394         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
395         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
396         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
397         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
398         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
399         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
400         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
401         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
402         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
403         defines.
404         * config/pa/hpux-unwind.h: New file.
406 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
408         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
409         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
410         * varasm.c (do_assemble_alias): Adjust call.
411         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
412         is defined.
413         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
415 2005-11-17  James E Wilson  <wilson@specifix.com>
417         * tree.def (FUNCTION_DECL): Correct typo in comment.
419 2005-11-17  Richard Henderson  <rth@redhat.com>
421         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
422         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
423         and DW_CFA_def_cfa_sf.
424         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
425         (dbx_reg_number): Don't assert particular registers here.
426         (based_loc_descr): ... do it here instead.  Fold in ...
427         (eliminate_reg_to_offset): ... this function.
428         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
429         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
430         * unwind-dw2.c (execute_cfa_program): Apply data align factor
431         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
432         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
433         (instantiate_virtual_regs): Likewise.
434         * var-tracking.c (adjust_stack_reference): Likewise.
435         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
437 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
439         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
440         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
441         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
442         crtlibid.o.
443         ($(T)crtlibid.o): New rule.
445 2005-11-16  Richard Guenther  <rguenther@suse.de>
447         PR middle-end/24851
448         * fold-const.c (extract_array_ref): Return byte offset
449         in all cases.
450         (fold_binary): Fold &x[a] CMP &x[b] to
451         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
452         behavior.
454 2005-11-16  Richard Henderson  <rth@redhat.com>
456         PR middle-end/23497
457         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
458         parts of an SSA_NAME.
460 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
462         PR target/24861
463         * arm.md (split for movsf with immediate): Restrict split to insns
464         that set a general register.
466 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
468         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
469         uw_update_context.
470         * unwind-dw2.c (uw_advance_context): Likewise.
471         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
472         _Unwind_SjLj_Unregister.
473         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
475 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
477         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
479 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
481         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
482         langhook to get a DImode integer type.
484 2005-11-16  Richard Henderson  <rth@redhat.com>
485             J"orn Rennecke <joern.rennecke@st.com>
486             Ulrich Weigand  <uweigand@de.ibm.com>
488         PR rtl-opt/24160
489         PR target/24621
490         * reload1.c (reg_equiv_invariant): New.
491         (reload): Allocate, initialize, and free it.
492         (calculate_needs_all_insns): Check it when skipping equivalence
493         setting insns.
494         (alter_reg): Likewise.
495         (eliminate_regs_1): Rename from eliminate_regs.  Add new
496         may_use_invariant argument; only use reg_equiv_invariant when true.
497         (eliminate_regs): New.
498         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
499         a context for which may_use_invariant may be true.
501 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
503         * fold-const.c (const_binop): Don't constant fold the operation
504         if the result has overflowed and flag_trapping_math.
505         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
507 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
509         * config/arm/unwind-arm.c (abort): Add prototype here.
510         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
511         (struct phase1_vrs): Add prev_sp.
512         (unwind_phase2_forced): Save the original core registers instead of
513         modifying entry_vrs.  Take a new flag argument for resuming unwinding
514         and set action flags accordingly.  Always set _US_END_OF_STACK when
515         get_eit_entry fails.  Unwind before calling the stop function.
516         (_Unwind_GetCFA): New function.
517         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
518         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
519         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
520         just call unwind_phase2_forced.
521         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
522         * config/arm/unwind-arm.h (abort): Remove prototype.
523         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
524         prototypes.
525         (_Unwind_GetCFA): New prototype.
526         * config/arm/pr-support.c (abort): Add prototype here.
527         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
528         forced unwinding.
529         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
530         not schedule the prologue with non-call exceptions and EABI.
532 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
534         * config/arm/unwind-arm.h: Reorder interface function declarations.
535         (_URC_END_OF_STACK): New enumeration value.
536         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
537         (struct _Unwind_Control_Block): Document reserved field use.
538         (_Unwind_Stop_Fn): New typedef.
539         (_Unwind_ForcedUnwind): Declare.
540         (_Unwind_Resume_or_Rethrow): Declare.
541         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
542         argument.  Adjust.
543         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
544         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
545         (UCB_FORCED_STOP_ARG): New.
546         (search_EIT_table): Update boundary condition checks.
547         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
548         (unwind_phase2): Replace for with do..while.
549         (unwind_phase2_forced): New.
550         (__gnu_Unwind_RaiseException): Replace for with do..while.
551         (__gnu_Unwind_ForcedUnwind): New.
552         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
553         Use appropriate phase2 unwinder.
554         (__gnu_Unwind_Resume_or_Rethrow): New.
555         (__gnu_unwind_pr_common): Cope with forced unwinding.
557 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
559         PR target/24772
560         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
562         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
563         roundsf2): Remove "s" from mnemonic.
565 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
567         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
568         __PIC__ is defined.
569         * config/bfin/crtn.s: Change epilogues to match.
570         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
571         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
572         __PIC__ and __pic__.
574 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
576         PR 24357
577         * doc/invoke.texi: Distinguish between free and fixed form instead of
578         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
579         languages.
580         * gcc.c (default_compilers): Remove double entries, add entries for
581         suffixes '.F90' and '.F95'.
583 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
585         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
586         in the stack probing loop.
588 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
590         * configure.ac: Use .machine power5 not power5x.
591         * configure: Regenerate.
593 2005-11-15  Mike Stump  <mrs@apple.com>
595         * c-decl.c (lookup_name_two): Add.
596         * c-tree.h (lookup_name_two): Likewise.
597         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
598         * config/darwin-c.c (darwin_pragma_unused): Likewise.
600 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
602         PR rtl-optimization/23392
603         * regrename.c (enum scan_actions) Add mark_access.
604         (scan_actions_name): Ditto.
605         (scan_rtx_reg): Handle mark_access.
606         (scan_rtx_address): Do nothing for mark_access.
607         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
608         and regs in REG_INC notes before closing chains for dead regs.
609         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
610         opening chains for new writes.
612 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
614         * c.opt (ffixed-line-length-none): New.
616 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
618         * mklibgcc.in: Change contents of eh_dummy.c.
620 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
622         * loop.c (scan_loop): Do not insert temporaries for hard registers.
624 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
626         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
627         of making syscalls.
628         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
630 2005-11-15  Jan Hubicka  <jh@suse.cz>
632         * invoke.texi (large-unit-insns): Document.
633         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
634         * params.def (large-unit-insns): New param.
636 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
638         PR target/24869
639         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
640         special register for operand 3.  Reindent constraints to align
641         them vertically.
643 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
645         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
646         -mpopcntb, -mfprnd. Add -mcpu=power5+.
647         * configure.ac: Add test for FP rounding instructions.
648         * configure: Regenerate.
649         * config.in: Regenerate.
650         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
651         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
652         features enabled.
653         * config/rs6000/rs6000.opt (mfprnd): New.
654         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
655         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
656         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
657         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
658         (TARGET_FPRND): New.
659         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
660         UNSPEC_FRIZ): New.
661         (btrunc<mode>2): New.
662         (ceil<mode>2): New.
663         (floor<mode>2): New.
664         (round<mode>2): New.
666 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
668         * gcc.c (version_compare_spec_function): Use fatal() rather than
669         abort().
671         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
672         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
673         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
674         as empty.
675         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
676         link in crt2.o.
677         
678         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
679         on -mmacosx-version-min setting.
681 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
683         PR 24840
684         * tree-vrp.c (infer_value_range): Return false if STMT is a
685         block terminator and its basic block has no successors.
687 2005-11-14  Mike Stump  <mrs@apple.com>
689         * config/i386/i386.c (override_options): -masm=intel isn't
690         supported on darwin.
691         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
693 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
695         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
696         vfork after including auto-host.h.
698 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
700         PR rtl-optimization/22002
701         * combine.c (distribute_notes): Detect cases where a reg dies
702         two or more times in a bb, including on the insn we are combining,
703         and place the death note on the correct range.
705 2005-11-14  Dale Johannesen  <dalej@apple.com>
707         * expmed.c (store_bit_field):  Add offset unconditionally for
708         memory targets.
709         (extract_bit_field):  Don't force extzv or extv operand into
710         a register if field is too big.
712 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
714         * config/arm/arm.c (pic_labelno): New.
715         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
716         LABEL_REF.  Pass only the labelno to PIC insns.
717         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
718         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
719         * arm.md (UNSPEC_PIC_LABEL): New constant.
720         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
721         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
722         Use the correct label prefix.
724 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
726         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
727         REQ_EQUIV note.
729 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
731         * loop-invariant.c: Include tm_p.h.
732         * Makefile.in: Updated.
734 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
736         * pa.c (store_reg): Revise generation of frame notes in large frames.
737         (set_reg_plus_d): Likewise.
739 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
741         PR tree-optimization/24709
742         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
743         loop check.
745 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
747         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
748         and duplicate declaration of pthread_self.
750 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
751             Ian Lance Taylor  <ian@airs.com>
753         PR middle-end/24003
754         * calls.c (expand_call): If TARGET is a MEM and some part of the
755         argument area has been saved, force TARGET to a register.
757 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
759         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type 
760         checking.
762 2005-11-13  Jason Merrill  <jason@redhat.com>
764         PR c++/22489
765         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
766         lazily declared methods.
767         (force_decl_die): Stop if forcing out the context already make a
768         DIE for the decl.
769         (force_type_die): Likewise.
771 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
773         PR middle-end/24820
774         * builtins.c (integer_valued_real_p): Add break in
775         REAL_CST having TREE_OVERFLOW set.
777 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
779         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
780         addressing modes during calculation of costs.
782 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
784         * function.c (assign_stack_local_1): Restrict sanity check
785         on frame size overflow to 32-bit and above platforms.
787 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
789         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
790         * config/cris/cris.c: Include reload.h.
791         (cris_initial_elimination_offset): New function.
792         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
793         Prototype.
795 2005-11-12  Richard Guenther  <rguenther@suse.de>
797         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
799 2005-11-12  Jan Hubicka  <jh@suse.cz>
801         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
802         to compare against 0 when possible.
804 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
806         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
807         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
808         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
809         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
810         in the new order.
812 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
814         * recog.c (constrain_operands) <case 'g'>: For a match, require
815         that a non-register matches general_operand when strict >= 0.
817 2005-11-11  Steven Bosscher  <stevenb@suse.de>
819         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
820         previous checkin.
822 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
824         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
825         (memory_address_same): New.
826         (dse_optimize_stmt): Call memory_address_same.
828 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
830         PR middle-end/24750
831         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
832         ZERO_EXTEND>: New cases.
834 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
836         * longlong.h (__clz_tab): Always provide.
838 2005-11-11  Steven Bosscher  <stevenb@suse.de>
840         PR 24265
841         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
842         can be assigned to.
843         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
844         before check_maybe_invariant.
845         (move_invariant_reg): Use gen_move_insn instead of replacing
846         SET_DEST with the temporary for the invariant.
847         (move_loop_invariants): If checking is enabled, do internal
848         consistency checks after completing the pass.
850 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
852         PR 24644
853         * common.opt (Wvolatile-register-var): New.
854         * varasm.c (make_decl_rtl): Only emit warning when option
855         specified.  Clarify warning message.
856         * doc/invoke.texi (Wvolatile-register-var): Document new option.
858         * doc/md.texi (copysign): Document standard named pattern.
860 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
862         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
863         bytes when align is 2.
864         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
865         by the first instruction of the loop.
867 2005-11-11  Jason Merrill  <jason@redhat.com>
869         PR c++/24686
870         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore 
871         the cleanup list.
873 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
875         PR rtl-optimization/22509
876         * local-alloc.c (memref_used_between_p): Check whether a function call
877         could not reference the memref.
879 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
881         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
882         algorithm so as to choose the best, not the worst, alternative.
883         Reset accumulated register class before processing next alternative.
885 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
887         PR target/24445
888         * calls.c (expand_call): Copy a return value to a plain register
889         if needed.
891 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
893         PR target/24778
894         * varasm.c (assemble_name): Recompute name only for transparent
895         aliases.
897 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
899         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
901 2005-11-04  Jeff Law  <law@redhat.com>
903         PR middle-end/23181
904         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
905         perform reassociation if the parent statement will not die as
906         a result of the optimization.
908 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
910         * tree-ssa-alias.c (compute_may_aliases): Remove call to 
911         delete_old_heap_vars.
912         * tree-dfa.c (referenced_var_remove): Remove function.
913         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
914         (delete_tree_ssa): Remove call to delete_old_heapvars.
915         Add call to delete_alias_heapvars.
916         * tree-flow.h (referenced_var_remove): Remove prototype
917         (init_alias_heapvars): New prototype.
918         (delete_alias_heapvars): Ditto.
919         * Makefile.in (tree-ssa-structalias.o): Add
920         gt-tree-ssa-structalias.o
921         (GTFILES): Add tree-ssa-structalias.h and
922         tree-ssa-structalias.c.
923         (s-gtype): Add gt-tree-ssa-structalias.h.
924         * tree-ssa-structalias.c (heapvars): Remove.
925         (oldheapvars): Remove.
926         (heapvar_for_stmt): New variable.
927         (heapvar_lookup): New function.
928         (heapvar_insert): Ditto.
929         (get_constraint_for): See if we have an old heapvar
930         to reuse.
931         (init_alias_heapvars): New function.
932         (delete_alias_heapvars): Ditto.
933         Add include of gt-tree-ssa-structalias.h.
935 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
937         PR middle-end/22127
938         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
940 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
942         * tree.c (int_fits_type_p): Only look at the base type
943         if it has the same precision as the original type.
945 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
947         PR other/4372
948         * varasm.c (assemble_alias): Use %q+D in the error
949         message instead of %J and %qD.
951 2005-11-10  Richard Guenther  <rguenther@suse.de>
953         * gcse.c (free_ldst_entry): Only free hashtable if
954         it exists.
956 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
958         * function.c (assign_stack_local_1): Issue an error message if
959         the frame size overflows in the signed target arithmetics.
961 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
963         * tree.c (build_qualified_type): Chain the new type to the original
964         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
965         a POINTER_TYPE or a REFERENCE_TYPE respectively.
966         (build_pointer_type_for_mode): Only return unqualified types.
967         (build_reference_type_for_mode): Likewise.
969 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
971         * Makefile.in (gnucompare): Do comparison of all files using one of
972         the chosen methods and only afterwards decide if just warning should
973         be issued or comparison failure raised.
975 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
977         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
978         (noce_try_abs): Negate if the comparison is reversed.
979         Look only one instruction backwards for a REG_EQUAL note.
981 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
983         PR other/4372
984         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
985         gthr-tpf.h: Define __gthrw.  For all identifiers that might
986         be weak, introduce weakrefs or non-weak aliases with __gthrw,
987         and prefix all uses with __ghtrw.
989 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
991         PR other/4372
992         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
993         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
994         * c-common.c (handle_weakref_attribute): New.
995         (c_common_attribute_table): Add weakref.
996         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
997         in the assembler.
998         * configure, config.in: Rebuilt.
999         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
1000         * doc/extend.texi: Document weakref attribute.
1001         * varasm.c (ultimate_transparent_alias_target): New
1002         (assemble_name): Use it.
1003         (weak_finish_1): Split out of...
1004         (weak_finish): ... and deal with weakrefs in...
1005         (weakref_targets): ... new list.
1006         (globalize_decl): Clean up weakref_targets.
1007         (do_assemble_alias): Handle weakrefs.
1008         (finish_aliases_1): Do not reject weakrefs to external symbols.
1009         (assemble_alias): Handle weakrefs.
1011 2005-11-09  Richard Guenther  <rguenther@suse.de>
1013         PR tree-optimization/24716
1014         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
1015         t_bool to track results from follow_ssa_edge.
1017 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1019         * final.c (force_source_line): New global variable.
1020         (final_scan_insn): Set it to true instead of clearing last_filename.
1021         (notice_source_line): Return true if force_source_line is true,
1022         unless source info is absent.
1024 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
1026         PR c/24644
1027         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
1028         a linkage name for a variable if it a register variable.
1029         * c-decl.c (grokdeclarator): Global register variables
1030         should be set as PUBLIC.
1032 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
1034         PR 24624
1035         * config/s390/s390.c (struct s390_frame_layout): New fields 
1036         first_save_gpr_slot and last_save_gpr_slot.
1037         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,  
1038         s390_emit_epilogue, s390_initial_elimination_offset): Replaced 
1039         first_save_gpr and last_save_gpr with the _slot variants.
1040         (s390_register_info): Calculate first_save_gpr_slot and 
1041         last_save_gpr_slot using regs_ever_live.
1043 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
1045         PR 24623
1046         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
1047         for a function containing a landing pad.
1049 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
1051         PR 24034
1052         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
1053         is live afterwards.
1055 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
1057         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
1058         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
1060 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1062         Add ms2 support
1063         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
1064         constants.
1065         (call,load,store): New insn types.
1066         (mem_access, branch_access): Adjust reservation conditions.
1067         (define_delay): Adjust condition.
1068         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
1069         type.
1070         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
1071         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
1072         insn type.
1073         (call_internal, call_value_internal, return_internal,
1074         return_interrupt_internal, eh_return_internal, indirect_jump,
1075         tablejump): Set call insn type.
1076         (blockage, ei, di): Use appropriate unspec const.
1077         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
1078         (ms1_get_attr_type): Adjust to give load & store types.
1079         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
1080         backwards past a barrier.
1081         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
1082         branch scheduling.
1083         (struct branch_info, struct label_info): New.
1084         (ms1_labels): New.
1085         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
1086         (ms1_machine_reorg): New.
1087         (TARGET_MACHINE_DEPENDENT_REORG): Override.
1088         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
1089         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
1090         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
1091         (TARGET_MS2): New.
1093 2005-11-09  Per Bothner  <per@bothner.com>
1094             Uros Bizjak  <uros@kss-loka.si>
1095         
1096         PR c/24101
1097         * toplev.c (process_options): Initialize debug_hooks early
1098         in case lang_hooks.post_options ends up calling a debug_hook.
1100 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
1102         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
1103         DBX_REGISTER_NUMBER being contiguous.
1105 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
1106             Diego Novillo  <dnovillo@redhat.com>
1108         PR 23046
1109         * tree-vrp.c (register_edge_assert_for): Do not register
1110         always-false predicates.
1112 2005-11-08  Devang Patel <dpatel@apple.com>
1114         PR tree-optimization/23115
1115         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
1116         relation.
1118 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
1120         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
1121         -mcpu=440.
1123 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
1125         Fix PR tree-optimization/23382
1127         * tree-ssa-alias.c (compute_may_aliases): Call
1128         delete_old_heap_vars.
1129         * tree-dfa.c (referenced_var_remove): New function.
1130         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
1131         * tree-flow.h (referenced_var_remove): Add prototype.
1132         (delete_old_heap_vars): Ditto.
1133         * tree-ssa-structalias.c (heapvars): New variable.
1134         (oldheapvars): Ditto.
1135         (get_constraint_for): Put heap vars on heapvars list.
1136         (delete_old_heap_vars): New function.
1137         
1138 2005-11-08  Jason Merrill  <jason@redhat.com>
1140         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
1142 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
1144         PR target/19340
1145         * reg-stack.c (reg_to_stack): Update register liveness also
1146         for flag_sched2_use_traces.
1148 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
1150         PR target/23704
1151         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
1152         override prior explicit -mno-powerpc-gfxopt.
1154 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1156         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
1157         if the bitsize is zero.
1158         * doc/md.texi (Standard Pattern Names): Document it.
1160         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
1161         (TARGET_PASS_BY_REFERENCE): Likewise.
1163 2005-11-07  Ian Lance Taylor  <ian@airs.com>
1165         PR rtl-optimization/24683
1166         * config/i386/i386.c (legitimize_pic_address): If constant operand
1167         to PLUS is too large, put it in a register.
1169 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
1171         * configure.ac: Enable checking assembler dwarf2 support for bfin
1172         target.
1173         * configure: Regenerate.
1175 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
1177         PR target/24230
1179         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
1180         gen_easy_vector_constant_add_self): Delete.
1181         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
1182         New.
1183         (output_vec_const_move): Use gen_easy_altivec_constant.
1184         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
1185         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
1186         (easy_vector_constant_add_self): Rewritten.
1187         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
1188         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
1189         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
1190         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
1191         Macroize and adjust for the other changes.
1193 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
1195         PR c/24599
1197         * c-typeck.c (build_c_cast): Try using a shared constant, and see
1198         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
1200 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
1202         PR rtl-optimization/23567
1203         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
1204         (noce_process_if_block): Don't do any optimizations except
1205         if (cond) x = x; if !set_b and write into orig_x may trap
1206         or fault.  Remove the MEM_READONLY_P check.
1208 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
1210         PR 24670
1211         * tree-vrp.c (fix_equivalence_set): New.
1212         (extract_range_from_assert): Call it.
1214 2005-11-05  Ian Lance Taylor  <ian@airs.com>
1216         PR target/22432
1217         * combine.c (apply_distributive_law): Don't distribute across a
1218         vector mode subreg.
1220 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
1222         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
1223         config/ms1/ms1.h, config/rs6000/predicates.md,
1224         config/s390/s390.c, params.def, postreload-gcse.c,
1225         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
1226         tree-vrp.c, tree.c: Fix comment typos.
1227         * doc/invoke.texi: Fix typos.
1229 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
1231         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
1232         for testing whether the data_dependence_relation contains distance
1233         vectors.  Iterate over all distance vectors of the ddr.
1234         * lambda.h: Define a vec of lambda_vector pointers.
1235         * tree-data-ref.c (dump_data_dependence_relation,
1236         dump_data_dependence_direction): Iterate over all distance and
1237         direction vectors of the ddr.
1238         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
1239         DDR_DIST_VECTS.
1240         (build_classic_dist_vector, build_classic_dir_vector): Push a set
1241         of distance/direction vectors instead of a single one.
1242         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist 
1243         lambda_vectors with a vec of lambda_vectors.
1244         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
1245         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
1246         DDR_NUM_DIST_VECTS): New.
1247         * tree-loop-linear.c (gather_interchange_stats): Test for the
1248         existence of distance vectors only after having checked that there
1249         is a dependence.  Iterate over all distance vectors of the ddr.
1250         (linear_transform_loops): Use dump_data_dependence_relation.
1251         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
1252         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
1253         distance vectors of the ddr.
1255 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1257         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
1258         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
1259         IS_INTHANDLER; all callers changed.
1260         (n_regs_saved_by_prologue): Take interrupt handler attributes into
1261         account.
1262         (do_link, do_unlink): New argument ALL; all callers changed.
1263         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
1264         If function isn't leaf, save and restore all registers.
1265         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
1266         exception handler.
1268 2005-11-05  Jan Hubicka  <jh@suse.cz>
1270         PR rtl-optimization/23490
1271         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
1272         max-flow-memory-location): Document.
1273         * flow.c: Include params.h
1274         (MAX_MEM_SET_LIST_LEN): Kill.
1275         (add_to_mem_set_list): Use new param.
1276         * cse.c (cse_basic_block): Replace 1000 by new param.
1277         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
1278         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
1279         * predict.c (predict_loops): Use new param.
1280         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
1282         * ipa-inline.c (cgraph_decide_inlining_of_small_function, 
1283         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1284         Do not hold memory returned by cgraph_node_name across other call.
1286 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
1288         PR target/23424
1289         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
1290         Disable.
1292 2005-11-04  Jeff Law  <law@redhat.com>
1294         PR/21883
1295         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
1296         * tree-ssa-dom.c: Include params.h.
1297         (thread_across_edge): If there are too many statements in the
1298         target block, then do not thread through it.
1299         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
1300         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
1302 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
1304         PR 24627
1305         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
1306         TODO_update_ssa instead of TODO_update_ssa_no_phi.
1308 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
1310         PR/18595
1311         * tree-scalar-evolution.c (instantiate_parameters_1,
1312         instantiate_parameters, resolve_mixers): Compute the size of an
1313         expression to be instantiated and give up the instantiation if the
1314         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1316 2005-11-04  Richard Guenther  <rguenther@suse.de>
1318         * tree-flow.h (ref_contains_indirect_ref): Rename to
1319         array_ref_contains_indirect_ref.
1320         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
1321         (array_ref_contains_indirect_ref): Make comment match the code
1322         and vice-versa.
1323         (ref_contains_array_ref): Likewise.
1324         * tree-ssa-structalias.c (find_func_aliases): Remove call to
1325         ref_contains_indirect_ref.
1326         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1327         Rename calls to ref_contains_indirect_ref.
1329 2005-11-04 Paul Brook  <paul@codesourcery.com>
1331         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
1332         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
1333         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
1334         * config/arm/arm.md: Use match_operand in peephole input templates
1335         and match_dup in peephole output templates.
1337 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1339         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
1340         __aeabi_uidiv.
1342 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
1343             Daniel Jacobowitz  <dan@codesourcery.com>
1345         * longlong.h (add_ssaaaa): Clobber condition code register
1346         in ARM version.
1347         (sub_ddmmss): Likewise.
1348         (umul_ppmm): Likewise.
1350 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1351             Paul Brook  <paul@codesourcery.com>
1352             Phil Blundell  <pb@reciva.com>
1354         * configure.ac: Add test for ARM TLS support.
1355         * configure: Regenerated.
1356         * config/arm/arm-protos.h (legitimize_tls_address)
1357         (arm_tls_referenced_p, tls_mentioned_p)
1358         (arm_output_addr_const_extra): New prototypes.
1359         (thumb_legitimize_pic_address): Delete.
1360         * config/arm/arm.c: Include "gt-arm.h".
1361         (enum tls_reloc): New.
1362         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
1363         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
1364         (arm_call_tls_get_addr, legitimize_tls_address)
1365         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
1366         (arm_init_tls_builtins, arm_emit_tls_decoration)
1367         (arm_output_addr_const_extra): New functions.
1368         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
1369         (TARGET_HAVE_TLS): Define.
1370         (target_thread_pointer): New.
1371         (arm_override_options): Handle -mtp=.
1372         (legitimize_pic_address): Ignore UNSPECs.
1373         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
1374         relative symbols.
1375         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
1376         (tls_get_addr_libfunc): New variable.
1377         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
1378         (arm_init_builtins): Call arm_init_tls_builtins.
1379         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
1380         (arm_encode_section_info): Call default_encode_section_info.
1381         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
1382         (enum arm_tp_type): New.
1383         (target_thread_pointer): Add declaration.
1384         (LEGITIMATE_CONSTANT_P): Handle TLS.
1385         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
1386         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
1387         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
1388         * config/arm/arm.md: Add UNSPEC_TLS.
1389         (movsi): Handle TLS.
1390         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
1391         non-PIC.
1392         (tls_load_dot_plus_eight): New insn and a peephole to create it.
1393         (load_tp_hard, load_tp_soft): New insns.
1394         * arm.opt: Add -mtp=.
1395         * doc/invoke.texi (ARM Options): Document -mtp.
1397 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1399         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
1400         * config/arm/libunwind.S: Include "lib1funcs.asm".
1401         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
1402         (LIB2ADDEH): Add libunwind.S.
1403         (LIB2ADDEHDEP): Add lib1funcs.asm.
1404         * mklibgcc.in: Handle asm files in libgcc_eh.a.
1406 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1408         PR fortran/18452
1409         * gcc/c.opt: Add a -lang-fortran option.
1410         * gcc/c-opts.c: Add a lang_fortran flag.
1411         (c_common_init_options): Handling the -lang-fortran option.
1412         (c_common_handle_option): Add a case for Fortran options in
1413         preprocessing. Remove cases for -ffixed-form and
1414         -ffixed-line-length. Add a case for -lang-fortran.
1416 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
1418         * config/rs6000/rs6000.c: Include params.h
1419         (optimization_options): Set max-grow-copy-bb-insns default to 16.
1420         (bdesc_2arg): Delete vpkuhss and vpkuwss.
1421         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
1422         (UNSPEC_VPKUWSS): Delete.
1423         (altivec_vpkuhss): Delete.
1424         (altivec_vpkuwss): Delete.
1425         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
1426         final condition.
1427         (neg_eq0<mode>): Remove final condition.
1428         (neg_eq<mode>): Remove condition and split-condition.
1430 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
1432         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
1433         Use associated print macros.
1435 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
1437         PR c++/17964
1438         * diagnostic.c (diagnostic_set_info_translated): New function.
1439         (diagnostic_set_info): Use it.  Add comment.
1440         * diagnostic.h (diagnostic_set_info_translated): Declare.
1442 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1444         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
1445         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
1446         reference only if 'public' is true.
1447         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
1448         emit the .hidden directive only if the indirect reference is public.
1449         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
1450         Pass it to dw2_force_const_mem.
1451         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
1452         * dwarf2out.c (output_cfi): Adjust calls to above function.
1453         (output_call_frame_info): Likewise.
1454         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
1455         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
1457 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
1459         PR tree-optimization/24483
1460         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
1461         field to elts if possible.
1463 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
1465         PR middle-end/23155
1466         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
1467         CONSTRUCTOR.
1469 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
1471         Fix PR tree-optimization/24351
1473         * tree-ssa-structalias.c (struct variable_info): Add
1474         collapsed_into.
1475         (get_varinfo_fc): New function to follow collapsing.
1476         (new_var_info): Set collapsed_to to NULL.
1477         (dump_constraint): Follow collapsing.
1478         (build_constraint_graph): Handle collapsing.
1479         (do_simple_structure_copy): Return false if something bad
1480         happened.
1481         (collapse_rest_of_var): New function.
1482         (do_structure_copy): Collapse if do_simple_structure_copy returns
1483         false.
1484         
1485 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
1487         PR middle-end/24589
1488         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
1489         expressions to a statement list instead of gimplifying them.
1491 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1493         PR rtl-optimization/23585
1494         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
1495         that can't trap plus a constant integer, if the mode has zero size.
1497 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
1499         PR target/24620
1500         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
1501         as operand 2.
1502         ("*insv<mode>_reg_extimm"): Likewise.
1504 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
1506         PR c/24329
1507         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
1508         c_common_type_for_mode returns an unnamed type.
1510 2005-11-02  Richard Henderson  <rth@redhat.com>
1512         PR target/9350
1513         PR target/24374
1514         * dwarf2out.c (dwarf2out_reg_save_reg): New.
1515         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
1516         * function.c (assign_parms): Use calls.internal_arg_pointer.
1517         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
1518         code.
1519         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
1520         (TARGET_CALLS): Add it.
1521         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
1522         * targhooks.c (default_internal_arg_pointer): New.
1523         * targhooks.h (default_internal_arg_pointer): Declare.
1524         * tree.h (dwarf2out_reg_save_reg): Declare.
1525         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
1526         * config/i386/i386.c (dbx_register_map): Add return column.
1527         (dbx64_register_map, svr4_dbx_register_map): Likewise.
1528         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
1529         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
1530         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
1531         (ix86_save_reg): Save force_align_arg_pointer.
1532         (ix86_emit_save_regs): Make regno unsigned.
1533         (ix86_emit_save_regs_using_mov): Likewise.
1534         (ix86_expand_prologue): Handle force_align_arg_pointer.
1535         (ix86_expand_epilogue): Likewise.
1536         * config/i386/i386.h: (dbx_register_map): Update.
1537         (dbx64_register_map, svr4_dbx_register_map): Update.
1538         (struct machine_function): Add force_align_arg_pointer.
1539         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
1540         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
1541         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
1543 2005-11-02  Jan Hubicka  <jh@suse.cz>
1545         PR target/23303
1546         * i386.md: Add peep2 for simplyfing array accesses.
1548 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1550         PR target/24615
1551         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
1552         * config/s390/s390.c (s390_decompose_shift_count): New function.
1553         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
1554         (print_shift_count_operand): Use s390_decompose_shift_count.
1555         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
1556         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
1558 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1560         PR target/24600
1561         * loop.c (loop_givs_rescan): Use force_operand to expand
1562         complex GIVs.
1564 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
1566         PR 22429
1567         * fold-const.c (build_range_check): Use unsigned when signed
1568         overflow is undefined also.  If etype is subtype, make sure that
1569         the subtraction is in the supertype.
1571 2005-11-02  Richard Henderson  <rth@redhat.com>
1573         PR target/24178
1574         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
1575         by MEM_ALIGN.
1577 2005-11-01  Richard Henderson  <rth@redhat.com>
1579         PR 21518
1580         * loop.c (scan_loop): Do not propagate computations to a hard
1581         register destination with SMALL_REGISTER_CLASSES.
1583 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1585         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
1586         costs for MULT inside PLUS or MINUS.
1588 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
1590         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
1591         (TRAMPOLINE_SIZE): Round up to 60.
1592         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
1594 2005-10-31  James E. Wilson  <wilson@specifix.com>
1596         PR debug/24444
1597         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
1598         ifdef.  Put ifdefs around call in gen_subprogram_die.
1599         (compute_frame_pointer_to_cfa_displacement): Likewise.
1600         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
1601         not defined.
1602         
1603         PR rtl-optimization/17356
1604         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
1605         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
1607 2005-10-31  Jan Hubicka  <jh@suse.cz>
1609         PR middle-end/24093
1610         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
1612         PR target/20928
1613         * i386.c (legitimize_pic_address): Deal with large immediates.
1615         PR profile/20815
1616         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
1617         from symbol names while computing checkup.
1619         PR profile/24487
1620         * predict.c (predict_loops): Do not estimate more than
1621         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
1622         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
1624 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
1625         
1626         PR tree-optimization/19097
1627         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
1629 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
1631         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
1633 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
1635         PR middle-end/23492
1636         * tree-inline.c (setup_one_parameter): If the init_stmt
1637         is NULL, don't insert the statement.
1639 2005-10-30  Jan Hubicka  <jh@suse.cz>
1641         PR tree-optimization/24172
1642         * tree-inline.c (copy_body_r): Unshare the substituted value first.
1644 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1646         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
1647         constants for hosts with long != 32 bits.
1649 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
1651         PR middle-end/24093
1652         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
1654 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
1656         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
1657         (TARGET_MS1_16_002): New.
1658         (TARGET_MS1_16_003): New.
1660         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
1661         ("*decrement_and_branch_until_zero_no_clobber"): New.
1662         Add corresponding splitter for decrement_and_branch_until_zero
1663         instruction.
1664         Key all decrement_and_branch_until_zero patterns off of
1665         TARGET_MS1_16_003.
1667 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
1669         PR middle-end/24362
1670         * tree-complex.c (extract_component): Treat RESULT_DECL
1671         like the rest of the decls.
1673 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1675         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
1676         indirect call to _mcount if the function needs a static chain.
1678 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1679             Caroline Tice  <ctice@apple.com>
1681         PR rtl-optimization/24460
1682         * dwarf2out.c (have_switched_text_sections): New boolean variable.
1683         (dwarf2out_switch_text_section): Set it to true instead of
1684         incrementing separate_line_info_table_in_use.
1685         (output_loc_list): Additionally test have_switched_text_sections.
1686         (output_ranges): Likewise.
1687         (dwarf2out_finish): Likewise.
1688         * varasm.c (assemble_start_function): Do not call
1689         insert_section_boundary_note.
1690         (assemble_end_function): If flag_reorder_blocks_and_partition,
1691         switch to the function's section before emitting the .size directive.
1692         * bb-reorder.c (insert_section_boundary_note): Staticify.
1693         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
1694         * output.h (insert_section_boundary_note): Delete.
1696 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
1698         PR c/23103
1699         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
1700         instead of pointer equality when comparing types.
1702 2005-10-24  James E. Wilson  <wilson@specifix.com>
1704         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
1705         add_dependence_list_and_free calls.
1707 2005-10-24  Steven Bosscher  <stevenb@suse.de>
1709         * contrib.texi: Add the names of the LLNL folks who donated
1710         Cray pointer support for gfortran.
1712 2005-10-24  Steven Bosscher  <stevenb@suse.de>
1714         PR tree-optimization/24225
1715         * profile.c (branch_prob): Look from end to start through a
1716         basic block when looking for a locus.
1718 2005-10-24  Richard Henderson  <rth@redhat.com>
1720         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
1721         parallel.
1722         (hppa_expand_prologue): Likewise.
1724 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1726         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
1727         (NO_DEFERRED_PROFILE_COUNTERS): Define.
1728         * pa.h (NO_PROFILE_COUNTERS): Define.
1729         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
1730         (funcdef_nos): New vector to hold label numbers of deferred profile
1731         counters.
1732         (output_deferred_profile_counters): New function.
1733         (hppa_profile_hook): Push label number onto funcdef_nos.
1734         (pa_hpux_file_end): Call output_deferred_profile_counters if
1735         NO_DEFERRED_PROFILE_COUNTERS is false.
1737         * pa-protos.h (get_deferred_plabel): New prototype.
1738         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
1739         Make global.
1740         (output_call): Adjust calls.
1742 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
1744         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
1745         peculiarity of GOT/TOC section usage.
1747 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
1749         PR objc/24435
1750          * c-common.c (constant_string_class_name): Add documentation.
1752 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
1754         PR target/23832
1755         * recog.c (peephole2_optimize): Increment peep2_current_count
1756         only when the slot is empty.
1758 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1760         PR ada/23957
1761         * except.c (output_function_exception_table): Call
1762         assemble_external_libcall if we need a personality function.
1764 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1766         PR rtl-optimization/24460
1767         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
1768         set the basic block for barriers.
1770 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
1772         * var-tracking.c (vt_initialize): Initialize post.
1774 2005-10-21  Devang Patel  <dpatel@apple.com>
1776         PR/24220
1777         * c-common.c (vector_types_convertible_p): Check vector element type.
1778         
1779 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1781         * config/sh/sh.c (prepare_move_operands): Handle the address
1782         constant which is a tls symbolic address plus a constant.
1784 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
1786         PR driver/24473
1787         * gcc.c (main): Use the correct counter for erroring out
1788         about mulitple files.
1790 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
1792         PR target/24465
1793         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
1794         use r2 for 64-bit tls .got access.
1796 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
1798         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
1799         TRUTH_OR_EXPR.
1801 2005-10-20  Steven Bosscher  <stevenb@suse.de>
1803         PR tree-optimization/24307
1804         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
1806 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
1808         PR middle-end/24295
1809         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
1810         alias targets.
1811         * varasm.c (find_decl_and_mark_needed): After cgraph global info
1812         is ready, stop marking functions, but still mark variables.
1814 2005-10-20  Richard Guenther  <rguenther@suse.de>
1816         PR c++/24439
1817         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
1818         void type operands.
1820 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
1822         PR rtl-optimization/23585
1823         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
1824         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
1825         (may_trap_p_1): New predicate extracted from...
1826         (may_trap_p): ... here.  Invoke may_trap_p_1.
1827         (may_trap_or_fault_p): New predicate.
1828         * rtl.h (may_trap_or_fault_p): Declare it.
1829         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
1830         instead of may_trap_p.
1831         (steal_delay_list_from_fallthrough): Likewise.
1832         (fill_simple_delay_slots): Likewise.
1833         (fill_slots_from_thread): Likewise.
1834         * function.c (pad_to_arg_alignment): Rework comment about
1835         SPARC_STACK_BOUNDARY_HACK.
1836         * config/sparc/sparc.h: Likewise.
1838 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
1840         * config/s390/s390.c (s390_expand_insv): New.
1841         * config/s390/s390-protos.h (s390_expand_insv): Declare.
1842         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
1843         ("icm_hi"): Remove mode attribute.
1844         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
1845         Adjust all uses.
1846         ("*extracthi", "*extractqi"): Remove.
1847         (extv<mode>", "*extzv<mode>"): New.
1848         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
1849         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
1851 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1853         * cfgexpand.c (discover_nonconstant_array_refs_r,
1854         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
1855         (tree_expand_cfg): Call discover_nonconstant_array_refs.
1856         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
1857         discover_nonconstant_array_refs.
1859 2005-10-19  Steven Bosscher  <stevenb@suse.de>
1861         PR c/23228
1862         * c-decl.c (pop_scope): Don't warn about an unused variable
1863         if it is marked with TREE_NO_WARNING.
1864         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
1865         somenow mismatch and olddecl is to be replaced.
1867 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
1869         PR middle-end/23199
1870         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
1871         whether registers live on the edge can be saved/restored.
1873 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1875         * config/sh/sh.c (fixup_mova): Skip notes.
1877 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1879         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
1880         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
1881         (s390_can_eliminate): Handle BASE_REGNUM elimination.
1882         (s390_initial_elimination_offset): Likewise.
1883         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
1884         register on TARGET_ZARCH targets.
1885         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
1886         (INITIAL_FRAME_POINTER_OFFSET): Remove.
1887         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
1888         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
1890 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1892         * config/s390/s390.md: Comment describing output modifiers updated.
1893         * config/s390/s390.c (print_operand): Likewise.
1895 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1897         * config/s390/s390.c (override_options): Added check for -mstack-size
1898         64k limitation.
1899         * doc/invoke.texi: Mention that limit in the documenation.
1901 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
1903         PR #19672
1904         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
1906 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
1908         Fix PR tree-optimization/24231
1910         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
1911         (compute_avail): Ditto.
1913 2005-10-18  Richard Henderson  <rth@redhat.com>
1915         PR target/24428
1916         * config/i386/i386.c (legitimate_constant_p): Check
1917         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
1918         if LABEL_REF.
1919         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
1920         (legitimate_pic_address_disp_p): Reorg CONST checking to make
1921         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
1922         directly.
1923         (print_operand_address): Likewise.
1924         * config/i386/predicates.md (x86_64_immediate_operand): Test
1925         SYMBOL_REF_TLS_MODEL properly inside CONST.
1926         (x86_64_zext_immediate_operand): Likewise.
1927         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
1928         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
1929         * config/i386/i386-protos.h: Remove predicates.md entries.
1931 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
1933         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
1934         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
1936 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1937             Ian Lance Taylor <ian@airs.com>
1939         PR middle-end/23522
1940         * fold-const.c (fold_widened_comparison): Do not allow range based
1941         constant folding when right operand cannot be unwidened.
1943 2005-10-17  Richard Henderson  <rth@redhat.com>
1945         * builtins.c (expand_builtin_synchronize): Build a new-style asm
1946         with a memory clobber.
1948 2005-10-17  James E Wilson  <wilson@specifix.com>
1950         PR rtl-optimization/17356
1951         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
1952         checking for EDGE_EH.
1954 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1956         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
1957         the slot on an even boundary for any type with 16-byte alignment.
1959 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
1961         PR target/23424
1962         * md.texi (Modifiers) <%>: Clarify that % doesn't work
1963         after register allocation.
1965 2005-10-17  DJ Delorie  <dj@redhat.com>
1967         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
1968         as frame related.
1970 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
1972         PR c++/22551
1973         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
1974         overflow flags.
1976 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1978         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
1979         to 2 if it's already non-zero.
1980         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
1981         is set and warn about it if flag_schedule_insns is 1.
1983 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
1985         * config/crx/crx.md: Compare-and-branch instructions need to
1986         invalidate CC.
1988 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
1990         PR target/24315
1991         * config/i386/i386.md (*pushdi2_rex64 splitter)
1992         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
1993         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
1994         flow2 pass only when (optimize > 0 && flag_peephole2).
1996 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
1998         PR driver/22544
1999         * gcc.c (have_c): New static variable.
2000         (have_o): Likewise.
2001         (process_command): Remove declation of have_c.
2002         Set have_o to 1 when handling -o.
2003         (main): Add a fatel error if there are multiple
2004         files specified and -o and -c/-S is passed witout
2005         -combine or multiple languages.
2007 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
2009         Fix PR tree-optimization/22444
2010         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
2011         Assert that we don't hit something with subvars.
2012         (setup_pointers_and_addressables): Don't add things with subvars,
2013         because we'll already process the subvars for aliasing purposes.
2015 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
2017         PR target/23424
2018         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
2019         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
2020         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
2021         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
2022         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
2023         swapped, alternatives for the R constraint.
2025         PR middle-end/24341
2026         * builtins.c (get_builtin_sync_mode): Make unlimited
2027         mode_for_size request.
2029 2005-10-15  Richard Henderson  <rth@redhat.com>
2031         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
2032         (gimplify_expr): ... here.
2033         (gimplify_compound_lval): Use it in initial scan loop.  Allow
2034         fb_lvalue in base expression.
2036 2005-10-15  Richard Henderson  <rth@redhat.com>
2038         PR 23714
2039         * builtins.c (expand_builtin_trap): Export.
2040         * expr.h (expand_builtin_trap): Declare.
2041         * expr.c (expand_assignment): Emit a trap for integral offsets 
2042         from registers that weren't reduced to bitpos.
2044         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
2045         (mark_array_ref_addressable): Remove.
2046         * tree-flow.h (mark_array_ref_addressable): Remove.
2047         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
2049 2005-10-15  James E Wilson  <wilson@specifix.com>
2051         PR target/24232
2052         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
2053         (add_dependence_list_and_free): Likewise.
2054         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
2055         call.
2057 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
2059         PR 23141
2060         PR 23142
2061         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
2062         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
2063         anti-range.
2064         (vrp_visit_phi_node): Only prevent infinite iterations when
2065         the previous result and the new result are both VR_RANGEs.
2067 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
2069         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
2070         function comment.
2072 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2074         PR c/23439
2075         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
2076         to initialize loc.
2078 2005-10-14  Per Bothner  <per@bothner.com>
2080         PR preprocessor/21250
2081         * c-ppoutput.c (print_line): Print internal line 0 as 1.
2083 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
2085         PR c++/22551
2086         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
2087         overflow flags.  Refactor some conditionals.
2089 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
2091         PR tree-opt/21304
2092         * tree-dfa.c (add_referenced_var): Only look at decls which
2093         have TREE_CONSTANT or TREE_READONLY set instead of if
2094         !TREE_PUBLIC or !TREE_CONSTANT.
2096 2005-10-13  James E Wilson  <wilson@specifix.com>
2098         * doc/invoke.texi: For -x, add f95-cpp-input.
2099         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
2101 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
2103         PR tree-optimization/24262
2104         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
2105         in loop all the time.
2107 2005-10-12  Richard Henderson  <rth@redhat.com>
2109         PR c/24255
2110         * tree.h (DECL_TRANSPARENT_UNION): Remove.
2111         * function.c (assign_parm_find_data_types): Don't support it.
2112         * print-tree.c (print_node): Likewise.
2113         * c-common.c (handle_transparent_union_attribute): Likewise.
2114         Use build_duplicate_type.
2115         * tree-inline.c (remap_type_1): Split out of remap_type;
2116         properly remap aggregate fields.
2117         (build_duplicate_type): New.
2118         * doc/extend.texi (Variable Attributes): Remove documentation
2119         for transparent_union.
2121 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2123         PR target/24284
2124         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
2125         (gen_stack_pointer_dec): Likewise.
2127 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
2129         PR middle-end/21275
2130         PR middle-end/21766
2131         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
2132         target hook.
2133         (struct cxx): Add adjust_class_at_definition target hook.
2134         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
2135         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
2136         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to 
2137         hook_void_tree. Add to TARGET_CXX.
2138         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
2139         dllimport_flag.
2140         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
2141         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
2142         instead of attribute. Check for dllexport override.  Warn if
2143         inconsistent dll linkage. Don't lose old dllimport if decl has
2144         had address referenced.   Tweak lookup of dllimport atribute.  
2145         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
2146         for target specific rules.  Don't add dllimport attribute if
2147         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
2148         dllimport attribute. 
2149         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
2150         * varasm.c (initializer_constant_valid_p): Replace
2151         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
2153         PR target/21801
2154         PR target/23589
2155         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to 
2156         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
2157         (i[34567]86-*-mingw32*): Likewise.
2159         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
2160         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
2161                         
2162         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
2163         C++-specific code. Change return value to bool. 
2164         (i386_pe_dllimport_p): Likewise.
2165         (associated_type): Simplify and make language-independent
2166         (i386_pe_encode_section_info): Replace override of ambiguous
2167         dllimport symbol refs with a gcc_assert.
2168         (i386_pe_valid_dllimport_attribute_p): Define.
2169         * config/i386/winnt-cxx.c: New file. Define C++ versions of
2170         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2171         i386_pe_adjust_class_at_definition.
2172         * config/i386/winnt-stubs.c: New file. Define stub versions of
2173         lang-specific functions.
2174         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
2175         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p, 
2176         i386_pe_adjust_class_at_definition.
2177         (i386_pe_valid_dllimport_attribute_p): Declare. 
2178         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
2179         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
2180         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
2182         PR target/19704
2183         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
2184         dllimport attribute with test of DECL_DLLIMPORT_P.
2186 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
2188         * combine.c (make_extraction): Correct offset computation.
2190 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
2192         * config/cris/t-linux (LIMITS_H_TEST): Define.
2194 2005-10-12  Richard Henderson  <rth@redhat.com>
2196         PR rtl-opt/23324
2197         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
2199 2005-10-12  Richard Guenther  <rguenther@suse.de>
2201         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
2203 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
2205         PR c++/19964
2206         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
2207         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
2208         type.
2210 2005-10-12  Richard Guenther  <rguenther@suse.de>
2212         PR c++/23799
2213         * varasm.c (output_constant): Correct typo from previous
2214         patch by DJ.
2216 2005-10-11  Ian Lance Taylor  <ian@airs.com>
2218         PR rtl-optimization/13931
2219         * combine.c: Revert patch of 2003-05-14, and:
2220         (try_combine): Only set elim_i1 and elim_i2 if the destination is
2221         completely killed in the appropriate insn.
2222         (distribute_notes): Don't skip multiple hard register test for
2223         elim_i1 and elim_i2.
2225 2005-10-11  Richard Henderson  <rth@redhat.com>
2227         PR c/24255
2228         * c-typeck.c (convert_for_assignment): Use build_constructor_single
2229         to initialize a transparent union instead of a nop_expr.
2231 2005-10-11  Richard Henderson  <rth@redhat.com>
2233         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
2234         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
2235         (tree_ssa_dce_loop): Call scev_reset.
2237         PR tree-opt/24300
2238         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
2239         * tree-ssa-dce.c: Include cfgloop.h.
2240         (tree_ssa_dce_loop, pass_dce_loop): New.
2241         * tree-pass.h (pass_dce_loop): Declare it.
2242         * passes.c (init_optimization_passes): Use it.
2244 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2246         PR middle-end/24263 
2247         * convert.c (convert_to_real): Revert 2005-10-05 patch.
2248         Only apply the optimization for rounding builtins if the inner
2249         cast is also an extension.
2251 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
2253         PR tree-opt/23946
2254         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
2255         mark_new_vars_to_rename instead of update_stmt.
2257 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2259         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
2261 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2263         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
2264         for setting MMX register to 0 rather than mmx.
2266 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
2268         PR target/12098
2269         * configure.ac: Move gas check from mips specific case to common case.
2270         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
2271         * configure: Regenerate
2272         * doc/install.texi: Update.
2274 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2276         PR target/24284
2277         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
2279 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
2281         * gcc.c (do_spec_1): Accept numeric characters in file name
2282         suffixes.
2284 2005-10-10  Nick Clifton  <nickc@redhat.com>
2286         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
2287         describing the deleted arm_gen_rotated_half_load function.
2289 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2291         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
2292         __fpscr_values.
2294 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
2296         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
2297         gnu_ld assignments.
2298         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
2299         (EXTRA_MULTILIB_PARTS): Define.
2300         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2301         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2302         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
2303         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2304         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2305         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
2307 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
2309         PR tree-optimization/24226
2310         * tree-cfg.c (remove_bb): Clean up unreachable loops.
2311         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
2312         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
2313         Export.
2315 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
2317         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
2319 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
2321         PR target/24136
2322         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
2323         Rewrite for no need for the early clobber.
2325 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
2327         Merge from csl-arm-branch:
2328         2005-09-07  Paul Brook  <paul@codesourcery.com>
2329         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
2330         space to string.
2332         2005-04-30  Paul Brook  <paul@codesourcery.com>
2333         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
2334         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
2336         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
2337         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
2338         (arm_override_options): Use TARGET_AAPCS_BASED.
2339         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
2340         (PTRDIFF_TYPE): Use int for AAPCS.
2341         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
2342         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
2343         (DEFAULT_SHORT_ENUMS): Delete.
2344         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
2346         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
2347         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
2348         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
2349         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
2351         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
2352         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
2354         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
2355         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
2357         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
2358         * config.gcc (arm*-*-linux-gnueabi): Add it.
2359         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
2360         redefining it.
2361         (TARGET_OS_CPP_BUILTINS): Likeiwse.
2362         * config/arm/linux-eabi.h: New file.
2363         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
2364         (LINUX_TARET_LINK_SPEC): Likewise.
2365         (LINK_SPEC): Use it.
2366         * config/arm/t-linux-eabi: New file.
2368 2005-10-08  Steven Bosscher  <stevenb@suse.de>
2370         PR other/22202
2371         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
2372         spaces.
2373         (PARAM_SMS_DFA_HISTORY): Likewise.
2375 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
2377         PR middle-end/23150
2378         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
2379         (load_register_parameters): Call it.
2380         (check_sibcall_argument_overlap_1): Likewise.
2381         (store_one_arg): Likewise.
2383 2005-10-07  James E. Wilson  <wilson@specifix.com>
2385         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
2386         DImode not VECINT24 for operand 2.
2388         PR target/23644
2389         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
2390         -mtune-arch.
2392         PR target/24193
2393         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
2394         fr_spill): Use destination_operand for operand 0.
2396 2005-10-07  DJ Delorie  <dj@redhat.com>
2398         * varasm.c (output_constant): Limit error to expanding
2399         conversions.
2401 2005-10-07  Richard Guenther  <rguenther@suse.de>
2403         PR middle-end/24227
2404         * fold-const.c (fold_binary): Fix operand types during folding
2405         of X op (A, Y).  Evaluation order of the side-effects of
2406         X and A are frontend-defined, so ensure we honour that even for
2407         tcc_comparison class operands; eased by removing duplicate code.
2409 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
2411         * stor-layout.c (layout_type): Do not allow alignment of array
2412         elements to be greater than their size.
2414 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
2416         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
2417         host_xmake_file.
2418         (hppa*-*-linux*): Ditto.
2419         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
2420         * config/host-hpux.c: New.
2421         * config/x-hpux: New.
2422         * config/pa/x-hpux: Remove.
2423         * config/pa/x-linux: Remove.
2424         * config/pa/pa-host.c: Remove.
2426 2005-10-07  Jeff Law  <law@redhat.com>
2428         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
2429         determine whether or not to try and thread outgoing edges.
2431 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
2433         * config/rs6000/rs6000.md (eqsi_power): New.
2434         (neg_eq0si): Add TARGET_POWER to final condition.
2435         (neg_eqsi): Same.
2437 2005-10-06  Richard Henderson  <rth@redhat.com>
2439         * config/rs6000/rs6000.c: Revert last change.
2441 2005-10-06  Richard Henderson  <rth@redhat.com>
2443         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
2444         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
2446 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
2448         PR middle-end/22216
2449         PR middle-end/23651
2450         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
2451         out return_label and naked_return_label.
2453 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
2454         
2455         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
2456         change.
2458 2005-10-06  Richard Henderson  <rth@redhat.com>
2460         PR tree-opt/22237
2461         * tree-inline.c (declare_return_variable): Handle modify_dest not
2462         being a DECL.
2464 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
2465         
2466         Fix PR tree-optimization/22488
2467         * tree-ssa-structalias.c (check_for_overlaps): New function.
2468         (create_variable_info_for): Use it.
2470 2005-10-06  Richard Henderson  <rth@redhat.com>
2472         PR debug/24070
2473         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
2474         (dwarf2out_start_source_file): Print it.
2476 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
2478         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
2480 2005-10-06  Richard Henderson  <rth@redhat.com>
2482         PR 23706
2483         * mode-switching.c (optimize_mode_switching): Clear transp bit
2484         for block with incomming abnormal edges.
2486         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
2487         (fpscr_set_from_mem): Use them.
2488         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
2489         (fpscr postinc splitters): Rewrite as peephole2+split.
2491 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
2493         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
2494         (eq<mode>_compare): Same.
2496 2005-10-06  Richard Guenther  <rguenther@suse.de>
2498         PR tree-optimization/24238
2499         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
2501 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
2503         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
2504         here.  Use AC_PATH_PROG for environment variables instead of
2505         test -x.
2506         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
2507         objdump also.
2508         * configure: Regenerated.
2510 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
2512         PR target/23783
2513         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
2514         then force it into a register.
2515         (call_value): Likewise.
2517 2005-10-06  Richard Henderson  <rth@redhat.com>
2519         PR 24049
2520         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
2521         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
2522         under pass_vectorize.
2524 2005-10-05  Devang Patel  <dpatel@apple.com>
2526         PR Debug/23205
2527         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
2528         handling constants. Check NAMESPACE_DECL context for constants.
2529         
2530 2005-10-05  Eric Christopher  <echristo@apple.com>
2532         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
2534 2005-10-05  Richard Henderson  <rth@redhat.com>
2536         PR 23714
2537         * tree-cfg.c (mark_array_ref_addressable_1): New.
2538         (mark_array_ref_addressable): New.
2539         * tree-flow.h (mark_array_ref_addressable): Declare.
2540         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
2542 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
2544         PR middle-end/20606
2545         PR middle-end/24069
2546         * reload.c (subst_reloads): When adding a REG_LABEL to a
2547         jump instruction, also update JUMP_LABEL.
2549 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
2551         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
2552         * bb-reorder.c (copy_bb_p): Use it.
2553         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
2555 2005-10-05  Richard Henderson  <rth@redhat.com>
2557         PR target/23602
2558         * toplev.c (process_options): Warn about unsupported combinations
2559         of unwind tables and omit-frame-pointer.
2560         * config/i386/i386.c (override_options): Similarly.  Enable
2561         accumulate-outgoing-args if not explicitly disabled.
2563 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
2565         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
2566         Handle big endian vs. small endian.
2567         (vec_initv2sf): Handle big endian vs. small endian.
2568         (*vec_extractv2sf_1): Ditto.
2570 2005-10-05  Dale Johannesen  <dalej@apple.com>
2572         * convert.c (convert_to_real):  Don't convert
2573         (float)floor(double d) to floorf((float)d).
2575 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
2577         * config/arm/arm.md (insv): Use gen_int_mode in more places.
2579 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
2581         PR tree-optimization/18587
2582         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
2583         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
2584         build_vuses): Change to VEC type.
2585         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
2586         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
2587         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
2588         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
2589         (get_name_decl): New.  Return DECL_UID of base variable.
2590         (operand_build_cmp): New.  qsort comparison routine.
2591         (operand_build_sort_virtual): New.  Sort virtual build vector.
2592         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
2593         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
2594         (FINALIZE_BASE): Use get_name_decl.
2595         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
2596         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
2597         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
2598         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
2599         direct VEC_* manipulations.
2600         (build_ssa_operands): Call operand_build_sort_virtual.
2601         (copy_virtual_operand, create_ssa_artficial_load_stmt,
2602         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
2603         with direct VEC_* manipulations.
2604         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
2605         with direct VEC manipulations.
2607 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
2609         PR tree-optimization/21419
2610         PR tree-optimization/24146
2611         PR tree-optimization/24151
2613         * c-typeck.c (readonly_error): Handle USE being lv_asm.
2614         (build_asm_expr): Call it if outputs are read-only.
2615         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
2617 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
2618             Paolo Bonzini  <bonzini@gnu.org>
2620         PR target/23809
2622         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
2623         enable the instructions and not just the built-ins.
2624         * doc/invoke.texi (x86 Options): Likewise.
2626 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
2628         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
2630         * doc/invoke.texi (Option Summary): Correct spelling
2631         of -mmacosx-version-min.
2633 2005-10-04  Devang Patel  <dpatel@apple.com>
2635         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
2636         real types.
2638 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
2640         * tree-vect-transform.c (vect_create_epilog_for_reduction):
2641         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
2643 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
2645         * config/s390/s390.md ("TDSI","DP"): New mode macros.
2646         ("TE","tg"): New mode attributes.
2647         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
2648         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
2649         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
2650         dword_mode and one for GPRmode.
2652 2005-10-04  Ian Lance Taylor  <ian@airs.com>
2654         PR preprocessor/13726
2655         * c-ppoutput.c (cb_include): Add comments parameter, and print out
2656         any comments passed in.
2658 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
2660         * tree.c (annotate_with_file_line): Fix typo.
2662 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2664         PR ada/19382
2665         * builtins.c (fold_builtin_memcmp): When constructing the pointer
2666         type used to access data in the inlined length == 1 case, use
2667         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
2668         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
2670 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
2672         * config/i386/i386.h (TARGET_FISTTP): Enable also for
2673         TARGET_SSE3 and only for TARGET_80387.
2674         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
2675         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
2676         Do not depend on TARGET_80387.
2678 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
2680         * tree.c (last_annotated_node): Change type to location_t*.
2681         (annotate_with_file_line): Reflect the change of
2682         last_annotated_node type.
2684 2005-10-04  Richard Guenther  <rguenther@suse.de>
2686         PR c/23576
2687         * c-decl.c (grokdeclarator): Don't write to fields
2688         of error_mark_node.
2690 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
2692         PR middle-end/23125
2693         * c-decl.c (finish_decl): Use set_user_assembler_name even for
2694         register variables.
2695         * varasm.c (make_decl_rtl): If a register variable does not
2696         have a set user assmbler name, error out.
2697         Decode the asmspec is now name+1 bypassing '*'.
2699 2005-10-04  Steven Bosscher  <stevenb@suse.de>
2701         PR tree-optimization/23049
2702         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
2703         of a COND_EXPR is folded before calling fold on the whole rhs of a
2704         conditional assignment.
2705         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
2706         document that a COND_EXPR may appear there.
2708 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
2710         PR 23445
2711         * tree-vrp.c (extract_range_from_assert): If the new numeric
2712         range created out of the assertion contradicts the existing
2713         numeric range of the ASSERT_EXPR variable, make the new range
2714         varying.
2716 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2718         * config/sh/sh.c (sh_register_move_cost): Add case for moving
2719         from T_REGS to FP register class.
2721 2005-10-03  Richard Henderson  <rth@redhat.com>
2723         PR 24135
2724         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
2725         before creating a new one.
2727 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
2729         * config/rs6000/t-aix43 (LDFLAGS): New.
2730         * config/rs6000/t-aix52 (LDFLAGS): New.
2732 2005-10-03  Ian Lance Taylor  <ian@airs.com>
2734         * gimplify.c (find_single_pointer_decl_1): New static function.
2735         (find_single_pointer_decl): New static function.
2736         (internal_get_tmp_var): For a formal variable, set restrict base
2737         information if appropriate.
2738         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
2739         return it.
2740         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
2741         (DECL_GET_RESTRICT_BASE): Define.
2742         (SET_DECL_RESTRICT_BASE): Define.
2743         (decl_restrict_base_lookup): Declare.
2744         (decl_restrict_base_insert): Declare.
2745         (struct tree_decl_with_vis): Add based_on_restrict_p field.
2746         * tree.c (restrict_base_for_decl): New static variable.
2747         (init_ttree): Initialize restrict_base_for_decl.
2748         (copy_node_stat): Copy restrict base information.
2749         (decl_restrict_base_lookup): New function.
2750         (decl_restrict_base_insert): New function.
2751         (print_restrict_base_statistics): New static function.
2752         (dump_tree_statistics): Call print_restrict_base_statistics.
2754 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
2756         PR 24142
2757         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
2758         case of anti-ranges.
2760 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
2762         PR c/18851
2763         * c-typeck.c (tagged_tu_seen): Rename to ...
2764         (tagged_tu_seen_cache): this and add val field.
2765         (comptypes): Move functional to comptypes_internal
2766         and free tagged_tu_seen.
2767         (comptypes_internal): New function and call comptypes_internal
2768         instead of comptypes. Speed up by sibcalling
2769         tagged_types_tu_compatible_p.
2770         (alloc_tagged_tu_seen): New function
2771         (free_all_tagged_tu_seen_up_to): New function.
2772         (tagged_types_tu_compatible_p): Return the val of the seen two
2773         types.
2774         Add that the two types are the same to tagged_tu_seen_base
2775         if they are and call comptypes_internal instead of comptypes.
2776         <case UNION_TYPE>: Speed up common type where the fields are
2777         in the same order.
2778         (function_types_compatible_p): Call comptypes_internal instead of
2779         comptypes.
2780         (type_lists_compatible_p): Likewise.
2781         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
2783 2005-10-02  Matthias Klose  <doko@debian.org>
2785         * doc/invoke.texi: Fix typo and speling error.
2787 2005-10-01  Richard Henderson  <rth@redhat.com>
2789         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
2791 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
2793         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
2794         using --start-group and --end-group.
2796 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
2798         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
2799         FIXME note regarding quirky semantics.
2801 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
2803         PR 24141
2804         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
2805         non-null range as a last resort.
2807 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
2808             Diego Novillo  <dnovillo@redhat.com>
2810         PR 23604
2811         * tree-vrp.c (extract_range_from_assert): For !=
2812         assertions, only build an anti-range if LIMIT is a
2813         single-valued range.
2815 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
2817         * arm.md (movqi): On thumb when optimizing, handle loading from
2818         memory by describing this as taking a subreg of a zero-extended load
2819         into an SImode register.
2820         (movhi): Likewise.
2822 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
2824         * reload1.c (merge_assigned_reloads): Do not change any
2825         RELOAD_FOR_OUTPUT_ADDRESS reloads.
2827 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
2829         * Makefile.in (LIPO_FOR_TARGET): Define.
2830         (STRIP_FOR_TARGET): Define.
2832         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
2833         before creating new ones.  Do symlinks before creating the actual
2834         targets.
2836         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
2837         to work out which multilibs are actually being built.
2839 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
2841         * tree-vect-transform.c, config/ms1/ms1.md,
2842         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
2843         Follow spelling conventions.
2844         * doc/invoke.texi, doc/md.texi: Fix typos.
2846 2005-09-30  Andrew Macleod  <amacleod@redat.com>
2848         PR tree-optimization/21430
2849         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
2850         use operands, and set stmt pointer if need be.
2851         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
2852         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
2853         present.
2855 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2857         PR middle-end/24053
2858         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
2860 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
2862         * optabs.c (expand_binop): Initialize first_pass_p.
2864 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
2866         PR middle-end/24109
2867         * c-decl.c (c_write_global_declarations_1): If any
2868         wrapup_global_declaration_2 call returned true, restart the loop.
2870 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
2872         Fix PR tree-optimization/24117
2873         * tree-ssa-structalias.c (find_func_aliases): Strip nops
2874         before considering whether to use anyoffset.
2876 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
2878         Revert this patch:
2880         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
2882         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2883         to order operands.
2884         (swap_commutative_operands_with_target): New.
2886 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
2888         PR c/21419
2889         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
2890         read-only.
2892 2005-09-29  Steven Bosscher  <stevenb@suse.de>
2894         PR tree-optimization/23911
2895         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
2896         and IMAGPART_EXPR too.
2898 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
2900         PR 17886
2901         * expmed.c (expand_shift): Move logic to reverse rotation
2902         direction when  rotating by constants ...
2903         * optabs.c (expand_binop): ... here.
2904         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
2905         (ix86_rotrdi3): New pattern.
2906         (rotldi3): Handle 32-bit mode.
2907         (ix86_rotldi3): New pattern.
2909 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
2911         PR target/24102
2912         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
2913         check for numbers that need no bit twiddle.
2915 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
2917         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
2918         multilib to be built.
2920         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
2921         (stage1-start): Delete old libgcc and libunwind before moving
2922         anything into the stage directory.
2923         (stage2-start): Likewise.
2924         (stage3-start): Likewise.
2925         (stage4-start): Likewise.
2926         (stageprofile-start): Likewise.
2927         (stagefeedback-start): Likewise.
2928         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
2929         header in tm_file and CPU-specific t-darwin in tmake_file.
2930         (i[34567]86-*-darwin*): Don't change tm_file.
2931         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
2932         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
2933         shared library stub for target OS version.
2934         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
2935         (SHLIB_LINK): Don't make SHLIB_SOLINK.
2936         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
2937         (libgcc_s.%.dylib): New.
2938         (LIBGCC): Define.
2939         (install-darwin-libgcc-stubs): New.
2940         (INSTALL_LIBGCC): New append.
2941         * config/i386/darwin-libgcc.10.4.ver: New.
2942         * config/i386/darwin-libgcc.10.5.ver: New.
2943         * config/i386/t-darwin: New.
2944         * config/rs6000/darwin-libgcc.10.4.ver: New.
2945         * config/rs6000/darwin-libgcc.10.5.ver: New.
2946         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
2947         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
2949 2005-09-28  Paul Brook  <paul@codesourcery.com>
2951         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
2952         denormals.
2954 2005-09-28  Richard Guenther  <rguenther@suse.de>
2956         PR tree-optimization/23853
2957         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
2958         host_integerp to verify misalignment value.
2960 2005-09-28  Richard Henderson  <rth@redhat.com>
2962         * builtins.c (get_builtin_sync_mode): New.
2963         (expand_builtin_sync_operation): Pass in mode argument.
2964         (expand_builtin_compare_and_swap): Likewise.
2965         (expand_builtin_lock_test_and_set): Likewise.
2966         (expand_builtin_lock_release): Likewise.
2967         (expand_builtin): Update to match.
2969 2005-09-28  Nick Clifton  <nickc@redhat.com>
2971         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
2972         formatting.  Add check to PLUS case to ensure that the offset is
2973         within an acceptable range.
2975         * config/v850/v850.md (casesi): Disable the generation of the
2976         switch pattern as it is not being handled properly at the moment.
2978         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
2979         for when the high words are identical.
2981 2005-09-27  Richard Henderson  <rth@redhat.com>
2983         * pretty-print.c (pp_base_format): Fix typo for %>.
2985 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
2986             Devang Patel  <dpatel@apple.com>
2988         PR tree-optimization/23625
2989         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
2990         LABEL_EXPR, assertion check.
2992 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
2994         * optabs.c (no_conflict_move_test): Check if a result of a
2995         to-be-moved insn would be clobbered by an originally
2996         preceding insn.
2998 2005-09-27  Jeff Law  <law@redhat.com>
3000         * passes.c (init_optimization_passes): Replace copy propagation
3001         passes immediately after DOM with phi-only copy propagation
3002         pases.  Add phi-only copy propagation pass after first DOM pass.
3003         * tree-pass.h (pass_phi_only_copy_prop): Declare.
3004         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
3005         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
3006         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
3007         to init_copy_prop.  Callers updated.
3008         (do_phi_only_copy_prop): New function.
3009         (pass_phi_only_copy_prop): New pass descriptor.
3011 2005-09-27  Nick Clifton  <nickc@redhat.com>
3013         * libgcc2.c (__popcount_tab): Remove redundant prototype.
3015 2005-09-26  Jason Merrill  <jason@redhat.com>
3017         PR c++/13764
3018         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
3020         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
3022 2005-09-26  James E Wilson  <wilson@specifix.com>
3024         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
3025         copyright.  Add gcc copyright plus libgcc exception.
3026         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
3027         copyright.
3028         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
3030 2005-09-26  Jeff Law  <law@redhat.com>
3032         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
3033         about when to iterate.
3035 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
3037         PR target/23847
3038         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
3039         for __complex__ double in -mcpu=G5 mode.
3041 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
3043         PR tree-optimization/23942
3044         * Makefile.in (SCEV_H): Depends on PARAMS_H.
3045         * tree-scalar-evolution.c: Include params.h.
3046         (t_bool): New enum.
3047         (follow_ssa_edge, follow_ssa_edge_in_rhs,
3048         follow_ssa_edge_in_condition_phi_branch,
3049         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
3050         Change return type to t_bool.  Use a parameter to limit the size of
3051         trees that are walked before stopping
3052         (analyze_evolution_in_loop): Initialize the limit to 0.
3053         (follow_ssa_edge): Give up by returning t_dont_know if the limit
3054         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
3056 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
3058         PR middle-end/23831
3059         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
3060         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
3062 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
3064         * combine.c (make_extraction): Check for valid use of subreg.
3066 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
3068         PR target/24055
3069         * config/i386/i386.md ("*fistdi2_1"): New pattern.
3070         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
3071         ("fist<mode>2_with_temp"): Use only register operands.
3073 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
3075         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
3076         CALL_INSN_FUNCTION_USAGE.
3078 2005-09-26  Richard Guenther  <rguenther@suse.de>
3080         PR middle-end/15855
3081         * gcse.c: Include hashtab.h, define ldst entry hashtable.
3082         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
3083         (ldst_entry): Use the hashtable instead of list-walking.
3084         (find_rtx_in_ldst): Likewise.
3085         (free_ldst_entry): Free the hashtable.
3086         (compute_ld_motion_mems): Create the hashtable.
3087         (trim_ld_motion_mems): Remove entry from hashtable if
3088         removing it from list.
3089         (compute_store_table): Likewise^2.
3090         (store_motion): Free hashtable in case we did not see
3091         any stores.
3093 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
3095         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
3096         and arg1 if we are passing them to fold_build2.
3098 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
3100         PR 23828
3101         * config/i386/i386.c (ix86_function_regparm): Fix the test for
3102         a nested function.
3104 2005-09-25  Richard Henderson  <rth@redhat.com>
3106         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
3107         SYMBOL_REF_TLS_MODEL to be correct.
3109 2005-09-24  Richard Henderson  <rth@redhat.com>
3111         * ipa-type-escape.c (discover_unique_type): Remove dead code at
3112         end of function.  Reindent.
3114 2005-09-24  Ian Lance Taylor  <ian@airs.com>
3116         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
3117         NEGATE_EXPR/BIT_NOT_EXPR case.
3119 2005-09-24  Richard Henderson  <rth@redhat.com>
3121         * c-common.c (handle_mode_attribute): When not modifying in place,
3122         create subtypes for enumerations.
3123         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
3124         * gimplify.c (create_tmp_from_val): Likewise.
3126 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
3128         * config/i386/i386.md (*tls_global_dynamic_64,
3129         *tls_local_dynamic_base_64): Add missing mode to call.
3130         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
3132 2005-09-24  Jan Hubicka  <jh@suse.cz>
3134         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
3135         (cgraph_clone_node): Likewise.
3136         * cgraph.h (cgraph_clone_edge): Update prototype.
3137         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
3138         duplicated prototypes; add updating argument.
3139         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
3140         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
3141         updating profile.
3142         (cgraph_mark_inline_edge): Likewise.
3143         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
3144         (cgraph_flatten_node): Likewise.
3145         (cgraph_decide_recursive_inlining): Likewise.
3146         (cgraph_decide_inlining_of_small_function): Likewise.
3147         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3149 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
3150             Pete Steinmetz <steinmtz@us.ibm.com>
3152         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
3153         (rldic.): Set type to "compare".
3154         (rldicr.): Same.
3155         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
3156         mfjmpr for MFCTR/MFLR.
3157         (movdf_hardfloat64): Same.
3158         (movdf_softfloat64): Same.  Correct order of store and move types.
3159         (movti_string): Set type to store_ux/load_ux.
3160         (load_multiple): Set type to load_ux.
3161         (store_multiple): Set type to store_ux.
3162         (movmemsi): Set type to store_ux.
3163         (output_cbranch direct_return): Set type to jmpreg.
3164         (stmw): Set type to store_ux.
3165         (lmw): Set type to load_ux.
3166         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
3167         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
3168         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
3169         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
3170         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
3171         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
3172         (rios1-fpstore): Increase latency to 3.
3173         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
3174         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
3176 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
3177             Andrew Pinski  <pinskia@physics.uc.edu>
3179         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
3180         operand2 constraint to "b".
3181         (sync_<fetchop_name>di_internal): Same.
3182         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
3183         to "b".
3184         (sync_old_<fetchop_name>di_internal): Same.
3185         (sync_new_<fetchop_name>si_internal): Same.
3186         (sync_new_<fetchop_name>di_internal): Same.
3188 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
3190         PR middle-end/23991
3191         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
3192         case, define as macros.
3194         PR rtl-optimization/23837
3195         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
3196         clobber / clobber match between dest and p->first.
3198         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
3199         (no_conflict_move_test): Update comments.
3201 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
3203         * doc/install.texi: Update URL for Jacks.
3204         * doc/sourcebuild.texi: Likewise.
3206 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
3208         PR target/24007
3209         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
3210         registers when choosing register preferences.
3211         (movdf_hardfloat64): Same.
3213 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
3215         * expmed.c (expand_shift): Don't use the target of the rotate as
3216         target for the first expanded shift insn.
3217         * testsuite/gcc.dg/20050922-1.c: Testcase added.
3219 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
3221         PR tree-optimization/22438
3222         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
3223         preserved iv rhs rewriting specially.
3225 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
3227         * tree-data-ref.c (analyze_array_indexes): Only estimate when
3228         estimate_only  is true.
3229         * tree-flow.h (ref_contains_indirect_ref): New prototype.
3230         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
3231         tree-ssa-structalias.c
3232         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
3233         ref_contains_indirect_ref.
3234         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
3236 2005-09-21  DJ Delorie  <dj@redhat.com>
3238         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
3239         MASK_PTR_A0D0.
3240         (mn10300_return_in_memory): Support variable size types also.
3241         (mn10300_pass_by_reference): Likewise.
3242         (mn10300_function_value): New.
3243         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
3244         (FUNCTION_OUTGOING_VALUE): Likewise.
3245         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
3246         * doc/invoke.texi: Document it.
3248 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
3250         PR target/22585
3251         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
3252         force integer op1 into register for XFmode compares.
3254 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
3256         PR middle-end/23971
3257         * expmed.c (alg_code): Add alg_impossible.
3258         (alg_hash_entry): Add cost.
3259         (synth_mult): Record alg_impossible in the hash table if
3260         multiplication by a given integer is impossble within the
3261         limit.  Speed up using alg_impossible.
3263 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
3265         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
3266         argument.  Allow and set any offset if needs_anyoffset is passed
3267         in.
3268         (get_constraint_for): Add argument here too.
3269         Pass it down.
3270         (do_structure_copy): Pass NULL to get_constraint_for.
3271         (handle_ptr_arith): Ditto.
3272         (find_func_aliases): Ditto.
3274 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
3276         PR rtl-optimization/23898
3277         * output.h (get_attr_min_length): Declare.
3278         * final.c (get_attr_length_1): New function, broken out of:
3279         (get_attr_length).
3280         (get_attr_min_length): New function.
3281         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
3282         (duplicate_computed_gotos): Likewise.
3283         * genattr.c (insn_min_length): Generate declaration.
3284         * genattrtab.c (min_fn, min_attr_value): New functions.
3285         (make_length_attrs): Generate insn_min_length.
3287 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
3289         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
3291 2005-09-20  Richard Henderson  <rth@redhat.com>
3293         PR tree-optimization/24059
3294         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
3295         EXPAND_STACK_PARM.
3297 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
3299         * c.opt (fextended-identifiers): New.
3300         * c-opts.c (c_common_handle_option): Handle
3301         -fextended-identifiers.
3302         * doc/cpp.texi: Update documentation of extended identifiers.
3303         * doc/cppopts.texi (-fextended-identifiers): Document.
3305 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3307         PR tree-optimization/23929
3308         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
3309         if expr is NULL.
3311         PR tree-optimization/23818
3312         * tree-stdarg.c (execute_optimize_stdarg): Call
3313         calculate_dominance_info.
3315 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
3317         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
3318         (analyze_siv_subscript_cst_affine): Add weak SIV test.
3319         (compute_overlap_steps_for_affine_1_2): Use
3320         get_number_of_iters_for_loop.
3321         (analyze_subscript_affine_affine): Check whether difference is
3322         zero first.
3323         Use get_number_of_iters_for_loop.
3324         Check whether overlap occurs outside of bounds.
3325         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
3327 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
3329         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
3330         base register if possible.
3332 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
3334         PR tree-optimization/18463
3335         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
3336         converting it directly is not possible.
3337         (chrec_convert_aggressive): New function.
3338         * tree-chrec.h (chrec_convert_aggressive): Declare.
3339         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
3340         Fold chrec conversions aggressively if asked to.
3341         (instantiate_parameters): Modified because of changes in
3342         instantiate_parameters_1.
3344 2005-09-19  Richard Henderson  <rth@redhat.com>
3346         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
3347         (reduc_splus_v2df): New.
3349 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
3351         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
3352         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
3354 2005-09-19  Richard Henderson  <rth@redhat.com>
3356         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
3357         vcondu<SSEMODE12>.
3359 2005-09-19  Richard Henderson  <rth@redhat.com>
3361         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
3362         (ia64_expand_dot_prod_v8qi): New.
3363         * config/ia64/ia64-protos.h: Update.
3364         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
3365         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
3366         sdot_prodv8qi, sdot_prodv4hi): New.
3367         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
3369 2005-09-19  Richard Henderson  <rth@redhat.com>
3371         PR 23941
3372         * real.c (exact_real_truncate): Return false if the format cannot
3373         represent the number as a normal.
3375         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
3376         for a memory source.
3378 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
3380         * tree-ssa-operands.c (swap_tree_operands): Export.
3381         * tree.h (swap_tree_operands): Declare.
3382         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
3383         Call swap_tree_operands.
3385 2005-09-19  Richard Henderson  <rth@redhat.com>
3387         * tree-flow.h (merge_alias_info): Declare.
3388         * tree-ssa-copy.c (merge_alias_info): Export.
3389         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
3390         (vect_create_data_ref_ptr): Use create_iv directly.
3391         (vectorizable_load): Use correct types for integer constants.
3392         (vect_generate_tmps_on_preheader): Likewise.
3393         (vect_gen_niters_for_prolog_loop): Likewise.
3395 2005-09-19  Steven Bosscher  <stevenb@suse.de>
3397         PR rtl-optimization/23943
3398         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
3400 2005-09-18  Jan Hubicka  <jh@suse.cz>
3402         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
3404 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3406         * varasm.c (output_constant): Do not abort on conversions to union
3407         types between different sizes.
3409 2005-09-18  Richard Guenther  <rguenther@suse.de>
3411         PR middle-end/23944
3412         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
3413         fallback.
3415 2005-09-18  Paul Brook  <paul@codesourcery.com>
3417         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
3419 2005-09-17  Richard Henderson  <rth@redhat.com>
3421         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
3422         * tree-ssa-loop.c (pass_vect_dce): Remove.
3423         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
3424         of pass_vectorize.
3426 2005-09-17  Richard Henderson  <rth@redhat.com>
3428         * tree-pass.h (pass_vect_dce): Declare.
3429         * passes.c (init_optimization_passes): Add it.
3430         * tree-flow.h (tree_ssa_dce): Declare.
3431         * tree-ssa-dce.c (tree_ssa_dce): Export.
3432         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
3433         (gate_tree_vectorize): ... here.
3434         (pass_vect_dce): New.
3436 2005-09-17  Jan Hubicka  <jh@suse.cz>
3438         * except.c (struct eh_status): Turn region_array into vec.
3439         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
3440         convert_from_eh_region_ranges, find_exception_handler_labels,
3441         current_function_has_exception_handlers, assign_filter_values,
3442         build_post_landing_pads, dw2_build_landing_pads,
3443         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
3444         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
3445         foreach_reachable_handler, can_throw_internal_1,
3446         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
3447         region_array.
3448         (duplicate_eh_region_1): Update region_array.
3449         (duplicate_eh_regions): Resize region_array and avoid recomputing.
3451 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
3453         PR middle-end/22067
3454         * expmed.c (expand_mult): Substitute simple register for op0 when
3455         computing max_cost.
3457 2005-09-17  Richard Henderson  <rth@redhat.com>
3459         * expr.c (emit_move_via_integer): Add force argument, pass it on
3460         to emit_move_change_mode.  Update callers.
3461         (emit_move_complex): Pass true to new force argument.
3462         * function.c (expand_function_end): Move expand_eh_return call
3463         earlier.  Merge sub-word complex values into a pseudo before
3464         copying to the return hard register.
3466 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
3468         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
3469         between different sizes.
3471 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
3473         PR 23903
3475         * passes.c (init_optimization_passes): Register dump files for
3476         IPA passes first.
3478 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3480         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
3481         * config/s390/s390.c (s390_overlap_p): New function.
3482         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
3483         peephole2, "*xc" peephole2): Added overlap check to the peephole2
3484         condition.
3486 2005-09-16  Richard Guenther  <rguenther@suse.de>
3488         * ipa-pure-const.c (static_execute): Free auxiliar information.
3489         * ipa-type-escape.c (discover_unique_type): Free temporary key.
3490         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
3492 2005-09-15  DJ Delorie  <dj@redhat.com>
3494         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
3496 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
3498         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3499         to order operands.
3500         (swap_commutative_operands_with_target): New.
3502 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
3504         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
3505         parameter.
3506         Update callers.
3507         (estimate_iters_using_array): New function.
3508         * tree-data-ref.h (estimate_iters_using_array): Prototype
3509         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3510         Use estimate_iters_using_array instead of analyze_array.
3512 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3514         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
3515         as addressable.
3517 2005-09-15  Michael Matz  <matz@suse.de>
3519         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
3521 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
3523         PR tree-optimization/23835
3524         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
3525         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
3527 2005-09-14  Richard Henderson  <rth@redhat.com>
3529         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
3530         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
3532 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
3534         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
3535         in the ARRAY_TYPE case.
3537 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
3539         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
3541 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
3543         PR middle-end/22480
3544         * tree-vect-transform.c (vectorizable_operation): Return false for
3545         scalar shift operations and for vector shift operations with
3546         non-invariant shift arguments.  Use scalar tree operand op1 as
3547         a shift operand when vector shift insn pattern uses scalar shift
3548         operand.
3549         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
3551 2005-09-14  Olivier Hainque  <hainque@adacore.com>
3553         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
3554         value if it has side-effects.
3556 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
3558         PR target/22068
3559         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
3561 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
3563         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
3564         passed as NAME as if it were label at start of function code.
3566 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
3568         * config/sh/sh.md (*movv4sf_i): Add general register cases to
3569         the constraints.
3571 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
3573         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
3574         as early clobber.  Rewrite so the PIC register is not implicitly used.
3576 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3578         * tree.c (annotate_with_file_line): Compare line numbers before
3579         file names.
3581 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
3583         PR target/23816
3584         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
3585         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
3587 2005-09-13  Ian Lance Taylor  <ian@airs.com>
3589         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
3590         than a HOST_WIDEST_INT to gen_doloop_begin.
3592 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
3594         * tree-dfa.c (dump_variable): Guard against NULL annotations.
3596 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
3598         PR tree-optimize/23817
3599         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
3601 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
3603         PR target/23774
3604         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
3605         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
3606         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
3607         (restore_stack_nonlocal): Likewise.
3608         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
3610 2005-09-12  Ian Lance Taylor  <ian@airs.com>
3612         PR g++/7874
3613         * c.opt (ffriend-injection): New C++ option.
3614         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
3615         (C++ Dialect Options): Document -ffriend-injection.
3617 2005-09-12  Josh Conner  <jconner@apple.com>
3619         PR middle-end/23237
3620         * ipa-reference.c (static_execute): Don't mark variables in
3621         named sections TREE_READONLY.
3623 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
3625         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
3626         stack_tie.
3628 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
3630         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
3631         V_MUST_DEF instead of just the first_use_p.
3632         Don't mark the virtual variables for renaming on the statement which
3633         is being removed.
3634         (pass_dse): Remove TODO_update_ssa.
3636 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
3638         PR middle-end/23290
3639         * stor-layout.c (compute_record_mode): For records with a single
3640         field, actually check the field's mode size against the type size.
3642         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
3643         registers for TARGET_SHMEDIA.
3644         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
3645         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
3646         of GENERAL_REGS and FP_REGS.
3648 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
3650         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
3652 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
3654         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
3655         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
3656         are omitted.  Exclude stack_tie insn too.
3658 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
3660         PR rtl-optimization/23098
3661         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
3662         0.0f is easy.
3663         * config/rs6000/rs6000.md (movdf splitter): Use
3664         const_double_operand predicate for TARGET_POWERPC64.
3665         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
3666         SYMBOL_REF method to ABI_V4.
3668         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
3669         replace_equiv_address.
3670         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
3671         rs6000_sr_alias_set and MEM_NOTRAP.
3672         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
3674 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
3676         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
3677         handle CALL_EXPR again.
3679 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
3681         * arm/predicates.md (alignable_memory_operand): Delete.
3683 2005-09-10  Richard Henderson  <rth@redhat.com>
3685         PR debug/23806
3686         * dbxout.c (dbxout_expand_expr): New.
3687         (dbxout_symbol): Use it.
3689 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
3691         * arm.c (arm_gen_rotated_half_load): Delete.
3692         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
3693         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
3694         (thumb_set_return_address): Likewise.
3695         (thumb_load_double_from_address): Use adjust_address.
3696         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
3697         (extendhsisi2_mem, movhi_bytes): Use change_address.
3698         (movhi): Use widen_memory_access.
3699         (reload_out_df): Use replace_equiv_address.
3700         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
3702 2005-09-09  Richard Henderson  <rth@redhat.com>
3704         PR debug/20998
3705         * dbxout.c: Include expr.h.
3706         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
3707         (dbxout_symbol): Handle DECL_VALUE_EXPR.
3708         * Makefile.in (dbxout.o): Add EXPR_H.
3710 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
3712         PR tree-optimization/23509
3713         * tree-cfg.c (replace_uses_by): Use replace_exp.
3714         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
3715         pointers have name_mem_tag or type_mem_tag set.
3717 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
3719         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
3720         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
3721         of wrongly accessing operands.
3723 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
3725         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
3726         * tree-chrec.c: Include tree-scalar-evolution.h.
3727         (chrec_convert): Instantiate the base and step before calling
3728         scev_probably_wraps_p that would fail on parametric evolutions.
3729         Collect all the fails into a single section failed_to_convert,
3730         print a diagnostic, and return chrec_dont_know instead of calling
3731         fold_convert.
3732         * tree-scalar-evolution.c (loop_closed_phi_def): New.
3733         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
3734         phi nodes.
3735         (scev_const_prop): Don't replace the definition of a loop closed ssa
3736         phi node by itself, or by another loop closed ssa phi node.
3737         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
3738         that base and step are defined.
3740 2005-09-09  Richard Guenther  <rguenther@suse.de>
3742         PR c++/23624
3743         * fold-const.c (fold_ternary): Check truth_value_p before
3744         calling invert_truthvalue.
3746 2005-09-09  Nick Clifton  <nickc@redhat.com>
3748         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
3749         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
3750         dimension of these arrays.
3751         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
3752         these arrays.
3753         * longlong.h: Only provide a prototype for the __clz_tab[] array
3754         if this header has not been included from libgcc2.h.
3755         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
3756         defining own types.
3757         Provide prototypes for exported functions.
3758         Use the __clz_tab[] and __popcount_tab[] arrays provided by
3759         libgcc2.c.
3761 2005-09-08  Josh Conner  <jconner@apple.com>
3763         PR c++/21135
3764         PR c++/23180
3765         * expr.c (expand_expr_addr_expr_1): Don't invoke
3766         expand_simple_binop for EXPAND_INITIALIZER.
3768 2005-09-08  Richard Henderson  <rth@redhat.com>
3770         PR debug/23190
3771         * toplev.c (wrapup_global_declaration_1): Split out ...
3772         (wrapup_global_declaration_2): ... from ...
3773         (wrapup_global_declarations): ... here.  Return bool.
3774         (check_global_declaration_1): Split out ...
3775         (check_global_declarations): from here.
3776         (emit_debug_global_declarations): New.
3777         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
3778         check_global_declaration_1, emit_debug_global_declarations): Declare.
3779         * c-decl.c (c_write_global_declarations_1): Don't create a vector
3780         of decls.  Call wrapup_global_declaration_1,
3781         wrapup_global_declaration_2, check_global_declaration_1 directly.
3782         (c_write_global_declarations_2): New.
3783         (ext_block): New.
3784         (c_write_global_declarations): Call c_write_global_declarations_2.
3785         * langhooks.c (write_global_declarations): Call
3786         emit_debug_global_declarations.
3788         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
3789         remove decls that have DECL_RTL_SET_P.
3790         * passes.c (rest_of_decl_compilation): Invoke
3791         cgraph_varpool_finalize_decl for all but functions.
3793 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
3795         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
3796         the result of a conversion if the new min and max cannot be compared.
3798 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
3800         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
3801         (override_options): Setting s390_sr_alias_set removed.
3802         (save_fpr, save_gprs): Set alias set to vararg or frame.
3803         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
3804         s390_sr_alias_set with get_frame_alias_set ().
3805         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
3806         get_varargs_alias_set ().
3808 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
3810         PR objc/20574
3811         PR objc/19324
3812         * c-parser.c (c_parser_objc_method_definition): If the next
3813         token is not "{", error out and don't start the function.
3815 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
3817         * tree-vrp.c (extract_range_from_expr): Move the check for non
3818         nullness after the check for gimple invariant.
3820 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3822         * tree.c (host_integerp, tree_low_cst): Correct function comment.
3824 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3826         PR target/23747
3827         * config/m32r.md (movmemsi_internal): Canonicalize order of
3828         operands in PLUS component of template.
3830 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
3832         * reload1.c (fixup_eh_region_note): Remove assertion.
3833         (fixup_abnormal_edges): Reverted removal of call to
3834         find_many_sub_basic_blocks made on 2005-08-31.
3836 2005-09-07  Richard Henderson  <rth@redhat.com>
3838         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
3839         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
3840         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
3841         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
3842         rearrange for better packing.
3843         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
3844         (lookup_cfa_1): Remove inline marker.
3845         (cfa_equal_p): Split out of ...
3846         (def_cfa_1): ... here.  Use INVALID_REGNUM.
3847         (build_cfa_loc): Handle !cfa->indirect.
3848         (frame_pointer_cfa_offset): New.
3849         (dbx_reg_number): Assert register elimination performed; do
3850         leaf register remapping.
3851         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
3852         (eliminate_reg_to_offset): New.
3853         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
3854         for verifiably local stack frame addresses; re-base to CFA.
3855         (mem_loc_descriptor): Remove can_use_fbreg argument.
3856         (concat_loc_descriptor, loc_descriptor): Likewise.
3857         (containing_function_has_frame_base): Remove.
3858         (rtl_for_decl_location): Don't do register elimination or
3859         leaf register remapping here.
3860         (secname_for_decl): Split out from ..
3861         (add_location_or_const_value_attribute): ... here.
3862         (convert_cfa_to_loc_list): New.
3863         (compute_frame_pointer_to_cfa_displacement): New.
3864         (gen_subprogram_die): Use them.
3865         * tree.h (frame_base_decl): Remove.
3866         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
3867         (prologue_stack_adjust): Remove.
3868         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
3869         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
3870         (set_frame_base_location): Remove.
3871         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
3872         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
3873         (vt_add_function_parameters): Don't eliminate_regs.
3874         (vt_initialize): Don't create frame_base_decl.
3876 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3878         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
3879         version of GNU binutils for 4.x and later.
3881 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
3883         * ggc-page.c (ggc_push_context): Remove.
3884         (ggc_pop_context): Likewise.
3885         * ggc.h (ggc_push_context): Remove.
3886         (ggc_pop_context): Likewise.
3888 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
3890         PR target/8973
3891         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
3892         returning from an interrupt handler.
3894 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
3896         PR target/8972
3897         * config/arc/arc.c (output_shift): Add check for loop count when
3898         optimizing.
3900 2005-09-06  Steven Bosscher  <stevenb@suse.de>
3902         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
3903         form manually.
3904         (abs_replacement): Likewise.
3905         (pass_phiopt): Remove TODO_update_ssa.
3907 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
3909         PR c/23075
3910         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
3911         if "return with no value, in function returning non-void" warning
3912         has been issued.
3913         * tree-cfg.c (execute_warn_function_return): Don't look at
3914         RETURN_EXPRs with TREE_NO_WARNING set.
3916         PR target/22362
3917         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
3918         for internal functions doesn't use registers used by global registers
3919         variables.  Use fewer register parameters if there are global register
3920         variables.
3922 2005-09-06  Olivier Hainque  <hainque@adacore.com>
3923             Eric Botcazou  <ebotcazou@adacore.com>
3925         PR middle-end/14997
3926         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
3927         when we would be extracting outside its bit span (bitpos+bitsize
3928         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
3929         Ada unchecked conversions.
3931 2005-09-06  Steven Bosscher  <stevenb@suse.de>
3933         * tree-ssa-pre.c (try_look_through_load): New function.
3934         (compute_avail): Use it to try to look through loads for some
3935         more useful expressions.
3937 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
3939         * simplify-rtx.c (simplify_binary_operation_1): Correct the
3940         condition for detecting cases like (a&a) and (a^a).
3942 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
3944         * common.opt: Add option ftree-vect-loop-version.
3945         * params.def: Add --param vect-max-version-checks.
3946         * doc/invoke.texi: Document ftree-vect-loop-version and
3947         --param vect-max-version-checks.
3948         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
3949         may_misalign_stmts and defines for accessors.
3950         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
3951         LOOP_VINFO_MAY_MISALIGN_STMTS.
3952         (destroy_loop_vec_info): VEC_free for
3953         LOOP_VINFO_MAY_MISALIGN_STMTS.
3954         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
3955         Update documentation.
3956         (vect_update_misalignment_for_peel): New.
3957         (vect_enhance_data_refs_alignment): Update to choose loop
3958         peeling or loop versioning if appropriate for the (potentially)
3959         unaligned data references in the loop.
3960         (vect_analyze_data_refs_alignment): Remove call to
3961         vect_enhance_data_refs_alignment so the checks can be done
3962         earlier.
3963         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
3964         and move up call to vect_analyze_data_refs_alignment.
3965         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
3966         (vect_transform_loop): Add call to loop_version.
3968 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
3970         PR rtl-optimization/23098
3971         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
3972         * simplify-rtx.c (constant_pool_reference_p): New function.
3973         * rtl.h (constant_pool_reference_p): New prototype.
3974         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
3975         constant_pool_reference_p in condition and
3976         avoid_constant_pool_reference in preparation statements.
3978 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
3980         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
3981         STRICT_LOW_PART SETs.
3983 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
3985         PR middle-end/21460
3986         * except.c (sjlj_emit_function_enter): Find the function begin
3987         note even when it's not in first basic block.
3989 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
3991         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
3992         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
3993         * aclocal.m4: Regenerate.
3995 2005-09-05  DJ Delorie  <dj@redhat.com>
3997         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
3998         of macro.
4000 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
4002         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
4003         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
4004         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
4005         Follow spelling conventions.
4006         * doc/invoke.texi: Follow spelling conventions.
4008 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
4010         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
4011         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
4012         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
4014 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
4016         PR target/23683
4017         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
4018         (output_stack_adjust): Use gen_tmp_stack_mem.
4019         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
4020         (sh_set_return_address, sh_allocate_initial_value): Likewise.
4021         (sh_get_pr_initial_val): Likewise.
4022         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
4023         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
4024         * sh.md (divsi_inv_m0): Use gen_const_mem.
4025         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
4026         (movdf_i4+1): Use gen_tmp_stack_mem.
4027         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
4028         (fpu_switch+2): Likewise.
4029         (movv4sf_i, movv16sf_i): Use adjust_address.
4030         (symGOT_load): Set MEM_NOTRAP_P bit.
4032 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4034         PR target/23721
4035         * pa.c (emit_move_sequence): Fix typo in last change.
4037 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
4039         PR rtl-optimization/23454
4040         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
4041         is true.
4043 2005-09-03  Richard Henderson  <rth@redhat.com>
4044             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4046         PR middle-end/23671
4047         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
4048         gen_rtx_MEM.
4050 2005-09-02  Nicolas Pitre <nico@cam.org>
4052         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
4053         to bit_count to 32 bits.
4055 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
4057         PR c++/23167
4058         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
4059         generating synthetic loads from volatile lvalues.
4061 005-09-02  Nick Clifton  <nickc@redhat.com>
4063         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
4064         __ctzhi2, __clzhi2): New functions.
4066 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
4068         PR middle-end/23547
4069         * tree-nested.c (struct var_map_elt): Mark with GTY.
4070         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
4071         var_map_elt.
4072         (lookup_field_for_decl): Allocate new element in GC memory.
4073         (lookup_tramp_for_decl): Likewise.
4074         (convert_nl_goto_reference): Likewise
4075         (create_nesting_tree): Allocate info in GC memory. Likewise for
4076         info->var_map.
4077         (free_nesting_tree): Free with ggc_free instead of free.
4078         (root): New static variable.
4079         (lower_nested_functions): Remove root as local variable.  And zero out
4080         root at the end of the function.
4082 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
4084         PR rtl-optimization/20365
4085         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
4086         to short.  New member ix.
4087         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
4088         (simplify_plus_minus): Initialize ix members before calling qsort.
4090 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
4092         PR tree-optimization/23626
4093         * tree-cfg.c (replace_uses_by): Clean up eh info.
4095 2005-09-01  DJ Delorie  <dj@redhat.com>
4097         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
4098         fprintf.
4100 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
4102         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
4103         (rs6000_split_multireg_move): Use replace_equiv_address instead of
4104         gen_rtx_MEM.
4106 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4108         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
4109         do not issue warning for a variable definition following
4110         a declaration.
4112 2005-09-01  Richard Henderson  <rth@redhat.com>
4114         PR 23668
4115         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
4116         conversion to CONST_VECTOR.
4118 2005-09-01  Richard Henderson  <rth@redhat.com>
4120         PR 23676
4121         * reload1.c (reload_as_needed): Check !CALL_P before calling
4122         fixup_eh_region_note.
4123         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
4125 2005-09-01  DJ Delorie  <dj@redhat.com>
4127         * varasm.c (output_constant): Let the target resolve
4128         conversions of addresses to non-default pointer sizes.
4130 2005-09-01  Nicolas Pitre <nico@cam.org>
4132         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
4133         to alow matching ARM pre-indexed addressing mode.
4134         (arm_override_options): Remove now irrelevant comment.
4136 2005-09-01  Phil Edwards  <phil@codesourcery.com>
4138         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
4139         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
4140         * config/i386/vxworks.h:  Likewise.
4141         * config/i386/t-vxworksae:  New file, for VxWorks AE.
4142         * config/i386/vxworksae.h:  Likewise.
4144 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
4146         PR tree-optimization/23410
4147         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
4148         sequence is not wrapping during the first step.
4150 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
4152         PR debug/7241
4153         * dwarf2out.c (base_type_die): Compare char_type_node with
4154         TYPE_MAIN_VARIANT (type), not type.
4156 2005-09-01  Richard Guenther  <rguenther@suse.de>
4158         PR tree-optimization/15366
4159         * common.opt: Add -finline-functions-called-once.
4160         Put -fearly-inlining in alphabetically ordered place.
4161         * doc/invoke.texi: Document new option.
4162         * ipa-inline.c (cgraph_decide_inlining): Honour
4163         flag_inline_functions_called_once.
4165 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
4167         PR rtl-optimization/23478
4168         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
4169         (alloc_qty): Initialize it.
4170         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
4171         (combine_regs): Combine also n_throwing_calls_crossed fields.
4172         (find_free_reg): Don't attempt to caller-save pseudos crossing
4173         calls that might throw.
4174         * global.c (struct allocno): Add throwing_calls_crossed field.
4175         (global_alloc): Revert 2005-08-22 change.  Initialize
4176         throwing_calls_crossed.
4177         (find_reg): Don't attempt to caller-save pseudos crossing calls that
4178         might throw.
4180 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
4182         PR target/23649
4183         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
4184         (mask64_operand): Reinstate code prior to 2005-06-11 change.
4185         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
4186         (and64_2_operand): Tweak to use predicate.
4187         (and_operand): Adjust for mask_operand changes.
4188         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
4189         (print_operand): Likewise.
4190         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
4191         (mask64_1or2_operand): Delete.
4192         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
4193         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
4194         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
4195         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
4196         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
4197         (rotldi3_internal4): Likewise.
4198         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
4199         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
4200         (ashldi3_internal7): Likewise.
4201         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
4202         (ashldi3_internal, ashldi3_internal9 split): Likewise.
4203         (anddi3 split): Don't match mask64_operand.
4204         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
4205         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
4206         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
4207         't' splitter predicate.
4208         (movdi_internal64 + 2): Revert 2005-06-11 change.
4210 2005-08-31  DJ Delorie  <dj@redhat.com>
4212         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
4213         (m32c_asm_integer): Add support for 32 bit pointers.
4215 2005-08-31  Richard Henderson  <rth@redhat.com>
4217         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
4218         component-like references for setting MEM_NOTRAP_P.
4220         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
4221         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
4223 2005-08-31  Richard Henderson  <rth@redhat.com>
4225         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
4226         into a pseudo before applying gen_lowpart.
4228 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
4230         * doc/install.texi (Specific): Update cctools version required
4231         for full functionality.
4232         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
4233         linkers as -macosx_version_min.
4235 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
4237         PR target/21255
4238         * sh.c (print_operand, %R and %S): Add handling of floating point
4239         registers, memory, constants and invalid operands.
4241 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
4243         * ipa-pure-const.c: Change dump name.
4245 2005-08-31 Uros Bizjak <uros@kss-loka.si>
4247         PR target/23570
4248         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
4249         to "reg_or_0_operand".
4250         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
4252 2005-08-31  Dale Johannesen  <dalej@apple.com>
4254         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
4255         loops that count down.
4257 2005-08-31  Richard Henderson  <rth@redhat.com>
4259         PR rtl-opt/23601
4260         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
4261         (fixup_eh_region_note): New.
4262         (reload_as_needed): Call it.
4263         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
4264         don't call find_many_sub_basic_blocks; call verify_flow_info.
4265         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
4266         (keep_stack_depressed): Likewise.
4267         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
4269 2005-08-31  Richard Henderson  <rth@redhat.com>
4271         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
4272         fp return matching.
4274 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
4276         * expr.c (expand_expr_real_1): Compare size of address
4277         mode to target's address mode size in deciding expansion of
4278         the constant address.
4280 2005-08-31  Richard Guenther  <rguenther@suse.de>
4282         PR middle-end/23477
4283         * expr.c (all_zeros_p): New function.
4284         (expand_expr_real_1): Handle the case of an all-zero
4285         non-addressable constructor separately.
4287 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
4289         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
4290         arguments, adjust all callers.
4291         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
4293 2005-08-30  Richard Henderson  <rth@redhat.com>
4295         PR target/23630
4296         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
4297         whenever the mode sizes match.
4299 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
4301         * calls.c (load_register_parameters): Fix comment typo.
4302         * expr.c (emit_push_insn): Comment formatting.
4304 2005-08-30  Ian Lance Taylor  <ian@airs.com>
4306         * config/i386/x-cygwin (host-cygwin): Change dependency from
4307         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
4309 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
4311         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
4312         parts of 'vals'.
4314 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
4316         PR middle-end/23408
4317         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
4318         call to ggc_collect.
4320 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
4322         PR bootstrap/21268
4323         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
4324         beginning.  Remove $(INCLUDES) from all the rules, if following
4325         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
4327 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
4329         PR middle-end/23484
4330         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
4331         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
4332         not constant, but maxlen is, don't set len to maxlen, rather
4333         set maxlen to len if len is a constant.
4335 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
4337         PR tree-optimization/23475
4338         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
4339         and counts.
4341 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
4343         Fix PR middle-end/22455
4345         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
4346         Checksum only the parts of the tree that exist for the tree code.
4348 2005-08-28  Dale Johannesen  <dalej@apple.com>
4350         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
4352 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
4354         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
4356 2005-08-28  Richard Henderson  <rth@redhat.com>
4358         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
4359         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
4360         of char_type_node.
4362 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
4364         PR ada/23593
4365         * builtins.c (get_memory_rtx): Don't strip nops
4366         in between COMPONENT_REFs.
4368 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
4370         PR middle-end/23463
4371         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
4372         types.
4373         (gimplify_modify_expr): Check for zero sized types and gimplify the
4374         rhs and lhs as statements.
4376 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
4378         PR libgcj/23508
4379         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
4380         state for return address column of signal frames.
4382 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
4384         PR target/23539
4385         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
4386         bytes >= 2 not bytes == 2.
4387         (expand_block_move): Same.
4389 2005-08-27  Richard Guenther  <rguenther@suse.de>
4391         PR target/23575
4392         * config/i386/sse.md (sse2_movsd): Add missing closing
4393         braces.
4395 2005-08-27  Paul Brook  <paul@codesourcery.com>
4397         * genrecog.c (enum decision_type): Add DT_num_insns.
4398         (struct decision_test): Add u.num_insns.
4399         (add_to_sequence): Add DT_num_insns test.
4400         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
4401         (write_cond, debug_decision_2): Ditto.
4402         (change_state): Assume peep2_next_insn never fails.
4403         Remove "afterward" argument.
4404         (write afterward, write_tree): Update to match.
4405         * recog.c (peep2_current_count): New variable.
4406         (peep2_next_insn): Check it.
4407         (peephole2_optimize): Set peep2_current_count.
4408         * recog.h (peep2_current_count): Declare.
4410 2005-08-26  Josh Conner  <jconner@apple.com>
4412         PR middle-end/23584
4413         * ipa-pure-const.c (check_tree): Check for volatile-ness
4414         when considering a dereference.
4416 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
4418         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
4420 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
4422         PR rtl-optimization/23561
4423         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
4424         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
4425         at most LEN bytes long memory fits into the field.
4426         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
4427         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
4428         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
4430 2005-08-26  Richard Henderson  <rth@redhat.com>
4432         PR rtl-opt/23560
4433         * loop.c (biased_biv_may_wrap_p): New.
4434         (maybe_eliminate_biv_1): Use it to suppress non-equality
4435         comparison transformations.  Delete disabled code.
4437 2005-08-26  Ian Lance Taylor  <ian@airs.com>
4439         * combine.c (make_extraction): Avoid reference outside object.
4441 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
4443         * stor-layout.c (finalize_type_size): Restore behaviour for
4444         non-aggregate types to the status quo ante of the patch for
4445         pr 23467.  Document why it matters.
4447 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
4449         PR c/23506
4450         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
4451         array by one element, initialize the BT_LAST element with NULL.
4453 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
4455         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
4456         optimizing for size.
4457         (plus_eqsi): Same.
4458         (compare_plus_eqsi): Same.
4459         (plus_eqsi_compare): Same.
4460         (neg_eq0<mode>): Same.
4461         (neg_eq<mode>): Same.
4463         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
4464         PROCESSOR_POWER4.
4466 2005-08-26  Nick Clifton  <nickc@redhat.com>
4468         * config/v850/v850.c (ep_memory_operand): Return FALSE if
4469         TARGET_EP is not defined.
4470         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
4471         TARGET_EP is enabled.
4472         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
4473         * config/v850/v850.md (save_all_interrupt): Only use the EP
4474         register if TARGET_EP is defined.
4475         (restore_all_interrupt): Likewise.
4476         * config/v850/lib1funcs.asm: Update functions so that the EP
4477         register is only used if __EP__ is defined.
4479 2005-08-26  David Ung  <davidu@mips.com>
4481         * config/mips/mips.c (mips_expand_prologue): Handle case when
4482         generating for MIPS16 and the outgoing argument area is more than
4483         SMALL_OPERAND. Use the frame pointer as temporary to generate the
4484         add instruction.
4486 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
4488         * config/crx/crx.md: Make doloop_end pattern usage controllable
4489         via mloop-nesting=<max-nesting> command line switch. Make sure
4490         the combiner cannot use doloop_end_<mode> in an illegal way.
4491         * config/crx/crx.c: Use regs up to r6 for argument passing.
4492         Refine crx_address_cost (non cst4 displacements are expensive).
4493         * config/crx/crx.opt: Add switch for mloop-nesting=.
4495 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
4497         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
4498         (UNSPEC_MVST): New constant.
4500 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
4502         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
4503         Reject operands containing eliminable registers.
4504         * testsuite/gcc.dg/20050825-1.c: New testcase.
4506 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
4507             Jan Hubicka  <jh@suse.cz>
4509         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
4511 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
4513         PR tree-optimization/23546
4514         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
4515         and REAL_CST nodes.
4517 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
4519         * params.def (PARAM_MIN_SPEC_PROB): New.
4520         * sched-rgn.c (MIN_PROBABILITY): Delete.
4521         (compute_trg_info): Convert to PARAM_VALUE.
4522         * doc/invoke.texi (param): Document min-spec-prob.
4524 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
4526         * config/darwin.h: define __PIC__
4527         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
4528         TARGET_OS_CPP_BUILTINS macro.
4530 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
4532         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
4533         yesterday.
4535 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
4537         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
4538         to duplicate_block.
4539         * cfghooks.c (duplicate_block): Added position where to place
4540         new block as argument.
4541         * cfghooks.h (duplicate_block): Declaration changed.
4542         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
4543         duplicate_block.
4544         * cfglayout.h (copy_bbs): Declaration changed.
4545         * cfgloop.h (loop_version): Declaration changed.
4546         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
4547         position to copy_bbs.
4548         (loop_version): Pass position to duplicate_loop_to_header_edge.
4549         Add place_after argument and position new blocks according to
4550         it.
4551         * modulo-sched.c (sms_schedule): Pass place_after argument
4552         to loop_version.
4553         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
4554         * tree-cfg.c (split_edge_bb_loc): New function.
4555         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
4556         to determine position of new blocks.
4557         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
4558         to loop_version.
4559         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
4560         argument to duplicate_block.
4561         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4562         Pass position to copy_bbs.
4564 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
4566         * fold-const.c (ptr_difference_const): Use
4567         cst_and_fits_in_hwi instead of host_integerp.
4569 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
4571         * config/darwin.c (gen_pic_offset): New.
4572         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
4573         Use it.
4575 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
4577         PR tree-optimization/23486
4578         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
4580 2005-08-23  Phil Edwards  <phil@codesourcery.com>
4582         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
4583         remove use_collect2.
4584         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
4586         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
4587         configuration files to override the default value.
4589         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
4590         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
4591         * config/vx-common.h:  New file, split out from...
4592         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
4593         * config/vxworksae.h:  New file, for VxWorks AE.
4594         * config/vxworks.opt:  New file.
4595         * config/vxlib.c:  Update for VxWorks 6.
4597         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
4598         other MULTILIB_* variables appropriately.
4599         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
4600         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
4601         * config/rs6000/vxworks.h:  Update for VxWorks 6.
4602         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
4604 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
4606         PR target/20799
4607         * config/darwin.c (machopic_select_section): Remove the hack to
4608         mark "::operator new" and "::operator delete" for coalescing
4609         even though they are not weak.
4611 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
4613         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
4614         * configure: Regenerate.
4616 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
4618         PR middle-end/23517
4619         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
4620         between vectors.
4621         * convert.c (convert_to_integer, convert_to_vector): Likewise.
4622         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
4623         Likewise.
4625 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
4627         * config/rs6000/predicates.md (equality_operator): New.
4628         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
4629         comparison with a large constant.
4631 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
4633         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
4635 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
4637         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
4638         registers is even, and we have a hardware double precision fp,
4639         align the buffer.
4640         (sh_gimplify_va_arg_expr): For floating point arguments, consider
4641         size of current argument when checking if argument was passed in
4642         registers.
4644         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
4646         PR middle-end/23467
4647         * stor-layout.c (finalize_type_size): Dont override
4648         existing alignment with a smaller alignment from the mode.
4650 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
4652         * lambda-code.c (lambda_vector_lexico_pos): Moved...
4653         * lambda.h (lambda_vector_lexico_pos): ... here.
4654         * tree-data-ref.c (build_classic_dist_vector): Return false when
4655         the distance vector is lexicographically negative.
4657 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
4659         PR tree-optimization/23511
4660         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
4661         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
4663 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
4665         PR tree-optimization/22043
4666         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
4667         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
4668         If ALLOW_FLEXARR, handle types ending with flexible array member.
4669         Pass false as second argument to recursive count_type_elements calls.
4670         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
4671         argument to count_type_elements call.
4672         * tree-sra.c (decide_block_copy): Likewise.
4673         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
4674         for a constant-sized object, set cleared as well.  Pass true as
4675         second argument to count_type_elements call.
4677 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
4679         PR target/21571
4680         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
4681         from legitimate_small_data_p, and make global.  Update use.
4682         Remove forward declaration.
4683         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
4684         Declare.
4685         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
4687 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
4689         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
4690         of scratch intermediates.
4691         (eq<mode>_compare): Same.
4692         (neg_eq0<mode>): New.
4693         (neg_eq<mode>): Convert to define_insn_and_split.
4695 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
4697         PR target/23070
4698         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
4699         stdarg functions, set/clear the fp marker even when no variable
4700         args are passed.
4701         * config/rs6000/sysv4.opt (mprototype): Describe.
4703 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
4705         PR rtl-optimization/23478
4706         * regs.h (reg_info): Add throw_calls_crossed.
4707         (REG_N_THROWING_CALLS_CROSSED): Define.
4708         * flow.c (allocate_reg_life_data): Initialize
4709         REG_N_THROWING_CALLS_CROSSED.
4710         (propagate_one_insn, attempt_auto_inc): Update
4711         REG_N_THROWING_CALLS_CROSSED.
4712         * global.c (global_alloc): Don't allocate pseudos across
4713         calls that may throw.
4715 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
4717         PR c/18715
4718         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
4719         value is inbetween the range if we did not find an exact match.
4721 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
4723         * doc/invoke.texi (Option Summary): Add ms1 options.
4724         * doc/extend.texi: Document interrupt handler attribute for ms1.
4725         * doc/md.texi: Document ms1 constraints.
4726         * config.gcc: Add ms1-*-elf.
4727         * config/ms1/ms1.h: New.
4728         * config/ms1/ms1.c: New.
4729         * config/ms1/ms1.md: New.
4730         * config/ms1/ms1-protos.h: New.
4731         * config/ms1/ABI.txt: New.
4732         * config/ms1/crti.asm: New.
4733         * config/ms1/crtn.asm: New.
4734         * config/ms1/lib2extra-funcs.c: New.
4735         * config/ms1/t-ms1: New.
4736         * config/ms1/ms1.opt: New.
4738 2005-08-22 Ira Rosen <irar@il.ibm.com>
4740         * config/rs6000/altivec.md (xorv4sf3): New.
4741         (negv4sf2, neg<mode>2): Likewise.
4743 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4745         PR target/23485
4746         * config/ia64/ia64.md (divsi3): Check divide by zero.
4747         (udivsi3): Likewise.
4748         (divdi3): Likewise.
4749         (udivdi3): Likewise.
4751 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
4753         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
4754         up to elem_bitsize bits, not max_bitsize.
4756 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
4758         PR tree-optimization/23433
4759         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
4760         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
4762 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
4764         PR tree-optimization/23434
4765         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
4766         the iteration bound is not an INTEGER_CST.
4768 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
4770         * tree-vect-transform.c (get_initial_def_for_reduction): Set
4771         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
4772         NULL if need_epilog_adjust is false.
4773         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
4774         Case 3 always peels first itration, not just for PLUS case, and no need
4775         to use scalar_initial_def here. Create an epilog adjustment only if
4776         scalar_initial_def is not NULL.
4778         (vectorizable_reduction): Remove assert.
4780 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4782         PR target/23485
4783         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
4784         (__moddi3): Likewise.
4785         (__udivdi3): Likewise.
4786         (__umoddi3): Likewise.
4787         (__divsi3): Likewise.
4788         (__modsi3): Likewise.
4789         (__udivsi3): Likewise.
4790         (__umodsi3): Likewise.
4792 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
4794         * tree-pass.h (TDF_GRAPH): Define.
4795         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
4796         * passes.c (finish_optimization_passes): Only call
4797         finish_graph_dump_file if TDF_GRAPH is set.
4798         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
4799         NULL.  Set TDF_GRAPH bit.
4800         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
4802 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
4804         * arm.h (arm_stack_offsets): Add locals_base field.
4805         * arm.c (arm_get_frame_offsets): Compute it.
4806         (thumb_compute_initial_elimination offset): Make the Thumb frame
4807         pointer point to the base of the local variables.
4808         (thumb_expand_prologue): Update accordingly.
4809         (thumb_expand_epilogue): Likewise.
4811         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
4812         mode of clobbered scratch to DImode.  Handle a case that's known to
4813         need this.
4815 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
4817         * config/rs6000/rs6000.md (gt0<mode>): Delete.
4818         (gt0<mode>_compare): Delete.
4819         (neg_gt0<mode>): Delete.
4821 2005-08-19  Eric Christopher  <echristo@apple.com>
4823         * optabs.h: Change CTI_ to COI_.
4824         * optabs.c: Ditto.
4826 2005-08-19  James E Wilson  <wilson@specifix.com>
4828         * builtins.c (expand_builtin_return_addr): Set
4829         current_function_accesses_prior_frames when count != 0.  Use
4830         frame_pointer_rtx when count == 0.
4831         * function.h (struct function): Add accesses_prior_frames field.
4832         (current_function_accesses_prior_frames): Define.
4833         * reload1.c (init_elim_table): Check
4834         current_function_accesses_prior_frames.
4835         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
4837 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
4839         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
4840         indicator.  Return true if the flowgraph changed during
4841         cleanup.
4843 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
4845         PR 23476
4846         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
4847         conditional expression before testing its value.
4849 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
4851         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
4853 2005-08-19  Devang Patel  <dpatel@apple.com>
4855         PR tree-optimization/23048
4856         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
4857         third parameter. Check whether latch is dominated by exit
4858         block or not.
4859         (if_convertible_loop_p): Supply exit block itself to
4860         if_convertible_bb_p.
4862 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
4864         PR target/23473
4865         * arm.md (arm_load_pic_register): Change argument to the mask of
4866         saved registers.  Call thumb_find_work_register if we need a
4867         scratch register on Thumb.
4868         (arm_expand_prologue): Pass empty register set to
4869         arm_load_pic_register.
4870         (thumb_expand_prologue): Pass live_regs_mask directly to
4871         arm_load_pic_register.
4872         * arm-protos.h (arm_load_pic_register): Update prototype.
4874 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
4876         * sh.c (find_sole_member): New function.
4877         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
4878         if the record's alignment is larger than the size of its only member.
4880 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
4882         PR target/23436
4883         * arm.c (thumb_legitimize_reload_address): New function.
4884         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
4885         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
4887 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
4889         * config/crx/crx.c: Implement crx_decompose_address. Reject
4890         symbolic displacements since CRX register relative adressing
4891         mode can't handle unsigned 32-bit values as displacements.
4892         * config/crx/crx.h: Simplify definitions, remove redundant
4893         parenthesis and obsolete macros.
4894         * config/crx/crx.opt: Add new switch for debugging addresses.
4895         * config/crx/crx-protos.h: Add new declarations for above.
4897 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
4899         PR middle-end/20624
4900         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
4901         looking past it.
4903 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4905         * collect2.c (dup2): Delete.
4906         * configure.ac: Don't check for dup2.
4908         * config.in, configure: Regenerate.
4910 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
4912         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
4913         record with the type of its only member.
4915 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
4917         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
4918         define_insn_and_split.
4919         (plus_ltu<mode>_compare): Same.
4920         (gtu<mode>_compare): Same.
4921         (plus_gtu<mode>_compare): Same.
4923 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
4925         PR tree-optimization/22228
4926         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
4927         todo_flags_start.
4928         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
4929         are recorded in vect_vnames_to_rename for renaming.
4930         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
4931         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
4932         in vect_vnames_to_rename.
4933         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
4934         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
4936 2005-08-18  Jan Hubicka  <jh@suse.cz>
4938         PR c++/22034
4939         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
4940         info only for local statics, not for member variables.
4942 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4944         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
4946 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4948         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
4950 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
4952         PR middle-end/16045
4953         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
4955 2005-08-17  James E Wilson  <wilson@specifix.com>
4957         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
4958         array size check.
4960 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
4962         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
4963         (leu<mode>_compare): Same.
4964         (plus_leu<mode>): Same.
4965         (neg_leu<mode>): Same.
4966         (and_neg_leu<mode): Same.
4967         (ltu<mode>_compare): Same.
4968         (plus_ltu<mode>): Same.
4969         (geu<mode>): Same.
4970         (geu<mode>_compare): Same.
4971         (plus_geu<mode>): Same.
4972         (neg_geu<mode>): Same.
4973         (and_neg_geu<mode>): Same.
4974         (plus_gt<mode>): Same.
4975         (gtu<mode>_compare): Same.
4976         (plus_gtu<mode>): Same.
4978 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
4980         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
4981         Move call_table_data to end.  Delete spurious .text.
4982         (callt_save_all_interrupt): Fix comment typo.
4984 2005-08-17  James E Wilson  <wilson@specifix.com>
4985             Kevin Winchester  <winchester@amirix.com>
4987         PR target/21684
4988         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
4990 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
4992         PR target/23268
4993         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
4994         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
4996 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
4998         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
4999         record with the type of its only member if the modes don't match.
5001         * varasm.c (decode_reg_name): Skip empty additional register names.
5003 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
5005         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
5006         lsm_tmp_name_length): New.
5007         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
5008         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
5010 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5011             Andreas Krebbel  <krebbel1@de.ibm.com>
5013         * config.gcc: Added z9-109 switch.
5014         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
5015         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
5016         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
5017         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
5018         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
5019         for "z9_109" cpu attribute.
5020         * config/s390/s390.c (z9_109_cost): New processor cost structure.
5021         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
5022         (s390_handle_arch_option): Added z9-109 switch.
5023         (override_options): Set respective cost function for z9-109.
5024         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
5025         (legitimate_reload_constant_p): Accept extended immediates.
5026         (print_operand): Three new output modifiers added: k, m and o.
5027         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
5028         (s390_output_mi_thunk): Use extended immediate when possible.
5029         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
5030         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
5031         (CONSTRAINT_LEN): Added length of O constraint.
5032         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
5033         * config/s390/s390.md ("cpu"): New value z9_109 added.
5034         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
5035         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
5036         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
5037         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
5038         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
5039         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
5040         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
5041         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
5042         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
5043         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
5044         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
5045         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
5046         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
5047         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
5048         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
5049         immediates.
5050         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
5051         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
5052         insns for TARGET_EXTIMM.
5054 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
5056         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
5058 2005-08-17  Nick Clifton  <nickc@redhat.com>
5060         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
5061         Call default_encode_section_info.
5063 2005-08-17  Steven Bosscher  <stevenb@suse.de>
5065         PR tree-optimization/21574
5066         * tree-ssa-ccp.c (likely_value): If the right hand side is a
5067         constant, return CONSTANT.
5068         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
5069         (ccp_fold, visit_assignment): Likewise.
5070         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
5072 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
5074         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
5075         fold_buildN instead of buildN then fold_initializer or fold.
5076         (build_unary_op): Likewise.
5077         (build_binary_op): Likewise.
5078         * fold-const.c (fold_initializer): Remove.
5079         (fold_build1_initializer): New function.
5080         (fold_build2_initializer): New function.
5081         (fold_build3_initializer): New function.
5082         * tree.h (fold_initializer): Remove.
5083         (fold_build1_initializer): New function.
5084         (fold_build2_initializer): New function.
5085         (fold_build3_initializer): New function.
5087 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
5089         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
5090         (try_move_mult_to_index): Call fold_build2 instead of build2.
5091         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
5092         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
5093         fold_binary_to_constant.
5094         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
5095         fold (build.
5096         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
5097         check if A == gcd (A, B).  Remove TYPE argument.
5098         (analyze_offset) Use fold_build2 instead of fold (build.
5099         (create_data_ref): Likewise.
5100         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
5101         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
5102         then fold.
5104 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
5106         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
5107         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
5109 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
5111         PR tree-opt/23402
5112         * gimplify.c (zero_sized_type): New function.
5113         (gimplify_modify_expr_rhs): If we have a zero sized type,
5114         replace the statement with an empty statement.
5116 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5118         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
5119         fxsave.
5121 2005-08-16  Ian Lance Taylor  <ian@airs.com>
5123         * doc/tm.texi (Label Output): Correct typo.
5125 2005-08-16  Steven Bosscher  <stevenb@suse.de>
5127         PR target/23376
5128         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
5129         force_operand will work later on using have_insn_for.
5131 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5133         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
5135 2005-08-16  Ian Lance Taylor  <ian@airs.com>
5137         PR c++/23337
5138         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
5139         vector type, don't try to construct it element by element.  Add an
5140         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
5142 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5144         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
5146 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
5148         * doc/invoke.texi (Precompiled Headers): Document some more options
5149         which are known to be safe.
5151 2005-08-16  James E Wilson  <wilson@specifix.com>
5153         PR tree-optimization/21105
5154         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
5155         TREE_OVERFLOW check.
5157 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
5159         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
5160         (neg_ltu<mode>): Same.
5161         (gtu<mode>): Same.
5162         (neg_gtu<mode>): Same.
5164 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5166         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
5167         (fold_builtin_isdigit): Use fold_buildN.
5168         (build_function_call_expr): Likewise.
5169         * c-typeck.c (c_finish_loop): Likewise.
5171 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
5172             Richard Shann <rshann@superh.com>
5174         PR middle-end/20396:
5175         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
5177 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
5179         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
5181 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
5183         PR target/23355
5184         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
5185         arm_compure_save_reg0_reg12_mask to determine when the PIC register
5186         must be saved.
5188 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5190         PR middle-end/23369
5191         * fold-const.c (build_range_check): Disable optimization for function
5192         pointer expressions on targets that require function pointer
5193         canonicalization.
5195 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
5197         * simplify-rtx.c (simplify_const_relational_operation): When
5198         extracting arguments of a COMPARE, recompute the mode as well.
5200 2005-08-15  Ian Lance Taylor  <ian@airs.com>
5202         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
5204 2005-08-15  DJ Delorie  <dj@redhat.com>
5206         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
5207         the stack.
5208         (movsi_splittable): Allow, but split, moves to the stack.
5209         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
5210         stack.
5212 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5214         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
5215         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
5216         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
5218         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
5219         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
5220         Delete HOST_PTR_PRINTF.
5222         * configure, config.in: Regenerate.
5224 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
5226         * config/rs6000/rs6000.md (QHSI): New mode macro.
5227         (wd): Extend mode attr for QImode and HImode
5228         (dbits): New mode attr.
5229         (zero_extend<mode>di2): Convert to mode macro.
5231 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
5233         PR target/21841
5234         * doc/invoke.texi (-mgnu-ld): Update description.
5235         (-mhp-ld): Ditto.
5237 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
5239         PR 23391
5240         * Makefile.in (tree-chrec.o): Depends on real.h.
5241         * tree-chrec.c: Include real.h.
5242         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
5243         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
5244         * tree-scalar-evolution.c (add_to_evolution_1,
5245         interpret_rhs_modify_expr): Ditto.
5247 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
5249         PR 23386
5250         * tree-data-ref.c (estimate_niter_from_size_of_data): When
5251         step is negative compute the estimation from init downwards to zero.
5253 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
5255         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
5257 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
5259         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
5260         constraint.
5261         (legitimate_reload_constant_p): Fix handling of lliXX operands.
5262         Accept double-word constants that can be split.
5263         * config/s390/s390.md ("movti"): Use 'P' constraint.
5264         ("*movdi_31", "*movdf_31"): Likewise.
5266 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
5268         Fix PR tree-optimization/22615
5270         * tree-ssa-structalias.c (solution_set_add): Handle
5271         first_vi_for_offset returning NULL.
5272         (do_da_constraint): Ditto.
5273         (do_sd_constraint): Ditto.
5274         (do_ds_constraint): Ditto
5275         (find_func_aliases): Ditto.
5276         (build_constraint_graph): RHS is allowed be ANYTHING.
5277         (first_vi_for_offset): Return NULL if we couldn't find anything at
5278         the offset.
5280 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
5282         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
5283         over memory as first operand.
5285 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
5287         PR target/23360
5288         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
5289         available for setting it.
5291 2005-08-14  Ira Rosen  <irar@il.ibm.com>
5293         PR tree-optimization/23320
5294         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
5295         data-refs' types instead of base object nullness. Add check for
5296         pointer type data-refs before first location comparison. Remove
5297         assert.
5299 2005-08-14  Andreas Schwab  <schwab@suse.de>
5301         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
5303 2005-08-13  James E Wilson  <wilson@specifix.com>
5305         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
5306         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
5307         -fstack-protector-all, --param ssp-buffer-size): Document.
5308         (-Wvariadic-macros): Alphabetize.
5309         (-fsched-stalled-insns-dep): Add missing 'f'.
5311         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
5312         macros.
5314 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
5316         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
5317         or indirect address operand.
5318         (EXTRA_ADDRESS_CONSTRAINT): New.
5319         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
5321 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
5323         PR tree-optimization/22236
5324         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
5325         successors and predecessors.
5326         * tree-chrec.c (chrec_convert): Before converting, check that
5327         sequences don't wrap.
5328         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
5329         (analyze_array): Extern.
5330         (find_data_references_in_loop): Remove call to
5331         compute_estimated_nb_iterations.
5332         * tree-data-ref.h (analyze_array): Declared.
5333         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
5334         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
5335         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
5336         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
5337         condition.
5338         * tree-ssa-loop-ivcanon.c: Fix documentation.
5339         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
5340         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
5341         (infer_loop_bounds_from_undefined): New.
5342         (estimate_numbers_of_iterations_loop): Use
5343         infer_loop_bounds_from_undefined.
5344         (used_in_pointer_arithmetic_p): New.
5345         (scev_probably_wraps_p): Pass an extra parameter.  Call
5346         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
5347         (convert_step): Fix documentation.
5348         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
5349         Use initial_condition_in_loop_num and evolution_part_in_loop_num
5350         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
5351         scev_probably_wraps_p.
5353 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
5355         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
5356         (s390_register_info): Ignore clobbered_regs information for fixed
5357         registers, and only fixed registers.
5358         (s390_init_frame_layout): Remove redundant call.
5360 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
5362         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
5363         description of -Wold-style-casts.
5365 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5366             Jakub Jelinek  <jakub@redhat.com>
5368         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
5369         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
5370         * config/s390/s390.c (print_operand): New output modifier 'G' added.
5371         (get_thread_pointer): Renamed to s390_get_thread_pointer.
5372         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
5373         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
5374         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
5375         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
5376         ("stack_protect_set", "stack_protect_test"): New expanders.
5377         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
5378         "stack_protect_testdi"): New insn definitions.
5380 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5382         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
5384 2005-08-12  Paul Brook  <paul@codesourcery.com>
5386         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
5388 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5390         * config/s390/predicates.md (setmem_operand): New predicate.
5391         (shift_count_operand): Accept ANDs with special constants as
5392         operand.
5393         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
5394         with special constants.
5395         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
5396         shift_count_operand with setmem_operand.
5398 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5400         * config/s390/s390.c (s390_extract_part, s390_single_part):
5401         Type cast added.
5402         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
5403         (s390_output_mi_thunk): Don't use lg on 31 bit.
5404         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
5405         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
5407 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5409         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
5410         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
5411         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
5412         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
5413         with one of the new macros.
5415 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5417         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
5418         Don't set save_return_addr_p.
5419         (s390_register_info): Make clobbered_regs not depending on
5420         save_return_addr_p.
5422 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5424         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
5425         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
5427 2005-08-11  James E. Wilson  <wilson@specifix.com>
5429         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
5431 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
5433         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
5434         locations gathered by var-tracking in single entry loc_list
5435         over loc_descriptor_from_tree.
5437         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
5438         pass it down to loc_descriptor.
5439         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
5440         (containing_function_has_frame_base): Move earlier in the file.
5441         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
5442         instead of always assuming fbreg can't be used.
5444 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
5446         * config/rs6000/altivec.md: Change constraint "m" to "Z".
5447         * config/rs6000/predicates.md (indexed_or_indirect_operand):
5448         Accept address wrapped in AND for Altivec.
5449         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
5450         Strip AND wrapping offset address for Altivec.
5452 2005-08-11  Richard Henderson  <rth@redhat.com>
5454         PR middle-end/23312
5455         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
5456         before using TYPE_IS_SIZETYPE.
5458 2005-08-11  Richard Henderson  <rth@redhat.com>
5460         PR target/22225
5461         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
5462         insn types not present on ev4.
5463         (alphaev5_insn_pipe): Similarly.
5465 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
5467         PR target/23250
5468         * arm.c (arm_override_options): If the user has selected callee-super-
5469         interworking, then enable normal interworking.
5471 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5473         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
5474         redefinition.
5476 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
5478         * doc/rtl.texi: Fix two typos.
5480 2005-08-11  Richard Guenther  <rguenther@suse.de>
5482         PR target/23289
5483         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
5484         cases where we call to/from functions returning void.
5486 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
5488         PR c++/23225
5489         * tree.c (build_pointer_type_for_mode): Robustify.
5491 2005-08-10  James E Wilson  <wilson@specifix.com>
5493         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
5494         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
5496         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
5497         "cum->".
5499 2005-08-10  Eric Christopher  <echristo@apple.com>
5501         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
5502         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
5503         V2DFmode.
5505 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
5507         PR target/21887
5508         * config/darwin.c (machopic_indirect_data_reference): Use a new register
5509         for the high part when generating dynamic-no-pic code.
5511 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
5513         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
5514         (x86_64-*-linux*): Likewise.
5516         * config/i386/crtfastmath.c: New file.
5517         * config/i386/t-crtfm: Likewise.
5519         * config/i386/linux.h (ENDFILE_SPEC): New.
5520         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
5522         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
5523         crtfastmath.o.
5525 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
5527         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
5528         (vec_shl, vec_shr): Document new operations.
5529         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
5531 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
5533         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
5534         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
5535         change predicate to indexed_or_indirect_address.
5537 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
5539         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
5540         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
5541         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
5542         and __aeabi_uwrite8.
5543         * config/arm/unaligned-funcs.c: New file.
5544         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
5546 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
5548         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
5549         Add dump.
5550         * cfglayout.c (pass_insn_locators_initialize): Add dump.
5551         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
5552         Add dump.
5553         * except.c (pass_convert_to_eh_region_ranges): Add dump.
5554         * final.c (pass_shorten_branches): Add dump.
5555         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
5556         (pass_life): Rename dump.
5557         (rest_of_handle_flow2): Remove initial verify_flow_info.
5558         * function.c (pass_instantiate_virtual_regs): Add dump.
5559         * integrate.c (pass_initial_value_sets): Add dump.
5560         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
5561         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
5562         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
5563         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
5564         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
5565         gate_rtl_unrool_and_peel_loops): New.
5566         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
5567         rtl_doloop): Do not look at flags.
5568         * mode-switching.c (pass_mode_switching): Add dump.
5569         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
5570         pass_split_before_regstack): Add dump.
5571         * regmove.c (pass_stack_adjustments): Add dump.
5572         * tree-optimize.c (pass_fixup_cfg): Add dump.
5574 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5576         PR 23309
5577         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
5578         deciding which instruction sequence to use.
5580 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
5582         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
5583         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
5585 2005-08-09  Richard Guenther  <rguenther@suse.de>
5587         * c-common.c (builtin_function_2): Remove.
5588         (def_builtin_1): New function.
5589         (c_common_nodes_and_builtins): Use def_builtin_1 to
5590         build builtin functions.
5592 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
5594         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
5595         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
5596         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
5597         Visual DSP.
5599 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
5601         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
5602         fold_binary instead of fold_build2 since we don't care about the
5603         resulting tree.
5604         (loop_niter_by_eval): Likewise.
5605         (compare_trees): Likewise.
5606         (proved_non_wrapping_p): Likewise.
5608 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
5610         PR c/23161
5611         PR c/23165
5612         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
5613         if the if is really empty.
5615 2005-08-09  Steven Bosscher  <stevenb@suse.de>
5617         PR tree-optimization/23234
5618         * tree-ssa-math-opts.c (place_reciprocal): New enum.
5619         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
5620         argument of the new enum.
5621         (execute_cse_reciprocals): Add reciprocals for function arguments
5622         on the unique successor edge of the entry block.  Update other calls
5623         to execute_cse_reciprocals_1.
5625 2005-08-08  Richard Henderson  <rth@redhat.com>
5627         PR 22439
5628         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
5630 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
5632         * expr.c (write_complex_part): Return after handling MEM.
5634 2005-08-08  Josh Conner  <jconner@apple.com>
5636         PR rtl-optimization/23241
5637         * combine.c (simplify_comparison): Fix error in determining
5638         whether to lift a subreg from comparison.
5640 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
5642         PR target/18506
5643         * config/rs6000/altivec.md (vec_init<mode>): New.
5644         (vec_set<mode>): New.
5645         (vec_extract<mode>): New.
5646         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
5647         (rs6000_expand_vector_set): New.
5648         (rs6000_expand_vector_extract): New.
5649         (rs6000_legitimate_offset_address_p): Offset addresses are valid
5650         for Altivec modes before reload.
5651         (altivec_expand_vec_init_builtin): New.
5652         (get_element_number): New.
5653         (altivec_expand_vec_set_builtin): New.
5654         (altivec_expand_vec_ext_builtin): New.
5655         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
5656         builtins.
5657         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
5658         builtins.
5659         * config/rs6000/rs6000.h (rs6000_builtins): Add
5660         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
5661         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
5662         * config/rs6000/rs6000-protos.h: Declare new functions.
5664 2005-08-08  Jan Hubicka  <jh@suse.cz>
5666         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
5667         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
5668         * i386.md (movdi*): Use pic_32bit_operand.
5669         * predicates.md (pic_32bit_operand): New.
5671 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
5673         PR c++/21166
5674         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
5676 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
5678         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
5679         (test_for_singularity): Use fold_build2.
5681 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5683         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
5685 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
5687         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
5688         (COMMON_ASM_OP) Define.
5689         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
5690         (ix86_encode_section_info): Likewise.
5691         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
5692         SUBTARGET_ENCODE_SECTION_INFO.
5694 2005-08-06  Richard Henderson  <rth@redhat.com>
5696         PR 21894
5697         * tree-nested.c (convert_local_reference): Save and restore val_only
5698         around component_ref and friends.  Clear walk_subtrees by default.
5700 2005-08-06  Peter O'Gorman  <peter@pogma.com>
5702         PR 21366
5703         * gcc.c (process_command): Check the argument to -b has a dash.
5704         * doc/invoke.texi: Update -b and -V docs.
5706 2005-08-06  James E Wilson  <wilson@specifix.com>
5708         * config/mips/cross64.h, config/mips/t-cross64: Delete.
5710 2005-08-06  Michael Matz  <matz@suse.de>
5712         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
5713         member only if only one insn is associated with the value.
5715 2005-08-06  Nick Clifton  <nickc@redhat.com>
5717         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
5718         New define.
5719         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
5720         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
5721         Check symbol flags instead of symbol name mangling.
5722         (xstormy16_asm_output_aligned_common): Likewise.  Also
5723         simplify code since the bss100_section cass is the only case
5724         where the below100 code will be triggered.
5725         (xstormy16_encode_section_info): Encode below100 attribute
5726         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
5727         the name.
5728         (xstormy16_strip_name_encoding): Delete - this function is no
5729         longer needed.
5730         (TARGET_STRIP_NAME_ENCODING): Undefine.
5731         * config/stormy16/stormy16-protos.h: Delete prototype for
5732         xstormy16_strip_name_encoding.
5734 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
5736         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
5737         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
5738         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
5739         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
5740         config/alpha/predicates.md, config/arc/arc.h,
5741         config/arm/arm.h, config/arm/ieee754-df.S,
5742         config/arm/ieee754-sf.S, config/bfin/bfin.c,
5743         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
5744         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
5745         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
5746         config/m68hc11/m68hc11.h, config/mips/mips.c,
5747         config/mips/mips.h, config/mips/openbsd.h,
5748         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
5749         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
5750         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
5751         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
5752         config/sparc/linux.h, config/sparc/linux64.h,
5753         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
5754         doc/extend.texi, doc/gcov.texi, doc/install.texi,
5755         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
5756         typos.  Follow spelling conventions.
5758 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
5760         PR c/23113
5761         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
5762         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
5763         specially.  Check for side effects only for COND_EXPR.
5764         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
5765         return with TREE_NO_WARNING.
5767 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
5769         PR rtl-optimization/23233
5770         * loop.c (combine_movables): Require the modes to be the same.
5771         (move_movables): Remove handling of cases where the replacement
5772         had a different mode to the original.
5774 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
5776         PR tree-optimization/23128
5777         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
5778         subtraction wrap, and set TREE_OVERFLOW if they do.
5780 2005-08-05  Richard Henderson  <rth@redhat.com>
5782         PR 21728
5783         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
5784         FORCED_LABEL labels.
5786 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
5788         PR middle-end/23135
5789         * reload.c (find_reloads_subreg_address): Pass down TYPE
5790         unchanged.  Change all callers except find_reloads_toplev.
5792 2005-08-05  Michael Matz  <matz@suse.de>
5794         * genattrtab.c (current_alternative_string): Remove.
5795         (SIMPLIFY_ALTERNATIVE): Ditto.
5796         (attr_alt_bit_p): Ditto.
5797         (alternative_name): Make const char *.
5798         (evaluate_eq_attr): Remove use of above things.
5799         (simplify_test_exp): Ditto.
5800         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
5801         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
5803 2005-08-04  James E Wilson  <wilson@specifix.com>
5805         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
5806         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
5807         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
5808         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
5809         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
5811 2005-08-04  Richard Henderson  <rth@redhat.com>
5813         PR 21529
5814         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
5815         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
5816         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
5817         if we'd have to instantiate too many members.
5819 2005-08-04  Richard Henderson  <rth@redhat.com>
5821         PR 21291
5822         * tree-outof-ssa.c (coalesce_asm_operands): New.
5823         (coalesce_ssa_name): Use it.  Split out ...
5824         (coalesce_phi_operands, coalesce_result_decls): ... these.
5826 2005-08-04  Paul Brook  <paul@codesourcery.com>
5828         * read-rtl.c (read_quoted_string): Break if EOF.
5830 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
5832         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
5833         (fold_build2): Likewise.
5834         (fold_build3): Likewise.
5835         (fold_build1_stat): New function prototype.
5836         (fold_build2_stat): Likewise.
5837         (fold_build3_stat): Likewise.
5838         * fold-const.c (fold_build1): Rename to ..
5839         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
5840         through to build1_stat.
5841         (fold_build2): Rename to ..
5842         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
5843         through to build2_stat.
5844         (fold_build3): Rename to ..
5845         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
5846         through to build3_stat.
5848 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
5849             Ian Lance Taylor  <ian@airs.com>
5851         * function.c (assign_stack_local_1): Do not correct stack slot
5852         address if allocation size is smaller than mode size.
5854 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
5856         PR 22037
5857         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
5858         (tree_merge_blocks): Propagate anything allowed by
5859         may_propagate_copy.
5860         Clarify documentation.
5861         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
5862         SSA form, schedule an update if necessary.
5864 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
5866         * doc/install.texi (Binaries): Remove broken link to
5867         Sinix/Reliant Unix binaries.
5869 2005-08-03  Richard Henderson  <rth@redhat.com>
5871         PR 23221
5872         * function.c (stack_protect_epilogue): Export.
5873         * tree.h (stack_protect_epilogue): Declare.
5874         * calls.c (expand_call): Call it.
5876 2005-08-03  Eric Christopher  <echristo@apple.com>
5878         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
5879         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
5880         spec.
5882 2005-08-04  Jan Hubicka  <jh@suse.cz>
5884         * profile.c (branch_prob): Split edges with goto locus on them
5885         to get proper line counts.
5886         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
5888 2005-08-03  Paul Brook  <paul@codesourcery.com>
5890         * function.c (assign_parms): Round current_function_args_size
5891         to PARM_BOUNDARY, not STACK_BOUNDARY.
5893 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
5895         * config/i386/i386.c (x86_elf_aligned_common)
5896         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
5898 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
5900         PR tree-optimization/23157
5901         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
5902         before emitting them.
5904 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5906         PR tree-optimization/19899
5907         * Makefile.in (tree-scalar-evolution.o): Add real.h.
5908         * tree-scalar-evolution.c: Include real.h.
5909         (add_to_evolution): Build constant -1 of correct type.
5911 2005-08-03  Jan Hubicka  <jh@suse.cz>
5913         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
5914         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
5915         profile updating for complette unrolling.
5916         * loop-unroll.c (peel_loop_completely): Use it.
5917         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5918         (tree_unroll_loops_completely): Disable code growing unrolling of cold
5919         loops.
5921 2005-08-03  Paul Brook  <paul@codesourcery.com>
5923         * combine.c (can_change_dest_mode): New function.
5924         (try_combine, simplify_set): Use it.
5926 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
5928         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
5929         TFmode to BLKmode.
5931 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
5933         * doc/install.texi (Specific): Adjust link to openavr.org.
5934         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
5935         (Binaries): Adjust HP-UX Porting Center link.
5936         (Binaries): Adjust Free Software Foundation ordering link.
5938 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
5940         * convert.c (convert_to_integer): Use fold_build1 instead of
5941         build1 when converting an integer to an integer.
5943 2005-08-02  Richard Henderson  <rth@redhat.com>
5945         * combine.c (combine_instructions): Don't use reg_equal/equiv
5946         results if the mode doesn't match.
5948 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
5950         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
5951         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
5953 2005-08-02  Richard Henderson  <rth@redhat.com>
5955         PR 23196
5956         * explow.c (memory_address): Remove special-case for
5957         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
5959 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
5961         PR 23164
5962         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
5963         number of calls to cleanup_tree_cfg_1.
5965 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
5967         * doc/invoke.texi: document file extensions .F90 and .F95
5969 2005-08-02  Richard Guenther  <rguenther@suse.de>
5971         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
5972         positive if its first argument is positive.
5974 2005-08-02  Richard Guenther  <rguenther@suse.de>
5976         PR tree-optimization/23177
5977         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
5978         on TMR_TAG.
5980 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
5982         PR tree-optimization/23129
5983         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
5984         varying for divisions with anti-ranges.
5986 2005-08-02  Jan Hubicka  <jh@suse.cz>
5988         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
5989         * tree-ssa-threadupdate.c (thread_block): Add it here.
5991 2005-08-01  James E Wilson  <wilson@specifix.com>
5993         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
5994         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
5995         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
5996         New.
5997         * config/mips/predicates.md (const_call_insn_operand): Add check for
5998         SYMBOL_REF_LONG_CALL_P.
5999         * doc/extend.texi (long_call): Document the new attribute.
6001 2005-08-01  Ian Lance Taylor  <ian@airs.com>
6002             Richard Henderson  <rth@redhat.com>
6004         * Makefile.in (RTL_BASE_H): Add real.h.
6005         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
6006         instead of memcpy.
6007         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
6008         directly.
6009         * rtl.c (rtl_check_failed_code_mode): New.
6010         * rtl.h (struct rtx_def): Add u.rv.
6011         (XCMWINT, XCNMPRV): New.
6012         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
6013         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
6015 2005-08-01  Richard Henderson  <rth@redhat.com>
6017         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
6018         with auto-inc codes.
6020         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
6022 2005-08-01  Jan Hubicka  <jh@suse.cz>
6024         * i386-protos.h (asm_preferred_eh_data_format): Declare.
6025         * i386.c: Include dwarf2.h
6026         (asm_preferred_eh_data_format): New.
6027         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
6029 2005-08-01  Ian Lance Taylor  <ian@airs.com>
6031         * config/host-linux.c (linux_gt_pch_get_address): Add new name
6032         randomize_va_space for virtual address randomization control.
6034 2005-08-01  Steven Bosscher  <stevenb@suse.de>
6036         * common.opt (flag_ipa_cp): Put in right place to maintain
6037         alphabetic sort.
6039 2005-08-01  Jan Hubicka  <jh@suse.cz>
6041         * profile.c (compute_value_histograms): Fix thinko.
6042         * value-prof.c: Include toplev.h
6043         (check_counter): New function.
6044         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
6045         tree_mod_subtract_transform): Add sanity check.
6047 2005-08-01  Richard Guenther  <rguenther@suse.de>
6049         PR tree-optimization/23133
6050         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
6051         current functions parameter decls to find defs to cse
6052         reciprocals of.
6054 2005-08-01  Richard Guenther  <rguenther@suse.de>
6056         PR tree-optimization/23109
6057         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
6058         If trapping math is in effect, use post-dominator information
6059         to check if we'd in any case reach a trapping point before
6060         doing the reciprocal insertion.
6061         (execute_cse_reciprocals): Compute post-dominators, if necessary.
6062         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
6063         expressions are invariant only if trapping math is not in effect.
6065 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
6067         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
6068         cgraph_function_versioning): New declarations.
6069         * cgraphunit.c: Add include to ipa-prop.h.
6070         (update_call_expr, cgraph_copy_node_for_versioning,
6071         cgraph_function_versioning): New functions.
6072         * integrate.c (copy_decl_for_inlining): Remove.
6073         * ipa-prop.h (ipa_replace_map): New struct.
6074         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
6075         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
6076         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
6077         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
6078         ipcp_iterate_stage, ipcp_method_scale_print,
6079         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
6080         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
6081         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
6082         ipcp_update_bb_counts, ipcp_update_profiling,
6083         ipcp_update_edges_counts): New functions.
6084         (ipcp_method_cval_init): Remove restriction regarding local methods.
6085         (ipcp_init_stage): Add ipcp_method_compute_scale.
6086         (ipcp_insert_stage): Add versioning.
6087         (ipcp_structures_print): Add ipcp_method_scale_print.
6088         (ipcp_driver): Dump profiling info.
6089         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
6090         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
6091         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
6092         (struct inline_data): Add versioning_p, ipa_info, new fields.
6093         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
6094         declare_return_variable): Replace calls to copy_decl_for_inlining with
6095         copy_decl_for_dup.
6096         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
6097         versioning support.
6098         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
6099         Add argument VERSIONING.
6100         (copy_arguments_for_versioning, copy_static_chain,
6101         function_versionable_p, tree_versionable_function_p,
6102         tree_function_versioning, replace_ref_tree): New functions.
6103         * tree-inline.h: Include varray.h.
6104         (tree_versionable_function_p,  tree_function_versioning,
6105         tree copy_decl_for_dup): New declarations.
6107 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
6109         * ipa-cp.c: New file. Contains IPCP specific functionality.
6110         * ipa-prop.h: New file. Contains structures/definitions that can be
6111         used by several interprocedural data flow optimizations (and also IPCP).
6112         * ipa-prop.c: New file.
6113         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
6114         * common.opt: Add ipa-cp flag.
6115         * timevar.def: Add IPCP optimization.
6116         * tree-optimize.c (init_tree_optimization_passes): Schedule
6117         pass_ipa_cp.
6118         * tree-pass.h (pass_ipa_cp): Declare.
6120 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
6122         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
6123         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
6124         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
6125         config/i386/i386.c, config/mips/mips.h,
6126         config/rs6000/rs6000.h, config/sh/sh.c,
6127         config/stormy16/stormy16.c: Fix comment typos.
6129 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
6131         PR c/22311
6132         * c-typeck.c (build_binary_op): Use common_type wrapper on
6133         shortened types.
6134         (common_type): Update comment.
6136 2005-07-31  Steven Bosscher  <stevenb@suse.de>
6138         PR target/23095
6139         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
6140         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
6141         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
6143 2005-07-31  Jan Hubicka  <jh@suse.cz>
6145         * pretty-print.h (pp_widest_integer): New macro.
6146         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
6147         counts.
6149 2005-07-31  Jan Hubicka  <jh@suse.cz>
6151         * output.h (enum section_category): Export from varasm.c
6152         (categorize_decl_for_section): Likewise.
6153         * varasm.c (enum section_category): Kill.
6154         (categorize_decl_for_section): Make global.
6155         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
6156         Declare.
6157         * i386.c (ix86_section_threshold): New static variable.
6158         (ix86_in_large_data_p, ix86_encode_section_info,
6159         x86_64_elf_unique_section,
6160         x86_64_elf_select_section): New functions.
6161         (TARGET_ENCODE_SECTION_INFO): Define
6162         (override_options): Enable medium model for PIC.
6163         (ix86_expand_prologue): Expand gen_set_got_rex64.
6164         (legitimate_constant_p): Handle new UNSPECs.
6165         (legitimate_pic_address_disp_p): Likewise.
6166         (legitimize_pic_address): Lower MEDIUM model addressing.
6167         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
6168         (enum cmodel): Add MEDIUM_PIC.
6169         (SYMBOL_REF_FAR_ADDR_P): New macro.
6170         (SYMBOL_FLAG_FAR_ADDR): New flag.
6171         * i386.md (movdi): Support medium model.
6172         (set_got_rex64): New pattern.
6173         * i386.opt (mlarge-data-threshold): New flag.
6174         * predicates.md (zext_operand/sext_operand): Deal with medium model.
6175         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
6176         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
6177         TARGET_ASM_UNIQUE_SECTION): New.
6179         * invoke.texi (-mlarge_data_threshold): Document
6181 2005-07-31  Jan Hubicka  <jh@suse.cz>
6183         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
6184         (coalesce_vars): Likewise.
6185         * tree-ssa-live.c (coalesce_cost): New.
6186         (build_tree_conflict_graph): Use coalesce_cost.
6187         * tree-ssa-live.h (coalesce_cost): Declare.
6189 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
6191         * arm.md (all peepholes for post-increment operations): Delete.
6192         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
6193         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
6194         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
6195         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
6196         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
6198 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
6200         * fold-const.c (tree_expr_nonnegative_p): Always return true for
6201         non-integral types.
6203 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
6205         PR target/22582
6206         * doc/invoke.texi: Document -rdynamic.
6208 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
6210         PR c/23143
6211         * c-parser.c (c_parser_parms_list_declarator): Call
6212         mark_forward_parm_decls.
6213         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
6214         decls with visibility structure.
6216 2005-07-30  Paul Brook  <paul@codesourcery.com>
6218         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
6220 2005-07-30  Paul Brook  <paul@codesourcery.com>
6222         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6223         prototype.
6224         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
6225         value for mode.
6226         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
6228 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6230         PR c/529
6231         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
6232         nested function declarators.
6233         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
6234         (grokparms): Call warn_if_shadowing for parameters used within the
6235         parameter list.
6236         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
6237         not used within the parameter list.
6238         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
6240 2005-07-30  Jan Hubicka  <jh@suse.cz>
6242         * expr.c (expand_expr_real_1): Do not load mem targets into register.
6243         * i386.c (ix86_fixup_binary_operands): Likewise.
6244         (ix86_expand_unary_operator): Likewise.
6245         (ix86_expand_fp_absneg_operator): Likewise.
6246         * optabs.c (expand_vec_cond_expr): Validate dest.
6248 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6250         PR c/21720
6251         * real.c (real_from_string): Also set last bit if there is a
6252         nonzero hex digit beyond GCC's internal precision after ".".
6254 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
6256         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
6257         define_constants.  Change duplicate values to unassigned numbers.
6258         Change UNSPEC_SUBS to UNSPEC_VSUBS.
6259         (*altivec_vspltsf): New.
6260         (altivec_vperm_v4sf): Delete.
6261         (altivec_vperm_<mode>): Use mode macro V.
6262         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
6263         (altivec_predicate_v4sf): Delete.
6264         (altivec_predicate_<mode>): Use mode macro V.
6265         (*altivec_lvesfx): New.
6266         (*altivec_stvesfx): New.
6267         (vec_realign_load_v4sf): Delete.
6268         (vec_realign_load_<mode>): Use mode macro V.
6269         * config/rs6000/rs6000.c (generate_set_vrsave): Use
6270         UNSPECV_SET_VRSAVE.
6272 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
6274         PR bootstrap/23131
6275         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
6276         string.
6277         * configure: Regenerated.
6279 2005-07-29  Paul Brook  <paul@codesourcery.com>
6281         * doc/install.texi: Add link to GFortran binaries wiki page.
6283 2005-07-29  David Ung  <davidu@mips.com>
6285         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
6286         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
6287         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
6288         * config/mips/mips.md (cpu): Add 5kf name.
6289         (includes): Includes 5k.md.
6290         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
6291         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
6292         -march flag.
6294 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
6296         PR 22550
6297         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
6298         (cleanup_tree_cfg): ... here.
6299         Call cleanup_tree_cfg_1 until there are no more cleanups to
6300         do.
6302 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
6304         * tree-vrp.c (compare_range_with_value): Return true or false
6305         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
6306         EQ_EXPR respectively.
6308 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
6310         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
6311         Fix comment typos.
6313 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
6315         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
6316         (tree_ssa_dominator_optimize): Increment it.
6317         (dump_dominator_optimization_stats): Print it.
6319 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
6320             Steven Bosscher  <stevenb@suse.de>
6322         PR rtl-optimization/23117
6323         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
6324         when head == tail.  Tidy comment.
6326 2005-07-28  Richard Henderson  <rth@redhat.com>
6328         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
6329         * cselib.c (rtx_equal_for_cselib_p): Likewise.
6330         * jump.c (rtx_renumbered_equal_p): Likewise.
6331         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
6332         CONST_INT and CONST_DOUBLE.
6333         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
6334         * reload.c (operands_match_p): Special case CONST_INT and
6335         CONST_DOUBLE; check mode earlier.
6337 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6339         PR c/22240
6340         * c-typeck.c (convert_for_assignment): Do not check
6341         DECL_IN_SYSTEM_HEADER on NULL fundecl.
6343 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6345         PR c/22192
6346         * c-typeck.c (composite_type): Prefer constant size arrays to
6347         VLAs.
6349 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6351         PR c/21720
6352         * real.c (real_from_string): Set last bit if there is a nonzero
6353         hex digit beyond GCC's internal precision.
6355 2005-07-28  Richard Henderson  <rth@redhat.com>
6357         PR rtl-opt/22619
6358         * cfgcleanup.c (try_forward_edges): Watch out for end of
6359         insn chain.
6361 2005-07-28  James E Wilson  <wilson@specifixinc.com>
6363         PR c/23106
6364         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
6366 2005-07-28  Jan Hubicka  <jh@suse.cz>
6368         * Makefile.in (rtl-profile.o): Kill all traces of it.
6369         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
6370         * coverage.h (rtl_coverage_counter_ref): Kill.
6371         * opts.c (flag_speculative_prefetching_set): Kill.
6372         (flag_loop_optimize_set): New.
6373         (common_handle_option): Disable loop optimizer when profiling;
6374         do not handle speculative prefetching.
6375         * passes.c (init_optimization_passes): Replace pass_profiling combo
6376         by branch_prob pass.
6377         * profile.c (compute_value_histograms): Update for simplified value
6378         profiles.
6379         (rtl_register_profile_hooks): Kill.
6380         (pass_profiling): Kill.
6381         (rest_of_handle_branch_prob): Do not profile.
6382         * toplev.c (process_options): Remove speculative prefetching.
6383         * toplev.h (flag_tree_based_profiling): Kill.
6384         * tree-profile.c (prepare_instrumented_value,
6385         tree_gen_interval_profiler, tree_gen_pow2_profiler,
6386         tree_gen_one_value_profiler, do_tree_profiling): Update for
6387         simplified datastructures.
6388         * value-prof.c: Add comment that speculative prefetching was dropped;
6389         update rest of file for simplified datastructures.
6390         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
6391         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
6392         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
6393         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
6394         rtl_mod_subtract, gen_speculative_prefetch,
6395         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
6396         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
6397         (gate_handle_value_profile_transformations,
6398         rest_of_handle_value_profile_transformations,
6399         pass_value_profile_transformations): Kill.
6400         * value-prof.h (histogram_value_t): Remove IL based unions.
6401         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
6402         rtl_profile_hooks): Remove hooks.
6404         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
6406         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
6407         (cgraph_clone_node): Likewise.
6408         * cgraph.h (cgraph_clone_edge): Update prototype.
6409         (cgraph_clone_node): Likewise.
6410         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
6411         cgraph_clone_node.
6412         (lookup_recursive_calls): Consider profile.
6413         (cgraph_decide_recursive_inlining): Fix updating; use new
6414         probability argument; use profile.
6415         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
6416         * tree-inline.c (copy_bb): Update clal of clone_edge.
6417         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
6419         * invoke.texi (min-inline-recursive-probability): Document.
6421 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
6423         * doc/install.texi (Configuration): Update Valgrind homepage.
6425 2005-07-28  Richard Henderson  <rth@redhat.com>
6427         PR middle-end/21362
6428         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
6429         labels we want to delete.
6430         (cfg_layout_merge_blocks): Likewise.
6432 2005-07-28  Richard Henderson  <rth@redhat.com>
6434         PR target/17692
6435         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
6436         when expanding to nothing.
6438 2005-07-28  Josh Conner  <jconner@apple.com>
6440         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
6441         (cgraph_decide_inlining_of_small_functions): Likewise.
6443 2005-07-28  Josh Conner  <jconner@apple.com>
6445         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
6446         direction of badness if negative.
6447         (cgraph_default_inline_p): Add reason to parameters, and assign it
6448         a value.
6449         (cgraph_decide_inlining_of_small_functions): New parameter in call
6450         to cgraph_default_inline_p.
6451         (cgraph_decide_inlining_incrementally): Likewise.
6452         * cgraphunit.c (decide_is_function_needed): Likewise.
6453         * cgraph.h (cgraph_default_inline_p): Likewise.
6455 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6457         * builtins.c: Fix comment typo(s).
6458         * genautomata.c: Likewise.
6459         * gimplify.c: Likewise.
6460         * tree-dfa.c: Likewise.
6461         * tree-flow-inline.h: Likewise.
6462         * tree-into-ssa.c: Likewise.
6463         * tree-ssa-alias.c: Likewise.
6464         * tree-ssa-ccp.c: Likewise.
6465         * tree-ssa-copy.c: Likewise.
6466         * tree-ssa-dce.c: Likewise.
6467         * tree-ssa-dom.c: Likewise.
6468         * tree-ssa-operands.c: Likewise.
6469         * tree-tailcall.c: Likewise.
6470         * tree-vectorizer.c: Likewise.
6471         * tree-vrp.c: Likewise.
6472         * tree.c: Likewise.
6474 2005-07-28  Jeff Law  <law@redhat.com>
6476         * tree-vrp.c (test_for_singularity): Extracted from  ...
6477         (simplify_cond_using_ranges): Attempt to simplify a relational
6478         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
6480 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
6482         PR tree-optimization/22506
6483         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
6484         phis whose argument is constant.
6486 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
6488         PR rtl-optimization/18992
6489         Back out this patch:
6490           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6491           PR optimization/12142
6492           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
6493           uses of the register in the SET_SRC.  Remove unnecessary argument.
6495         Replace it with this:
6496         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
6497         if flag_non_call_exceptions is set and the insn may trap, pass
6498         pc_rtx as dest for recursion.
6499         In SET_SRC part of SET case, if dest is already set, pass it down
6500         unchanged.
6502 2005-07-28  Jan Hubicka  <jh@suse.cz>
6504         * cfg.c (update_bb_profile_for_threading): Use RDIV.
6505         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
6506         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
6507         roundoff errors.
6508         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
6509         profile when available.
6511 2005-07-28  Jan Beulich <jbeulich@novell.com>
6513         * config/ia64/ia64.c (ia64_load_pair_ok): New.
6514         (ia64_print_operand): Describe and handle 'X'.
6515         (ia64_register_move_cost): Also handle FP_REGS.
6516         (ia64_preferred_reload_class): Likewise.
6517         (ia64_secondary_reload_class): Likewise.
6518         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
6519         it. Also check for ITANIUM_CLASS_FLDP.
6520         * config/ia64/ia64.h (FP_REGNO_P): New.
6521         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
6522         (reg_class): Add FP_REGS.
6523         (REG_CLASS_NAMES): Adjust for it.
6524         (REG_CLASS_CONTENTS): Likewise.
6525         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
6526         (REG_CLASS_FROM_LETTER): Handle 'x'.
6527         (CLASS_MAX_NREGS): Handle FP_REGS.
6528         (MEMORY_MOVE_COST): Likewise.
6529         * config/ia64/ia64.md (itanium_class): Add fldp.
6530         (type): Handle fldp.
6531         (movti_internal): More allowable operand combinations. Use ldfp8 when
6532         splitting unnecessary. Remove predicable attribute. Adjust
6533         itanium_class attribute.
6534         (smuldi3_highpart): Remove outdated comment.
6535         (mulditi3, umulditi3, rotlti3): New expanders.
6536         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
6537         (absti2): Disabled new insn for future reference.
6538         Respective new splitters.
6539         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
6540         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
6541         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
6543 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
6545         PR rtl-optimization/23047
6546         * simplify-rtx.c (simplify_const_relational_operation): Respect
6547         flag_wrapv for comparisons with ABS.
6549 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
6551         PR tree-optimization/22493
6552         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
6553         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
6555 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
6557         * config/frv/frv.opt (moptimize-membar): New.
6559         * doc/invoke.texi: Document -moptimize-membar and its inverse.
6561         * config/frv/frv.h: Remove machine_function definition.
6563         * config/frv/frv.c (struct frv_io): New.
6564         (struct machine_function): Moved from frv.h.  Add has_membar_p.
6565         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
6566         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
6567         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
6568         (frv_optimize_membar_global, frv_optimize_membar): New functions.
6569         (frv_reorg): Call frv_optimize_membar when appropriate.
6570         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
6571         (frv_expand_builtin): Adjust calls accordingly.
6572         (frv_io_address_cookie): New function.
6573         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
6574         load or store rather than a special insn.  Add ccnstant address and
6575         io-type operands to the membar.
6576         (frv_ifcvt_modify_tests): Unsign regno.
6577         (frv_ifcvt_modify_tests): Same.
6579         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
6580         UNSPEC_OPTIONAL_MEMBAR constant.
6581         (builtin_read_<mode>): Delete.
6582         (builtin_write_<mode>): Delete.
6583         ("optional_membar_<mode>"): Add operand.
6585         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
6586         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
6587         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
6588         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
6589         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
6590         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
6591         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
6592         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
6593         * testsuite/gcc.target/frv/all-read-write-1.c: New.
6595 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6597         * df.c (df_uses_record): Handle SCRATCH.
6599 2005-07-28  Steven Bosscher  <stevenb@suse.de>
6601         PR debug/20161
6602         * passes.c (rest_of_decl_compilation): If decl is a type and
6603         we have encountered errors, don't emit debug information.
6605 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
6607         * params.def: Fixed comment.
6609 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
6611         PR target/19885
6612         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
6613         (TARGET_ASM_UNALIGNED_HI_OP): Add.
6614         (TARGET_ASM_UNALIGNED_SI_OP): Add.
6616 2005-07-27  Steven Bosscher  <stevenb@suse.de>
6618         PR c++/22003
6619         * varasm.c (assemble_start_function): Don't do anything that may
6620         require a CFG if the current function is a thunk.
6622 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
6624         * doc/install.texi (Prerequisites): Mention that perl is needed
6625         to do export control in libstdc++ targetting Darwin.
6627 2005-07-27  Steven Bosscher  <stevenb@suse.de>
6629         PR rtl-optimization/17808
6630         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
6631         (sched_insns_conditions_mutex_p): Split out from...
6632         (add_dependence): ...here.  But don't call it from here.
6633         (add_dependence_list): Check sched_insns_conditions_mutex_p
6634         before calling add_dependence.
6635         (add_dependence_list_and_free): Likewise.
6636         (fixup_sched_groups): Likewise.
6637         (sched_analyze_1): Likewise.
6638         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
6639         (sched_analyze): Likewise.
6640         (sched_analyze_insn): Likewise.
6641         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
6642         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
6643         dependencies on all COND_EXEC insns to jumps ending basic blocks
6644         when doing intrablock scheduling.
6645         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
6647 2005-07-27  Jeff Law  <law@redhat.com>
6649         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
6650         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
6651         equivalency sets, correctly handle the case were vr0 has an
6652         equivalency set, but vr1 does not.
6654 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
6656         PR tree-optimization/23073
6657         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
6658         vect_print_dump_info before fprintf.
6660 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
6662         PR tree-optimize/22348
6663         * tree-ssa-loop-niter.c (number_of_iterations_cond):
6664         Fold the partial computation.
6666 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
6668         PR tree-optimization/22325
6669         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
6670         Declare.
6671         * tree-scalar-evolution.c (scev_const_prop): Add generic final
6672         value replacement.
6673         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
6674         (force_var_cost): ... this function.
6675         (compute_phi_arg_on_exit): Export.
6677 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
6679         PR tree-optimization/20773
6680         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
6681         edge.
6683 2005-07-27  Richard Guenther  <rguenther@suse.de>
6685         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
6686         Avoid pushing again if current struct contains only
6687         fields we decomposed.
6689 2005-07-27  Jan Hubicka  <jh@suse.cz>
6691         PR tree-optimization/22574
6692         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
6693         not available.
6695         * tree-tailcall.c (decrease_profile): New function.
6696         (eliminate_tail_call): Use it.
6698         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
6699         visibility flags correctly in whole program mode.
6701 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
6703         PR rtl-optimization/22472
6704         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
6706 2005-07-26  Steven Bosscher  <stevenb@suse.de>
6708         PR tree-optimization/22504
6709         * tree-complex.c (expand_complex_addition): Use 'code' instead
6710         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
6712 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
6714         * config.gcc (cpu_type): Add frv case.
6715         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
6716         (supported_defaults): Add fr550 case.
6718 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
6720         PR 22591
6721         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
6722         whether a pointer of type T * may point to objects of type T *.
6724 2005-07-26  DJ Delorie  <dj@redhat.com>
6726         * configure: Regenerate.
6728 2005-07-26  Dale Johannesen  <dalej@apple.com>
6730         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
6732 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
6734         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
6735         Clarify use of "build" in name.
6737 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
6739         * doc/extend.texi (Raw read/write Functions): New section.
6740         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
6741         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
6742         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
6743         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
6744         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
6745         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
6746         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
6747         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
6748         * config/frv/frv.c: Add bdesc_loads global.
6749         Add bdesc_stores global.
6750         (frv_init_builtins): Add support for __builtin_{read/write}*.
6751         (frv_volatile_memref): New.
6752         (frv_expand_load_builtin): New.
6753         (frv_expand_store_builtin): New.
6754         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
6755         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
6756         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
6757         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
6758         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
6759         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
6760         (builtin_read_<mode>): New.
6761         (builtin_write_<mode>): New.
6762         (builtin_write64): New.
6763         (optional_membar_<mode>): New.
6765 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
6767         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
6768         (rather than units) against HOST_BITS_PER_WIDE_INT.
6770 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
6772         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
6773         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
6774         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
6775         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
6776         FSF address.
6778         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
6779         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
6780         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
6781         comment typos.
6782         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
6784 2005-07-26  Richard Guenther  <rguenther@suse.de>
6786         PR tree-optimization/22486
6787         * fold-const.c (fold_unary): Fold away useless component
6788         references of the form (T *)&T.x, if the address
6789         doesn't change.
6791 2005-07-25  James E Wilson  <wilson@specifixinc.com>
6793         * dwarf2out.c (add_call_src_coords_attributes): New.
6794         (gen_inlined_subroutine_die): Call it.
6795         (maybe_emit_file, init_file_table): Add comments.
6796         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
6797         maybe_emit_file.
6798         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
6799         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
6800         * tree.h (BLOCK_SOURCE_LOCATION): New.
6801         (struct tree_block): New field locus.
6803 2005-07-26  Andreas Schwab  <schwab@suse.de>
6805         PR rtl-optimization/23043
6806         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
6807         when allocating a struct unoccr.
6809 2005-07-25  Richard Henderson  <rth@redhat.com>
6811         PR 22626
6812         * tree-complex.c (gate_no_optimization): True if errors.
6813         * Makefile.in (tree-complex.o): Update dependencies.
6815 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
6817         * config/frv/predicates.md (integer_register_operand): Use
6818         GPR_AP_OR_PSEUDO_P.
6820 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
6822         PR tree-opt/22484
6823         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
6824         after fold.
6825         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
6827 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
6829         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
6830         types when flag_unsafe_math_optimizations is true.
6832 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
6834         * gcc.c (option_map): Add --sysroot.
6835         (process_command): Handle --sysroot.
6836         (display_help): Document it.
6837         * doc/cppopts.tex (-isysroot): Document.
6838         * doc/invoke.texi (--sysroot): Document.
6839         * doc/install.texi (--with-build-sysroot): Document.
6841         * Makefile.in (inhibit_libc): New variable.
6842         (INHIBIT_LIBC_CFLAGS): Likewise.
6843         (LIBGCC2_CFLAGS): Include
6844         $(INHIBIT_LIBC_CFLAGS).
6845         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
6846         ($(T)crtbegin.o): Do not use @inhibit_libc@.
6847         ($(T)crtend.o): Likewise.
6848         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
6849         ($(T)crtendS.o): Likewise.
6850         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
6851         ($(T)crtendT.o): Likewise.
6852         (stmp-fixinc): Do not complain about missing headers if
6853         inhibit_libc.
6854         * configure.ac (inhibit_libc): Set it to true/false.
6855         (--with-build-sysroot): New option.  Use it to set
6856         SYSTEM_HEADER_DIR.
6857         * configure: Regenerated.
6859 2005-07-25  Manfred Hollstein  <mh@suse.com>
6861         * calls.c (store_one_arg): Fix unsigned comparison warning.
6863 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
6865         PR other/22337
6866         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
6867         (ggc_print_statistics): Initialize variable before use.
6869 2005-07-25  Richard Guenther  <rguenther@suse.de>
6871         * tree-dfa.c (mark_new_vars_to_rename): Protect against
6872         calling with a PHI_NODE argument.
6874         * tree-flow-inline.h (overlap_subvar): Protect against
6875         possible overflow.
6877 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
6879         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
6880         * configure: Regenerate.
6882 2005-07-25  Ira Rosen  <irar@il.ibm.com>
6884         * expr.c (highest_pow2_factor): Make extern.
6885         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
6886         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
6887         record_array_differ_p, array_ptr_differ_p): Likewise.
6888         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
6889         additional cases. Call the above functions.
6890         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
6891         base_object_differ_p when there are two base objects. Otherwise, compare
6892         base address and offset. Call may_alias_p.
6893         (dump_data_reference): Use a correct field name.
6894         (analyze_array): Make static. Initialize new data-ref fields.
6895         (analyze_indirect_ref): New function.
6896         (init_data_ref): Initialize new data-ref fields.
6897         (strip_conversion): Moved from tree-vect-analyze.c.
6898         (analyze_offset_expr, get_ptr_offset, address_analysis,
6899         object_analysis): Likewise.
6900         (analyze_offset): New function.
6901         (create_data_ref): Likewise.
6902         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
6903         dimensions for ARRAY_REFs only.
6904         (build_classic_dist_vector): Make static.
6905         (access_functions_are_affine_or_constant_p): Call macro to get the
6906         address of access functions.
6907         (compute_all_dependences): Add new parameter
6908         compute_self_and_read_read_dependences. Compute self and read-read
6909         dependences if it is true.
6910         (find_data_references_in_loop): Call create_data_ref. Initialize new
6911         data-ref fields.
6912         (compute_data_dependences_for_loop): Add new parameter
6913         compute_self_and_read_read_dependences. Remove parameter nb_loops,
6914         compute nb_loops. Call compute_all_dependences,
6915         build_classic_dist_vector and build_classic_dir_vector with correct
6916         parameters.
6917         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
6918         with correct parameters. Compare dimensions for ARRAY_REFs only.
6919         (free_data_refs): Call macro to free access functions.
6920         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
6921         fields from stmt_vinfo.
6922         (struct base_object_info): New structure.
6923         (struct data_reference): Move fields to base_object_info. Add fields
6924         first_location and object_info for above structures. Move fields from
6925         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
6926         aligned_to.  Add macros to access the new fields.
6927         Update functions declarations.
6928         * tree-flow.h (is_aliased_with): Declare.
6929         * tree-loop-linear.c (linear_transform_loops): Call
6930         compute_data_dependences_for_loop with correct parameters.
6931         * tree-ssa-alias.c (is_aliased_with): New function.
6932         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
6933         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
6934         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
6935         vect_base_addr_differ_p, compute_subscript_distance and
6936         build_classic_dist_vector. Add printings. Check absolute value of
6937         distance.
6938         (vect_analyze_data_ref_dependences): Go through ddrs instead of
6939         data-refs.
6940         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
6941         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
6942         to bytes. Add printing.
6943         (vect_compute_data_refs_alignment): Go through loads and stores in one
6944         loop.
6945         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
6946         vect_analyze_data_ref_access): Likewise.
6947         (vect_analyze_pointer_ref_access): Remove.
6948         (vect_address_analysis, vect_object_analysis): Likewise.
6949         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
6950         and analyze data-refs in the loop.
6951         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
6952         fields of data-ref instead of stmt. Add init to the offset from the
6953         base.
6954         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
6955         (vect_update_init_of_dr): Likewise.
6956         (vect_update_inits_of_drs): Go through loads and stores in one loop.
6957         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
6958         removed fields.
6959         (new_loop_vec_info): Initialize new fields.
6960         (destroy_loop_vec_info): Free new fields.
6961         (vect_strip_conversion): Remove.
6962         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
6963         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
6964         datarefs. Add new field ddrs.
6965         Add macros for the new fields access.
6966         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
6967         base_aligned_p, misalignment, memtag, ptr_info and subvars.
6968         Remove their macros.
6969         * tree.h (highest_pow2_factor): Declare.
6971 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
6973         * calls.c (store_one_arg): Check for sibling call MEM arguments
6974         from already clobbered incoming argument area.
6976 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6978         * c-common.c (check_missing_format_attribute): New.
6979         * c-common.h (check_missing_format_attribute): Likewise.
6980         * c-typeck.c (convert_for_assignment): Use it.
6982 2005-07-24  Andreas Schwab  <schwab@suse.de>
6984         * config/m68k/m68k.md ("extendqidi2"): When source is an address
6985         register use a word move.  Correct operand of ext.w in 68000 code.
6987 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
6989         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
6990         variables as declarations, rather than definitions.
6992 2005-07-24  Ira Rosen  <irar@il.ibm.com>
6994         PR tree-optimization/22526
6995         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
6996         of the zero node.
6998 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7000         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
7001         that C99 reserve for future use. Use it to define clog10,
7002         clog10f and clog10l.
7004 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7006         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
7007         * configure.ac: Check for -Wmissing-format-attribute.
7009         * configure: Regenerate.
7011 2005-07-23  Richard Henderson  <rth@redhat.com>
7013         PR tree-optimization/22623
7014         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
7016 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
7018         PR target/22577
7019         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
7021 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7023         * Makefile.in (C_TREE_H): Update dependencies.
7024         * c-tree.h: Include toplev.h.
7025         * diagnostic.h (diagnostic_set_info): Add format attribute.
7026         * rtl-error.c (diagnostic_for_asm): Likewise.
7028 2005-07-23  Chao-ying Fu  <fu@mips.com>
7030         * config/mips/mips-dsp.md: New file.
7031         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
7032         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
7033         functions.
7034         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
7035         MIPS_BUILTIN_BPOSGE32.
7036         (mips_expand_builtin_direct): Add one parameter to indicate that
7037         builtin functions need to return a value.
7038         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
7039         functions.
7040         (mips_regno_to_class): Add classes for 12 new DSP registers.
7041         (mips_subword): Change to check four HI registers.
7042         (mips_output_move): Output move to and from 6 new DSP accumulators.
7043         (override_options): Make sure -mdsp and -mips16 are not used together.
7044         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
7045         for machine modes.
7046         (mips_conditional_register_usage): Disable 6 new DSP accumulators
7047         when !TARGET_DSP.
7048         (print_operand): Add 'q' for printing DSP accumulators.
7049         (mips_cannot_change_mode_class): Check ACC_REGS.
7050         (mips_secondary_reload_class): Check ACC_REGS.
7051         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
7052         (mips_register_move_cost): Check ACC_REGS.
7053         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
7054         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
7055         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
7056         (dsp_bdesc): New array.
7057         (bdesc_arrays): Add DSP builtin function table.
7058         (mips_prepare_builtin_arg): Check predicate again after
7059         copy_to_mode_reg.
7060         (mips_expand_builtin): Add one more parameter to
7061         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
7062         MIPS_BUILTIN_BPOSGE32.
7063         (mips_init_builtins): Initialize new function types.
7064         (mips_expand_builtin_direct): Check if builtin functions need to
7065         return a value and pass operands properly.
7066         (mips_expand_builtin_bposge): New function.
7067         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
7068         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
7069         (FIRST_PSEUDO_REGISTER): Increase to 188.
7070         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
7071         Update for 12 new DSP registers.
7072         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
7073         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
7074         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
7075         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
7076         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
7077         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
7078         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
7079         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
7080         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
7081         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
7082         (REGISTER_NAMES): Add names for 12 new DSP registers.
7083         * config/mips/mips.md: Include mips-dsp.md.
7084         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
7085         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
7086         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
7087         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
7088         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
7089         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
7090         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
7091         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
7092         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
7093         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
7094         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
7095         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
7096         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
7097         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
7098         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
7099         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
7100         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
7101         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
7102         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7103         (UNSPEC_RDDSP): New constants.
7104         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
7105         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
7106         A<-d alternative.
7107         * config/mips/mips.opt (-mdsp): New option.
7108         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
7109         (reg_imm10_operand): New predicates.
7110         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
7111         * doc/invoke.texi (-mdsp): Document new option.
7113 2005-07-22  DJ Delorie  <dj@redhat.com>
7115         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
7116         to warning calls.
7117         * tree-inline.c (inlinable_function_p): Likewise.
7119 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
7121         PR debug/21828
7122         * toplev.c (check_global_declarations): Do not mark undefined
7123         variables as DECL_IGNORED_P.
7124         * varasm.c (first_global_object_name): GTY it.
7125         (weak_global_object_name): Likewise.
7126         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
7127         a string to go into {weak,first}_global_object_name.
7129 2005-07-22  DJ Delorie  <dj@redhat.com>
7131         * c-format.c (check_function_format): Change warning control
7132         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
7134 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
7136         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
7137         &PTR->FLD a dereference of PTR.
7138         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
7139         a potential dereference of PTR.
7141 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
7143         PR rtl-optimization/20370
7144         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
7145         call allocate_reg_info if necessary.
7147         PR rtl-optimization/21848
7148         * calls.c (emit_library_call_value_1): For const functions, add
7149         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
7151         PR rtl-optimization/22445
7152         * cselib.c (target.h): Include.
7153         (rtx_equal_for_cselib_p): Allow commutative matches.
7154         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
7155         Remove MODE parameter.  Changed all callers.
7157         PR rtl-optimization/22258
7158         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
7159         New functions.
7160         (try_combine): Use likely_spilled_retval_p.
7162 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
7164         * config.gcc: Add crx-elf support.
7166         * doc/contrib.texi: Mention crx.
7167         * doc/extend.texi: Document crx extensions.
7168         * doc/install.texi: Document crx install.
7169         * doc/invoke.texi: Document crx options.
7170         * doc/md.texi: Document crx constraints.
7172         * config/crx/crx-protos.h: New file.
7173         * config/crx/crx.c: New file.
7174         * config/crx/crx.h: New file.
7175         * config/crx/crx.md: New file.
7176         * config/crx/crx.opt: New file.
7177         * config/crx/t-crx: New file.
7179 2005-07-22  Manfred Hollstein  <mh@suse.com>
7181         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
7182         warnings.
7183         (int_add_graph_edge): Likewise.
7184         (collapse_nodes): Likewise.
7185         (process_unification_queue): Likewise.
7187 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7188             Laurent GUERBY  <laurent@guerby.net>
7190         PR tree-optimization/22336
7191         * function.c (record_block_change): Check for
7192         cfun->ib_boundaries_block.
7194 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
7196         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
7197         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
7199 2005-07-21  DJ Delorie  <dj@redhat.com>
7201         * toplev.c (warn_deprecated_use): Add warning control to warning
7202         call.
7203         * c-typeck.c (parser_build_binary_op): Likewise.
7204         (c_finish_if_stmt): Likewise.
7205         * c-common.c (check_function_sentinel): Likewise.
7206         (check_nonnull_arg): Likewise.
7208 2005-07-21  Richard Henderson  <rth@redhat.com>
7210         PR tree-opt/22504
7211         * tree-complex.c (complex_ssa_name_components): New.
7212         (cvc_lookup): Allow entry not found.
7213         (create_components): Remove.
7214         (create_one_component_var, get_component_var): New.
7215         (get_component_ssa_name, set_component_ssa_name): New.
7216         (extract_component): Use get_component_ssa_name.
7217         (update_complex_components): Use set_component_ssa_name.
7218         (update_complex_components_on_edge): Likewise.
7219         (update_phi_components): Create new PHI nodes directly, instead
7220         of adding insns to edges.
7221         (tree_lower_complex): Allocate and free complex_variable_components
7222         and complex_ssa_name_components here.
7224 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
7226         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
7227         revert to returning false.
7229 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
7231         PR target/21149
7232         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
7234 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
7236         PR target/22576
7237         * config/i386/i386.md (cmpxf): Change operand constraints
7238         to "nonmemory_operand".
7240 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
7242         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
7244 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
7246         PR middle-end/21180
7247         * fold-const.c (fold_build1): Add checksum for the operands.
7248         (fold_build2): Likewise.
7249         (fold_build3): Likewise.
7251 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
7253         PR middle-end/19055
7254         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
7256 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
7258         * common.opt (-fforward-propagate): Committed by mistake,
7259         removed.
7261 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7263         * reg-stack.c: Fix comment typo(s).
7264         * tree-ssa-operands.c: Likewise.
7265         * tree-vectorizer: Likewise.
7267 2005-07-21  Nick Clifton  <nickc@redhat.com>
7269         * config/sh/symbian.c: Replace C++ style line comments with C
7270         style line comments.
7271         (symbian_add_attribute): Do not use a ? operator on the LHS of
7272         an assignment.
7273         (sh_symbian_handle_dll_attribute): Change the type of the
7274         method vector to "VEC(tree,gc)*" and use vector accessor
7275         macros to walk over the elements.
7276         (symbian_export_vtable_and_rtti_p): Likewise.
7277         (symbian_class_needs_attribute_p): Likewise.
7279 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
7281         PR target/22085
7282         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
7283         initialize targetm.resolve_overloaded_builtin here.
7284         (altivec_expand_overloaded_builtin): Make it non-static.
7285         * config/rs6000/rs6000-protos.h
7286         (altivec_expand_overloaded_builtin): New prototype.
7287         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
7288         targetm.resolve_overloaded_builtin here.
7289         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
7291 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
7292             Zdenek Dvorak  <dvorakz@suse.cz>
7294         PR tree-optimization/19210
7295         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
7296         New.
7297         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
7298         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
7299         rely on unproven assumptions.
7300         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
7301         * tree-flow.h (number_of_iterations_exit): Add final parameter.
7302         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
7303         to number_of_iterations_exit.
7304         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
7305         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
7306         * tree-ssa-loop-niter.c (find_loop_niter,
7307         estimate_numbers_of_iterations_loop): Likewise.
7308         (number_of_iterations_exit): Honor the new options.
7309         * doc/invoke.texi (Wunsafe-loop-optimizations,
7310         funsafe-loop-optimizations): Document them.
7312 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
7314         PR rtl-optimization/22167
7315         * gcse.c (hoist_code): Fix hoist_exprs[] check.
7317 2005-07-20  Adam Nemet  <anemet@lnxw.com>
7319         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
7320         __do_global_dtors_aux longcall.
7322 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
7324         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
7325         (old_special_pred_table): Don't reference
7326         SPECIAL_MODE_PREDICATES.
7327         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
7328         * config/arc/arc.h: Don't mention PREDICATE_CODES.
7329         * config/sh/predicates.h: Don't mention
7330         SPECIAL_MODE_PREDICATES.
7331         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
7332         Remove.
7334 2005-07-20  DJ Delorie  <dj@redhat.com>
7336         * config.gcc: Add m32c-elf support.
7338         * doc/contrib.texi: Mention m32c.
7339         * doc/extend.texi: Document m32c extensions.
7340         * doc/install.texi: Mention m32c.
7341         * doc/invoke.texi: Document m32c options.
7342         * doc/md.texi: Document m32c constraints.
7344         * config/m32c/addsub.md: New file.
7345         * config/m32c/bitops.md: New file.
7346         * config/m32c/cond.md: New file.
7347         * config/m32c/jump.md: New file.
7348         * config/m32c/m32c-lib1.S: New file.
7349         * config/m32c/m32c-lib2.c: New file.
7350         * config/m32c/m32c-modes.def: New file.
7351         * config/m32c/m32c-pragma.c: New file.
7352         * config/m32c/m32c-protos.h: New file.
7353         * config/m32c/m32c.abi: New file.
7354         * config/m32c/m32c.c: New file.
7355         * config/m32c/m32c.h: New file.
7356         * config/m32c/m32c.md: New file.
7357         * config/m32c/m32c.opt: New file.
7358         * config/m32c/minmax.md: New file.
7359         * config/m32c/mov.md: New file.
7360         * config/m32c/muldiv.md: New file.
7361         * config/m32c/predicates.md: New file.
7362         * config/m32c/prologue.md: New file.
7363         * config/m32c/shift.md: New file.
7364         * config/m32c/t-m32c: New file.
7366 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7368         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
7369         (stack_protect_set, stack_protect_test): New expanders.
7370         (stack_protect_set_si, stack_protect_set_si_media,
7371         stack_protect_set_di_media, stack_protect_test_si,
7372         stack_protect_test_si_media, stack_protect_test_di_media):
7373         New insns.
7375 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
7377         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
7379 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
7381         * tree.h (tree_expr_nonzero_p): Export.
7382         * fold-const.c (tree_expr_nonzero_p): Likewise.
7383         Return true for CALL_EXPRs that are alloca calls.
7384         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
7385         against zero.
7386         * tree-flow.h (expr_computes_nonzero): Remove.
7387         * tree-vrp.c (expr_computes_nonzero): Remove.
7388         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
7389         (extract_range_from_unary_expr): Likewise.
7390         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
7391         tree_expr_nonzero_p.
7393 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
7395         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
7396         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
7397         extra arg "picreg" and use it instead of pic_offset_table_rtx.
7398         All callers changed.
7399         (frame_related_constant_load): New arg "related" which controls
7400         setting of RTX_FRAME_RELATED_P.  All callers changed.
7401         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
7402         (bfin_expand_prologue): Add stack limit checking.
7403         * config/bfin/bfin.md (trapifcc): New pattern.
7405         * config/bfin/bfin.c: Include "langhooks.h".
7406         (def_builtin): Go through lang_hooks to call builtin_function.
7408         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
7409         * config/bfin/predicates.md (symbol_ref_operand): New.
7410         (call_insn_operand): Delete.  All callers changed to use
7411         register_no_elim_operand.
7412         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
7413         call_cookie field.
7414         (function_arg): Use it to generate the call's operand 2.
7415         (bfin_longcall_p): New function.
7416         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
7417         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
7418         determine if the address needs to be in a REG.
7419         (bfin_handle_longcall_attribute): New function.
7420         (bfin_attribute_table): Add "longcall" and "shortcall".
7421         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
7422         (CUMULATIVE_ARGS): New member call_cookie.
7423         (PREDICATE_CODES): Add symbol_ref_operand.
7424         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
7425         extra USE to the pattern.
7426         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
7427         New patterns, split off call_insn, sibcall_insn, call_value_insn and
7428         sibcall_value_insn; now the new patterns handle direct calls and the
7429         old ones indirect calls.
7430         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
7432 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
7434         * doc/trouble.texi: Update section on handling of empty loops.
7436 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
7438         * config.gcc: Remove support for sparc-*-openbsd*,
7439         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
7440         ns32k-*-netbsd*.
7441         * config.host: Remove support for i860-*-sysv4* as a host.
7442         * config/i860/*, config/ip2k/*, config/ns32k/*,
7443         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
7444         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
7445         mention obsolete ports.
7447 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7449         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
7450         soft frame pointer.
7451         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
7452         of frame_pointer_rtx.
7453         (sh_expand_epilogue): Likewise.
7454         (sh_set_return_address): Likewise.
7455         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
7456         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
7457         offsets from FRAME_POINTER_REGNUM.
7458         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
7459         (sh_register_names): Add initializer for sfp.
7460         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
7461         (VALID_REGISTER_P): Likewise.
7462         (FIRST_PSEUDO_REGISTER): Update.
7463         (DWARF_FRAME_REGISTERS): Define.
7464         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
7465         (HARD_FRAME_POINTER_REGNUM): Define.
7466         (FRAME_POINTER_REGNUM): Redefine.
7467         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
7468         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
7469         from FRAME_POINTER_REGNUM.
7470         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
7471         FRAME_POINTER_REGNUM.
7472         (REG_CLASS_CONTENTS): Add sfp.
7473         (REG_ALLOC_ORDER): Likewise.
7474         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
7475         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
7476         of frame_pointer_rtx.
7477         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7479 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
7481         * fold-const.c (tree_expr_nonnegative_p): Only return true for
7482         ABS_EXPR when flag_wrapv is false because of INT_MIN.
7483         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
7484         of an ABS_EXPR.
7485         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
7486         ABS_EXPR<x>.
7488 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
7490         Make CONSTRUCTOR use VEC to store initializers.
7491         * c-common.c (complete_array_type): Update to cope with VEC in
7492         CONSTRUCTOR_ELTS.
7493         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
7494         (pp_c_constructor_elts): New function.
7495         * c-pretty-print.h (pp_c_constructor_elts): Declare.
7496         * c-typeck.c (build_function_call, build_c_cast, digest_init,
7497         struct constructor_stack, struct initializer_stack,
7498         constructor_elements, push_init_level, pop_init_level,
7499         add_pending_init, find_init_member, output_init_element): Update to
7500         cope with VEC in CONSTRUCTOR_ELTS.
7501         * coverage.c (build_fn_info_value, build_ctr_info_value,
7502         build_gcov_info): Likewise.
7503         * expr.c (categorize_ctor_elements_1, store_constructor,
7504         expand_expr_real_1): Likewise.
7505         * fold-const.c (fold_ternary): Likewise.
7506         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
7507         gimplify_init_constructor, gimplify_expr): Likewise.
7508         * tree-dump.c (dequeue_and_dump): Likewise.
7509         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
7510         node.
7511         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
7512         CONSTRUCTOR_ELTS.
7513         * tree-sra.c (generate_element_init_1): Likewise.
7514         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
7515         * tree-ssa-operands.c (get_expr_operands): Likewise.
7516         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7517         * tree-vect-transform.c (vect_get_vec_def_for_operand):
7518         (get_initial_def_for_reduction): Likewise.
7519         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
7520         value handle in annotations.
7521         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
7522         tree_node_structure): Add support for constr_kind.
7523         (build_vector_from_ctor, build_constructor_single,
7524         build_constructor_from_list): New functions.
7525         (build_constructor): Update to take a VEC instead of a TREE_LIST.
7526         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
7527         Update to cope with VEC in CONSTRUCTOR_ELTS.
7528         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
7529         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
7530         CONSTRUCTOR_APPEND_ELT): New macros.
7531         (struct constructor_elt, struct tree_constructor): New data types.
7532         (union tree_node): Add tree_constructor field.
7533         * treestruct.def: Define TS_CONSTRUCTOR.
7534         * varasm.c (const_hash_1, compare_constant, copy_constant,
7535         compute_reloc_for_constant, output_addressed_constants,
7536         initializer_constant_valid_p, output_constant,
7537         array_size_for_constructor, output_constructor): Update to cope with
7538         VEC in CONSTRUCTOR_ELTS.
7539         * vec.h (VEC_empty, VEC_copy): New macros.
7541 2005-07-19  Devang Patel  <dpatel@apple.com>
7543         * dbxout.c (dbxout_type): Check Objective-C++ lang.
7545 2005-07-19  Richard Henderson  <rth@redhat.com>
7547         PR tree-opt/22278
7548         * gimplify.c (gimplify_expr): Use main variant type for the temp
7549         destination for a discarded volatile read.
7550         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
7551         casts between non-void types that change volatility.
7553 2005-07-15  DJ Delorie  <dj@redhat.com>
7555         * toplev.h: Add comment about the first parameter for warning().
7556         * errors.h: Likewise.
7558         * c.opt (Wpragmas): New.
7559         * doc/invoke.texi: Document it.
7561         * function.c (do_warn_unused_parameter): Add warning control to
7562         warning call.
7563         * c-decl.c (warn_if_shadowing): Likewise.
7564         * c-lex.c (cb_def_pragma): Likewise.
7565         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
7566         (pop_alignment): Likewise.
7567         (handle_pragma_pack): Likewise.
7568         (apply_pragma_weak): Likewise.
7569         (handle_pragma_weak): Likewise.
7570         (handle_pragma_redefine_extname): Likewise.
7571         (add_to_renaming_pragma_list): Likewise.
7572         (handle_pragma_extern_prefix): Likewise.
7573         (maybe_apply_renaming_pragma): Likewise.
7574         (handle_pragma_visibility): Likewise.
7576         * config/c4x/c4x-c.c (BAD): Likewise.
7577         (c4x_parse_pragma): Likewise.
7578         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
7579         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
7580         (rs6000_pragma_longcall): Likewise.
7581         * config/v850/v850-c.c (pop_data_area): Likewise.
7582         (ghs_pragma_section): Likewise.
7583         (ghs_pragma_section): Likewise.
7584         (ghs_pragma_interrupt): Likewise.
7585         (ghs_pragma_starttda): Likewise.
7586         (ghs_pragma_startsda): Likewise.
7587         (ghs_pragma_startzda): Likewise.
7588         (ghs_pragma_endtda): Likewise.
7589         (ghs_pragma_endsda): Likewise.
7590         (ghs_pragma_endzda): Likewise.
7592 2005-07-19  Danny Berlin <dberlin@dberlin.org>
7593             Kenneth Zadeck <zadeck@naturalbridge.com>
7595         * Makefile.in: Removed tree-promote-statics.c
7596         * tree-promote-statics.c: Removed.
7597         * common.opt: Removed flag-promote-statics.
7598         * opts.c: Ditto.
7599         * passes.c: Removed tree-promote-statics pass.
7600         * tree-pass.h: Ditto.
7601         * timevar.def: Removed TV_PROMOTE_STATICS.
7604 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
7606         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
7607         and *-*-freebsd9.
7608         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
7610 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7612         PR c/22476
7613         * c-common.c (check_function_arguments): Call
7614         'check_function_format' if either -Wformat or
7615         -Wmissing-format-attribute are specified.
7616         * c-format.c (check_function_format): Check -Wformat before
7617         calling 'check_format_info'.
7618         * c-opts.c (c_common_post_options): Don't warn for
7619         -Wmissing-format-attribute without -Wformat.
7620         * c-typeck.c (convert_for_assignment): Detect additional cases for
7621         -Wmissing-format-attribute.
7622         * doc/invoke.texi (-Wmissing-format-attribute): Document new
7623         behavior.
7625 2005-07-19  Richard Guenther  <rguenther@suse.de>
7627         * config/i386/i386.md (lrint<mode>2): Use temporary
7628         instead of clobbering non-existent memory.
7630 2005-07-19  Nick Clifton  <nickc@redhat.com>
7632         * config/avr/avr.c (legitimate_address_p): Fix debugging print
7633         statement to avoid displaying ASCII control characters.
7635 2005-07-19  Ben Elliston  <bje@au.ibm.com>
7637         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
7638         * cfganal.c (find_edge_index): Ditto.
7639         * combine.c (combine_instructions): Ditto.
7640         * ddg.c (create_scc): Ditto.
7641         (find_successors): Ditto.
7642         (find_predecessors): Ditto.
7643         (find_nodes_on_paths): Ditto.
7644         (longest_simple_path): Ditto.
7645         * flow.c (update_life_info): Ditto.
7646         (count_or_remove_death_notes): Ditto.
7647         (clear_log_links): Ditto.
7648         * modulo-sched.c (generate_reg_moves): Ditto.
7649         (find_max_asap): Ditto.
7650         (find_max_hv_min_mob): Ditto.
7651         (find_max_dv_min_mob): Ditto.
7652         * sbitmap.c (sbitmap_first_set_bit): Ditto.
7653         * sched-rgn.c (extract_edgelst): Ditto.
7654         * tree-into-ssa.c (prepare_names_to_update): Ditto.
7655         (dump_update_ssa): Ditto.
7656         (ssa_names_to_replace) Ditto.
7657         (switch_virtuals_to_full_rewrite): Ditto.
7658         (update_ssa): Ditto.
7659         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
7661 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
7663         Fix PR tree-optimization/22483
7665         * tree-complex.c (create_components): Use
7666         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
7667         * tree-flow-inline.h (fill_referenced_var_vec): New function.
7668         * tree-flow.h (safe_referenced_var_iterator): New structure.
7669         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
7670         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
7671         safe_referenced_var iterator.
7672         (add_type_alias): Ditto.
7674 2005-07-19  Steven Bosscher  <stevenb@suse.de>
7676         * loop-init.c (rest_of_handle_loop2): Remove.
7677         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
7678         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
7679         (pass_rtl_loop_init, pass_rtl_loop_done,
7680         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
7681         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
7682         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
7683         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
7684         pass_tree_loop_done, and pass_tree_unswitch.
7685         (gate_loop): Rename to gate_tree_loop.
7686         * passes.c (init_optimization_passes): Update for renamed tree
7687         loop passes.  Add the new loop2 passes as subpasses of loop2.
7688         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
7689         Update for the renamed tree loop passes.
7691 2005-07-18  Ian Lance Taylor  <ian@airs.com>
7693         PR middle-end/22057
7694         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
7695         blocks when optimizing.
7697 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
7699         * common.opt (frename-registers): Initialize to 2.
7700         (fweb): Ditto.
7701         (fgcse-after-reload): Ditto.
7702         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
7703         (process_options): Only change flag_web, flag_rename_registers,
7704         and flag_rerun_cse_after_loop if not explicitly set by user.
7706 2005-07-18  Jan Beulich  <jbeulich@novell.com>
7708         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
7709         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
7710         in 64-bit mode the same as DImode in 32-bit mode.
7711         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
7712         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
7713         mode. Add new mode parameter.
7714         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
7715         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
7716         x86_64_shift_adj): New expanders.
7717         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
7718         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
7719         insns.
7720         Respective new splitters. Use renamed shift splitter helpers in 32-bit
7721         DImode shift splitters.
7722         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
7723         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
7724         mode parameter.
7726 2005-07-18  Jan Beulich  <jbeulich@novell.com>
7728         * i386.md (movdi_extzv_1): New.
7729         (zero_extendhidi2): Combine alternatives and never force use of
7730         REX64 prefix.
7731         (zero_extendqidi2): Likewise. Don't restrict input selection.
7733 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
7735         Fix PR tree-optimization/22531
7736         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
7737          moment.
7739 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
7741         * tree-promote-statics.c (pass_promote_statics): Change dump file
7742          name.
7744 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
7746         * tree-optimize.c (init_tree_optimization_passes): Add
7747         pass_eliminate_useless_stores pass.
7748         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
7749         * tree-ssa-pre.c (is_copy_stmt): New function.
7750         (follow_copies_till_vuse): Ditto.
7751         (do_eustores): Ditto.
7752         (gate_eustores): Ditto.
7754 2005-07-16  Richard Henderson  <rth@redhat.com>
7756         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
7758 2005-07-16 Danny Berlin <dberlin@dberlin.org>
7759            Kenneth Zadeck <zadeck@naturalbridge.com>
7761         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
7762         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
7763         ipa-type-escape.h, tree-promote-statics.c
7764         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
7765         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
7766         tree-promote-statics.c: new files.
7767         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
7768         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
7769         int nonlocal_set_p, mark_constant_function): Deleted.
7770         (rest_of_handle_cfg): Removed call to mark_constant_function.
7771         (nonoverlapping_component_refs_p): Added calls to support
7772         type based aliasing.
7773         * tree-ssa-alias.c (may_alias_p,
7774         compute_flow_insensitive_aliasing): Ditto.
7775         * calls.c (flags_from_decl_or_type): Removed reference to
7776         cgraph_rtl_info.
7777         * c-typeck.c (convert_arguments): Make builtins tolerant of having
7778         too many arguments.  This is necessary for Spec 2000.
7779         * cgraph.h (const_function, pure_function): Removed.
7780         * common.opt: Added "fipa-pure-const", "fipa-reference",
7781         "fipa-type-escape", and "ftree-promote-static".
7782         * opts.c: Ditto.
7783         * passes.c: Added ipa and tree-promote-statics passes.
7784         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
7785         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
7786         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
7787         * tree-flow.h: Added exposed sra calls and addition of
7788         reference_vars_info field for FUNCTION_DECLS.
7789         * tree-pass.h: Added passes.
7790         * tree-sra.c: (sra_init_cache): New function.
7791         (sra_insert_before, sra_insert_after) Made public.
7792         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
7793         and made public.
7794         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
7795         aliasing. (may_alias_p): Added code to use type escape analysis to
7796         improve alias sets.
7797         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
7798         code to prune clobbers of static variables based on information
7799         produced in ipa-reference pass.  Changed call clobbering so that
7800         statics are not marked as clobbered if the call does not clobber
7801         them.
7803 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
7805         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
7806         too.
7808 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
7810         * doc/install.texi (*-*-solaris2*): Document recommended version
7811         of GNU binutils and mention GNU linker problem on Solaris 10.
7813 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
7815         PR c/22421
7816         * c-decl.c (c_build_bitfield_integer_type): New function.
7817         (finish_struct): Call it.
7818         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
7820 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7822         * c-typeck.c (digest_init): Call 'convert_for_assignment'
7823         before returning.
7825 2005-07-16  Jan Hubicka  <jh@suse.cz>
7827         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
7828         (scale_bbs_frequencies_int): Watch roundoff errors.
7829         * predict.c (return_prediction): Initialize return_stmt.
7831 2005-07-16  Jan Hubicka  <jh@suse.cz>
7833         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
7834         after RTL profiling.
7836 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
7838         PR middle-end/22398
7839         * fold-const.c (build_range_check): Convert high/low to etype
7840         if we are only comparing against exp.
7842 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
7844         Fix PR tree-optimization/22376
7845         * tree-ssa-structalias.c (build_constraint_graph): We really meant
7846         special var here.
7847         (need_to_solve): New function.
7848         (compute_points_to_sets): Use it.
7850 2005-07-15  Jan Hubicka  <jh@suse.cz>
7852         * cfg.c (update_bb_profile_for_threading): More diagnostic.
7853         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
7855 2005-07-15  Richard Guenther  <rguenther@suse.de>
7857         * c-common.c (handle_flatten_attribute): New function.
7858         Add flatten function attribute.
7859         * doc/extend.texi: Document flatten function attribute.
7860         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
7861         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
7862         New functions.
7863         (cgraph_decide_inlining): Handle functions with flatten
7864         attribute.
7866 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
7868         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
7869         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
7870         UNSPEC_XCHG, UNSPEC_AND): New.
7871         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
7872         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
7873         * config/rs6000/sync.md (FETCHOP): New code macro.
7874         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
7875         New code attrs.
7876         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
7877         (sync_compare_and_swap<mode>): Same.
7878         (sync_lock_test_and_set<mode>): Same.
7879         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
7880         for QImode and HImode, and not PPC405.
7881         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
7882         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
7883         (sync_<fetchop>{si,di}_internal): New.
7884         (sync_nand{si,di}_internal): New.
7885         (sync_old_<fetchop>{si,di}_internal): New.
7886         (sync_old_nand{si,di}_internal): New
7887         (sync_new_<fetchop>{si,di}_internal): New.
7888         (sync_new_nand{si,di}_internal): New.
7889         (atomic_and{si,di}): New.
7890         (sync_new_nand{si,di}_internal): New.
7891         (atomic_and{si,di}): New.
7892         (sync_add<mode>_internal): Delete.
7893         (sync_addshort_internal): Use unspec instead of unspec_volatile.
7894         (sync_sub<mode>_internal): Delte.
7895         (sync_subshort_internal): New.
7896         (sync_andsi_internal): Use unspec instead of unspec_volatile.
7897         (sync_anddi_internal): Delete.
7898         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
7899         (sync_booldi_internal): Delete.
7900         (sync_boolc<mode>_internal): Delete.
7901         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
7902         (sync_boolc<mode>_internal2): Delete.
7903         (sync_boolcc<mode>_internal): Delete.
7904         (isync, lwsync): Use unspec instead of unspec_volatile.
7905         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
7906         Revert UNSPEC_VOLATILE.
7907         (rs6000_split_atomic_op): New.
7908         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
7910 2005-07-14  Eric Christopher  <echristo@redhat.com>
7912         * config/mips/mips.c (mips_canonicalize_comparison): Cast
7913         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
7915 2005-07-14  Eric Christopher  <echristo@redhat.com>
7917         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
7919 2005-07-14  Steven Bosscher  <stevenb@suse.de>
7921         PR tree-optimization/22230
7922         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
7923         the computation of the four cross productions for "range op range".
7925 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
7926             Ulrich Weigand  <uweigand@de.ibm.com>
7928         PR target/20126
7929         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
7930         in some insn.
7932 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
7934         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
7936 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
7938         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
7940 2005-07-14  Richard Guenther  <rguenther@suse.de>
7942         PR middle-end/22347
7943         * config/i386/i386-protos.h (ix86_function_value): Change
7944         prototype to match new target hook.
7945         * config/i386/i386.c (ix86_value_regno): Change prototype
7946         to take extra type argument.
7947         (TARGET_FUNCTION_VALUE): Define.
7948         (ix86_function_ok_for_sibcall): Pass extra argument to
7949         ix86_value_regno, check return slot rtx for exact match.
7950         (ix86_function_value): Take extra parameter.  Dispatch to
7951         ix86_value_regno with fndecl/fntype as provided.
7952         (ix86_value_regno): Handle extra type argument.
7953         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
7955         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
7956         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
7957         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
7958         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
7959         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
7961 2005-07-14  Richard Guenther  <rguenther@suse.de>
7963         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
7964         * calls.c (expand_call): Pass fntype to hard_function_value.
7965         (emit_library_call_value_1): Likewise.
7966         * explow.c: Include target.h.
7967         (hard_function_value): Take extra argument, the fntype.
7968         Use new target hook for function_value.
7969         * expr.h (hard_function_value): Change prototype.
7970         * function.c (aggregate_value_p): Pass 0 as fntype to
7971         hard_function_value.
7972         (assign_parms): Use new target hook for function_value.
7973         Pass 0 as fntype to hard_function_value.
7974         (expand_function_end): Likewise.
7975         * reg-stack.c: Include target.h.
7976         (stack_result): Use new target hook for function_value.
7977         * target-def.h: New target hook function_value.
7978         * target.h: Likewise.
7979         * targhooks.c (default_function_value): New function.
7980         * targhooks.h (default_function_value): Declare.
7982 2005-07-13  Ian Lance Taylor  <ian@airs.com>
7984         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
7986 2005-07-14  Jan Hubicka  <jh@suse.cz>
7988         * tree-dfa.c (dump_variable): Use default_def function.
7989         * tree-ssa-alias.c (dump_points_to_info): Likewise.
7990         * tree-ssa.c (verify_use): Likewise.
7991         * tree-ssanames.c (release_ssa_name): Likewise.
7992         * tree-tailcall.c (eliminate_tail_call): Likewise.
7993         (tree_optimize_tail_calls_1): Likewise.
7994         * tree-vrp.c (get_value_range): Likewise.
7996 2005-07-14  Ben Elliston  <bje@au.ibm.com>
7998         * gcc.c (main): Compare language[0] with '*' when iterating over
7999         the infiles.
8001 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
8003         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
8004         "s390_emit_compare".  Add handling of CCZ1mode.
8005         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
8006         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
8007         checking.
8008         (s390_branch_condition_mask): Add CCZ1mode handling.
8009         * config/s390/s390.md: ("seq", "*seq"): New pattern.
8010         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
8011         Use CCZ1mode instead of CCZmode.
8012         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
8014 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
8016         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
8017         pattern.
8018         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
8020 2005-07-13  Eric Christopher  <echristo@redhat.com>
8022         * config/mips/mips.c (mips_canonicalize_comparison): New.
8023         (mips_emit_int_relational): Use.
8025 2005-07-13  Eric Christopher  <echristo@redhat.com>
8027         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
8028         static extra parts.
8029         * config/s390/s390.md: Include tpf.md. Move tpf specific
8030         patterns...
8031         * config/s390/tpf.md: To here.
8032         * config/s390/s390.opt: Move tpf specific options...
8033         * config/s390/tpf.opt: to here. Add mmain option.
8034         * config/s390/tpf-unwind.h: Remove unnecessary defines.
8035         * config/s390/tpf.h: Rewrite.
8037 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8039         * doc/tm.texi: Remove @xref{Cross-profiling}.
8041 2005-07-13  Jeff Law  <law@redhat.com>
8043         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
8044         expressions, test their _DECL operands for pointer equality rather
8045         than using operand_equal_p.
8047 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8049         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
8050         (TARGET_POSIX_IO): This.
8051         * config/darwin.h: Likewise.
8052         * config/freebsd.h: Likewise.
8053         * config/linux.h: Likewise.
8054         * config/lynx.h: Likewise.
8055         * config/netbsd.h: Likewise.
8056         * config/rs6000/linux64.h: Likewise.
8057         * config/rs6000/linux.h: Likewise.
8058         * config/s390/tpf.h: Likewise.
8059         * config/sh/embed-elf.h: Likewise.
8060         * config/sparc/linux64.h: Likewise.
8061         * config/sparc/linux.h: Likewise.
8062         * config/svr4.h: Likewise.
8063         * gcov-io.h: Likewise.
8065         * doc/tm.texi: Updated.
8067         * libgcov.c (create_file_directory): Defined only if
8068         TARGET_POSIX_IO is defined.
8069         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
8070         is defined.
8072 2005-07-13  Jan Hubicka  <jh@suse.cz>
8074         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
8076 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
8078         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
8079         structure as argument.
8081 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
8083         PR tree-optimization/21921
8084         * tree-iterator.c (tsi_link_before): Support the case when
8085         tsi_end_p (tsi) == true.
8087 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8089         PR tree-optimization/22442
8090         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
8091         correctly.
8093 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8095         PR rtl-optimization/20376
8096         * toplev.c (process_options): Enable -fweb and -frename-registers when
8097         unrolling.
8098         * doc/invoke.texi: Update the information about when -fweb and
8099         -frename-registers are enabled.
8101 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
8103         PR tree-opt/21840
8104         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
8105         if *rhs_p is not a SSA_NAME.
8107 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
8109         Fix PR tree-optimization/22422
8110         * tree-ssa-structalias.c (struct variable_info): Add flag for
8111         special vars.
8112         (get_varinfo): Now a static function.
8113         (new_varinfo): init has_union and is_special_var to false.
8114         (solution_set_add): Check has_union.
8115         (do_da_constraint): Move temporary variable so it gets reset
8116         properly.
8117         Also check for special variable.
8118         (do_ds_constraint): Ditto.
8119         (do_sd_constraint): Ditto.
8120         (do_structure_copy): Check for special variable.
8121         (find_func_aliases): Ditto.
8122         (init_base_vars): Set special vars properly.
8124 2005-07-13  Jan Hubicka  <jh@suse.cz>
8126         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
8127         do unit-at-a-time.
8129         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
8130         (get_expr_operands): Fix thinko wrt flags and subvars.
8132         PR tree-optimize/22379
8133         * tree-inline.c (expand_call_inline): Do not output sorry in early
8134         inlining.
8136 2005-07-12  Dale Johannesen  <dalej@apple.com>
8138         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
8140 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
8142         PR bootstrap/21704
8143         * host-linux.h: Include limits.h.
8145 2005-07-12  Dale Johannesen  <dalej@apple.com>
8147         * expr.c (compress_float_constant):  Add cost check.
8148         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
8150 2005-07-12  Dale Johannesen  <dalej@apple.com>
8152         * gcc.target/i386/compress-float-sse.c:  New.
8153         * gcc.target/i386/compress-float-sse-pic.c:  New.
8154         * gcc.target/i386/compress-float-387.c:  New.
8155         * gcc.target/i386/compress-float-387-pic.c:  New.
8156         * gcc.dg/compress-float-ppc.c:  New.
8157         * gcc.dg/compress-float-ppc-pic.c:  New.
8159 2005-07-12  Eric Christopher  <echristo@redhat.com>
8161         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
8162         static extra parts.
8163         * config/s390/s390.md: Include tpf.md. Move tpf specific
8164         patterns...
8165         * config/s390/tpf.md: To here.
8166         * config/s390/s390.opt: Move tpf specific options...
8167         * config/s390/tpf.opt: to here. Add mmain option.
8168         * config/s390/tpf-unwind.h: Remove unnecessary defines.
8169         * config/s390/tpf.h: Rewrite.
8171 2005-07-12  Eric Christopher  <echristo@redhat.com>
8173         * gcc.c (struct infile): Update comment for language.
8174         (main): Rewrite input file resetting code.
8176 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
8178         PR tree-opt/22335
8179         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
8180         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
8181         (lookup_avail_expr): Use constant_boolean_node instead
8182         of boolean_false_node/boolean_true_node.
8184 2005-07-12  Ben Elliston  <bje@au.ibm.com>
8186         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
8187         and use it when printing num_edges.
8189 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
8191         * doc/extend.texi (Blackfin Built-in Functions): New section.
8192         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
8193         @opindex.
8195 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
8197         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
8198         s/cmpstrsi/cmpstrnsi
8199         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
8200         'cmpstrnsi'.
8201         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
8202         (init_optabs): Initialize cmpstrn_optab.
8203         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
8204         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
8205         * expr.c: (enum insn_code cmpstrn_optab): Declare.
8206         * config/i386/i386.md: s/cmpstr/cmpstrn
8207         * config/c4x/c4x.md: s/cmpstr/cmpstrn
8208         * doc/md.texi: Update documentation.
8210 2005-07-11  Richard Henderson  <rth@redhat.com>
8212         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
8213         build_va_arg_indirect_ref.
8214         (alpha_gimplify_va_arg): Likewise.
8215         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
8216         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
8217         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
8218         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8219         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
8220         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
8221         Likewise.
8222         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8224 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8226         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
8227         * passes.c (init_optimization_passes): Add pass_empty_loop.
8228         * tree-pass.h (pass_empty_loop): Declare.
8229         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
8230         try_remove_empty_loop, remove_empty_loops): New functions.
8231         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
8232         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
8234 2005-07-12  Peter Barada  <peter@the-baradas.com>
8236         PR middle-end/16719
8237         PR middle-end/18421
8238         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
8239         in address registers.
8240         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
8241         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
8242         alternative of addsi3_5200.
8244 2005-07-11  Ian Lance Taylor  <ian@airs.com>
8246         * config/mips/mips.md (ffs<mode>2): Remove.
8248 2005-07-11  Ian Lance Taylor  <ian@airs.com>
8250         * doc/tree-ssa.texi (Cleanups): Improve description of
8251         TRY_FINALLY_EXPR.
8252         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
8254 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
8256         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
8257         * tree.h (DECL_ARGUMENT_FLD): New macro.
8259 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
8261         Fix PR tree-optimization/22404
8263         * tree-ssa-structalias.c (create_variable_info_for): Use
8264         correct offset.
8266 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8268         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
8269         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
8270         for second comparison operand.
8271         * config/bfin/predicates.md (reg_or_const_int_operand): New.
8273         * config/bfin/bfin.md (define_attr "type"): Add "sync".
8274         (define_insn_reservation "alu"): Likewise.
8275         (csync, ssync): Now of type sync.
8276         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
8277         -mcsync-anomaly -mspecld-anomaly.
8278         * config/bfin/bfin.opt (mcsync): Remove.
8279         (mcsync-anomaly, mspecld-anomaly): Add.
8280         * config/bfin/bfin.c: Include "insn-codes.h".
8281         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
8282         (TARGET_DEFAULT_TARGET_FLAGS): New.
8283         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
8285 2005-07-11  Steven Bosscher  <stevenb@suse.de>
8287         * basic-block.h: Give the BB flags enum a name, bb_flags.
8288         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
8289         * cfgcleanup.c (enum bb_flags): Remove here.
8290         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
8291         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
8292         (update_forwarder_flag): Likewise.
8293         (thread_jump): Likewise.
8294         (try_forward_edges): Likewise.
8295         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
8296         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
8297         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
8299 2005-07-11  Richard Guenther  <rguenther@suse.de>
8301         * config/i386/i386.opt: New target option -msseregparm.
8302         * config/i386/i386.c (override_options): Error out for
8303         -msseregparm but no SSE support.
8304         (ix86_function_sseregparm): Check for global sseregparm.
8305         * doc/invoke.texi: Document -msseregparm.
8307 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8309         * config.gcc (m32r-*-linux*): Use the default extra_parts.
8310         (m32rle-*-linux*): Ditto.
8312 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
8314         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
8315         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
8316         bytes.
8318 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8320         PR middle-end/22239
8321         PR target/20126
8322         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
8323         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
8325 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
8327         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
8328         (varmap): Heapify varmap.
8329         (constraints): Heapify constraints.
8330         (struct constraint_graph): Heapify succs and preds.
8331         (constraint_vec_find): Update for heapification.
8332         (constraint_set_union): Ditto.
8333         (insert_into_complex): Ditto.
8334         (constraint_edge_vec_find): Ditto.
8335         (erase_graph_self_edge): Ditto.
8336         (add_graph_edge): Ditto.
8337         (get_graph_weights): Ditto.
8338         (merge_graph_nodes): Ditto.
8339         (build_constraint_graph): Ditto.
8340         (topo_visit): Ditto.
8341         (solve_graph): Ditto.
8342         (create_variable_info_for): Ditto.
8343         (init_base_vars): Ditto.
8344         (delete_points_to_sets): Free graph, varmap, and complex constraints.
8345         (condese_varmap_nodes): Free complex vector.
8346         (clear_edges_for_node): Clear succs and preds vector.
8348 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
8350         * tree-ssa-structalias.c (update_alias_info): Change counting of
8351         references to not include vdefs.
8353 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
8355         * tree-ssa-alias.c (free_used_part_map): Add missing free.
8356         (up_insert): Ditto.
8358 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8360         * pa.c (pa_commutative_p): Make PLUS commutative when
8361         TARGET_NO_SPACE_REGS is true.
8363 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
8365         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
8366         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
8367         * tree-dfa.c (dump_subvars_for): New.
8368         (debug_subvars_for): New.
8369         (dump_variable): Show subvariables if VAR has them.
8370         * tree-flow-inline.h (get_subvar_at): New.
8371         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
8372         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
8373         Update all users.
8374         (struct subvar): Change fields offset and size to unsigned
8375         HOST_WIDE_INT.
8376         (dump_subvars_for): Declare.
8377         (debug_subvars_for): Declare.
8378         (get_subvar_at): Declare.
8379         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
8380         to unsigned HOST_WIDE_INT *.
8381         (overlap_subvar): Likewise.
8382         * tree-gimple.c (is_gimple_reg): Always return false for
8383         SFTs and memory tags.
8384         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
8385         Update all callers.
8386         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
8387         (compute_may_aliases): Call compute_points_to_sets.
8388         (collect_points_to_info_for): Remove.
8389         (compute_points_to_and_addr_escape): Remove.
8390         (delete_alias_info): Call delete_points_to_sets.
8391         (compute_flow_sensitive_aliasing): If the call to
8392         find_what_p_points_to returns false, call set_pt_anything.
8393         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
8394         (set_pt_anything): Clear pi->pt_vars.
8395         (set_pt_malloc): Remove.
8396         (merge_pointed_to_info): Remove.
8397         (add_pointed_to_expr): Remove.
8398         (add_pointed_to_var): Remove.
8399         (collect_points_to_info_r): Remove.
8400         (is_escape_site): Make extern.
8401         (create_sft): New.
8402         (create_overlap_variables_for): Call it.
8403         * tree-ssa-copy.c (merge_alias_info): Never merge
8404         flow-sensitive alias information.
8405         * tree-ssa-operands.c (get_expr_operands): Adjust variables
8406         offset and size to be unsigned HOST_WIDE_INT.
8407         (add_to_addressable_set): Rename from note_addressable.
8408         Set TREE_ADDRESSABLE as the variables are added to the set.
8409         Update all users.
8410         (add_stmt_operand): Do not try to micro-optimize unmodifiable
8411         operands into VUSEs when adding V_MAY_DEFs for members in an
8412         alias set.
8413         * tree-ssa-operands.h (add_to_addressable_set): Declare.
8414         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
8415         (struct variable_info): Add bitfield is_heap_var.
8416         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
8417         (new_var_info): Initialize is_heap_var.
8418         (get_constraint_for): Add HEAP variables to the symbol table.
8419         Mark them with is_heap_var.
8420         (update_alias_info): New.  Taken mostly from the old
8421         compute_points_to_and_addr_escape.
8422         (handle_ptr_arith): New.
8423         (find_func_aliases): Call update_alias_info.
8424         Call handle_ptr_info for tcc_binary expressions.
8425         Call mark_stmt_modified.
8426         (create_variable_info_for): If DECL has subvars, do not create
8427         variables for its subvars.  Always add all the fields.
8428         (set_uids_in_ptset): If the solution includes ANYOFFSET and
8429         SFTs, then add all the SFTs of the structure.
8430         If VI->DECL is an aggregate with subvariables, add the SFT at
8431         VI->OFFSET.
8432         (find_what_p_points_to): If VI is an artificial variable,
8433         translate to bitfields in SSA_NAME_PTR_INFO.
8434         If the solution is empty, set pi->pt_vars to NULL
8435         (init_base_vars): Create ANYOFFSET.
8436         (compute_points_to_sets): Rename from create_alias_vars.
8437         Make extern.
8438         (pass_build_pta): Remove.
8439         (delete_points_to_sets): Rename from delete_alias_vars.
8440         (pass_del_pta): Remove.
8441         * tree-ssa-structalias.h (struct alias_info): Move from
8442         tree-ssa-alias.h.
8443         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
8444         NUM_REFERENCES_SET): Likewise.
8445         (compute_points_to_sets, delete_points_to_sets): Declare.
8447 2005-07-09  Richard Henderson  <rth@redhat.com>
8449         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
8450         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
8451         alpha_split_lock_test_and_set_12): New functions.
8452         * config/alpha/alpha-protos.h: Update.
8453         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
8454         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
8455         * config/alpha/sync.md (I12MODE): New.
8456         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
8457         (sync_<fetchop_name><I48MODE>): Likewise.
8458         (sync_nand<I48MODE>): Likewise.
8459         (sync_old_<fetchop_name><I48MODE>): Likewise.
8460         (sync_new_<fetchop_name><I48MODE>): Likewise.
8461         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
8462         (sync_compare_and_swap<I48MODE>): Likewise.
8463         (sync_lock_test_and_set<I48MODE>): Likewise.
8464         (sync_compare_and_swap<I12MODE>): New.
8465         (sync_compare_and_swap<I12MODE>_1): New.
8466         (sync_lock_test_and_set<I12MODE>): New.
8467         (sync_lock_test_and_set<I12MODE>_1): New.
8469 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
8471         PR 21356
8472         PR 22332
8473         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
8475 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
8477         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
8478         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
8480 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
8482         PR target/21656
8483         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
8485 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
8487         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
8488         memory_operand constraint.
8489         (store_conditional_<mode>): Same.
8490         (sync_compare_and_swap<mode>): Same.
8491         (sync_lock_test_and_set<mode>): Same.
8493 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
8495         Rewrite PIC support to more closely model actual instructions.
8496         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
8497         (cris_symbol): Remove prototypes for removed functions.
8498         (cris_pic_symbol_type_of, cris_valid_pic_const)
8499         (cris_expand_pic_call_address): Prototypes for new functions.
8500         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
8501         variable.
8502         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
8503         modifiers.
8504         <case ':'>: Add case for new punctuation character.
8505         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
8506         emitting (extra) PIC modifier.
8507         <case UNSPEC>: Do not assert for PLT.
8508         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
8509         (cris_expand_prologue, cris_expand_epilogue): Check
8510         for pic_offset_table_rtx usage instead of taking
8511         current_function_uses_pic_offset_table as the final word.
8512         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
8513         Remove flag_pic difference.
8514         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
8515         the moral equivalents of...
8516         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
8517         functions.
8518         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
8519         (cris_handle_option): Mark ARG as unused.
8520         (cris_expand_pic_call_address): New worker function for "call",
8521         "call_value".
8522         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
8523         output PIC constructs here.
8524         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
8525         as symbol-specific modifers, not whole or part of operands.
8526         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
8527         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
8528         constants and flag_pic.
8529         (CONSTANT_INDEX_P): Adjust for new functions.
8530         (enum cris_pic_symbol_type): New helper type.
8531         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
8532         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
8533         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
8534         define_constants.
8535         ("movsi"): Emit actual instructions for GOT and relative access.
8536         ("*movsi_got_load"): New pattern to set up the register holding
8537         the GOT pointer.
8538         ("*movsi_internal"): Operand 1 is not a plain general_operand.
8539         Adjust FIXME for 'S'.
8540         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
8541         Use "movs" for -fpic cases.
8542         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
8543         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
8544         ("call", "call_value"): Just call cris_expand_pic_call_address for
8545         PIC addresses.
8546         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
8547         Remove special pattern.
8548         ("*expanded_call_side", "*expanded_call_value_side"): New
8549         patterns.
8550         (gotplt-to-plt, gotplt-to-plt-side-call)
8551         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
8552         peephole2:s.
8553         * config/cris/cris/predicates.md
8554         ("cris_general_operand_or_gotless_symbol"): Remove unused
8555         predicate.
8556         ("cris_general_operand_or_symbol"): Adjust for new functions.
8558 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
8560         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
8562 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
8564         * Makefile.in (TREE_H): Add treestruct.def.
8565         (c-decl.o): Add pointer-set.h
8566         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
8567         visibility on regular DECL's.
8568         (merge_decls): Fix the copying of decl nodes of various types for
8569         the new structures.  Don't update RTL, section name, weak status,
8570         etc, on DECL's without RTL.
8571         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
8572         Don't check volatile on non-variable types.
8573         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
8574         to check whether we have seen arguments.
8575         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
8576         flag is checked before field (flag is common, field is not).
8577         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
8578         TS_DECL_COMMON could have an origin.
8579         (add_location_or_const_value_attribute): Don't check section name
8580         on non-var/function decls.
8581         (dwarf2out_var_location): Reverse order of tests.
8582         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
8583         with DECL_WRTL_CHECK.
8584         * expmed.c (make_tree): rtl is now in decl_with_rtl.
8585         * fold-const.c (fold_binary): Don't check weakness on
8586         non-var/function decls.
8587         (tree_expr_nonzero_p): Ditto.
8588         (fold_checksum_tree): Use tree_decl_extra as sizeof
8589         buffer.
8590         * ggc-page.c (extra_order_size_table): Add sizes for
8591         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
8592         tree_field_decl.
8593         * gimplify.c (gimplify_bind_expr): Only set
8594         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
8595         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
8596         without RTL.
8597         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
8598         * langhooks.h (init_ts). New langhook.
8599         * passes.c (rest_of_decl_compilation): Reverse order of tests.
8600         * print-tree.c (print_node): Update to only print fields that
8601         exist in the structures the passed decl has.
8602         * toplev.c (wrapup_global_declarations): Don't reset
8603         DECL_DEFER_OUTPUT on DECL's that don't contain it.
8604         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
8605         * tree-inline.c (remap_decl): Ditto.
8606         * tree-outof-ssa.c (create_temp): Reverse order of tests.
8607         * tree-pretty-print.c (print_declaration): Don't print
8608         DECL_REGISTER on things that don't contain it.
8609         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
8610         non-var/function decls.
8611         * tree.c (tree_contains_struct): New structure.
8612         (init_priority_for_decl): New hashtable.
8613         (tree_int_map): New structure.
8614         (tree_int_map_eq): New function.
8615         (tree_int_map_marked_p): Ditto.
8616         (tree_int_map_hash): Ditto.
8617         (tree_map): Move to tree.h.
8618         (tree_map_eq): Externalize.
8619         (tree_map_hash): Ditto.
8620         (tree_map_marked_p): Ditto.
8621         (init_ttree): Set up tree_contains_struct and call langhook.
8622         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
8623         (tree_code_size): Update for new structures.
8624         (tree_node_structure): Update for new structures.
8625         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
8626         without the field.
8627         (copy_node_stat):  Copy init priority.
8628         (build_decl_stat): Ditto for visibility.
8629         (ts_enum_names): New.
8630         (tree_contains_struct_check_failed): New function.
8631         (decl_init_priority_lookup): Ditto.
8632         (decl_init_priority_insert): Ditto.
8633         * treestruct.def: New file.
8634         * tree.h (CODE_CONTAINS_STRUCT): New macro.
8635         (CONTAINS_STRUCT_CHECK): Ditto.
8636         (tree_contains_struct_check_failed): New prototype.
8637         (DECL_CHECK): Removed.
8638         (DECL_MINIMAL_CHECK): New.
8639         (DECL_COMMON_CHECK): Ditto.
8640         (DECL_WRTL_CHECK): Ditto.
8641         (DECL_NON_COMMON_CHECK): Ditto.
8642         (DECL_WITH_VIS_CHECK): Ditto.
8643         (VAR_OR_FUNCTION_DECL_P): Ditto
8644         (struct tree_decl_minimal): New structure.
8645         (struct tree_decl_common): Ditto.
8646         (struct tree_decl_with_rtl): Ditto.
8647         (struct tree_decl_with_vis): Ditto.
8648         (struct tree_decl_non_common): Ditto.
8649         (struct tree_field_decl): Ditto.
8650         (struct tree_parm_decl): Ditto.
8651         (struct tree_var_decl): Ditto.
8652         (struct tree_function_decl): Ditto.
8653         (struct tree_const_decl): Ditto.
8654         (struct tree_result_decl): Ditto.
8655         (union tree_node): Add new structures.
8656         * var-tracking.c (track_expr_p): Reverse order of tests.
8658         * doc/c-tree.texi: Add documentation on DECL node internal structure.
8660 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
8662         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
8663         * system.h: Poison FINALIZE_PIC.
8664         * doc/tm.texi (FINALIZE_PIC): Remove.
8666 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
8668         PR tree-opt/22329
8669         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
8670         to the correct type if we have a MODIFY_EXPR.
8672 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
8674         PR tree-optimization/22360
8675         * tree.c (upper_bound_in_type): Fix calculations for casting
8676         to a non-wider signed type and casting a signed value to a
8677         wider unsigned type.
8678         (lower_bound_in_type): Fix calculations for casting to a
8679         non-wider signed type.
8681         PR tree-optimization/20139
8682         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
8683         release_defs.
8684         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
8685         fold_cond_expr_cond.
8686         * tree-ssanames.c (release_defs): Assert in_ssa_p.
8687         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
8689 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
8691         PR tree-opt/22356
8692         * tree-complex.c (expand_complex_libcall): Produce
8693         REALPART_EXPR/IMAGPART_EXPR with the correct type.
8695 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
8697         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
8698         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
8699         b" assert and inserted fastpath code for this case.
8700         (bitmap_ior): Removed "a != b" assert.
8702 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8704         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
8705         (ENDFILE_SPEC): Likewise.
8706         * config/m32r/m32r.h (ASM_SPEC): Likewise.
8708         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
8709         a large stack frame at epilogue.
8711 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
8713         * final.c: Include sdbout.h when required.
8715 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
8717         * config.gcc (*-*-darwin*): Only one target-specific header file
8718         for generic darwin.
8719         (powerpc-*-darwin*): Add version-specific header files.
8720         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
8721         * config.in: Regenerate.
8722         * configure: Regenerate.
8723         * gcc.c: Include xregex.h.
8724         (version_compare_spec_function): New.
8725         (spec_function): Add version-compare.
8726         (replace_outfile_spec_function): Reformat comment.
8727         (compare_version_strings): New.
8728         * config/darwin-c.c (version_as_macro): New.
8729         (builtin_define): New.
8730         (darwin_cpp_builtins): New.
8731         * config/darwin-protos.h (darwin_cpp_builtins): New.
8732         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
8733         (LIB_SPEC): Make unconditional, update comment.
8734         (TARGET_C99_FUNCTIONS): Define.
8735         * config/darwin.opt: Sort.
8736         (mmacosx-version-min=): New.
8737         * config/darwin7.h: Delete.
8738         * config/darwin8.h: Delete.
8739         * config/i386/darwin.h (): Call darwin_cpp_builtins.
8740         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
8741         (TARGET_C99_FUNCTIONS): Define.
8742         * config/rs6000/darwin7.h: New.
8743         * config/rs6000/darwin8.h: New.
8744         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
8745         (-mmacosx-version-min): Document.
8747 2005-07-07  Ian Lance Taylor  <ian@airs.com>
8749         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
8751 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
8753         PR middle-end/22239
8754         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
8756 2005-07-07  Khem Raj  <kraj@mvista.com>
8758         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
8759         in bytes, not words.
8761 2005-07-07  Paul Brook  <paul@codesourcery.com>
8763         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
8764         DEFAULT_FUNCTION_ARG_PADDING to upward.
8766 2005-07-07  Richard Henderson  <rth@redhat.com>
8768         * function.c (locate_and_pad_parm): Record parameter alignment in
8769         stack_alignment_needed.
8771 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
8773         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
8774         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
8775         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
8776         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
8777         (define_attr "type"): Add isync, sync, load_l, store_c.
8778         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
8779         Create scratch volatile MEM.
8780         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
8781         sync.
8782         (load_locked_<mode>): New.
8783         (store_conditional_<mode>): New.
8784         (sync_compare_and_swap<mode>): Replace with splitter.
8785         (sync_lock_test_and_set<mode>): Replace with splitter.
8786         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
8787         and UNSPECV_ISYNC.
8788         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
8789         is ics.  Attribute isync.
8790         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
8791         lwsync.
8792         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
8793         and UNSPECV_SYNC_OP.
8794         (emit_unlikely_jump): New.
8795         (emit_load_locked): New.
8796         (emit_store_conditional): New.
8797         (rs6000_split_compare_and_swap): New.
8798         (rs6000_split_lock_test_and_set): New.
8799         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
8800         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
8801         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
8802         rs6000_split_lock_test_and_set): Declare.
8803         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
8804         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
8805         store_c, isync, sync.
8807 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
8809         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
8810         filenames to gtyp-gen.h.
8811         (s-typ-gen): Use it in place of for loops.
8813 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
8815         * hooks.c (hook_bool_rtx_int_false): New function.
8816         * hooks.h (hook_bool_rtx_int_false): Declare.
8817         * target-def.h (TARGET_COMMUTATIVE_P): Define.
8818         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
8819         * target.h (struct gcc_target): Add commutative_p member.
8820         * targhooks.c (hook_bool_rtx_commutative_p): New function.
8821         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
8822         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
8823         (pa_commutative_p): New function.
8824         * jump.c (target.h): Include.
8825         (rtx_renumbered_equal_p): Use targetm.commutative_p.
8826         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
8828 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
8830         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
8831         (s390_expand_setmem): New.
8832         * config/s390/s390.c: Likewise.
8833         (print_shift_count_operand): Truncate to 12 bits instead of 6.
8834         Adapt comments.
8835         * config/s390/s390.md: ("setmem<mode>"): Accept character as
8836         general_operand.  Call new function "s390_expand_setmem".
8837         ("clrmem_long", "*clrmem_long"): Rewrite to ...
8838         ("setmem_long", "*setmem_long"): ... this.
8840 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
8842         * config/s390/s390.c: (optimization_options): Enable
8843         TARGET_MVCLE at -Os.
8844         * doc/invoke.texi: Document changes in default behaviour.
8845         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
8847 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
8849         * expr.c: (set_storage_via_setmem): Convert opchar to mode
8850         defined by back-end.
8852 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
8854         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
8855         all sets in the pattern.
8856         * config/rs6000/rs6000.md (stack_protect_testsi,
8857         stack_protect_testdi): Likewise.
8859 2005-07-06  Jeff Law  <law@redhat.com>
8861         * tree-vrp.c (simplify_using_ranges): Kill.
8862         (vrp_finalize): Remove call to simplify_using_ranges.
8863         (simplify_stmt_using_ranges): New function extracted from
8864         simplify_using_ranges.
8865         (simplify_div_or_mod_using_ranges): Likewise.
8866         (simplify_abs_using_ranges): Likewise.
8867         (simplify_cond_using_ranges): New function.
8868         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
8869         * tree-ssa-propagate.c (substitute_and_fold): Call
8870         simplify_stmt_using_ranges if we have range information.
8872 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
8874         * config/ia64/ia64.c (ia64_reorg): Check optimize before
8875         ia64_flag_schedule_isns2.
8877         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
8878         reading/writing general registers.
8879         (ia64_function_arg): Revert 2005-06-18 change.
8881 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
8883         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
8884         (legitimize_tls_address): Use gcc_unreachable instead of abort.
8886 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
8888         * function.c (expand_function_end): Revert part of 2005-06-27
8889         patch.  Do sjlj_emit_function_exit_after after return_label.
8891 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
8893         * doc/install.texi (--disable-libssp): New.
8895 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
8897         * doc/invoke.texi: Update -fforce-mem documentation.
8898         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
8899         code for -fforce-mem.
8900         * expmed.c: (store_bit_field,store_fixed_bit_field,
8901         extract_bit_field): Ditto.
8902         * expr.c: (convert_move): Ditto.
8903         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
8904         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
8905         emit_conditional_add,expand_float,expand_fix): Ditto.
8906         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
8907         (common_handle_option): Issue warning when -fforce-mem specified.
8909 2005-07-06  Paul Brook  <paul@codesourcery.com>
8911         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
8912         argument is empty.
8913         * configure: Regenerate.
8915 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
8917         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
8919 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
8921         Fix PR tree-optimization/22319
8922         Fix PR tree-optimization/22140
8923         Fix PR tree-optimization/22310
8925         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
8926         variable sized types.
8927         Use correct type for intermediate structure on *a = *b structure
8928         copies.
8930 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
8932         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
8933         Remove.
8934         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
8935         (machine_function): Move typedef to...
8936         * config/rs6000/rs6000.c (machine_function): ... here.  Add
8937         varargs_save_offset field.
8938         (rs6000_stack_t): Remove varargs_size field.
8939         (setup_incoming_varargs): Allocate varargs save area using
8940         assign_stack_local, try to make it as small as possible.
8941         Save offset from virtual_stack_vars_rtx to the save area
8942         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
8943         instead of magic 8 when fp word byte size is used.
8944         (rs6000_va_start): Use cfun->machine->varargs_save_offset
8945         instead of -RS6000_VARARGS_SIZE.
8946         (rs6000_stack_info, debug_stack_info,
8947         rs6000_initial_elimination_offset): Remove all traces of
8948         varargs_size.
8949         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
8950         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
8951         RS6000_VARARGS_AREA.
8953 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
8955         PR tree-optimization/21963
8956         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
8957         constant_multiple_of in the same way get_computation_cost_at does.
8959 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
8961         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
8962         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
8963         (gen_compare_reg): If sparc_compare_emitted is set, clear it
8964         and return its previous value.
8965         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
8966         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
8967         constants.
8968         (stack_protect_set, stack_protect_test): New expanders.
8969         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
8970         stack_protect_testdi): New insns.
8971         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
8972         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
8974 2005-07-06  Jeff Law  <law@redhat.com>
8976         * tree-ssa-dce.c (cfg_altered): New global.
8977         (tree_dce_init): Initialize cfg_altered.
8978         (remove_dead_stmt): If we remove an edge in the CFG, then set
8979         CFG_ALTERED.
8980         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
8981         the dominators.
8983 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
8985         * Makefile.in (stamp-collect-ld): Use
8986         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
8987         ./collect-ld if it already exists.
8988         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
8989         Don't remove ./nm if it already exists.
8991 2005-07-05  Devang Patel  <dpatel@apple.com>
8993         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
8994         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
8995         * tree-vectorizer.c (vect_loop_location): New.
8996         (vect_print_dump_info): Use vect_loop_location.
8997         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
8998         (vectorize_loops): Set vect_loop_location.
8999         * tree-vect-analyze.c (vect_analyze_offset_expr,
9000         vect_determin_vectorization_factor, vect_analyze_operations,
9001         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
9002         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
9003         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
9004         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
9005         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
9006         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
9007         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
9008         vect_analyze_loop): Adjust vect_print_dump_info API.
9009         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
9010         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
9011         vect_finish_stmt_generation, vectorizable_assignment,
9012         vectorizable_operation, vectorizable_store, vectorizable_load,
9013         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
9014         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
9015         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
9016         vect_transform_loop): Same.
9017         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
9018         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
9019         Same.
9021 2005-07-05  Randolph Chung  <tausq@debian.org>
9023         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
9024         * configure: Regenerate.
9025         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
9026         (pa_tls_referenced_p): Declare.
9027         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
9028         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
9029         (legitimize_tls_address): New.
9030         (hppa_legitimize_address): Handle TLS addresses.
9031         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
9032         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9033         (emit_move_sequence): Handle TLS addresses.
9034         (pa_encode_section_info): Call default handler to handle common
9035         sections.
9036         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
9037         (CONSTANT_ADDRESS_P): Reject TLS operands.
9038         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
9039         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
9040         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
9041         (UNSPEC_TLSLE): Define new constants.
9042         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
9043         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
9044         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
9045         (tie_symbolic_operand, tle_symbolic_operand): New
9047 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
9049         * aclocal.m4: Update macros for autoconf 2.59 style.
9050         * configure.ac: Likewise.
9052 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9054         * pa.c (function_value): Handle small aggregates on 32-bit targets.
9055         (function_arg): Pass small aggregates in general registers on 32-bit
9056         targets.
9057         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
9059 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
9061         * Makefile.in (final.o): Fix dependencies.
9063 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
9065         PR c/22013
9066         PR c/22098
9067         * langhooks.h (struct lang_hooks): Add expr_to_decl.
9068         * langhooks.c (lhd_expr_to_decl): New.
9069         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
9070         New.
9071         (LANG_HOOKS_INITIALIZER): Update.
9072         * tree.c (recompute_tree_invarant_for_addr_expr): Call
9073         expr_to_decl langhook.
9074         * c-tree.h (c_expr_to_decl): Declare.
9075         * c-typeck.c (c_expr_to_decl): New.
9076         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
9077         specially.
9078         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
9080 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
9082         PR c/22308
9083         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
9084         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
9086 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
9088         * Makefile.in: Adjust dependencies.
9089         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
9090         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
9091         * alias.c (rest_of_handle_cfg, pass_cfg): New.
9092         * bb-reorder.c (duplicate_computed_gotos): Make it static.
9093         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
9094         rest_of_compilation.
9096         * bb-reorder.c (gate_duplicate_computed_gotos,
9097         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
9098         rest_of_handle_reorder_blocks, pass_reorder_blocks,
9099         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
9100         pass_partition_blocks): New.
9101         * bt-load.c (gate_handle_branch_target_load_optimize,
9102         rest_of_handle_branch_target_load_optimize,
9103         pass_branch_target_load_optimize): New.
9104         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
9105         pass_jump2): New.
9106         * cfglayout.c (pass_insn_locators_initialize): New.
9107         * cfgrtl.c (pass_free_cfg): New.
9108         * combine.c (gate_handle_combine, rest_of_handle_combine,
9109         pass_combine): New.
9110         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
9111         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
9112         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
9113         * except.c (pass_set_nothrow_function_flags,
9114         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
9115         pass_rtl_eh): New.
9116         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
9117         rest_of_handle_shorten_branches, pass_shorten_branches,
9118         rest_of_clean_state, pass_clean_state): New.
9119         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
9120         rest_of_handle_remove_death_notes, pass_remove_death_notes,
9121         rest_of_handle_life, pass_life, rest_of_handle_flow2,
9122         pass_flow2): New.
9123         * function.c (pass_instantiate_virtual_regs, pass_init_function,
9124         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
9125         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
9126         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
9127         pass_gcse): New.
9128         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
9129         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
9130         pass_rtl_ifcvt, gate_handle_if_after_combine,
9131         rest_of_handle_if_after_combine, pass_if_after_combine,
9132         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
9133         pass_if_after_reload): New.
9134         * integrate.c (pass_initial_value_sets): New.
9135         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
9136         pass_purge_lineno_notes): New.
9137         * mode-switching.c (rest_of_handle_mode_switching,
9138         pass_mode_switching): New.
9139         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
9140         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
9141         pass_loop2): New.
9142         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
9143         pass_loop_optimize): New.
9144         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
9145         pass_sms): New.
9146         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
9147         pass_gcse2): New.
9148         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
9149         pass_postreload_cse): New.
9150         * profile.c (gate_handle_profiling, pass_profiling,
9151         rest_of_handle_branch_prob, pass_branch_prob): New.
9152         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
9153         pass_split_before_regstack, gate_handle_split_before_regstack,
9154         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
9155         rest_of_handle_split_all_insns, pass_split_all_insns): New.
9156         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
9157         pass_stack_regs): New.
9158         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
9159         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
9160         pass_stack_adjustments): New.
9161         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
9162         pass_regrename): New.
9163         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
9164         pass_delay_slots, gate_handle_machine_reorg,
9165         rest_of_handle_machine_reorg, pass_machine_reorg): New.
9166         * rtl.h (extern void purge_line_number_notes): New.
9167         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
9168         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
9169         pass_sched2): New.
9170         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
9171         pass_tracer): New.
9172         * value-prof.c (gate_handle_value_profile_transformations,
9173         rest_of_handle_value_profile_transformations,
9174         pass_value_profile_transformations): New.
9175         * var-tracking.c (gate_handle_var_tracking,
9176         pass_variable_tracking): New.
9177         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
9179         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
9180         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
9181         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
9182         rest_of_handle_old_regalloc, rest_of_handle_regrename,
9183         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
9184         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
9185         rest_of_handle_gcse2, rest_of_handle_regmove,
9186         rest_of_handle_tracer, rest_of_handle_if_conversion,
9187         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
9188         rest_of_handle_web, rest_of_handle_branch_prob,
9189         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
9190         rest_of_handle_jump_bypass, rest_of_handle_combine,
9191         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
9192         rest_of_handle_gcse, rest_of_handle_loop_optimize,
9193         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
9194         rest_of_handle_mode_switching, rest_of_handle_jump,
9195         rest_of_handle_eh, rest_of_handle_stack_adjustments,
9196         rest_of_handle_flow2, rest_of_handle_jump2,
9197         rest_of_handle_peephole2, rest_of_handle_postreload,
9198         rest_of_handle_shorten_branches, rest_of_clean_state,
9199         rest_of_compilation): Remove.
9201         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
9202         * passes.c (dump_flags, in_gimple_form, all_passes,
9203         all_ipa_passes, all_lowering_passes, register_one_dump_file,
9204         register_dump_files, next_pass_1, last_verified, execute_todo,
9205         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
9206         from tree-optimize.c.
9207         (init_optimization_passes): Moved from tree-optimize.c,
9208         adding the RTL optimizations.
9209         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
9210         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
9211         all_ipa_passes, all_lowering_passes, register_one_dump_file,
9212         register_dump_files, next_pass_1, last_verified, execute_todo,
9213         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
9214         init_tree_optimization_passes, ipa_passes): Delete.
9215         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
9216         the RTL dumps.
9217         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
9218         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
9219         from tree.h.
9220         (ipa_passes): Remove.
9221         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
9222         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
9223         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
9224         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
9225         (dump_info_p, dump_flag): Moved to tree-dump.h.
9227         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
9228         cgraph.c, opts.c.
9229         * passes.c (finish_optimization_passes): Use dump_begin
9230         and dump_end, TDI_end.
9231         (gate_rest_of_compilation): New.
9232         (pass_rest_of_compilation): Use it.
9233         (gate_postreload, pass_postreload): New.
9234         * toplev.c (general_init): Rename init_tree_optimization_passes.
9235         * toplev.h (init_tree_optimization_passes): Rename to
9236         init_optimizations_passes.
9237         * tree-dump.c (dump_flag): Make static.
9238         (dump_files): Remove RTL dumps.
9239         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
9240         pass_cleanup_cfg, pass_free_cfg_annotations,
9241         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
9242         pass_init_datastructures, pass_fixup_cfg): Make non-static.
9243         * tree-pretty-print.c: Include tree-pass.h.
9244         * cgraph.c: Include tree-dump.h.
9246 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
9248         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
9249         Only fall back to saying it points to readonly memory if
9250         we can't do better.
9252 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
9254         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
9255         * config/m32r/m32r.c (m32r_compute_frame_size,
9256         m32r_expand_prologue): Take current_function_profile into
9257         account whenever we reference
9258         current_function_uses_pic_offset_table.
9259         (m32r_finalize_pic): Remove.
9260         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
9262 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
9264         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
9265         instead of $<.  Don't remove ./as if it already exists.
9267 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9269         PR target/21723
9270         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
9271         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
9272         for complex modes when generating code for PA 1.0.
9273         (VALID_FP_MODE_P): New macro.
9274         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
9275         sets for all general and floating point modes.  Align wide floating
9276         point modes to even register boundaries to comply with architectural
9277         requirements.
9278         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
9279         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
9280         (VALID_FP_MODE_P): New macro.
9281         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
9282         sets for all general and floating point modes.  Align wide floating
9283         point modes to even register boundaries to comply with architectural
9284         requirements.
9286 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
9288         * tree-dump.c (dump_files): Initialize dump number for .cgraph
9289         to 0.
9291 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
9293         * tree-ssa-structalias.c: Don't include expr.h.
9295 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
9297         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
9298         comments.
9300 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
9302         Fix PR tree-optimization/22279
9304         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
9305         correct operator.
9307 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
9309         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
9311 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
9313         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
9314         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
9315         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
9316         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
9317         config/stormy16/stormy16.c, config/v850/v850.c,
9318         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
9319         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
9320         Avoid "." or "\n" at end of diagnostics and capital letters at
9321         start of diagnostics.
9322         * combine.c, cse.c: Don't translate dump file output.
9323         * toplev.c (print_version): Only translate output if going to
9324         stderr.
9326 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
9328         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
9329         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
9330         typos.
9332 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9334         * pa.c (fix_range): Fix typo in comment.
9336 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
9338         * tree-vrp.c (extract_range_from_assert): Replace
9339         fold (build (...)) with fold_build2.
9341 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9343         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
9344         gcc_gfc_char_table, init_dynamic_gfc_info): New.
9345         (format_types_orig, handle_format_attribute): Add support for
9346         format "gcc_gfc".
9348 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9350         * varasm.c (assemble_variable): Fix format specifier thinko.
9352 2005-07-03  Ira Rosen  <irar@il.ibm.com>
9354         PR tree-optimization/22029 (and 22135)
9355         * tree-pretty-print.c (dump_generic_node): Check that the node is not
9356         a phi node before calling dump_vops.
9358 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9360         * tree-dump.h (dump_string_field): Declare.
9361         * tree-dump.c: Use it instead of dump_string.
9362         (dump_string_field): Make non-static.
9364 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9366         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
9367         up the minimal CFG stuff always when optimize > 0.  Call
9368         split_all_insns_noflow in PIC case if needed.
9370 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9371             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
9373         PR c++/18279
9374         * c-decl.c (c_write_global_declarations): Dump contents of
9375         external scope to.
9376         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
9377         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
9378         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
9379         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
9380         is enabled.
9382 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
9384         * c-common.h (GCC_DIAG_STYLE): Define.
9385         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
9386         version for format checking to 4.1.
9387         * c-format.c: Include toplev.h after c-common.h.
9388         (enum format_type): Add gcc_tdiag_format_type.
9389         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
9390         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
9391         (format_types_orig): Add gcc_tdiag.
9392         (init_dynamic_diag_info): Support gcc_tdiag formats.
9393         (handle_format_attribute): Likewise.
9394         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
9395         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
9396         version for format checking to 4.1.
9397         (warning0, warning, error, pedwarn, sorry): Use
9398         ATTRIBUTE_GCC_DIAG.
9399         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
9400         (finish_aliases_1): Do not use %qE.
9401         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
9402         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
9403         Correct format bugs.
9404         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
9405         parameter to unsigned HOST_WIDE_INT.
9406         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
9408 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
9410         PR middle-end/21742
9411         * expr.c (write_complex_part): Use adjust_address for MEM.
9412         (read_complex_part): Same.
9414 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
9416         Fix PR tree-optimization/22280
9418         * tree-sra.c (generate_element_init): Remove useless loop.
9420 2005-07-02  Richard Henderson  <rth@redhat.com>
9422         * config/alpha/alpha.c (alpha_legitimize_address): Check for
9423         TLS_MODEL_NONE.
9424         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
9426 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
9428         PR middle-end/14490
9429         * fold-const.c (fold_binary): Handle the return value of
9430         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
9431         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
9433 2005-07-02  Jeff Law  <law@redhat.com>
9435         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
9436         a eliminate type conversion which feeds an equality comparison
9437         if the original type or either operand in the comparison is a
9438         function pointer.
9440 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
9442         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
9443         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
9444         texts.
9445         * config/avr/avr.c: Do not use '`' as left quote.
9446         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
9447         Remove "." from end of diagnostics.  Make diagnostics start with
9448         lowercase letter.
9450 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
9451             Joseph S. Myers  <joseph@codesourcery.com>
9453         * toplev.c (default_tree_printer): Handle setting location with
9454         '+' flag.
9455         * c-objc.common.c (c_tree_printer): Likewise.
9456         * c-format.c (gcc_diag_flag_specs): Add '+'.
9457         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
9458         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
9459         formats.
9460         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
9461         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
9462         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
9463         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
9464         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
9465         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
9466         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
9467         format arguments where %J is used without %D.
9469 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
9471         * gcc.c (LINK_SSP_SPEC): Define.
9472         (link_ssp_spec): New variable.
9473         (LINK_COMMAND_SPEC): Add %(link_ssp).
9474         (static_specs): Add link_ssp_spec.
9475         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
9476         * configure: Rebuilt.
9477         * config.in: Rebuilt.
9479         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
9480         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
9481         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
9482         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
9483         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
9484         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
9485         -0x7008(2) instead of reading __stack_chk_guard variable.
9486         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
9487         number.
9488         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
9489         (stack_protect_set, stack_protect_test): Use *_tls* patterns
9490         if TARGET_THREAD_SSP_OFFSET is defined.
9491         (stack_tls_protect_set_si, stack_tls_protect_set_di,
9492         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
9494         Revert:
9495         2005-06-27  Richard Henderson  <rth@redhat.com>
9496         * libgcc-std.ver (GCC_4.1.0): New.
9497         * libgcc.h (__stack_chk_guard): Declare.
9498         (__stack_chk_fail, __stack_chk_fail_local): Declare.
9499         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
9500         * mklibgcc.in (lib2funcs): Add them.
9502 2005-07-01  Richard Henderson  <rth@redhat.com>
9504         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
9505         void * before struct sigcontext *.
9506         (x86_fallback_frame_state): Likewise.
9508 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
9510         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
9512 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
9514         PR tree-opt/22269
9515         * tree-ssa-reassoc.c (should_transpose): Fix which operand
9516         we check for SSA_NAME for.
9518 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
9520         Fix PR tree-optimization/22071
9522         * tree-ssa-structalias.c (offset_overlaps_with_access): New
9523         function.
9524         (get_constraint_for_component_ref): Use it.
9526 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
9528         PR other/22264
9529         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
9530         print out the last new line.
9532 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
9534         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
9535         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
9536         * config/cris/cris.c (cris_conditional_register_usage): Adjust
9537         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
9538         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
9539         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
9540         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
9541         (enum reg_class): New member CC0_REGS.
9542         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
9543         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
9544         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
9545         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
9546         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
9547         Adjust for register now described.
9549 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
9551         PR target/22262
9552         * config/i386/i386.md (stack_protect_test_si,
9553         stack_protect_test_di): Add earlyclobber for scratch 3.
9554         * config/rs6000/rs6000.md (stack_protect_testsi,
9555         stack_protect_testdi): Add earlyclobber for scratch 3,
9556         remove earlyclobber from scratch 4.
9558 Older entries for 2005 can be found in ChangeLog-2005.