OSDN Git Service

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