OSDN Git Service

8146c452331084902f50824dca611c3bb51d748f
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2
3         * cse.c (fold_rtx): Typo fix.
4         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
5
6 2005-11-21  Richard Henderson  <rth@redhat.com>
7
8         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
9         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
10
11         * c-tree.h (lookup_name): Move declaration ...
12         * c-common.h (lookup_name): ... here.
13         * config/darwin-c.c: Include c-common.h.
14         * config/t-darwin: Update dependencies.
15
16 2005-11-22  Ben Elliston  <bje@au.ibm.com>
17
18         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
19         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
20         * genopinit.c (gen_insn): Likewise.
21         * reload.c (find_equiv_reg): Likewise.
22         * loop.c (load_mems): Likewise.
23         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
24         * cse.c (find_comparison_args, fold_rtx): Likewise.
25         * dwarf2out.c (add_const_value_attribute): Likewise.
26         * expr.c (convert_move): Likewise.
27         * recog.c (general_operand, register_operand): Likewise.
28         * reg-stack.c (replace_reg): Likewise.
29         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
30         * c-common.c (handle_vector_size_attribute): Likewise.
31         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
32         (simplify_binary_operation_1): Likewise.
33         (simplify_const_binary_operation): Likewise.
34         (simplify_relational_operation): Likewise.
35         (simplify_const_relational_operation): Likewise.
36         (simplify_immed_subreg): Likewise.
37         * emit-rtl.c (gen_lowpart_common): Likewise.
38         * expmed.c (expand_mult): Likewise.
39         * stor-layout.c (layout_type): Likewise.
40
41 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
42
43         PR target/24951
44         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
45         cst2 only for SPE vectors.
46
47 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
48
49         PR target/24953
50         * config/rs6000/predicates.md (vrsave_operation): Check
51         UNSPEC_VOLATILE value.
52
53 2005-11-21  Jan Hubicka  <jh@suse.cz>
54
55         PR tree-optimization/24653
56         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
57
58 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
59
60         * config/i386/predicates.md (ax_reg_operand): New predicate.
61         (memory_displacement_only_operand): New predicate.
62         * config/i386/i386.md ("modrm" attribute): Return 0 if one
63         operand is AX register and the other operand is memory operand
64         with displacement only.
65
66 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
67
68         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0 
69         if we don't care about NaNs or Infinities.
70
71 2005-11-20  Ian Lance Taylor  <ian@airs.com>
72
73         PR rtl-optimization/24883
74         * combine.c (combinable_i3pat): When checking whether the
75         destination of i3 is used in i3, consider paradoxical subregs.
76
77 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
78
79         PR middle-end/20583
80         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
81
82 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
83
84         * combine.c (try_combine): Do not run subst on i1src and i2src in
85         the case of generating a PARALLEL for a comparison.
86
87 2005-11-20  Richard Henderson  <rth@redhat.com>
88
89         PR 24931
90         * tree-sra.c (struct sra_elt): Add all_no_warning.
91         (struct sra_walk_fns) <use>: Add use_all argument.
92         (sra_walk_expr): Pass it.
93         (sra_walk_modify_expr): Likewise.
94         (scalarize_ldst): Likewise.
95         (scan_use): Update for new argument.
96         (mark_no_warning): New.
97         (scalarize_use): Use it.
98
99 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
100
101         * expr.c (expand_expr_real): Use usmul_optab for widening
102         signed * unsigned multiplies.
103         * genopinit.c (optabs): Add usmul_widen_optab.
104         * optabs.c (init_optabs): Likewise.
105         * optabs.h (enum optab_index): Add OTI_usmul_widen.
106         (usmul_widen_optab): Define.
107         * config/bfin/bfin.md (usmulhisi3): New pattern.
108
109         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
110
111 2005-11-20  Graham Stott <btinternet.com>
112
113         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
114
115 2005-11-20  Andreas Schwab  <schwab@suse.de>
116
117         PR target/24757
118         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
119         insn.
120
121 2005-11-19  Richard Henderson  <rth@redhat.com>
122
123         PR tree-opt/24665
124         * tree-gimple.c (is_gimple_id): Export.
125         * tree-gimple.h (is_gimple_id): Declare.
126         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
127         (get_default_value): Use it.
128         (maybe_fold_stmt_indirect): Likewise.
129
130 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
131
132         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
133         than VR1 or vice-versa.
134
135 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
136
137         PR middle-end/24912
138         PR middle-end/24750
139         * reload.c (find_reloads_address_1): Mention dependency on
140         gen_reload.
141         * reload1.c (gen_reload): For IN with an unary operation, try
142         moving inner expression to OUT if trivial SET is not valid.
143         Confirm that the result is valid.  Move common code block into...
144         (emit_insn_if_valid_for_reload): New function.
145
146 2005-11-19  Richard Guenther  <rguenther@suse.de>
147
148         * fold-const.c (fold_indirect_ref_1): Make sure we fold
149         ARRAY_REFs of constant strings.
150
151 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
152
153         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
154         fatal format string.
155
156 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
157
158         * combine.c (make_compound_operation): Swap operands of
159         commutative operation if necessary before returning.
160
161 2005-11-19  Richard Guenther  <rguenther@suse.de>
162
163         PR middle-end/23294
164         * fold-const.c (fold_plusminus_mult_expr): New function.
165         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
166         cases, remove now unnecessary code.
167
168 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
169
170         * gensupport.c (old_preds): Rename to std_preds, add special field.
171         (struct old_pred_table): Rename to struct std_pred_table, add special
172         field.
173         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
174         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
175         (init_predicate_table): Adjust, and set along the way whether a
176         predicate is special.
177
178 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
179
180         * BASE-VER: Change to 4.2.0.
181
182 2005-11-18  James E Wilson  <wilson@specifix.com>
183
184         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
185         returning it.
186
187 2005-11-18  Mike Stump  <mrs@apple.com>
188
189         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
190         * config/darwin-c.c (darwin_pragma_unused): Likewise.
191         * c-decl.c (lookup_name_two) Remove.
192         * c-tree.h (lookup_name_two): Remove.
193         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
194         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
195         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
196         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
197         
198 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
199
200         PR target/24914
201         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
202         when not generating code to use that co-processor.
203
204 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
205
206         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
207         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
208         these functions are now in tree-phinodes.c.
209
210 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
211
212         * config/bfin/bfin.md (trap): New pattern.
213
214 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
215
216         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
217         on types.
218
219         * expr.c (expand_expr_real): Don't call record_block_change unless
220         ib_boundaries_block is non-null
221
222         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
223
224         * fold-const.c (build_range_check): Use proper type for subtraction
225         when merging lower bound.
226
227 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
228
229         PR rtl-optimization/24497
230         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
231         the copied insn.
232
233 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
234
235         * tree-scalar-evolution.c (expression_expensive_p): New function.
236         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
237
238 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
239
240         * config/bfin/crtlibid.s: New file.
241
242 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
243
244         PR target/24348
245         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
246         when not using sjlj exceptions.
247         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
248         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
249         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
250         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
251         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
252         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
253         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
254         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
255         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
256         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
257         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
258         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
259         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
260         defines.
261         * config/pa/hpux-unwind.h: New file.
262
263 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
264
265         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
266         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
267         * varasm.c (do_assemble_alias): Adjust call.
268         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
269         is defined.
270         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
271
272 2005-11-17  James E Wilson  <wilson@specifix.com>
273
274         * tree.def (FUNCTION_DECL): Correct typo in comment.
275
276 2005-11-17  Richard Henderson  <rth@redhat.com>
277
278         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
279         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
280         and DW_CFA_def_cfa_sf.
281         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
282         (dbx_reg_number): Don't assert particular registers here.
283         (based_loc_descr): ... do it here instead.  Fold in ...
284         (eliminate_reg_to_offset): ... this function.
285         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
286         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
287         * unwind-dw2.c (execute_cfa_program): Apply data align factor
288         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
289         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
290         (instantiate_virtual_regs): Likewise.
291         * var-tracking.c (adjust_stack_reference): Likewise.
292         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
293
294 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
295
296         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
297         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
298         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
299         crtlibid.o.
300         ($(T)crtlibid.o): New rule.
301
302 2005-11-16  Richard Guenther  <rguenther@suse.de>
303
304         PR middle-end/24851
305         * fold-const.c (extract_array_ref): Return byte offset
306         in all cases.
307         (fold_binary): Fold &x[a] CMP &x[b] to
308         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
309         behavior.
310
311 2005-11-16  Richard Henderson  <rth@redhat.com>
312
313         PR middle-end/23497
314         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
315         parts of an SSA_NAME.
316
317 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
318
319         PR target/24861
320         * arm.md (split for movsf with immediate): Restrict split to insns
321         that set a general register.
322
323 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
324
325         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
326         uw_update_context.
327         * unwind-dw2.c (uw_advance_context): Likewise.
328         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
329         _Unwind_SjLj_Unregister.
330         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
331
332 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
333
334         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
335
336 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
337
338         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
339         langhook to get a DImode integer type.
340
341 2005-11-16  Richard Henderson  <rth@redhat.com>
342             J"orn Rennecke <joern.rennecke@st.com>
343             Ulrich Weigand  <uweigand@de.ibm.com>
344
345         PR rtl-opt/24160
346         PR target/24621
347         * reload1.c (reg_equiv_invariant): New.
348         (reload): Allocate, initialize, and free it.
349         (calculate_needs_all_insns): Check it when skipping equivalence
350         setting insns.
351         (alter_reg): Likewise.
352         (eliminate_regs_1): Rename from eliminate_regs.  Add new
353         may_use_invariant argument; only use reg_equiv_invariant when true.
354         (eliminate_regs): New.
355         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
356         a context for which may_use_invariant may be true.
357
358 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
359
360         * fold-const.c (const_binop): Don't constant fold the operation
361         if the result has overflowed and flag_trapping_math.
362         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
363
364 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
365
366         * config/arm/unwind-arm.c (abort): Add prototype here.
367         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
368         (struct phase1_vrs): Add prev_sp.
369         (unwind_phase2_forced): Save the original core registers instead of
370         modifying entry_vrs.  Take a new flag argument for resuming unwinding
371         and set action flags accordingly.  Always set _US_END_OF_STACK when
372         get_eit_entry fails.  Unwind before calling the stop function.
373         (_Unwind_GetCFA): New function.
374         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
375         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
376         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
377         just call unwind_phase2_forced.
378         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
379         * config/arm/unwind-arm.h (abort): Remove prototype.
380         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
381         prototypes.
382         (_Unwind_GetCFA): New prototype.
383         * config/arm/pr-support.c (abort): Add prototype here.
384         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
385         forced unwinding.
386         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
387         not schedule the prologue with non-call exceptions and EABI.
388
389 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
390
391         * config/arm/unwind-arm.h: Reorder interface function declarations.
392         (_URC_END_OF_STACK): New enumeration value.
393         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
394         (struct _Unwind_Control_Block): Document reserved field use.
395         (_Unwind_Stop_Fn): New typedef.
396         (_Unwind_ForcedUnwind): Declare.
397         (_Unwind_Resume_or_Rethrow): Declare.
398         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
399         argument.  Adjust.
400         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
401         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
402         (UCB_FORCED_STOP_ARG): New.
403         (search_EIT_table): Update boundary condition checks.
404         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
405         (unwind_phase2): Replace for with do..while.
406         (unwind_phase2_forced): New.
407         (__gnu_Unwind_RaiseException): Replace for with do..while.
408         (__gnu_Unwind_ForcedUnwind): New.
409         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
410         Use appropriate phase2 unwinder.
411         (__gnu_Unwind_Resume_or_Rethrow): New.
412         (__gnu_unwind_pr_common): Cope with forced unwinding.
413
414 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
415
416         PR target/24772
417         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
418
419         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
420         roundsf2): Remove "s" from mnemonic.
421
422 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
423
424         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
425         __PIC__ is defined.
426         * config/bfin/crtn.s: Change epilogues to match.
427         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
428         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
429         __PIC__ and __pic__.
430
431 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
432
433         PR 24357
434         * doc/invoke.texi: Distinguish between free and fixed form instead of
435         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
436         languages.
437         * gcc.c (default_compilers): Remove double entries, add entries for
438         suffixes '.F90' and '.F95'.
439
440 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
441
442         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
443         in the stack probing loop.
444
445 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
446
447         * configure.ac: Use .machine power5 not power5x.
448         * configure: Regenerate.
449
450 2005-11-15  Mike Stump  <mrs@apple.com>
451
452         * c-decl.c (lookup_name_two): Add.
453         * c-tree.h (lookup_name_two): Likewise.
454         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
455         * config/darwin-c.c (darwin_pragma_unused): Likewise.
456
457 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
458
459         PR rtl-optimization/23392
460         * regrename.c (enum scan_actions) Add mark_access.
461         (scan_actions_name): Ditto.
462         (scan_rtx_reg): Handle mark_access.
463         (scan_rtx_address): Do nothing for mark_access.
464         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
465         and regs in REG_INC notes before closing chains for dead regs.
466         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
467         opening chains for new writes.
468
469 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
470
471         * c.opt (ffixed-line-length-none): New.
472
473 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
474
475         * mklibgcc.in: Change contents of eh_dummy.c.
476
477 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
478
479         * loop.c (scan_loop): Do not insert temporaries for hard registers.
480
481 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
482
483         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
484         of making syscalls.
485         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
486
487 2005-11-15  Jan Hubicka  <jh@suse.cz>
488
489         * invoke.texi (large-unit-insns): Document.
490         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
491         * params.def (large-unit-insns): New param.
492
493 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
494
495         PR target/24869
496         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
497         special register for operand 3.  Reindent constraints to align
498         them vertically.
499
500 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
501
502         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
503         -mpopcntb, -mfprnd. Add -mcpu=power5+.
504         * configure.ac: Add test for FP rounding instructions.
505         * configure: Regenerate.
506         * config.in: Regenerate.
507         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
508         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
509         features enabled.
510         * config/rs6000/rs6000.opt (mfprnd): New.
511         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
512         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
513         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
514         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
515         (TARGET_FPRND): New.
516         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
517         UNSPEC_FRIZ): New.
518         (btrunc<mode>2): New.
519         (ceil<mode>2): New.
520         (floor<mode>2): New.
521         (round<mode>2): New.
522
523 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
524
525         * gcc.c (version_compare_spec_function): Use fatal() rather than
526         abort().
527
528         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
529         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
530         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
531         as empty.
532         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
533         link in crt2.o.
534         
535         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
536         on -mmacosx-version-min setting.
537
538 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
539
540         PR 24840
541         * tree-vrp.c (infer_value_range): Return false if STMT is a
542         block terminator and its basic block has no successors.
543
544 2005-11-14  Mike Stump  <mrs@apple.com>
545
546         * config/i386/i386.c (override_options): -masm=intel isn't
547         supported on darwin.
548         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
549
550 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
551
552         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
553         vfork after including auto-host.h.
554
555 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
556
557         PR rtl-optimization/22002
558         * combine.c (distribute_notes): Detect cases where a reg dies
559         two or more times in a bb, including on the insn we are combining,
560         and place the death note on the correct range.
561
562 2005-11-14  Dale Johannesen  <dalej@apple.com>
563
564         * expmed.c (store_bit_field):  Add offset unconditionally for
565         memory targets.
566         (extract_bit_field):  Don't force extzv or extv operand into
567         a register if field is too big.
568
569 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
570
571         * config/arm/arm.c (pic_labelno): New.
572         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
573         LABEL_REF.  Pass only the labelno to PIC insns.
574         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
575         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
576         * arm.md (UNSPEC_PIC_LABEL): New constant.
577         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
578         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
579         Use the correct label prefix.
580
581 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
582
583         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
584         REQ_EQUIV note.
585
586 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
587
588         * loop-invariant.c: Include tm_p.h.
589         * Makefile.in: Updated.
590
591 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
592
593         * pa.c (store_reg): Revise generation of frame notes in large frames.
594         (set_reg_plus_d): Likewise.
595
596 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
597
598         PR tree-optimization/24709
599         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
600         loop check.
601
602 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
603
604         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
605         and duplicate declaration of pthread_self.
606
607 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
608             Ian Lance Taylor  <ian@airs.com>
609
610         PR middle-end/24003
611         * calls.c (expand_call): If TARGET is a MEM and some part of the
612         argument area has been saved, force TARGET to a register.
613
614 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
615
616         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type 
617         checking.
618
619 2005-11-13  Jason Merrill  <jason@redhat.com>
620
621         PR c++/22489
622         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
623         lazily declared methods.
624         (force_decl_die): Stop if forcing out the context already make a
625         DIE for the decl.
626         (force_type_die): Likewise.
627
628 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
629
630         PR middle-end/24820
631         * builtins.c (integer_valued_real_p): Add break in
632         REAL_CST having TREE_OVERFLOW set.
633
634 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
635
636         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
637         addressing modes during calculation of costs.
638
639 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
640
641         * function.c (assign_stack_local_1): Restrict sanity check
642         on frame size overflow to 32-bit and above platforms.
643
644 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
645
646         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
647         * config/cris/cris.c: Include reload.h.
648         (cris_initial_elimination_offset): New function.
649         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
650         Prototype.
651
652 2005-11-12  Richard Guenther  <rguenther@suse.de>
653
654         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
655
656 2005-11-12  Jan Hubicka  <jh@suse.cz>
657
658         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
659         to compare against 0 when possible.
660
661 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
662
663         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
664         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
665         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
666         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
667         in the new order.
668
669 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
670
671         * recog.c (constrain_operands) <case 'g'>: For a match, require
672         that a non-register matches general_operand when strict >= 0.
673
674 2005-11-11  Steven Bosscher  <stevenb@suse.de>
675
676         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
677         previous checkin.
678
679 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
680
681         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
682         (memory_address_same): New.
683         (dse_optimize_stmt): Call memory_address_same.
684
685 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
686
687         PR middle-end/24750
688         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
689         ZERO_EXTEND>: New cases.
690
691 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
692
693         * longlong.h (__clz_tab): Always provide.
694
695 2005-11-11  Steven Bosscher  <stevenb@suse.de>
696
697         PR 24265
698         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
699         can be assigned to.
700         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
701         before check_maybe_invariant.
702         (move_invariant_reg): Use gen_move_insn instead of replacing
703         SET_DEST with the temporary for the invariant.
704         (move_loop_invariants): If checking is enabled, do internal
705         consistency checks after completing the pass.
706
707 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
708
709         PR 24644
710         * common.opt (Wvolatile-register-var): New.
711         * varasm.c (make_decl_rtl): Only emit warning when option
712         specified.  Clarify warning message.
713         * doc/invoke.texi (Wvolatile-register-var): Document new option.
714
715         * doc/md.texi (copysign): Document standard named pattern.
716
717 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
718
719         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
720         bytes when align is 2.
721         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
722         by the first instruction of the loop.
723
724 2005-11-11  Jason Merrill  <jason@redhat.com>
725
726         PR c++/24686
727         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore 
728         the cleanup list.
729
730 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
731
732         PR rtl-optimization/22509
733         * local-alloc.c (memref_used_between_p): Check whether a function call
734         could not reference the memref.
735
736 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
737
738         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
739         algorithm so as to choose the best, not the worst, alternative.
740         Reset accumulated register class before processing next alternative.
741
742 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
743
744         PR target/24445
745         * calls.c (expand_call): Copy a return value to a plain register
746         if needed.
747
748 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
749
750         PR target/24778
751         * varasm.c (assemble_name): Recompute name only for transparent
752         aliases.
753
754 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
755
756         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
757
758 2005-11-04  Jeff Law  <law@redhat.com>
759
760         PR middle-end/23181
761         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
762         perform reassociation if the parent statement will not die as
763         a result of the optimization.
764
765 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
766
767         * tree-ssa-alias.c (compute_may_aliases): Remove call to 
768         delete_old_heap_vars.
769         * tree-dfa.c (referenced_var_remove): Remove function.
770         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
771         (delete_tree_ssa): Remove call to delete_old_heapvars.
772         Add call to delete_alias_heapvars.
773         * tree-flow.h (referenced_var_remove): Remove prototype
774         (init_alias_heapvars): New prototype.
775         (delete_alias_heapvars): Ditto.
776         * Makefile.in (tree-ssa-structalias.o): Add
777         gt-tree-ssa-structalias.o
778         (GTFILES): Add tree-ssa-structalias.h and
779         tree-ssa-structalias.c.
780         (s-gtype): Add gt-tree-ssa-structalias.h.
781         * tree-ssa-structalias.c (heapvars): Remove.
782         (oldheapvars): Remove.
783         (heapvar_for_stmt): New variable.
784         (heapvar_lookup): New function.
785         (heapvar_insert): Ditto.
786         (get_constraint_for): See if we have an old heapvar
787         to reuse.
788         (init_alias_heapvars): New function.
789         (delete_alias_heapvars): Ditto.
790         Add include of gt-tree-ssa-structalias.h.
791
792 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
793
794         PR middle-end/22127
795         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
796
797 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
798
799         * tree.c (int_fits_type_p): Only look at the base type
800         if it has the same precision as the original type.
801
802 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
803
804         PR other/4372
805         * varasm.c (assemble_alias): Use %q+D in the error
806         message instead of %J and %qD.
807
808 2005-11-10  Richard Guenther  <rguenther@suse.de>
809
810         * gcse.c (free_ldst_entry): Only free hashtable if
811         it exists.
812
813 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
814
815         * function.c (assign_stack_local_1): Issue an error message if
816         the frame size overflows in the signed target arithmetics.
817
818 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
819
820         * tree.c (build_qualified_type): Chain the new type to the original
821         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
822         a POINTER_TYPE or a REFERENCE_TYPE respectively.
823         (build_pointer_type_for_mode): Only return unqualified types.
824         (build_reference_type_for_mode): Likewise.
825
826 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
827
828         * Makefile.in (gnucompare): Do comparison of all files using one of
829         the chosen methods and only afterwards decide if just warning should
830         be issued or comparison failure raised.
831
832 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
833
834         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
835         (noce_try_abs): Negate if the comparison is reversed.
836         Look only one instruction backwards for a REG_EQUAL note.
837
838 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
839
840         PR other/4372
841         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
842         gthr-tpf.h: Define __gthrw.  For all identifiers that might
843         be weak, introduce weakrefs or non-weak aliases with __gthrw,
844         and prefix all uses with __ghtrw.
845
846 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
847
848         PR other/4372
849         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
850         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
851         * c-common.c (handle_weakref_attribute): New.
852         (c_common_attribute_table): Add weakref.
853         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
854         in the assembler.
855         * configure, config.in: Rebuilt.
856         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
857         * doc/extend.texi: Document weakref attribute.
858         * varasm.c (ultimate_transparent_alias_target): New
859         (assemble_name): Use it.
860         (weak_finish_1): Split out of...
861         (weak_finish): ... and deal with weakrefs in...
862         (weakref_targets): ... new list.
863         (globalize_decl): Clean up weakref_targets.
864         (do_assemble_alias): Handle weakrefs.
865         (finish_aliases_1): Do not reject weakrefs to external symbols.
866         (assemble_alias): Handle weakrefs.
867
868 2005-11-09  Richard Guenther  <rguenther@suse.de>
869
870         PR tree-optimization/24716
871         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
872         t_bool to track results from follow_ssa_edge.
873
874 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
875
876         * final.c (force_source_line): New global variable.
877         (final_scan_insn): Set it to true instead of clearing last_filename.
878         (notice_source_line): Return true if force_source_line is true,
879         unless source info is absent.
880
881 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
882
883         PR c/24644
884         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
885         a linkage name for a variable if it a register variable.
886         * c-decl.c (grokdeclarator): Global register variables
887         should be set as PUBLIC.
888
889 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
890
891         PR 24624
892         * config/s390/s390.c (struct s390_frame_layout): New fields 
893         first_save_gpr_slot and last_save_gpr_slot.
894         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,  
895         s390_emit_epilogue, s390_initial_elimination_offset): Replaced 
896         first_save_gpr and last_save_gpr with the _slot variants.
897         (s390_register_info): Calculate first_save_gpr_slot and 
898         last_save_gpr_slot using regs_ever_live.
899
900 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
901
902         PR 24623
903         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
904         for a function containing a landing pad.
905
906 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
907
908         PR 24034
909         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
910         is live afterwards.
911
912 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
913
914         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
915         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
916
917 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
918
919         Add ms2 support
920         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
921         constants.
922         (call,load,store): New insn types.
923         (mem_access, branch_access): Adjust reservation conditions.
924         (define_delay): Adjust condition.
925         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
926         type.
927         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
928         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
929         insn type.
930         (call_internal, call_value_internal, return_internal,
931         return_interrupt_internal, eh_return_internal, indirect_jump,
932         tablejump): Set call insn type.
933         (blockage, ei, di): Use appropriate unspec const.
934         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
935         (ms1_get_attr_type): Adjust to give load & store types.
936         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
937         backwards past a barrier.
938         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
939         branch scheduling.
940         (struct branch_info, struct label_info): New.
941         (ms1_labels): New.
942         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
943         (ms1_machine_reorg): New.
944         (TARGET_MACHINE_DEPENDENT_REORG): Override.
945         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
946         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
947         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
948         (TARGET_MS2): New.
949
950 2005-11-09  Per Bothner  <per@bothner.com>
951             Uros Bizjak  <uros@kss-loka.si>
952         
953         PR c/24101
954         * toplev.c (process_options): Initialize debug_hooks early
955         in case lang_hooks.post_options ends up calling a debug_hook.
956
957 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
958
959         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
960         DBX_REGISTER_NUMBER being contiguous.
961
962 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
963             Diego Novillo  <dnovillo@redhat.com>
964
965         PR 23046
966         * tree-vrp.c (register_edge_assert_for): Do not register
967         always-false predicates.
968
969 2005-11-08  Devang Patel <dpatel@apple.com>
970
971         PR tree-optimization/23115
972         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
973         relation.
974
975 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
976
977         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
978         -mcpu=440.
979
980 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
981
982         Fix PR tree-optimization/23382
983
984         * tree-ssa-alias.c (compute_may_aliases): Call
985         delete_old_heap_vars.
986         * tree-dfa.c (referenced_var_remove): New function.
987         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
988         * tree-flow.h (referenced_var_remove): Add prototype.
989         (delete_old_heap_vars): Ditto.
990         * tree-ssa-structalias.c (heapvars): New variable.
991         (oldheapvars): Ditto.
992         (get_constraint_for): Put heap vars on heapvars list.
993         (delete_old_heap_vars): New function.
994         
995 2005-11-08  Jason Merrill  <jason@redhat.com>
996
997         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
998
999 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
1000
1001         PR target/19340
1002         * reg-stack.c (reg_to_stack): Update register liveness also
1003         for flag_sched2_use_traces.
1004
1005 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
1006
1007         PR target/23704
1008         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
1009         override prior explicit -mno-powerpc-gfxopt.
1010
1011 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1012
1013         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
1014         if the bitsize is zero.
1015         * doc/md.texi (Standard Pattern Names): Document it.
1016
1017         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
1018         (TARGET_PASS_BY_REFERENCE): Likewise.
1019
1020 2005-11-07  Ian Lance Taylor  <ian@airs.com>
1021
1022         PR rtl-optimization/24683
1023         * config/i386/i386.c (legitimize_pic_address): If constant operand
1024         to PLUS is too large, put it in a register.
1025
1026 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
1027
1028         * configure.ac: Enable checking assembler dwarf2 support for bfin
1029         target.
1030         * configure: Regenerate.
1031
1032 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
1033
1034         PR target/24230
1035
1036         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
1037         gen_easy_vector_constant_add_self): Delete.
1038         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
1039         New.
1040         (output_vec_const_move): Use gen_easy_altivec_constant.
1041         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
1042         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
1043         (easy_vector_constant_add_self): Rewritten.
1044         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
1045         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
1046         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
1047         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
1048         Macroize and adjust for the other changes.
1049
1050 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
1051
1052         PR c/24599
1053
1054         * c-typeck.c (build_c_cast): Try using a shared constant, and see
1055         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
1056
1057 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
1058
1059         PR rtl-optimization/23567
1060         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
1061         (noce_process_if_block): Don't do any optimizations except
1062         if (cond) x = x; if !set_b and write into orig_x may trap
1063         or fault.  Remove the MEM_READONLY_P check.
1064
1065 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
1066
1067         PR 24670
1068         * tree-vrp.c (fix_equivalence_set): New.
1069         (extract_range_from_assert): Call it.
1070
1071 2005-11-05  Ian Lance Taylor  <ian@airs.com>
1072
1073         PR target/22432
1074         * combine.c (apply_distributive_law): Don't distribute across a
1075         vector mode subreg.
1076
1077 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
1078
1079         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
1080         config/ms1/ms1.h, config/rs6000/predicates.md,
1081         config/s390/s390.c, params.def, postreload-gcse.c,
1082         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
1083         tree-vrp.c, tree.c: Fix comment typos.
1084         * doc/invoke.texi: Fix typos.
1085
1086 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
1087
1088         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
1089         for testing whether the data_dependence_relation contains distance
1090         vectors.  Iterate over all distance vectors of the ddr.
1091         * lambda.h: Define a vec of lambda_vector pointers.
1092         * tree-data-ref.c (dump_data_dependence_relation,
1093         dump_data_dependence_direction): Iterate over all distance and
1094         direction vectors of the ddr.
1095         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
1096         DDR_DIST_VECTS.
1097         (build_classic_dist_vector, build_classic_dir_vector): Push a set
1098         of distance/direction vectors instead of a single one.
1099         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist 
1100         lambda_vectors with a vec of lambda_vectors.
1101         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
1102         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
1103         DDR_NUM_DIST_VECTS): New.
1104         * tree-loop-linear.c (gather_interchange_stats): Test for the
1105         existence of distance vectors only after having checked that there
1106         is a dependence.  Iterate over all distance vectors of the ddr.
1107         (linear_transform_loops): Use dump_data_dependence_relation.
1108         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
1109         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
1110         distance vectors of the ddr.
1111
1112 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1113
1114         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
1115         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
1116         IS_INTHANDLER; all callers changed.
1117         (n_regs_saved_by_prologue): Take interrupt handler attributes into
1118         account.
1119         (do_link, do_unlink): New argument ALL; all callers changed.
1120         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
1121         If function isn't leaf, save and restore all registers.
1122         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
1123         exception handler.
1124
1125 2005-11-05  Jan Hubicka  <jh@suse.cz>
1126
1127         PR rtl-optimization/23490
1128         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
1129         max-flow-memory-location): Document.
1130         * flow.c: Include params.h
1131         (MAX_MEM_SET_LIST_LEN): Kill.
1132         (add_to_mem_set_list): Use new param.
1133         * cse.c (cse_basic_block): Replace 1000 by new param.
1134         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
1135         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
1136         * predict.c (predict_loops): Use new param.
1137         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
1138
1139         * ipa-inline.c (cgraph_decide_inlining_of_small_function, 
1140         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1141         Do not hold memory returned by cgraph_node_name across other call.
1142
1143 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
1144
1145         PR target/23424
1146         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
1147         Disable.
1148
1149 2005-11-04  Jeff Law  <law@redhat.com>
1150
1151         PR/21883
1152         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
1153         * tree-ssa-dom.c: Include params.h.
1154         (thread_across_edge): If there are too many statements in the
1155         target block, then do not thread through it.
1156         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
1157         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
1158
1159 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
1160
1161         PR 24627
1162         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
1163         TODO_update_ssa instead of TODO_update_ssa_no_phi.
1164
1165 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
1166
1167         PR/18595
1168         * tree-scalar-evolution.c (instantiate_parameters_1,
1169         instantiate_parameters, resolve_mixers): Compute the size of an
1170         expression to be instantiated and give up the instantiation if the
1171         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1172
1173 2005-11-04  Richard Guenther  <rguenther@suse.de>
1174
1175         * tree-flow.h (ref_contains_indirect_ref): Rename to
1176         array_ref_contains_indirect_ref.
1177         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
1178         (array_ref_contains_indirect_ref): Make comment match the code
1179         and vice-versa.
1180         (ref_contains_array_ref): Likewise.
1181         * tree-ssa-structalias.c (find_func_aliases): Remove call to
1182         ref_contains_indirect_ref.
1183         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1184         Rename calls to ref_contains_indirect_ref.
1185
1186 2005-11-04 Paul Brook  <paul@codesourcery.com>
1187
1188         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
1189         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
1190         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
1191         * config/arm/arm.md: Use match_operand in peephole input templates
1192         and match_dup in peephole output templates.
1193
1194 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1195
1196         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
1197         __aeabi_uidiv.
1198
1199 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
1200             Daniel Jacobowitz  <dan@codesourcery.com>
1201
1202         * longlong.h (add_ssaaaa): Clobber condition code register
1203         in ARM version.
1204         (sub_ddmmss): Likewise.
1205         (umul_ppmm): Likewise.
1206
1207 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1208             Paul Brook  <paul@codesourcery.com>
1209             Phil Blundell  <pb@reciva.com>
1210
1211         * configure.ac: Add test for ARM TLS support.
1212         * configure: Regenerated.
1213         * config/arm/arm-protos.h (legitimize_tls_address)
1214         (arm_tls_referenced_p, tls_mentioned_p)
1215         (arm_output_addr_const_extra): New prototypes.
1216         (thumb_legitimize_pic_address): Delete.
1217         * config/arm/arm.c: Include "gt-arm.h".
1218         (enum tls_reloc): New.
1219         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
1220         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
1221         (arm_call_tls_get_addr, legitimize_tls_address)
1222         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
1223         (arm_init_tls_builtins, arm_emit_tls_decoration)
1224         (arm_output_addr_const_extra): New functions.
1225         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
1226         (TARGET_HAVE_TLS): Define.
1227         (target_thread_pointer): New.
1228         (arm_override_options): Handle -mtp=.
1229         (legitimize_pic_address): Ignore UNSPECs.
1230         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
1231         relative symbols.
1232         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
1233         (tls_get_addr_libfunc): New variable.
1234         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
1235         (arm_init_builtins): Call arm_init_tls_builtins.
1236         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
1237         (arm_encode_section_info): Call default_encode_section_info.
1238         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
1239         (enum arm_tp_type): New.
1240         (target_thread_pointer): Add declaration.
1241         (LEGITIMATE_CONSTANT_P): Handle TLS.
1242         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
1243         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
1244         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
1245         * config/arm/arm.md: Add UNSPEC_TLS.
1246         (movsi): Handle TLS.
1247         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
1248         non-PIC.
1249         (tls_load_dot_plus_eight): New insn and a peephole to create it.
1250         (load_tp_hard, load_tp_soft): New insns.
1251         * arm.opt: Add -mtp=.
1252         * doc/invoke.texi (ARM Options): Document -mtp.
1253
1254 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1255
1256         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
1257         * config/arm/libunwind.S: Include "lib1funcs.asm".
1258         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
1259         (LIB2ADDEH): Add libunwind.S.
1260         (LIB2ADDEHDEP): Add lib1funcs.asm.
1261         * mklibgcc.in: Handle asm files in libgcc_eh.a.
1262
1263 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1264
1265         PR fortran/18452
1266         * gcc/c.opt: Add a -lang-fortran option.
1267         * gcc/c-opts.c: Add a lang_fortran flag.
1268         (c_common_init_options): Handling the -lang-fortran option.
1269         (c_common_handle_option): Add a case for Fortran options in
1270         preprocessing. Remove cases for -ffixed-form and
1271         -ffixed-line-length. Add a case for -lang-fortran.
1272
1273 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
1274
1275         * config/rs6000/rs6000.c: Include params.h
1276         (optimization_options): Set max-grow-copy-bb-insns default to 16.
1277         (bdesc_2arg): Delete vpkuhss and vpkuwss.
1278         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
1279         (UNSPEC_VPKUWSS): Delete.
1280         (altivec_vpkuhss): Delete.
1281         (altivec_vpkuwss): Delete.
1282         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
1283         final condition.
1284         (neg_eq0<mode>): Remove final condition.
1285         (neg_eq<mode>): Remove condition and split-condition.
1286
1287 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
1288
1289         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
1290         Use associated print macros.
1291
1292 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
1293
1294         PR c++/17964
1295         * diagnostic.c (diagnostic_set_info_translated): New function.
1296         (diagnostic_set_info): Use it.  Add comment.
1297         * diagnostic.h (diagnostic_set_info_translated): Declare.
1298
1299 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1300
1301         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
1302         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
1303         reference only if 'public' is true.
1304         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
1305         emit the .hidden directive only if the indirect reference is public.
1306         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
1307         Pass it to dw2_force_const_mem.
1308         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
1309         * dwarf2out.c (output_cfi): Adjust calls to above function.
1310         (output_call_frame_info): Likewise.
1311         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
1312         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
1313
1314 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
1315
1316         PR tree-optimization/24483
1317         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
1318         field to elts if possible.
1319
1320 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
1321
1322         PR middle-end/23155
1323         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
1324         CONSTRUCTOR.
1325
1326 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
1327
1328         Fix PR tree-optimization/24351
1329
1330         * tree-ssa-structalias.c (struct variable_info): Add
1331         collapsed_into.
1332         (get_varinfo_fc): New function to follow collapsing.
1333         (new_var_info): Set collapsed_to to NULL.
1334         (dump_constraint): Follow collapsing.
1335         (build_constraint_graph): Handle collapsing.
1336         (do_simple_structure_copy): Return false if something bad
1337         happened.
1338         (collapse_rest_of_var): New function.
1339         (do_structure_copy): Collapse if do_simple_structure_copy returns
1340         false.
1341         
1342 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
1343
1344         PR middle-end/24589
1345         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
1346         expressions to a statement list instead of gimplifying them.
1347
1348 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1349
1350         PR rtl-optimization/23585
1351         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
1352         that can't trap plus a constant integer, if the mode has zero size.
1353
1354 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
1355
1356         PR target/24620
1357         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
1358         as operand 2.
1359         ("*insv<mode>_reg_extimm"): Likewise.
1360
1361 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
1362
1363         PR c/24329
1364         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
1365         c_common_type_for_mode returns an unnamed type.
1366
1367 2005-11-02  Richard Henderson  <rth@redhat.com>
1368
1369         PR target/9350
1370         PR target/24374
1371         * dwarf2out.c (dwarf2out_reg_save_reg): New.
1372         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
1373         * function.c (assign_parms): Use calls.internal_arg_pointer.
1374         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
1375         code.
1376         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
1377         (TARGET_CALLS): Add it.
1378         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
1379         * targhooks.c (default_internal_arg_pointer): New.
1380         * targhooks.h (default_internal_arg_pointer): Declare.
1381         * tree.h (dwarf2out_reg_save_reg): Declare.
1382         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
1383         * config/i386/i386.c (dbx_register_map): Add return column.
1384         (dbx64_register_map, svr4_dbx_register_map): Likewise.
1385         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
1386         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
1387         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
1388         (ix86_save_reg): Save force_align_arg_pointer.
1389         (ix86_emit_save_regs): Make regno unsigned.
1390         (ix86_emit_save_regs_using_mov): Likewise.
1391         (ix86_expand_prologue): Handle force_align_arg_pointer.
1392         (ix86_expand_epilogue): Likewise.
1393         * config/i386/i386.h: (dbx_register_map): Update.
1394         (dbx64_register_map, svr4_dbx_register_map): Update.
1395         (struct machine_function): Add force_align_arg_pointer.
1396         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
1397         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
1398         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
1399
1400 2005-11-02  Jan Hubicka  <jh@suse.cz>
1401
1402         PR target/23303
1403         * i386.md: Add peep2 for simplyfing array accesses.
1404
1405 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1406
1407         PR target/24615
1408         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
1409         * config/s390/s390.c (s390_decompose_shift_count): New function.
1410         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
1411         (print_shift_count_operand): Use s390_decompose_shift_count.
1412         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
1413         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
1414
1415 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1416
1417         PR target/24600
1418         * loop.c (loop_givs_rescan): Use force_operand to expand
1419         complex GIVs.
1420
1421 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
1422
1423         PR 22429
1424         * fold-const.c (build_range_check): Use unsigned when signed
1425         overflow is undefined also.  If etype is subtype, make sure that
1426         the subtraction is in the supertype.
1427
1428 2005-11-02  Richard Henderson  <rth@redhat.com>
1429
1430         PR target/24178
1431         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
1432         by MEM_ALIGN.
1433
1434 2005-11-01  Richard Henderson  <rth@redhat.com>
1435
1436         PR 21518
1437         * loop.c (scan_loop): Do not propagate computations to a hard
1438         register destination with SMALL_REGISTER_CLASSES.
1439
1440 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1441
1442         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
1443         costs for MULT inside PLUS or MINUS.
1444
1445 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
1446
1447         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
1448         (TRAMPOLINE_SIZE): Round up to 60.
1449         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
1450
1451 2005-10-31  James E. Wilson  <wilson@specifix.com>
1452
1453         PR debug/24444
1454         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
1455         ifdef.  Put ifdefs around call in gen_subprogram_die.
1456         (compute_frame_pointer_to_cfa_displacement): Likewise.
1457         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
1458         not defined.
1459         
1460         PR rtl-optimization/17356
1461         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
1462         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
1463
1464 2005-10-31  Jan Hubicka  <jh@suse.cz>
1465
1466         PR middle-end/24093
1467         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
1468
1469         PR target/20928
1470         * i386.c (legitimize_pic_address): Deal with large immediates.
1471
1472         PR profile/20815
1473         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
1474         from symbol names while computing checkup.
1475
1476         PR profile/24487
1477         * predict.c (predict_loops): Do not estimate more than
1478         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
1479         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
1480
1481 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
1482         
1483         PR tree-optimization/19097
1484         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
1485
1486 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
1487
1488         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
1489
1490 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
1491
1492         PR middle-end/23492
1493         * tree-inline.c (setup_one_parameter): If the init_stmt
1494         is NULL, don't insert the statement.
1495
1496 2005-10-30  Jan Hubicka  <jh@suse.cz>
1497
1498         PR tree-optimization/24172
1499         * tree-inline.c (copy_body_r): Unshare the substituted value first.
1500
1501 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1502
1503         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
1504         constants for hosts with long != 32 bits.
1505
1506 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
1507
1508         PR middle-end/24093
1509         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
1510
1511 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
1512
1513         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
1514         (TARGET_MS1_16_002): New.
1515         (TARGET_MS1_16_003): New.
1516
1517         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
1518         ("*decrement_and_branch_until_zero_no_clobber"): New.
1519         Add corresponding splitter for decrement_and_branch_until_zero
1520         instruction.
1521         Key all decrement_and_branch_until_zero patterns off of
1522         TARGET_MS1_16_003.
1523
1524 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
1525
1526         PR middle-end/24362
1527         * tree-complex.c (extract_component): Treat RESULT_DECL
1528         like the rest of the decls.
1529
1530 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1531
1532         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
1533         indirect call to _mcount if the function needs a static chain.
1534
1535 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1536             Caroline Tice  <ctice@apple.com>
1537
1538         PR rtl-optimization/24460
1539         * dwarf2out.c (have_switched_text_sections): New boolean variable.
1540         (dwarf2out_switch_text_section): Set it to true instead of
1541         incrementing separate_line_info_table_in_use.
1542         (output_loc_list): Additionally test have_switched_text_sections.
1543         (output_ranges): Likewise.
1544         (dwarf2out_finish): Likewise.
1545         * varasm.c (assemble_start_function): Do not call
1546         insert_section_boundary_note.
1547         (assemble_end_function): If flag_reorder_blocks_and_partition,
1548         switch to the function's section before emitting the .size directive.
1549         * bb-reorder.c (insert_section_boundary_note): Staticify.
1550         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
1551         * output.h (insert_section_boundary_note): Delete.
1552
1553 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
1554
1555         PR c/23103
1556         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
1557         instead of pointer equality when comparing types.
1558
1559 2005-10-24  James E. Wilson  <wilson@specifix.com>
1560
1561         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
1562         add_dependence_list_and_free calls.
1563
1564 2005-10-24  Steven Bosscher  <stevenb@suse.de>
1565
1566         * contrib.texi: Add the names of the LLNL folks who donated
1567         Cray pointer support for gfortran.
1568
1569 2005-10-24  Steven Bosscher  <stevenb@suse.de>
1570
1571         PR tree-optimization/24225
1572         * profile.c (branch_prob): Look from end to start through a
1573         basic block when looking for a locus.
1574
1575 2005-10-24  Richard Henderson  <rth@redhat.com>
1576
1577         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
1578         parallel.
1579         (hppa_expand_prologue): Likewise.
1580
1581 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1582
1583         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
1584         (NO_DEFERRED_PROFILE_COUNTERS): Define.
1585         * pa.h (NO_PROFILE_COUNTERS): Define.
1586         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
1587         (funcdef_nos): New vector to hold label numbers of deferred profile
1588         counters.
1589         (output_deferred_profile_counters): New function.
1590         (hppa_profile_hook): Push label number onto funcdef_nos.
1591         (pa_hpux_file_end): Call output_deferred_profile_counters if
1592         NO_DEFERRED_PROFILE_COUNTERS is false.
1593
1594         * pa-protos.h (get_deferred_plabel): New prototype.
1595         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
1596         Make global.
1597         (output_call): Adjust calls.
1598
1599 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
1600
1601         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
1602         peculiarity of GOT/TOC section usage.
1603
1604 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
1605
1606         PR objc/24435
1607          * c-common.c (constant_string_class_name): Add documentation.
1608
1609 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
1610
1611         PR target/23832
1612         * recog.c (peephole2_optimize): Increment peep2_current_count
1613         only when the slot is empty.
1614
1615 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1616
1617         PR ada/23957
1618         * except.c (output_function_exception_table): Call
1619         assemble_external_libcall if we need a personality function.
1620
1621 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1622
1623         PR rtl-optimization/24460
1624         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
1625         set the basic block for barriers.
1626
1627 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
1628
1629         * var-tracking.c (vt_initialize): Initialize post.
1630
1631 2005-10-21  Devang Patel  <dpatel@apple.com>
1632
1633         PR/24220
1634         * c-common.c (vector_types_convertible_p): Check vector element type.
1635         
1636 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1637
1638         * config/sh/sh.c (prepare_move_operands): Handle the address
1639         constant which is a tls symbolic address plus a constant.
1640
1641 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
1642
1643         PR driver/24473
1644         * gcc.c (main): Use the correct counter for erroring out
1645         about mulitple files.
1646
1647 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
1648
1649         PR target/24465
1650         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
1651         use r2 for 64-bit tls .got access.
1652
1653 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
1654
1655         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
1656         TRUTH_OR_EXPR.
1657
1658 2005-10-20  Steven Bosscher  <stevenb@suse.de>
1659
1660         PR tree-optimization/24307
1661         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
1662
1663 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
1664
1665         PR middle-end/24295
1666         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
1667         alias targets.
1668         * varasm.c (find_decl_and_mark_needed): After cgraph global info
1669         is ready, stop marking functions, but still mark variables.
1670
1671 2005-10-20  Richard Guenther  <rguenther@suse.de>
1672
1673         PR c++/24439
1674         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
1675         void type operands.
1676
1677 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
1678
1679         PR rtl-optimization/23585
1680         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
1681         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
1682         (may_trap_p_1): New predicate extracted from...
1683         (may_trap_p): ... here.  Invoke may_trap_p_1.
1684         (may_trap_or_fault_p): New predicate.
1685         * rtl.h (may_trap_or_fault_p): Declare it.
1686         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
1687         instead of may_trap_p.
1688         (steal_delay_list_from_fallthrough): Likewise.
1689         (fill_simple_delay_slots): Likewise.
1690         (fill_slots_from_thread): Likewise.
1691         * function.c (pad_to_arg_alignment): Rework comment about
1692         SPARC_STACK_BOUNDARY_HACK.
1693         * config/sparc/sparc.h: Likewise.
1694
1695 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
1696
1697         * config/s390/s390.c (s390_expand_insv): New.
1698         * config/s390/s390-protos.h (s390_expand_insv): Declare.
1699         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
1700         ("icm_hi"): Remove mode attribute.
1701         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
1702         Adjust all uses.
1703         ("*extracthi", "*extractqi"): Remove.
1704         (extv<mode>", "*extzv<mode>"): New.
1705         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
1706         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
1707
1708 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1709
1710         * cfgexpand.c (discover_nonconstant_array_refs_r,
1711         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
1712         (tree_expand_cfg): Call discover_nonconstant_array_refs.
1713         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
1714         discover_nonconstant_array_refs.
1715
1716 2005-10-19  Steven Bosscher  <stevenb@suse.de>
1717
1718         PR c/23228
1719         * c-decl.c (pop_scope): Don't warn about an unused variable
1720         if it is marked with TREE_NO_WARNING.
1721         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
1722         somenow mismatch and olddecl is to be replaced.
1723
1724 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
1725
1726         PR middle-end/23199
1727         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
1728         whether registers live on the edge can be saved/restored.
1729
1730 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1731
1732         * config/sh/sh.c (fixup_mova): Skip notes.
1733
1734 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1735
1736         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
1737         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
1738         (s390_can_eliminate): Handle BASE_REGNUM elimination.
1739         (s390_initial_elimination_offset): Likewise.
1740         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
1741         register on TARGET_ZARCH targets.
1742         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
1743         (INITIAL_FRAME_POINTER_OFFSET): Remove.
1744         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
1745         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
1746
1747 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1748
1749         * config/s390/s390.md: Comment describing output modifiers updated.
1750         * config/s390/s390.c (print_operand): Likewise.
1751
1752 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1753
1754         * config/s390/s390.c (override_options): Added check for -mstack-size
1755         64k limitation.
1756         * doc/invoke.texi: Mention that limit in the documenation.
1757
1758 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
1759
1760         PR #19672
1761         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
1762
1763 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
1764
1765         Fix PR tree-optimization/24231
1766
1767         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
1768         (compute_avail): Ditto.
1769
1770 2005-10-18  Richard Henderson  <rth@redhat.com>
1771
1772         PR target/24428
1773         * config/i386/i386.c (legitimate_constant_p): Check
1774         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
1775         if LABEL_REF.
1776         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
1777         (legitimate_pic_address_disp_p): Reorg CONST checking to make
1778         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
1779         directly.
1780         (print_operand_address): Likewise.
1781         * config/i386/predicates.md (x86_64_immediate_operand): Test
1782         SYMBOL_REF_TLS_MODEL properly inside CONST.
1783         (x86_64_zext_immediate_operand): Likewise.
1784         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
1785         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
1786         * config/i386/i386-protos.h: Remove predicates.md entries.
1787
1788 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
1789
1790         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
1791         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
1792
1793 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1794             Ian Lance Taylor <ian@airs.com>
1795
1796         PR middle-end/23522
1797         * fold-const.c (fold_widened_comparison): Do not allow range based
1798         constant folding when right operand cannot be unwidened.
1799
1800 2005-10-17  Richard Henderson  <rth@redhat.com>
1801
1802         * builtins.c (expand_builtin_synchronize): Build a new-style asm
1803         with a memory clobber.
1804
1805 2005-10-17  James E Wilson  <wilson@specifix.com>
1806
1807         PR rtl-optimization/17356
1808         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
1809         checking for EDGE_EH.
1810
1811 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1812
1813         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
1814         the slot on an even boundary for any type with 16-byte alignment.
1815
1816 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
1817
1818         PR target/23424
1819         * md.texi (Modifiers) <%>: Clarify that % doesn't work
1820         after register allocation.
1821
1822 2005-10-17  DJ Delorie  <dj@redhat.com>
1823
1824         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
1825         as frame related.
1826
1827 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
1828
1829         PR c++/22551
1830         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
1831         overflow flags.
1832
1833 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1834
1835         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
1836         to 2 if it's already non-zero.
1837         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
1838         is set and warn about it if flag_schedule_insns is 1.
1839
1840 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
1841
1842         * config/crx/crx.md: Compare-and-branch instructions need to
1843         invalidate CC.
1844
1845 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
1846
1847         PR target/24315
1848         * config/i386/i386.md (*pushdi2_rex64 splitter)
1849         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
1850         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
1851         flow2 pass only when (optimize > 0 && flag_peephole2).
1852
1853 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
1854
1855         PR driver/22544
1856         * gcc.c (have_c): New static variable.
1857         (have_o): Likewise.
1858         (process_command): Remove declation of have_c.
1859         Set have_o to 1 when handling -o.
1860         (main): Add a fatel error if there are multiple
1861         files specified and -o and -c/-S is passed witout
1862         -combine or multiple languages.
1863
1864 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
1865
1866         Fix PR tree-optimization/22444
1867         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
1868         Assert that we don't hit something with subvars.
1869         (setup_pointers_and_addressables): Don't add things with subvars,
1870         because we'll already process the subvars for aliasing purposes.
1871
1872 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
1873
1874         PR target/23424
1875         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
1876         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
1877         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
1878         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
1879         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
1880         swapped, alternatives for the R constraint.
1881
1882         PR middle-end/24341
1883         * builtins.c (get_builtin_sync_mode): Make unlimited
1884         mode_for_size request.
1885
1886 2005-10-15  Richard Henderson  <rth@redhat.com>
1887
1888         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
1889         (gimplify_expr): ... here.
1890         (gimplify_compound_lval): Use it in initial scan loop.  Allow
1891         fb_lvalue in base expression.
1892
1893 2005-10-15  Richard Henderson  <rth@redhat.com>
1894
1895         PR 23714
1896         * builtins.c (expand_builtin_trap): Export.
1897         * expr.h (expand_builtin_trap): Declare.
1898         * expr.c (expand_assignment): Emit a trap for integral offsets 
1899         from registers that weren't reduced to bitpos.
1900
1901         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
1902         (mark_array_ref_addressable): Remove.
1903         * tree-flow.h (mark_array_ref_addressable): Remove.
1904         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
1905
1906 2005-10-15  James E Wilson  <wilson@specifix.com>
1907
1908         PR target/24232
1909         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
1910         (add_dependence_list_and_free): Likewise.
1911         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
1912         call.
1913
1914 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
1915
1916         PR 23141
1917         PR 23142
1918         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
1919         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
1920         anti-range.
1921         (vrp_visit_phi_node): Only prevent infinite iterations when
1922         the previous result and the new result are both VR_RANGEs.
1923
1924 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
1925
1926         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
1927         function comment.
1928
1929 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1930
1931         PR c/23439
1932         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
1933         to initialize loc.
1934
1935 2005-10-14  Per Bothner  <per@bothner.com>
1936
1937         PR preprocessor/21250
1938         * c-ppoutput.c (print_line): Print internal line 0 as 1.
1939
1940 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
1941
1942         PR c++/22551
1943         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
1944         overflow flags.  Refactor some conditionals.
1945
1946 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
1947
1948         PR tree-opt/21304
1949         * tree-dfa.c (add_referenced_var): Only look at decls which
1950         have TREE_CONSTANT or TREE_READONLY set instead of if
1951         !TREE_PUBLIC or !TREE_CONSTANT.
1952
1953 2005-10-13  James E Wilson  <wilson@specifix.com>
1954
1955         * doc/invoke.texi: For -x, add f95-cpp-input.
1956         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
1957
1958 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
1959
1960         PR tree-optimization/24262
1961         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
1962         in loop all the time.
1963
1964 2005-10-12  Richard Henderson  <rth@redhat.com>
1965
1966         PR c/24255
1967         * tree.h (DECL_TRANSPARENT_UNION): Remove.
1968         * function.c (assign_parm_find_data_types): Don't support it.
1969         * print-tree.c (print_node): Likewise.
1970         * c-common.c (handle_transparent_union_attribute): Likewise.
1971         Use build_duplicate_type.
1972         * tree-inline.c (remap_type_1): Split out of remap_type;
1973         properly remap aggregate fields.
1974         (build_duplicate_type): New.
1975         * doc/extend.texi (Variable Attributes): Remove documentation
1976         for transparent_union.
1977
1978 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1979
1980         PR target/24284
1981         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
1982         (gen_stack_pointer_dec): Likewise.
1983
1984 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
1985
1986         PR middle-end/21275
1987         PR middle-end/21766
1988         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
1989         target hook.
1990         (struct cxx): Add adjust_class_at_definition target hook.
1991         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
1992         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
1993         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to 
1994         hook_void_tree. Add to TARGET_CXX.
1995         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
1996         dllimport_flag.
1997         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
1998         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
1999         instead of attribute. Check for dllexport override.  Warn if
2000         inconsistent dll linkage. Don't lose old dllimport if decl has
2001         had address referenced.   Tweak lookup of dllimport atribute.  
2002         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
2003         for target specific rules.  Don't add dllimport attribute if
2004         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
2005         dllimport attribute. 
2006         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
2007         * varasm.c (initializer_constant_valid_p): Replace
2008         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
2009
2010         PR target/21801
2011         PR target/23589
2012         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to 
2013         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
2014         (i[34567]86-*-mingw32*): Likewise.
2015
2016         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
2017         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
2018                         
2019         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
2020         C++-specific code. Change return value to bool. 
2021         (i386_pe_dllimport_p): Likewise.
2022         (associated_type): Simplify and make language-independent
2023         (i386_pe_encode_section_info): Replace override of ambiguous
2024         dllimport symbol refs with a gcc_assert.
2025         (i386_pe_valid_dllimport_attribute_p): Define.
2026         * config/i386/winnt-cxx.c: New file. Define C++ versions of
2027         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2028         i386_pe_adjust_class_at_definition.
2029         * config/i386/winnt-stubs.c: New file. Define stub versions of
2030         lang-specific functions.
2031         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
2032         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p, 
2033         i386_pe_adjust_class_at_definition.
2034         (i386_pe_valid_dllimport_attribute_p): Declare. 
2035         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
2036         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
2037         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
2038
2039         PR target/19704
2040         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
2041         dllimport attribute with test of DECL_DLLIMPORT_P.
2042
2043 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
2044
2045         * combine.c (make_extraction): Correct offset computation.
2046
2047 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
2048
2049         * config/cris/t-linux (LIMITS_H_TEST): Define.
2050
2051 2005-10-12  Richard Henderson  <rth@redhat.com>
2052
2053         PR rtl-opt/23324
2054         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
2055
2056 2005-10-12  Richard Guenther  <rguenther@suse.de>
2057
2058         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
2059
2060 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
2061
2062         PR c++/19964
2063         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
2064         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
2065         type.
2066
2067 2005-10-12  Richard Guenther  <rguenther@suse.de>
2068
2069         PR c++/23799
2070         * varasm.c (output_constant): Correct typo from previous
2071         patch by DJ.
2072
2073 2005-10-11  Ian Lance Taylor  <ian@airs.com>
2074
2075         PR rtl-optimization/13931
2076         * combine.c: Revert patch of 2003-05-14, and:
2077         (try_combine): Only set elim_i1 and elim_i2 if the destination is
2078         completely killed in the appropriate insn.
2079         (distribute_notes): Don't skip multiple hard register test for
2080         elim_i1 and elim_i2.
2081
2082 2005-10-11  Richard Henderson  <rth@redhat.com>
2083
2084         PR c/24255
2085         * c-typeck.c (convert_for_assignment): Use build_constructor_single
2086         to initialize a transparent union instead of a nop_expr.
2087
2088 2005-10-11  Richard Henderson  <rth@redhat.com>
2089
2090         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
2091         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
2092         (tree_ssa_dce_loop): Call scev_reset.
2093
2094         PR tree-opt/24300
2095         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
2096         * tree-ssa-dce.c: Include cfgloop.h.
2097         (tree_ssa_dce_loop, pass_dce_loop): New.
2098         * tree-pass.h (pass_dce_loop): Declare it.
2099         * passes.c (init_optimization_passes): Use it.
2100
2101 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2102
2103         PR middle-end/24263 
2104         * convert.c (convert_to_real): Revert 2005-10-05 patch.
2105         Only apply the optimization for rounding builtins if the inner
2106         cast is also an extension.
2107
2108 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
2109
2110         PR tree-opt/23946
2111         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
2112         mark_new_vars_to_rename instead of update_stmt.
2113
2114 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2115
2116         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
2117
2118 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2119
2120         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
2121         for setting MMX register to 0 rather than mmx.
2122
2123 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
2124
2125         PR target/12098
2126         * configure.ac: Move gas check from mips specific case to common case.
2127         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
2128         * configure: Regenerate
2129         * doc/install.texi: Update.
2130
2131 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2132
2133         PR target/24284
2134         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
2135
2136 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
2137
2138         * gcc.c (do_spec_1): Accept numeric characters in file name
2139         suffixes.
2140
2141 2005-10-10  Nick Clifton  <nickc@redhat.com>
2142
2143         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
2144         describing the deleted arm_gen_rotated_half_load function.
2145
2146 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2147
2148         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
2149         __fpscr_values.
2150
2151 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
2152
2153         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
2154         gnu_ld assignments.
2155         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
2156         (EXTRA_MULTILIB_PARTS): Define.
2157         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2158         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2159         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
2160         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2161         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2162         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
2163
2164 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
2165
2166         PR tree-optimization/24226
2167         * tree-cfg.c (remove_bb): Clean up unreachable loops.
2168         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
2169         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
2170         Export.
2171
2172 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
2173
2174         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
2175
2176 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
2177
2178         PR target/24136
2179         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
2180         Rewrite for no need for the early clobber.
2181
2182 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
2183
2184         Merge from csl-arm-branch:
2185         2005-09-07  Paul Brook  <paul@codesourcery.com>
2186         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
2187         space to string.
2188
2189         2005-04-30  Paul Brook  <paul@codesourcery.com>
2190         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
2191         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
2192
2193         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
2194         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
2195         (arm_override_options): Use TARGET_AAPCS_BASED.
2196         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
2197         (PTRDIFF_TYPE): Use int for AAPCS.
2198         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
2199         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
2200         (DEFAULT_SHORT_ENUMS): Delete.
2201         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
2202
2203         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
2204         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
2205         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
2206         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
2207
2208         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
2209         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
2210
2211         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
2212         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
2213  
2214         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
2215         * config.gcc (arm*-*-linux-gnueabi): Add it.
2216         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
2217         redefining it.
2218         (TARGET_OS_CPP_BUILTINS): Likeiwse.
2219         * config/arm/linux-eabi.h: New file.
2220         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
2221         (LINUX_TARET_LINK_SPEC): Likewise.
2222         (LINK_SPEC): Use it.
2223         * config/arm/t-linux-eabi: New file.
2224
2225 2005-10-08  Steven Bosscher  <stevenb@suse.de>
2226
2227         PR other/22202
2228         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
2229         spaces.
2230         (PARAM_SMS_DFA_HISTORY): Likewise.
2231
2232 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
2233
2234         PR middle-end/23150
2235         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
2236         (load_register_parameters): Call it.
2237         (check_sibcall_argument_overlap_1): Likewise.
2238         (store_one_arg): Likewise.
2239
2240 2005-10-07  James E. Wilson  <wilson@specifix.com>
2241
2242         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
2243         DImode not VECINT24 for operand 2.
2244
2245         PR target/23644
2246         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
2247         -mtune-arch.
2248
2249         PR target/24193
2250         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
2251         fr_spill): Use destination_operand for operand 0.
2252
2253 2005-10-07  DJ Delorie  <dj@redhat.com>
2254
2255         * varasm.c (output_constant): Limit error to expanding
2256         conversions.
2257
2258 2005-10-07  Richard Guenther  <rguenther@suse.de>
2259
2260         PR middle-end/24227
2261         * fold-const.c (fold_binary): Fix operand types during folding
2262         of X op (A, Y).  Evaluation order of the side-effects of
2263         X and A are frontend-defined, so ensure we honour that even for
2264         tcc_comparison class operands; eased by removing duplicate code.
2265
2266 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
2267
2268         * stor-layout.c (layout_type): Do not allow alignment of array
2269         elements to be greater than their size.
2270
2271 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
2272
2273         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
2274         host_xmake_file.
2275         (hppa*-*-linux*): Ditto.
2276         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
2277         * config/host-hpux.c: New.
2278         * config/x-hpux: New.
2279         * config/pa/x-hpux: Remove.
2280         * config/pa/x-linux: Remove.
2281         * config/pa/pa-host.c: Remove.
2282
2283 2005-10-07  Jeff Law  <law@redhat.com>
2284
2285         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
2286         determine whether or not to try and thread outgoing edges.
2287
2288 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
2289
2290         * config/rs6000/rs6000.md (eqsi_power): New.
2291         (neg_eq0si): Add TARGET_POWER to final condition.
2292         (neg_eqsi): Same.
2293
2294 2005-10-06  Richard Henderson  <rth@redhat.com>
2295
2296         * config/rs6000/rs6000.c: Revert last change.
2297
2298 2005-10-06  Richard Henderson  <rth@redhat.com>
2299
2300         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
2301         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
2302
2303 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
2304
2305         PR middle-end/22216
2306         PR middle-end/23651
2307         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
2308         out return_label and naked_return_label.
2309
2310 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
2311         
2312         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
2313         change.
2314
2315 2005-10-06  Richard Henderson  <rth@redhat.com>
2316
2317         PR tree-opt/22237
2318         * tree-inline.c (declare_return_variable): Handle modify_dest not
2319         being a DECL.
2320
2321 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
2322         
2323         Fix PR tree-optimization/22488
2324         * tree-ssa-structalias.c (check_for_overlaps): New function.
2325         (create_variable_info_for): Use it.
2326
2327 2005-10-06  Richard Henderson  <rth@redhat.com>
2328
2329         PR debug/24070
2330         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
2331         (dwarf2out_start_source_file): Print it.
2332
2333 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
2334
2335         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
2336
2337 2005-10-06  Richard Henderson  <rth@redhat.com>
2338
2339         PR 23706
2340         * mode-switching.c (optimize_mode_switching): Clear transp bit
2341         for block with incomming abnormal edges.
2342
2343         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
2344         (fpscr_set_from_mem): Use them.
2345         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
2346         (fpscr postinc splitters): Rewrite as peephole2+split.
2347
2348 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
2349
2350         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
2351         (eq<mode>_compare): Same.
2352
2353 2005-10-06  Richard Guenther  <rguenther@suse.de>
2354
2355         PR tree-optimization/24238
2356         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
2357
2358 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
2359
2360         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
2361         here.  Use AC_PATH_PROG for environment variables instead of
2362         test -x.
2363         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
2364         objdump also.
2365         * configure: Regenerated.
2366
2367 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
2368
2369         PR target/23783
2370         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
2371         then force it into a register.
2372         (call_value): Likewise.
2373
2374 2005-10-06  Richard Henderson  <rth@redhat.com>
2375
2376         PR 24049
2377         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
2378         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
2379         under pass_vectorize.
2380
2381 2005-10-05  Devang Patel  <dpatel@apple.com>
2382
2383         PR Debug/23205
2384         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
2385         handling constants. Check NAMESPACE_DECL context for constants.
2386         
2387 2005-10-05  Eric Christopher  <echristo@apple.com>
2388
2389         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
2390
2391 2005-10-05  Richard Henderson  <rth@redhat.com>
2392
2393         PR 23714
2394         * tree-cfg.c (mark_array_ref_addressable_1): New.
2395         (mark_array_ref_addressable): New.
2396         * tree-flow.h (mark_array_ref_addressable): Declare.
2397         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
2398
2399 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
2400
2401         PR middle-end/20606
2402         PR middle-end/24069
2403         * reload.c (subst_reloads): When adding a REG_LABEL to a
2404         jump instruction, also update JUMP_LABEL.
2405
2406 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
2407
2408         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
2409         * bb-reorder.c (copy_bb_p): Use it.
2410         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
2411
2412 2005-10-05  Richard Henderson  <rth@redhat.com>
2413
2414         PR target/23602
2415         * toplev.c (process_options): Warn about unsupported combinations
2416         of unwind tables and omit-frame-pointer.
2417         * config/i386/i386.c (override_options): Similarly.  Enable
2418         accumulate-outgoing-args if not explicitly disabled.
2419
2420 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
2421
2422         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
2423         Handle big endian vs. small endian.
2424         (vec_initv2sf): Handle big endian vs. small endian.
2425         (*vec_extractv2sf_1): Ditto.
2426
2427 2005-10-05  Dale Johannesen  <dalej@apple.com>
2428
2429         * convert.c (convert_to_real):  Don't convert
2430         (float)floor(double d) to floorf((float)d).
2431
2432 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
2433
2434         * config/arm/arm.md (insv): Use gen_int_mode in more places.
2435
2436 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
2437
2438         PR tree-optimization/18587
2439         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
2440         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
2441         build_vuses): Change to VEC type.
2442         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
2443         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
2444         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
2445         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
2446         (get_name_decl): New.  Return DECL_UID of base variable.
2447         (operand_build_cmp): New.  qsort comparison routine.
2448         (operand_build_sort_virtual): New.  Sort virtual build vector.
2449         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
2450         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
2451         (FINALIZE_BASE): Use get_name_decl.
2452         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
2453         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
2454         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
2455         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
2456         direct VEC_* manipulations.
2457         (build_ssa_operands): Call operand_build_sort_virtual.
2458         (copy_virtual_operand, create_ssa_artficial_load_stmt,
2459         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
2460         with direct VEC_* manipulations.
2461         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
2462         with direct VEC manipulations.
2463
2464 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
2465
2466         PR tree-optimization/21419
2467         PR tree-optimization/24146
2468         PR tree-optimization/24151
2469
2470         * c-typeck.c (readonly_error): Handle USE being lv_asm.
2471         (build_asm_expr): Call it if outputs are read-only.
2472         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
2473
2474 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
2475             Paolo Bonzini  <bonzini@gnu.org>
2476
2477         PR target/23809
2478
2479         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
2480         enable the instructions and not just the built-ins.
2481         * doc/invoke.texi (x86 Options): Likewise.
2482
2483 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
2484
2485         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
2486
2487         * doc/invoke.texi (Option Summary): Correct spelling
2488         of -mmacosx-version-min.
2489
2490 2005-10-04  Devang Patel  <dpatel@apple.com>
2491
2492         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
2493         real types.
2494
2495 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
2496
2497         * tree-vect-transform.c (vect_create_epilog_for_reduction):
2498         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
2499
2500 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
2501
2502         * config/s390/s390.md ("TDSI","DP"): New mode macros.
2503         ("TE","tg"): New mode attributes.
2504         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
2505         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
2506         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
2507         dword_mode and one for GPRmode.
2508
2509 2005-10-04  Ian Lance Taylor  <ian@airs.com>
2510
2511         PR preprocessor/13726
2512         * c-ppoutput.c (cb_include): Add comments parameter, and print out
2513         any comments passed in.
2514
2515 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
2516
2517         * tree.c (annotate_with_file_line): Fix typo.
2518
2519 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2520
2521         PR ada/19382
2522         * builtins.c (fold_builtin_memcmp): When constructing the pointer
2523         type used to access data in the inlined length == 1 case, use
2524         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
2525         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
2526
2527 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
2528
2529         * config/i386/i386.h (TARGET_FISTTP): Enable also for
2530         TARGET_SSE3 and only for TARGET_80387.
2531         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
2532         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
2533         Do not depend on TARGET_80387.
2534
2535 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
2536
2537         * tree.c (last_annotated_node): Change type to location_t*.
2538         (annotate_with_file_line): Reflect the change of
2539         last_annotated_node type.
2540
2541 2005-10-04  Richard Guenther  <rguenther@suse.de>
2542
2543         PR c/23576
2544         * c-decl.c (grokdeclarator): Don't write to fields
2545         of error_mark_node.
2546
2547 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
2548
2549         PR middle-end/23125
2550         * c-decl.c (finish_decl): Use set_user_assembler_name even for
2551         register variables.
2552         * varasm.c (make_decl_rtl): If a register variable does not
2553         have a set user assmbler name, error out.
2554         Decode the asmspec is now name+1 bypassing '*'.
2555
2556 2005-10-04  Steven Bosscher  <stevenb@suse.de>
2557
2558         PR tree-optimization/23049
2559         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
2560         of a COND_EXPR is folded before calling fold on the whole rhs of a
2561         conditional assignment.
2562         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
2563         document that a COND_EXPR may appear there.
2564
2565 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
2566
2567         PR 23445
2568         * tree-vrp.c (extract_range_from_assert): If the new numeric
2569         range created out of the assertion contradicts the existing
2570         numeric range of the ASSERT_EXPR variable, make the new range
2571         varying.
2572
2573 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2574
2575         * config/sh/sh.c (sh_register_move_cost): Add case for moving
2576         from T_REGS to FP register class.
2577
2578 2005-10-03  Richard Henderson  <rth@redhat.com>
2579
2580         PR 24135
2581         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
2582         before creating a new one.
2583
2584 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
2585
2586         * config/rs6000/t-aix43 (LDFLAGS): New.
2587         * config/rs6000/t-aix52 (LDFLAGS): New.
2588
2589 2005-10-03  Ian Lance Taylor  <ian@airs.com>
2590
2591         * gimplify.c (find_single_pointer_decl_1): New static function.
2592         (find_single_pointer_decl): New static function.
2593         (internal_get_tmp_var): For a formal variable, set restrict base
2594         information if appropriate.
2595         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
2596         return it.
2597         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
2598         (DECL_GET_RESTRICT_BASE): Define.
2599         (SET_DECL_RESTRICT_BASE): Define.
2600         (decl_restrict_base_lookup): Declare.
2601         (decl_restrict_base_insert): Declare.
2602         (struct tree_decl_with_vis): Add based_on_restrict_p field.
2603         * tree.c (restrict_base_for_decl): New static variable.
2604         (init_ttree): Initialize restrict_base_for_decl.
2605         (copy_node_stat): Copy restrict base information.
2606         (decl_restrict_base_lookup): New function.
2607         (decl_restrict_base_insert): New function.
2608         (print_restrict_base_statistics): New static function.
2609         (dump_tree_statistics): Call print_restrict_base_statistics.
2610
2611 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
2612
2613         PR 24142
2614         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
2615         case of anti-ranges.
2616
2617 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
2618
2619         PR c/18851
2620         * c-typeck.c (tagged_tu_seen): Rename to ...
2621         (tagged_tu_seen_cache): this and add val field.
2622         (comptypes): Move functional to comptypes_internal
2623         and free tagged_tu_seen.
2624         (comptypes_internal): New function and call comptypes_internal
2625         instead of comptypes. Speed up by sibcalling
2626         tagged_types_tu_compatible_p.
2627         (alloc_tagged_tu_seen): New function
2628         (free_all_tagged_tu_seen_up_to): New function.
2629         (tagged_types_tu_compatible_p): Return the val of the seen two
2630         types.
2631         Add that the two types are the same to tagged_tu_seen_base
2632         if they are and call comptypes_internal instead of comptypes.
2633         <case UNION_TYPE>: Speed up common type where the fields are
2634         in the same order.
2635         (function_types_compatible_p): Call comptypes_internal instead of
2636         comptypes.
2637         (type_lists_compatible_p): Likewise.
2638         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
2639
2640 2005-10-02  Matthias Klose  <doko@debian.org>
2641
2642         * doc/invoke.texi: Fix typo and speling error.
2643
2644 2005-10-01  Richard Henderson  <rth@redhat.com>
2645
2646         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
2647
2648 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
2649
2650         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
2651         using --start-group and --end-group.
2652
2653 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
2654
2655         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
2656         FIXME note regarding quirky semantics.
2657
2658 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
2659
2660         PR 24141
2661         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
2662         non-null range as a last resort.
2663
2664 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
2665             Diego Novillo  <dnovillo@redhat.com>
2666
2667         PR 23604
2668         * tree-vrp.c (extract_range_from_assert): For !=
2669         assertions, only build an anti-range if LIMIT is a
2670         single-valued range.
2671
2672 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
2673
2674         * arm.md (movqi): On thumb when optimizing, handle loading from
2675         memory by describing this as taking a subreg of a zero-extended load
2676         into an SImode register.
2677         (movhi): Likewise.
2678
2679 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
2680
2681         * reload1.c (merge_assigned_reloads): Do not change any
2682         RELOAD_FOR_OUTPUT_ADDRESS reloads.
2683
2684 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
2685
2686         * Makefile.in (LIPO_FOR_TARGET): Define.
2687         (STRIP_FOR_TARGET): Define.
2688
2689         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
2690         before creating new ones.  Do symlinks before creating the actual
2691         targets.
2692
2693         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
2694         to work out which multilibs are actually being built.
2695
2696 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
2697
2698         * tree-vect-transform.c, config/ms1/ms1.md,
2699         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
2700         Follow spelling conventions.
2701         * doc/invoke.texi, doc/md.texi: Fix typos.
2702
2703 2005-09-30  Andrew Macleod  <amacleod@redat.com>
2704
2705         PR tree-optimization/21430
2706         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
2707         use operands, and set stmt pointer if need be.
2708         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
2709         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
2710         present.
2711
2712 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2713
2714         PR middle-end/24053
2715         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
2716
2717 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
2718
2719         * optabs.c (expand_binop): Initialize first_pass_p.
2720
2721 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
2722
2723         PR middle-end/24109
2724         * c-decl.c (c_write_global_declarations_1): If any
2725         wrapup_global_declaration_2 call returned true, restart the loop.
2726
2727 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
2728
2729         Fix PR tree-optimization/24117
2730         * tree-ssa-structalias.c (find_func_aliases): Strip nops
2731         before considering whether to use anyoffset.
2732
2733 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
2734
2735         Revert this patch:
2736
2737         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
2738
2739         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2740         to order operands.
2741         (swap_commutative_operands_with_target): New.
2742
2743 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
2744
2745         PR c/21419
2746         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
2747         read-only.
2748
2749 2005-09-29  Steven Bosscher  <stevenb@suse.de>
2750
2751         PR tree-optimization/23911
2752         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
2753         and IMAGPART_EXPR too.
2754
2755 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
2756
2757         PR 17886
2758         * expmed.c (expand_shift): Move logic to reverse rotation
2759         direction when  rotating by constants ...
2760         * optabs.c (expand_binop): ... here.
2761         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
2762         (ix86_rotrdi3): New pattern.
2763         (rotldi3): Handle 32-bit mode.
2764         (ix86_rotldi3): New pattern.
2765
2766 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
2767
2768         PR target/24102
2769         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
2770         check for numbers that need no bit twiddle.
2771
2772 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
2773
2774         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
2775         multilib to be built.
2776
2777         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
2778         (stage1-start): Delete old libgcc and libunwind before moving
2779         anything into the stage directory.
2780         (stage2-start): Likewise.
2781         (stage3-start): Likewise.
2782         (stage4-start): Likewise.
2783         (stageprofile-start): Likewise.
2784         (stagefeedback-start): Likewise.
2785         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
2786         header in tm_file and CPU-specific t-darwin in tmake_file.
2787         (i[34567]86-*-darwin*): Don't change tm_file.
2788         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
2789         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
2790         shared library stub for target OS version.
2791         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
2792         (SHLIB_LINK): Don't make SHLIB_SOLINK.
2793         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
2794         (libgcc_s.%.dylib): New.
2795         (LIBGCC): Define.
2796         (install-darwin-libgcc-stubs): New.
2797         (INSTALL_LIBGCC): New append.
2798         * config/i386/darwin-libgcc.10.4.ver: New.
2799         * config/i386/darwin-libgcc.10.5.ver: New.
2800         * config/i386/t-darwin: New.
2801         * config/rs6000/darwin-libgcc.10.4.ver: New.
2802         * config/rs6000/darwin-libgcc.10.5.ver: New.
2803         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
2804         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
2805
2806 2005-09-28  Paul Brook  <paul@codesourcery.com>
2807
2808         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
2809         denormals.
2810
2811 2005-09-28  Richard Guenther  <rguenther@suse.de>
2812
2813         PR tree-optimization/23853
2814         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
2815         host_integerp to verify misalignment value.
2816
2817 2005-09-28  Richard Henderson  <rth@redhat.com>
2818
2819         * builtins.c (get_builtin_sync_mode): New.
2820         (expand_builtin_sync_operation): Pass in mode argument.
2821         (expand_builtin_compare_and_swap): Likewise.
2822         (expand_builtin_lock_test_and_set): Likewise.
2823         (expand_builtin_lock_release): Likewise.
2824         (expand_builtin): Update to match.
2825
2826 2005-09-28  Nick Clifton  <nickc@redhat.com>
2827
2828         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
2829         formatting.  Add check to PLUS case to ensure that the offset is
2830         within an acceptable range.
2831
2832         * config/v850/v850.md (casesi): Disable the generation of the
2833         switch pattern as it is not being handled properly at the moment.
2834
2835         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
2836         for when the high words are identical.
2837
2838 2005-09-27  Richard Henderson  <rth@redhat.com>
2839
2840         * pretty-print.c (pp_base_format): Fix typo for %>.
2841
2842 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
2843             Devang Patel  <dpatel@apple.com>
2844
2845         PR tree-optimization/23625
2846         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
2847         LABEL_EXPR, assertion check.
2848
2849 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
2850
2851         * optabs.c (no_conflict_move_test): Check if a result of a
2852         to-be-moved insn would be clobbered by an originally
2853         preceding insn.
2854
2855 2005-09-27  Jeff Law  <law@redhat.com>
2856
2857         * passes.c (init_optimization_passes): Replace copy propagation
2858         passes immediately after DOM with phi-only copy propagation
2859         pases.  Add phi-only copy propagation pass after first DOM pass.
2860         * tree-pass.h (pass_phi_only_copy_prop): Declare.
2861         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
2862         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
2863         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
2864         to init_copy_prop.  Callers updated.
2865         (do_phi_only_copy_prop): New function.
2866         (pass_phi_only_copy_prop): New pass descriptor.
2867
2868 2005-09-27  Nick Clifton  <nickc@redhat.com>
2869
2870         * libgcc2.c (__popcount_tab): Remove redundant prototype.
2871
2872 2005-09-26  Jason Merrill  <jason@redhat.com>
2873
2874         PR c++/13764
2875         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
2876
2877         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
2878
2879 2005-09-26  James E Wilson  <wilson@specifix.com>
2880
2881         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
2882         copyright.  Add gcc copyright plus libgcc exception.
2883         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
2884         copyright.
2885         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
2886
2887 2005-09-26  Jeff Law  <law@redhat.com>
2888
2889         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
2890         about when to iterate.
2891
2892 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
2893
2894         PR target/23847
2895         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
2896         for __complex__ double in -mcpu=G5 mode.
2897
2898 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
2899
2900         PR tree-optimization/23942
2901         * Makefile.in (SCEV_H): Depends on PARAMS_H.
2902         * tree-scalar-evolution.c: Include params.h.
2903         (t_bool): New enum.
2904         (follow_ssa_edge, follow_ssa_edge_in_rhs,
2905         follow_ssa_edge_in_condition_phi_branch,
2906         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
2907         Change return type to t_bool.  Use a parameter to limit the size of
2908         trees that are walked before stopping
2909         (analyze_evolution_in_loop): Initialize the limit to 0.
2910         (follow_ssa_edge): Give up by returning t_dont_know if the limit
2911         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
2912
2913 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
2914
2915         PR middle-end/23831
2916         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
2917         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
2918
2919 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
2920
2921         * combine.c (make_extraction): Check for valid use of subreg.
2922
2923 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
2924
2925         PR target/24055
2926         * config/i386/i386.md ("*fistdi2_1"): New pattern.
2927         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
2928         ("fist<mode>2_with_temp"): Use only register operands.
2929
2930 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
2931
2932         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
2933         CALL_INSN_FUNCTION_USAGE.
2934
2935 2005-09-26  Richard Guenther  <rguenther@suse.de>
2936
2937         PR middle-end/15855
2938         * gcse.c: Include hashtab.h, define ldst entry hashtable.
2939         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
2940         (ldst_entry): Use the hashtable instead of list-walking.
2941         (find_rtx_in_ldst): Likewise.
2942         (free_ldst_entry): Free the hashtable.
2943         (compute_ld_motion_mems): Create the hashtable.
2944         (trim_ld_motion_mems): Remove entry from hashtable if
2945         removing it from list.
2946         (compute_store_table): Likewise^2.
2947         (store_motion): Free hashtable in case we did not see
2948         any stores.
2949
2950 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
2951
2952         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
2953         and arg1 if we are passing them to fold_build2.
2954
2955 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
2956
2957         PR 23828
2958         * config/i386/i386.c (ix86_function_regparm): Fix the test for
2959         a nested function.
2960
2961 2005-09-25  Richard Henderson  <rth@redhat.com>
2962
2963         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
2964         SYMBOL_REF_TLS_MODEL to be correct.
2965
2966 2005-09-24  Richard Henderson  <rth@redhat.com>
2967
2968         * ipa-type-escape.c (discover_unique_type): Remove dead code at
2969         end of function.  Reindent.
2970
2971 2005-09-24  Ian Lance Taylor  <ian@airs.com>
2972
2973         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
2974         NEGATE_EXPR/BIT_NOT_EXPR case.
2975
2976 2005-09-24  Richard Henderson  <rth@redhat.com>
2977
2978         * c-common.c (handle_mode_attribute): When not modifying in place,
2979         create subtypes for enumerations.
2980         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
2981         * gimplify.c (create_tmp_from_val): Likewise.
2982
2983 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
2984
2985         * config/i386/i386.md (*tls_global_dynamic_64,
2986         *tls_local_dynamic_base_64): Add missing mode to call.
2987         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
2988
2989 2005-09-24  Jan Hubicka  <jh@suse.cz>
2990
2991         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
2992         (cgraph_clone_node): Likewise.
2993         * cgraph.h (cgraph_clone_edge): Update prototype.
2994         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
2995         duplicated prototypes; add updating argument.
2996         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
2997         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
2998         updating profile.
2999         (cgraph_mark_inline_edge): Likewise.
3000         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
3001         (cgraph_flatten_node): Likewise.
3002         (cgraph_decide_recursive_inlining): Likewise.
3003         (cgraph_decide_inlining_of_small_function): Likewise.
3004         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3005
3006 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
3007             Pete Steinmetz <steinmtz@us.ibm.com>
3008
3009         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
3010         (rldic.): Set type to "compare".
3011         (rldicr.): Same.
3012         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
3013         mfjmpr for MFCTR/MFLR.
3014         (movdf_hardfloat64): Same.
3015         (movdf_softfloat64): Same.  Correct order of store and move types.
3016         (movti_string): Set type to store_ux/load_ux.
3017         (load_multiple): Set type to load_ux.
3018         (store_multiple): Set type to store_ux.
3019         (movmemsi): Set type to store_ux.
3020         (output_cbranch direct_return): Set type to jmpreg.
3021         (stmw): Set type to store_ux.
3022         (lmw): Set type to load_ux.
3023         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
3024         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
3025         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
3026         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
3027         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
3028         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
3029         (rios1-fpstore): Increase latency to 3.
3030         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
3031         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
3032
3033 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
3034             Andrew Pinski  <pinskia@physics.uc.edu>
3035
3036         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
3037         operand2 constraint to "b".
3038         (sync_<fetchop_name>di_internal): Same.
3039         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
3040         to "b".
3041         (sync_old_<fetchop_name>di_internal): Same.
3042         (sync_new_<fetchop_name>si_internal): Same.
3043         (sync_new_<fetchop_name>di_internal): Same.
3044
3045 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
3046
3047         PR middle-end/23991
3048         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
3049         case, define as macros.
3050
3051         PR rtl-optimization/23837
3052         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
3053         clobber / clobber match between dest and p->first.
3054
3055         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
3056         (no_conflict_move_test): Update comments.
3057
3058 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
3059
3060         * doc/install.texi: Update URL for Jacks.
3061         * doc/sourcebuild.texi: Likewise.
3062
3063 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
3064
3065         PR target/24007
3066         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
3067         registers when choosing register preferences.
3068         (movdf_hardfloat64): Same.
3069
3070 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
3071
3072         * expmed.c (expand_shift): Don't use the target of the rotate as
3073         target for the first expanded shift insn.
3074         * testsuite/gcc.dg/20050922-1.c: Testcase added.
3075
3076 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
3077
3078         PR tree-optimization/22438
3079         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
3080         preserved iv rhs rewriting specially.
3081
3082 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
3083
3084         * tree-data-ref.c (analyze_array_indexes): Only estimate when
3085         estimate_only  is true.
3086         * tree-flow.h (ref_contains_indirect_ref): New prototype.
3087         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
3088         tree-ssa-structalias.c
3089         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
3090         ref_contains_indirect_ref.
3091         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
3092
3093 2005-09-21  DJ Delorie  <dj@redhat.com>
3094
3095         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
3096         MASK_PTR_A0D0.
3097         (mn10300_return_in_memory): Support variable size types also.
3098         (mn10300_pass_by_reference): Likewise.
3099         (mn10300_function_value): New.
3100         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
3101         (FUNCTION_OUTGOING_VALUE): Likewise.
3102         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
3103         * doc/invoke.texi: Document it.
3104
3105 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
3106
3107         PR target/22585
3108         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
3109         force integer op1 into register for XFmode compares.
3110
3111 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
3112
3113         PR middle-end/23971
3114         * expmed.c (alg_code): Add alg_impossible.
3115         (alg_hash_entry): Add cost.
3116         (synth_mult): Record alg_impossible in the hash table if
3117         multiplication by a given integer is impossble within the
3118         limit.  Speed up using alg_impossible.
3119
3120 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
3121
3122         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
3123         argument.  Allow and set any offset if needs_anyoffset is passed
3124         in.
3125         (get_constraint_for): Add argument here too.
3126         Pass it down.
3127         (do_structure_copy): Pass NULL to get_constraint_for.
3128         (handle_ptr_arith): Ditto.
3129         (find_func_aliases): Ditto.
3130
3131 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
3132
3133         PR rtl-optimization/23898
3134         * output.h (get_attr_min_length): Declare.
3135         * final.c (get_attr_length_1): New function, broken out of:
3136         (get_attr_length).
3137         (get_attr_min_length): New function.
3138         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
3139         (duplicate_computed_gotos): Likewise.
3140         * genattr.c (insn_min_length): Generate declaration.
3141         * genattrtab.c (min_fn, min_attr_value): New functions.
3142         (make_length_attrs): Generate insn_min_length.
3143
3144 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
3145
3146         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
3147
3148 2005-09-20  Richard Henderson  <rth@redhat.com>
3149
3150         PR tree-optimization/24059
3151         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
3152         EXPAND_STACK_PARM.
3153
3154 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
3155
3156         * c.opt (fextended-identifiers): New.
3157         * c-opts.c (c_common_handle_option): Handle
3158         -fextended-identifiers.
3159         * doc/cpp.texi: Update documentation of extended identifiers.
3160         * doc/cppopts.texi (-fextended-identifiers): Document.
3161
3162 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3163
3164         PR tree-optimization/23929
3165         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
3166         if expr is NULL.
3167
3168         PR tree-optimization/23818
3169         * tree-stdarg.c (execute_optimize_stdarg): Call
3170         calculate_dominance_info.
3171
3172 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
3173
3174         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
3175         (analyze_siv_subscript_cst_affine): Add weak SIV test.
3176         (compute_overlap_steps_for_affine_1_2): Use
3177         get_number_of_iters_for_loop.
3178         (analyze_subscript_affine_affine): Check whether difference is
3179         zero first.
3180         Use get_number_of_iters_for_loop.
3181         Check whether overlap occurs outside of bounds.
3182         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
3183
3184 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
3185
3186         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
3187         base register if possible.
3188
3189 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
3190
3191         PR tree-optimization/18463
3192         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
3193         converting it directly is not possible.
3194         (chrec_convert_aggressive): New function.
3195         * tree-chrec.h (chrec_convert_aggressive): Declare.
3196         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
3197         Fold chrec conversions aggressively if asked to.
3198         (instantiate_parameters): Modified because of changes in
3199         instantiate_parameters_1.
3200
3201 2005-09-19  Richard Henderson  <rth@redhat.com>
3202
3203         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
3204         (reduc_splus_v2df): New.
3205
3206 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
3207
3208         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
3209         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
3210
3211 2005-09-19  Richard Henderson  <rth@redhat.com>
3212
3213         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
3214         vcondu<SSEMODE12>.
3215
3216 2005-09-19  Richard Henderson  <rth@redhat.com>
3217
3218         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
3219         (ia64_expand_dot_prod_v8qi): New.
3220         * config/ia64/ia64-protos.h: Update.
3221         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
3222         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
3223         sdot_prodv8qi, sdot_prodv4hi): New.
3224         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
3225
3226 2005-09-19  Richard Henderson  <rth@redhat.com>
3227
3228         PR 23941
3229         * real.c (exact_real_truncate): Return false if the format cannot
3230         represent the number as a normal.
3231
3232         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
3233         for a memory source.
3234
3235 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
3236
3237         * tree-ssa-operands.c (swap_tree_operands): Export.
3238         * tree.h (swap_tree_operands): Declare.
3239         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
3240         Call swap_tree_operands.
3241
3242 2005-09-19  Richard Henderson  <rth@redhat.com>
3243
3244         * tree-flow.h (merge_alias_info): Declare.
3245         * tree-ssa-copy.c (merge_alias_info): Export.
3246         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
3247         (vect_create_data_ref_ptr): Use create_iv directly.
3248         (vectorizable_load): Use correct types for integer constants.
3249         (vect_generate_tmps_on_preheader): Likewise.
3250         (vect_gen_niters_for_prolog_loop): Likewise.
3251
3252 2005-09-19  Steven Bosscher  <stevenb@suse.de>
3253
3254         PR rtl-optimization/23943
3255         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
3256
3257 2005-09-18  Jan Hubicka  <jh@suse.cz>
3258
3259         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
3260
3261 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3262
3263         * varasm.c (output_constant): Do not abort on conversions to union
3264         types between different sizes.
3265
3266 2005-09-18  Richard Guenther  <rguenther@suse.de>
3267
3268         PR middle-end/23944
3269         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
3270         fallback.
3271
3272 2005-09-18  Paul Brook  <paul@codesourcery.com>
3273
3274         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
3275
3276 2005-09-17  Richard Henderson  <rth@redhat.com>
3277
3278         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
3279         * tree-ssa-loop.c (pass_vect_dce): Remove.
3280         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
3281         of pass_vectorize.
3282
3283 2005-09-17  Richard Henderson  <rth@redhat.com>
3284
3285         * tree-pass.h (pass_vect_dce): Declare.
3286         * passes.c (init_optimization_passes): Add it.
3287         * tree-flow.h (tree_ssa_dce): Declare.
3288         * tree-ssa-dce.c (tree_ssa_dce): Export.
3289         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
3290         (gate_tree_vectorize): ... here.
3291         (pass_vect_dce): New.
3292
3293 2005-09-17  Jan Hubicka  <jh@suse.cz>
3294
3295         * except.c (struct eh_status): Turn region_array into vec.
3296         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
3297         convert_from_eh_region_ranges, find_exception_handler_labels,
3298         current_function_has_exception_handlers, assign_filter_values,
3299         build_post_landing_pads, dw2_build_landing_pads,
3300         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
3301         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
3302         foreach_reachable_handler, can_throw_internal_1,
3303         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
3304         region_array.
3305         (duplicate_eh_region_1): Update region_array.
3306         (duplicate_eh_regions): Resize region_array and avoid recomputing.
3307
3308 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
3309
3310         PR middle-end/22067
3311         * expmed.c (expand_mult): Substitute simple register for op0 when
3312         computing max_cost.
3313
3314 2005-09-17  Richard Henderson  <rth@redhat.com>
3315
3316         * expr.c (emit_move_via_integer): Add force argument, pass it on
3317         to emit_move_change_mode.  Update callers.
3318         (emit_move_complex): Pass true to new force argument.
3319         * function.c (expand_function_end): Move expand_eh_return call
3320         earlier.  Merge sub-word complex values into a pseudo before
3321         copying to the return hard register.
3322
3323 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
3324
3325         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
3326         between different sizes.
3327
3328 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
3329
3330         PR 23903
3331
3332         * passes.c (init_optimization_passes): Register dump files for
3333         IPA passes first.
3334
3335 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3336
3337         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
3338         * config/s390/s390.c (s390_overlap_p): New function.
3339         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
3340         peephole2, "*xc" peephole2): Added overlap check to the peephole2
3341         condition.
3342
3343 2005-09-16  Richard Guenther  <rguenther@suse.de>
3344
3345         * ipa-pure-const.c (static_execute): Free auxiliar information.
3346         * ipa-type-escape.c (discover_unique_type): Free temporary key.
3347         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
3348
3349 2005-09-15  DJ Delorie  <dj@redhat.com>
3350
3351         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
3352
3353 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
3354
3355         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3356         to order operands.
3357         (swap_commutative_operands_with_target): New.
3358
3359 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
3360
3361         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
3362         parameter.
3363         Update callers.
3364         (estimate_iters_using_array): New function.
3365         * tree-data-ref.h (estimate_iters_using_array): Prototype
3366         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3367         Use estimate_iters_using_array instead of analyze_array.
3368
3369 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3370
3371         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
3372         as addressable.
3373
3374 2005-09-15  Michael Matz  <matz@suse.de>
3375
3376         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
3377
3378 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
3379
3380         PR tree-optimization/23835
3381         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
3382         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
3383
3384 2005-09-14  Richard Henderson  <rth@redhat.com>
3385
3386         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
3387         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
3388
3389 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
3390
3391         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
3392         in the ARRAY_TYPE case.
3393
3394 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
3395
3396         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
3397
3398 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
3399
3400         PR middle-end/22480
3401         * tree-vect-transform.c (vectorizable_operation): Return false for
3402         scalar shift operations and for vector shift operations with
3403         non-invariant shift arguments.  Use scalar tree operand op1 as
3404         a shift operand when vector shift insn pattern uses scalar shift
3405         operand.
3406         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
3407
3408 2005-09-14  Olivier Hainque  <hainque@adacore.com>
3409
3410         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
3411         value if it has side-effects.
3412
3413 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
3414
3415         PR target/22068
3416         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
3417
3418 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
3419
3420         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
3421         passed as NAME as if it were label at start of function code.
3422
3423 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
3424
3425         * config/sh/sh.md (*movv4sf_i): Add general register cases to
3426         the constraints.
3427
3428 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
3429
3430         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
3431         as early clobber.  Rewrite so the PIC register is not implicitly used.
3432
3433 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3434
3435         * tree.c (annotate_with_file_line): Compare line numbers before
3436         file names.
3437
3438 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
3439
3440         PR target/23816
3441         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
3442         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
3443
3444 2005-09-13  Ian Lance Taylor  <ian@airs.com>
3445
3446         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
3447         than a HOST_WIDEST_INT to gen_doloop_begin.
3448
3449 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
3450
3451         * tree-dfa.c (dump_variable): Guard against NULL annotations.
3452
3453 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
3454
3455         PR tree-optimize/23817
3456         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
3457
3458 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
3459
3460         PR target/23774
3461         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
3462         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
3463         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
3464         (restore_stack_nonlocal): Likewise.
3465         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
3466
3467 2005-09-12  Ian Lance Taylor  <ian@airs.com>
3468
3469         PR g++/7874
3470         * c.opt (ffriend-injection): New C++ option.
3471         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
3472         (C++ Dialect Options): Document -ffriend-injection.
3473
3474 2005-09-12  Josh Conner  <jconner@apple.com>
3475
3476         PR middle-end/23237
3477         * ipa-reference.c (static_execute): Don't mark variables in
3478         named sections TREE_READONLY.
3479
3480 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
3481
3482         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
3483         stack_tie.
3484
3485 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
3486
3487         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
3488         V_MUST_DEF instead of just the first_use_p.
3489         Don't mark the virtual variables for renaming on the statement which
3490         is being removed.
3491         (pass_dse): Remove TODO_update_ssa.
3492
3493 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
3494
3495         PR middle-end/23290
3496         * stor-layout.c (compute_record_mode): For records with a single
3497         field, actually check the field's mode size against the type size.
3498
3499         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
3500         registers for TARGET_SHMEDIA.
3501         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
3502         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
3503         of GENERAL_REGS and FP_REGS.
3504
3505 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
3506
3507         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
3508
3509 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
3510
3511         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
3512         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
3513         are omitted.  Exclude stack_tie insn too.
3514
3515 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
3516
3517         PR rtl-optimization/23098
3518         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
3519         0.0f is easy.
3520     &nbs