OSDN Git Service

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