OSDN Git Service

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