fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
[official-gcc.git] / gcc / ChangeLog
blob16590e4a9327f4c43cc545694044c99bbe0fd2eb
1 2008-03-28  Rafael Espindola  <espindola@google.com>
3         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
4         (tree_binary_nonnegative_warnv_p): Make it public.
5         (tree_single_nonnegative_warnv_p): Make it public.
6         (tree_invalid_nonnegative_warnv_p): Make it public.
7         (tree_unary_nonzero_warnv_p): Make it public.
8         (tree_binary_nonzero_warnv_p): Make it public
9         (tree_single_nonzero_warnv_p): Make it public.
10         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11         (extract_range_from_binary_expr): Split the expr argument.
12         (extract_range_from_unary_expr): Split the expr argument.
13         (extract_range_from_comparison): Split the expr argument.
14         (extract_range_from_expr): Use the new aux functions.
15         (vrp_evaluate_conditional_warnv): Use
16         vrp_evaluate_conditional_warnv_with_ops.
17         * tree.h (tree_unary_nonzero_warnv_p): Declare.
18         (tree_binary_nonzero_warnv_p): Declare.
19         (tree_single_nonzero_warnv_p): Declare.
20         (tree_expr_nonzero_warnv_p): Declare.
21         (tree_unary_nonnegative_warnv_p): Declare.
22         (tree_binary_nonnegative_warnv_p): Declare.
23         (tree_single_nonnegative_warnv_p): Declare.
24         (tree_invalid_nonnegative_warnv_p): Declare.
26 2008-03-28  Richard Guenther  <rguenther@suse.de>
28         PR tree-optimization/30317
29         PR tree-optimization/30911
30         PR tree-optimization/34793
31         * tree-vrp.c (set_and_canonicalize_value_range): New function.
32         (struct assert_locus_d): New member EXPR.
33         (register_new_assert_for): Add EXPR parameter to support
34         ASSERT_EXPR <name, expr OP limit>.
35         (register_edge_assert_for_1): Adjust callers.
36         (find_assert_locations): Likewise.
37         (process_assert_insertions_for): Build condition from
38         expression.
39         (extract_range_from_assert): Handle ASSERT_EXPRs
40         of the form ASSERT_EXPR <name, expr OP limit>.
41         (register_edge_assert_for_2): New helper registering
42         asserts for comparisons.  Recognize range tests of the form
43         (unsigned)i - CST1 OP CST2.
44         (register_edge_assert_for_1): Use it.
45         (register_edge_assert_for): Likewise.
46         (needs_overflow_infinity): Integer sub-types
47         do not need overflow infinities.
48         (vrp_val_is_max): The extreme values of integer sub-types
49         are those of the base type.
50         (vrp_val_is_min): Likewise.
51         * tree.def (ASSERT_EXPR): Document extra allowed conditional
52         expressions.
54 2008-03-28  Nick Clifton  <nickc@redhat.com>
56         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
57         Return GENERAL_REGS for stack adjustment reloads.
59 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
61         PR target/31334
62         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
63         const_vector when all the vectors are constant.
65 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
67         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
68         comparisons.
69         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
70         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
71         (scc_sf): New.
72         (s<code>_sf): Use new scc_sf attribute for opcode names.
74 2008-03-27  Tom Tromey  <tromey@redhat.com>
76         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
77         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
78         config/spu/t-spu-elf, config/i386/t-interix,
79         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
80         config/i386/x-darwin, config/i386/x-mingw32,
81         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
82         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
83         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
84         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
85         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
86         config/rs6000/x-darwin, config/rs6000/t-rs6000,
87         config/score/t-score-elf, config/arm/t-strongarm-pe,
88         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
89         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
90         Revert automatic dependency patch.
92 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
94         PR target/35657
95         * config/i386/i386.c (ix86_function_arg_boundary): Align
96         decimal floating point to its natural boundary.
98 2008-03-27  Richard Guenther  <rguenther@suse.de>
100         PR middle-end/35716
101         * fold-const.c (fold_comparison): Restrict distinct decl
102         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
103         solely rely on operand_equal_p.
105 2008-03-27  Richard Guenther  <rguenther@suse.de>
107         PR c/32511
108         * c-common.c (handle_weak_attribute): Reject combination of
109         weak and inline.
111 2008-03-27  Richard Guenther  <rguenther@suse.de>
113         PR tree-optimization/32810
114         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
115         conversions from DECL_INITIAL.
116         (fold_const_aggregate_ref): Likewise from constructor elements.
118 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
120         * tree-affine.h (aff_combination_expand): Declare.
121         (get_inner_reference_aff): Likewise.
122         * tree-affine.c (aff_combination_expand): Split out from
123         tree_to_aff_combination_expand.
124         (get_inner_reference_aff): New function.
125         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
126         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
127         (struct lim_aux_data): sm_done field removed.
128         (mem_ref_loc_p, mem_ref_locs_p): New types.
129         (struct mem_ref): Added id, stored, accesses_in_loop,
130         indep_loop, dep_loop, indep_ref, dep_ref fields.
131         Removed is_stored, locs and next fields.
132         (memory_accesses): New variable.
133         (movement_possibility): Do not allow moving statements
134         that store to memory.
135         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
136         New functions.
137         (determine_max_movement): For statements with memory references,
138         find the outermost loop in that the reference is independent.
139         (move_computations_stmt): Mark the virtual operands for
140         renaming.
141         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
142         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
143         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
144         add_vop_ref_mapping, create_vop_ref_mapping_loop,
145         create_vop_ref_mapping, analyze_memory_references,
146         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
147         get_all_locs_in_loop, ref_always_accessed_p,
148         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
149         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
150         store_motion_loop, store_motion): New functions.
151         (struct vop_to_refs_elt): New type.
152         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
153         memref_hash, memref_eq, hoist_memory_references): Rewritten.
154         (schedule_sm): Replaced by...
155         (execute_sm): ... this.
156         (determine_lsm_ref, hoist_memory_references,
157         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
158         find_more_ref_vops, free_mem_ref, free_mem_refs,
159         determine_lsm_loop, determine_lsm): Removed.
160         (tree_ssa_lim_finalize): Free data structures used by store
161         motion.
162         (tree_ssa_lim): Call analyze_memory_references.  Use
163         store_motion instead of determine_lsm.
165 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
167         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
168         rename tmake_file to m68hc11/t-m68hc11.
169         (mcore): Set inhibit_libc to true.
170         * config.host (alpha*-dec-*vms*): Set extra_programs.
171         (interix3*): Don't use host_xmake_file.
172         * configure.ac: Let config.gcc override inhibit_libc.
173         * configure: Regenerate.
175         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
176         * config/t-openbsd-thread: Remove commented out lines.
177         
178         * config/x-interix: Remove.
180         * config/m68hc11/t-m68hc11-gas: Rename to...
181         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
183         * config/mcore/t-mcore: Remove T_CFLAGS.
184         * config/mcore/t-mcore-pe: Likewise.
186 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
188         * configure.ac: Replace custom __GNU_SOURCE test with
189         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
190         * aclocal.m4: Regenerate.
191         * configure: Regenerate.
192         * config.in: Regenerate.
194 2008-03-27  Richard Guenther  <rguenther@suse.de>
196         * fold-const.c (target.h): Include.
197         (fold_comparison): Fold comparison of addresses of decls
198         that bind locally or of constants.  Consolidate address folding code.
199         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
200         results from fold_binary_to_constant.
201         (compare_values_warnv): Likewise.
203 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
205         PR middle-end/35429
206         * fold-const.c (fold_truthop): Check for integeral types when folding
207         a == 0 && b == 0 and a != 0 || b != 0 .
209 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
211         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
213 2008-03-26  Andreas Schwab  <schwab@suse.de>
215         * doc/invoke.texi: Fix use of @item vs. @itemx.
217 2008-03-26  Tom Tromey  <tromey@redhat.com>
219         * Makefile.in (build/gensupport.o, build/print-rtl.o,
220         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
221         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
222         build/gencodes.o, build/genconditions.o, build/genconfig.o,
223         build/genconstants.o, build/genemit.o, build/genextract.o,
224         build/genflags.o, build/genmddeps.o, build/genopinit.o,
225         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
226         options.h.
228 2008-03-26  Richard Guenther  <rguenther@suse.de>
230         Revert
231         2008-03-26  Richard Guenther  <rguenther@suse.de>
233         * fold-const.c (target.h): Include.
234         (fold_comparison): Fold comparison of addresses of two decls
235         that bind locally.  Consolidate address folding code.
237 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
239         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
240         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
241         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
242         dconstsqrt2, dconstthird, dconste and/or dconst10.
243         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
244         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
245         dconstsqrt2, dconste): Delete.
246         (init_emit_once): Likewise.  Simplify initializing dconstm1.
247         Constify variable.
248         * real.c (get_real_const): New.
249         * real.h (dconst3, dconst10, dconstm2, dconstthird,
250         dconstsqrt2, dconste): Delete.
251         (real_value_const, get_real_const): New.
253 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
255         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
257         * config/i386/i386.c (ix86_function_arg_boundary): Check
258         BIGGEST_ALIGNMENT instead of 128.
259         (setup_incoming_varargs_64): Likewise.
261 2008-03-26  Tom Tromey  <tromey@redhat.com>
263         * Makefile.in (DEPFILES): Add missing '/'.
265 2008-03-26  Richard Guenther  <rguenther@suse.de>
267         * fold-const.c (target.h): Include.
268         (fold_comparison): Fold comparison of addresses of two decls
269         that bind locally.  Consolidate address folding code.
271 2008-03-26  Nick Clifton  <nickc@redhat.com>
273         PR target/31232
274         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
275         not allow INT+INT as a legitimate addressing mode.
277 2008-03-26  Richard Guenther  <rguenther@suse.de>
279         * tree-flow.h (widen_bitfield): Remove declaration.
280         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
281         (widen_bitfield): Remove function.
282         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
283         code.
285 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
287         PR target/31558
288         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
289         error_mark_node's.
291 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
293         PR rtl-optimization/35232
294         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
295         (forget_old_reloads_1, forget_marked_reloads): Don't clear
296         reg_reloaded_call_part_clobbered here.
297         (reload_regs_reach_end_p): New function.
298         (reload_reg_rtx_for_input): New variable.
299         (reload_reg_rtx_for_output): Likewise.
300         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
301         when reassigning a pseudo register.  Load reloadreg from 
302         reload_reg_rtx_for_input, moving the mode and register
303         calculation to...
304         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
305         instead of the original when deciding whether an input reload
306         would be a no-op or whether an output reload can be deleted.
307         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
308         when setting up new_spill_reg_store.  Load it from
309         reload_reg_rtx_for_output, moving the mode and register
310         calculation to...
311         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
312         instead of the original when deciding whether an output reload
313         would be a no-op.  Do the same when modifying insn notes.
314         Use rtx_equal_p instead of == to compare the registers.
315         (inherit_piecemeal_p): Take a mode and two register numbers
316         as argument.
317         (emit_reload_insns): Clear new_spill_reg_store for every hard
318         register in the reload register.  Remove spill registers
319         from reg_reloaded_valid before considering whether to record
320         inheritance information for them.  Use reload_reg_rtx_for_output
321         instead of reg_rtx when recording output reloads.  Use
322         reload_reg_rtx_for_input instead of reg_rtx when recording
323         input reloads.  Set or clear reg_reloaded_call_part_clobbered
324         at the same time as setting reg_reloaded_valid.
325         (delete_output_reload): Add a new_reload_reg parameter and use it
326         instead of rld[j].reg_rtx.
327         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
328         calls accordingly.
330 2008-03-25  Tom Tromey  <tromey@redhat.com>
332         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
333         (build/genattr.o): Likewise.
334         (build/genattrtab.o): Likewise.
335         (build/gencodes.o): Likewise.
336         (build/genconfig.o): Likewise.
337         (build/genconstants.o): Likewise.
338         (build/genemit.o): Likewise.
339         (build/genextract.o): Likewise.
340         (build/genflags.o): Likewise.
342 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
343         
344         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
345         instead of size_int for integer types.
346         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
347         to match type of MINUS_EXPR.
348         
349 2008-03-25  Tom Tromey  <tromey@redhat.com>
351         * configure: Rebuilt.
352         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
353         Makefile.
355 2008-03-25  Tom Tromey  <tromey@redhat.com>
357         * config/x-solaris (host-solaris.o): Update.
358         * config/x-linux (host-linux.o): Update.
359         * config/x-hpux (host-hpux.o): Update.
360         * config/x-darwin (host-darwin.o): Update.
361         * config/v850/t-v850e (v850-c.o): Update.
362         * config/v850/t-v850 (v850-c.o): Update.
363         * config/t-vxworks (vxworks.o): Update.
364         * config/t-sol2 (sol2-c.o, sol2.o): Update.
365         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
366         * config/spu/t-spu-elf (spu-c.o): Update.
367         (spu.o): Remove.
368         * config/sh/t-symbian (sh-c.o): Update.
369         (symbian.o): Update.
370         * config/sh/t-sh (sh-c.o): Update.
371         * config/score/t-score-elf (score7.o, score3.o): Update.
372         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
373         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
374         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
375         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
376         (rs6000.o): Remove.
377         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
378         * config/m32c/t-m32c (m32c-pragma.o): Update.
379         * config/ia64/t-ia64 (ia64-c.o): Update.
380         * config/i386/x-mingw32 (host-mingw32.o): Update.
381         * config/i386/x-i386 (driver-i386.o): Update.
382         * config/i386/x-darwin (host-i386-darwin.o): Update.
383         * config/i386/x-cygwin (host-cygwin.o): Update.
384         * config/i386/t-nwld (nwld.o): Update.
385         * config/i386/t-netware (netware.o): Update.
386         * config/i386/t-interix (winnt.o): Update.
387         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
388         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
389         msformat-c.o): Update.
390         * config/bfin/t-bfin-linux (generated_files): Add
391         linux-sysroot-suffix.h.
392         * config/arm/t-wince-pe (pe.o): Update.
393         * config/arm/t-strongarm-pe (pe.o): Update.
394         * config/arm/t-pe (pe.o): Update.
395         * config/arm/t-arm (arm-c.o): Update.
396         * doc/install.texi (Prerequisites): Require make 3.80.
397         * Makefile.in: Remove .o targets.
398         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
399         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
400         (simple_generated_h, simple_generated_c): Move earlier.
401         (generated_files): New variable.
402         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
403         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
404         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
405         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
406         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
407         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
408         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
409         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
410         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
411         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
412         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
413         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
414         (.c.o): Remove.
415         (COMPILE.base, COMPILE): New variables.
416         (%.o): New pattern rule.
417         (ALL_HOST_OBJS): New variable.
418         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
419         (dummy-checksum.o, cc1-checksum.o): Remove.
420         (DRIVER_SHLIB): New variable.
421         (DRIVER_DEFINES): Use it.
422         (gencondmd.c): Move out of build/.
423         (s-conditions): Update.
424         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
425         (ALL_BUILD_OBJS): Likewise.
426         (build/%.o): Use BUILDCOMPILE.
427         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
428         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
429         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
430         build/gencheck.o, build/gencodes.o, build/genconditions.o,
431         build/genconfig.o, build/genconstants.o, build/genemit.o,
432         build/genextract.o, build/genflags.o, build/genmddeps.o,
433         build/genopinit.o, build/genoutput.o, build/genpeep.o,
434         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
435         build/gen-protos.o, build/scan.o, build/fix-header.o,
436         build/scan-decls.o): Simplify.
437         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
438         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
439         prefix.o, toplev.o): Reduce to variable setting.
440         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
441         ($(out_object_file), gcc-options.o): New targets.
442         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
443         * configure: Rebuilt.
444         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
445         * doc/sourcebuild.texi (Front End Directory): Document new variable.
447 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
449         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
450         complain when we hit an error, return ERROR_MARK_NODE.
452 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
454         * config/sh/constraints.md (Pso, Psz): New constraints.
455         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
456         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
458 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
460         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
461         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
463 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
465         * config/sh/sh.md (prefetch): Add condition for SH2A target.
466         (prefetch_sh2a): New.   
468 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
469             Naveen.H.S  <naveen.hs@kpitcummins.com>
471         * config/sh/constraints.md (I28): New constraint.
472         * config/sh/sh.c (broken_move): Add support for movi20s.
473         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
475 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
476             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
477             Naveen.H.S  <naveen.hs@kpitcummins.com>
479         * config/sh/sh.c (SH_ATTRIBUTES): Define.
480         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
481         (print_operand): Handle resbank in %@ operand code.
482         (sh_encode_section_info): New.
483         (push_regs): Add conditions for resbank.
484         (sh_expand_epilogue): Likewise.
485         (sh_insert_attributes): Likewise.
486         (sh_attribute_table): Likewise.
487         (sh_handle_resbank_handler_attribute): New.
488         (sh2a_handle_function_vector_handler_attribute): New.
489         (sh2a_is_function_vector_call): New.
490         (sh2a_get_function_vector_number): New.
491         (sh2a_function_vector_p): New.
492         (sh_cfun_resbank_handler_p): New.
493         * config/sh/sh.md (calli): Emit jsr/n if possible.
494         (calli_tbr_rel): New.
495         (calli_pcrel): Emit jsr/n if possible.
496         (return_i): Emit rts/n if possible.
497         (call_valuei_tbr_rel): New.
498         (call_valuei_pcrel): Add condition for SH2A target.
499         (call_value): Likewise.
500         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
501         (sh2a_get_function_vector_number): Likewise.
502         (sh2a_is_function_vector_call): Likewise.
503         * doc/extend.texi: Document TBR relative addressing of SH2A.
504         (resbank): Add description for SH2A.
506 2008-03-24  Richard Guenther  <rguenther@suse.de>
508         PR c/22371
509         * gimplify.c (gimplify_modify_expr): For frontend type-correct
510         pointer assignments change conversions according to middle-end rules.
511         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
512         * configure.ac: Include type checking in yes.
513         * configure: Regenerate.
515 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
517         * diagnostic.c (diagnostic_count_diagnostic): Delete.
518         (diagnostic_report_diagnostic): Update. Handle ICEs here.
519         
520 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
522         * gthr-vxworks.h (UNUSED): Define.
524 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
526         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
527         CX_REG.
529 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
531         * doc/extend.texi (Function Attributes): Add missing comma in the
532         example of the "alloc_size" attribute.
533         
534 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
536         Revert:
537         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
539         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
540         32bit host.
542         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
544         PR target/35496
545         * stor-layout.c (update_alignment_for_field): Set minimum alignment
546         of the underlying type of a MS bitfield layout to the natural
547         alignment of the type.
549         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
551         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
552         to their natural alignment to avoid store forwarding stalls.
554 2008-03-22  Richard Guenther  <rguenther@suse.de>
556         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
557         For PHI nodes verify the address is invariant.
558         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
559         (get_symbol_constant_value): Use is_gimple_min_invariant.
560         (maybe_fold_stmt_indirect): Likewise.
562 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
564         PR rtl-optimization/33927
565         * Makefile.in (dse.o): Depend on $(TM_P_H).
566         * expr.h (extract_low_bits): Declare.
567         * expmed.c (extract_low_bits): New function.
568         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
569         * dse.c: Include tm_p.h.
570         (find_shift_sequence): Remove the read_reg argument and return the
571         read value.  Emit the instructions instead of returning them.
572         Iterate on new_mode rather than calculating it each time.
573         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
574         source to NEW_MODE and extract_low_bits to convert the shifted
575         value to READ_MODE.
576         (replace_read): Allow the load and store to have different mode
577         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
578         or extraction instructions before trying the replacement.  Update
579         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
581 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
583         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
584         to their natural alignment to avoid store forwarding stalls.
586 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
588         PR target/27946
589         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
590         encouraging but not allowing gprs for input;
591         change the input constraint to !f#r.
592         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
593         gprs for output;
594         change the output constraint to !f#r.
596 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
598         PR target/13958
599         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
600         corresponding post-reload splitters.
601         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
602         when x87 FP math is selected.
603         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
604         New function prototype.
605         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
606         unreachable function to ease macroization of insn patterns.
608 2008-03-21  Martin Jambor  <mjambor@suse.cz>
610         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
611         reference dumps if ddr is NULL or dependence is unknown.
613 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
615         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
616         unsigned extension into account.
617         (ATOMIC_COMPARE_AND_SWAP): Likewise.
618         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
619         Do computations on a scratch register.
621 2008-03-21  Richard Guenther  <rguenther@suse.de>
623         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
624         Use is_gimple_min_invariant instead of TREE_INVARIANT.
625         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
626         * tree-ssa-dom.c (record_equality): Likewise.
627         * tree-inline.c (copy_body_r): Likewise.
628         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
629         TREE_INVARIANT.
631 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
633         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
634         as 'delete_unused' argument.
636 2008-03-20  Richard Guenther  <rguenther@suse.de>
638         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
639         special casing of constant qualifiers.
640         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
641         care about them in general.
642         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
643         regardless of their type.
644         (fold_stmt_r): Forcefully fold *& if we end up with that.
646 2008-03-20  Paul Brook  <paul@codesourcery.com>
648         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
649         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
650         linker flags.
651         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
652         definition.
653         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
654         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
656 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
658         * common.opt (Wmudflap): New option.
659         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
660         (mx_register_decls): Likewise.
661         (mudflap_finish_file): Likewise.
662         * doc/invoke.texi: Document -Wno-mudflap.
664 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
666         * c-format.c (replace_format_name_to_system_name): New.
667         (cmp_attribs): New.
668         (convert_format_name_to_system_name): New.
669         (decode_format_attr): Add use of convert_format_name_to_system_name.
670         (format_types_orig): Add gnu_ prefix to names.
671         (check_format_info_main): Special treating of \0 escaped names for
672         supporting multi-character format specifiers as I32, I64.
673         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
674         (gnu_target_overrides_format_attributes): New.
675         * c-format.h: Add structure target_ovr_attr to hold
676         system specific formatter names.
677         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
678         msformat-c.o file to c_target_objs and cxx_target_objs.
679         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
680         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
681         (TARGET_N_FORMAT_TYPES): New.
682         * config/i386/msformat-c.c: New.
683         * config/i386/t-cygming: Add build rule for msformat-c.o.
684         * doc/extend.texi: Add new format names gnu_* and ms_* and
685         further details.
686         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
688 2008-03-20  Ira Rosen  <irar@il.ibm.com>
690         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
691         optimizations turned on under -O3.
692         (ftree-vectorize): Add that the flag is turned on with -O3.
694 2008-03-20  Ben Elliston  <bje@au.ibm.com>
696         * regmove.c (try_auto_increment): Fix spelling error in comment.
697         * final.c (final_scan_insn): Likewise.
699 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
701         PR target/14552
702         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
703         allocator preferences for "y" and "r" class registers.
704         ("*mov<mode>_internal"): Ditto.
705         ("*movv2sf_internal_rex64"): Ditto.
706         ("*movv2sf_internal"): Ditto.
708 2008-03-19  Michael Matz  <matz@suse.de>
710         PR middle-end/35616
711         * calls.c (expand_call): Check overlap of arguments with call
712         address for sibcalls.
714 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
716         PR target/35496
717         * stor-layout.c (update_alignment_for_field): Set minimum alignment
718         of the underlying type of a MS bitfield layout to the natural
719         alignment of the type.
721 2008-03-19  Jan Hubicka  <jh@suse.cz>
723         PR other/35094
724         * toplev.c (decode_d_option): Handle all CPP flags.
725         * tree-vrp.c: Update tree_pass descriptors.
726         * regrename.c: Update tree_pass descriptors.
727         * fwprop.c: Update tree_pass descriptors.
728         * doc/invoke.texi: Remove documentation of dropped -d? flags.
729         * tree-into-ssa.c: Update tree_pass descriptors.
730         * tree-dump.c: Update tree_pass descriptors.
731         * tree-complex.c: Update tree_pass descriptors.
732         * tree-dump.h: Update tree_pass descriptors.
733         * see.c: Update tree_pass descriptors.
734         * cgraphbuild.c: Update tree_pass descriptors.
735         * tracer.c: Update tree_pass descriptors.
736         * tree-loop-distribution.c: Update tree_pass descriptors.
737         * cgraph.c: Update tree_pass descriptors.
738         * postreload-gcse.c: Update tree_pass descriptors.
739         * postreload.c: Update tree_pass descriptors.
740         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
741         * tree-tailcall.c: Update tree_pass descriptors.
742         * tree-pass.h (tree_opt_pass): Rename to ...
743         (opt_pass) ... this one; add "type" field and remove letter field.
744         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
745         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
746         all_lowering_passes): Update declaration.
747         * ipa-cp.c: Update tree_pass descriptors.
748         * final.c: Update tree_pass descriptors.
749         * omp-low.c: Update tree_pass descriptors.
750         * tree-ssa-dse.c: Update tree_pass descriptors.
751         * ipa-reference.c: Update tree_pass descriptors.
752         * tree-ssa-uncprop.c: Update tree_pass descriptors.
753         * auto-inc-dec.c: Update tree_pass descriptors.
754         * reorg.c: Update tree_pass descriptors.
755         * cgraphunit.c: Update tree_pass descriptors.
756         * tree-ssa-copyrename.c: Update tree_pass descriptors.
757         * tree-ssa-ccp.c: Update tree_pass descriptors.
758         * df-core.c: Update tree_pass descriptors.
759         * mode-switching.c: Update tree_pass descriptors.
760         * tree-nomudflap.c: Update tree_pass descriptors.
761         * modulo-sched.c: Update tree_pass descriptors.
762         * ipa-pure-const.c: Update tree_pass descriptors.
763         * cse.c: Update tree_pass descriptors.
764         * web.c: Update tree_pass descriptors.
765         * tree-stdarg.c: Update tree_pass descriptors.
766         * tree-ssa-math-opts.c: Update tree_pass descriptors.
767         * tree-ssa-dom.c: Update tree_pass descriptors.
768         * tree-nrv.c: Update tree_pass descriptors.
769         * tree-ssa-alias.c: Update tree_pass descriptors.
770         * loop-init.c: Update tree_pass descriptors.
771         * gimple-low.c: Update tree_pass descriptors.
772         * ipa-inline.c: Update tree_pass descriptors.
773         * tree-ssa-sink.c: Update tree_pass descriptors.
774         * global.c: Update tree_pass descriptors.
775         * ifcvt.c: Update tree_pass descriptors.
776         * jump.c: Update tree_pass descriptors.
777         * predict.c: Update tree_pass descriptors.
778         * tree-ssa-loop.c: Update tree_pass descriptors.
779         * recog.c: Update tree_pass descriptors.
780         * dse.c: Update tree_pass descriptors.
781         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
782         * tree-eh.c: Update tree_pass descriptors.
783         * regmove.c: Update tree_pass descriptors.
784         * local-alloc.c
785         * function.c: Update tree_pass descriptors.
786         * tree-vectorizer.c: Update tree_pass descriptors.
787         * gcse.c: Update tree_pass descriptors.
788         * ipa-type-escape.c: Update tree_pass descriptors.
789         * tree-if-conv.c: Update tree_pass descriptors.
790         * init-regs.c: Update tree_pass descriptors.
791         * ipa.c: Update tree_pass descriptors.
792         * tree-ssa-phiopt.c: Update tree_pass descriptors.
793         * rtl-factoring.c: Update tree_pass descriptors.
794         * lower-subreg.c: Update tree_pass descriptors.
795         * bt-load.c: Update tree_pass descriptors.
796         * tree-dfa.c: Update tree_pass descriptors.
797         * except.c: Update tree_pass descriptors.
798         * emit-rtl.c: Update tree_pass descriptors.
799         * cfgexpand.c: Update tree_pass descriptors.
800         * tree-cfgcleanup.c: Update tree_pass descriptors.
801         * cfgcleanup.c: Update tree_pass descriptors.
802         * tree-ssa-pre.c: Update tree_pass descriptors.
803         * tree-sra.c: Update tree_pass descriptors.
804         * tree-mudflap.c: Update tree_pass descriptors.
805         * tree-ssa-copy.c: Update tree_pass descriptors.
806         * cfglayout.c: Update tree_pass descriptors.
807         * tree-ssa-forwprop.c: Update tree_pass descriptors.
808         * tree-ssa-dce.c: Update tree_pass descriptors.
809         * tree-ssa.c: Update tree_pass descriptors.
810         * regclass.c: Update tree_pass descriptors.
811         * integrate.c: Update tree_pass descriptors.
812         * tree-optimize.c: Update tree_pass descriptors.
813         * tree-ssa-phiprop.c: Update tree_pass descriptors.
814         * tree-object-size.c: Update tree_pass descriptors.
815         * combine.c: Update tree_pass descriptors.
816         * tree-outof-ssa.c: Update tree_pass descriptors.
817         * bb-reorder.c: Update tree_pass descriptors.
818         * stack-ptr-mod.c: Update tree_pass descriptors.
819         * var-tracking.c: Update tree_pass descriptors.
820         * tree-profile.c: Update tree_pass descriptors.
821         * tree-vect-generic.c: Update tree_pass descriptors.
822         * reg-stack.c: Update tree_pass descriptors.
823         * sched-rgn.c: Update tree_pass descriptors.
824         * tree-ssa-structalias.c: Update tree_pass descriptors.
825         * tree-cfg.c: Update tree_pass descriptors.
826         * passes.c (current_pass): Update declaration.
827         (finish_optimization_passes): Update.
828         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
829         (register_one_dump_file, register_dump_files_1, next_pass_1):
830         Update arguments.
831         (init_optimization_passes): Update handling of new types.
832         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
833         * ipa-struct-reorg.c: Update tree_pass descriptors.
834         * tree-ssa-reassoc.c: Update tree_pass descriptors.
835         * combine-stack-adj.c: Update tree_pass descriptors.
836         * cfgrtl.c: Update tree_pass descriptors.
837         * dce.c: Update tree_pass descriptors.
838         * tree-ssanames.c: Update tree_pass descriptors.
840 2008-03-19  Richard Guenther  <rguenther@suse.de>
842         PR middle-end/35609
843         * tree-ssa.c (walk_data): New structure.
844         (warn_uninitialized_var): If not always_executed warn with "maybe"
845         instead of "is".
846         (execute_early_warn_uninitialized): Compute post-dominators.
847         Initialize always_executed before processing each basic block.
849 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
851         PR target/35504
852         * config/i386/i386.c (x86_this_parameter): Calculate correct location
853         of "this" pointer when "regparm = N" or "fastcall" is in effect.
855 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
857         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
859 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
861         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
862         is true.
863         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
864         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
865         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
866         target after ignore has been set, and move there also the commputation
867         of subtarget and original_target.
868         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
869         (LANG_HOOKS_INITIALIZER): Remove it.
870         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
872 2008-03-18  Richard Guenther  <rguenther@suse.de>
874         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
875         found an expression with constants, note that in the VN for the lhs.
876         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
877         fold them to constants if possible.  Run cleanup_cfg if done so.
878         (execute_pre): Return todo.
879         (do_pre): Likewise.
880         (execute_fre): Likewise.
881         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
882         of constants.
883         (get_prop_source_stmt): Look through pointer conversions.
885 2008-03-18  Jan Hubicka  <jh@suse.cz>
887         * tree-pretty-print.c: Include predict.h.
888         (dump_generic_node): Dump predictor.
889         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
890         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
891         * gimple-low.c (lower_stmt): Likewise.
892         * expr.c (expand_expr_real): Likewise.
893         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
894         them.
895         (build_predict_expr, build_predict_expr): New.
896         * predict.h (predictor_name, build_predict_expr): Update.
897         * c-typeck.c (c_finish_bc_stmt): Add prediction.
898         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
899         * predict.def (PRED_CONTINUE): Update hitrate.
900         * tree.def (PREDICT_EXPR): Define.
901         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
902         do not handle BIND_EXPR.
903         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
904         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
905         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
906         operands.
908 2008-03-18  Michael Matz  <matz@suse.de>
910         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
912 2008-03-18  Richard Guenther  <rguenther@suse.de>
914         * tree-gimple.h (is_gimple_invariant_address): Declare.
915         (is_gimple_constant): Likewise.
916         * tree-gimple.c (is_gimple_constant): New function.
917         (is_gimple_invariant_address): Likewise.
918         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
919         and is_gimple_invariant_address.
920         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
921         previous change.
922         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
923         an addressable base.
925 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
927         PR middle-end/35611
928         * gimplify.c (gimplify_expr): Gimplify second operand of
929         OMP_ATOMIC_LOAD.
931 2008-03-17  Richard Guenther  <rguenther@suse.de>
933         PR tree-optimization/19637
934         * fold-const.c (fold_unary): Remove restrictions of removing
935         intermediate pointer-conversions (P2)(P1)P0.
936         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
937         conversion to void pointer.
938         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
940 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
942         PR debug/31510
943         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
944         emulated thread local variables.
946 2008-03-16  Richard Guenther  <rguenther@suse.de>
948         PR middle-end/35607
949         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
950         expand TREE_INVARIANT operations that are not gimple invariant.
952 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
954         * doc/extend.texi (Alignment): Say that the ABI controls
955         the __alignof__ for non-strict-alignment targets rather
956         than being a recommendation.
958 2008-03-15  Paul Brook  <paul@codesourcery.com>
960         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
961         annotations.
962         (arm_output_fn_unwind): Mark functions that can not be unwound.
964 2008-03-15  Paul Brook  <paul@codesourcery.com>
966         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
967         extension instructions.
969 2008-03-15  Richard Guenther  <rguenther@suse.de>
971         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
972         and fold constant aggregate refs.
973         (fold_const_aggregate_ref): Handle string constants
974         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
975         (evaluate_stmt): Simplify now that ccp_fold folds constant
976         aggregate refs.
978 2008-03-15  Paul Brook  <paul@codesourcery.com>
980         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
981         (extzv): Use gen_extzv_t2.
982         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
984 2008-03-15  Richard Guenther  <rguenther@suse.de>
986         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
987         (fold_const_aggregate_ref): Likewise.
988         (get_value): Return NULL if we don't have any values.
989         (ccp_finalize): Set const_val to NULL after freeing it.
990         * tree-flow.h (get_symbol_constant_value): Declare.
991         (fold_const_aggregate_ref): Likewise.
992         * tree-ssa-sccvn.c (try_to_simplify): Use them.
994 2008-03-15  Richard Guenther  <rguenther@suse.de>
996         PR middle-end/35593
997         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
998         to not produce negative array indices if not allowed.  Add
999         parameter to indicate that.
1000         (maybe_fold_offset_to_component_ref): Allow negative array
1001         indices only for the first member of a structure.
1002         (maybe_fold_offset_to_reference): Allow negative array indices.
1003         (maybe_fold_stmt_addition): Likewise.
1005 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
1006             Anatoly Sokolov <aesok@post.ru>
1008         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
1009         (avr_arch): Add ARCH_AVR6.
1010         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
1011         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
1012         instead of fixed value 2.
1013         (print_operand_address): Use gs() asm specifier instead of pm().
1014         (avr_assemble_integer): (Ditto.).
1015         (avr_output_addr_vec_elt): (Ditto.).
1016         (print_operand): Handle "!" code.
1017         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
1018         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
1019         (AVR_HAVE_EIJMP_EICALL): Define.
1020         (AVR_3_BYTE_PC): Redefine.
1021         (AVR_2_BYTE_PC): (Ditto.).
1022         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
1023         (LINK_SPEC): Add atmega2560 and atmega2561.
1024         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
1025         (crtm2561.o).
1026         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
1027         for 3 byte PC devices.
1028         (call_value_insn): (Ditto.).
1029         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
1030         (indirect_jump): Use only for for 2 byte PC devices.
1031         (*tablejump): (Ditto.).
1032         (*indirect_jump_avr6): Add insn.
1033         (*tablejump_rjmp): Don't use for 3 byte PC devices.
1034         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
1035         instead of ijmp for 3 byte PC devices.
1036         (__tablejump2__): (Ditto.).
1037         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
1038         (MULITLIB_DIRNAMES): (Ditto.). 
1039         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
1041 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
1043         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
1044         "sse2_umulsidi3".  Use V1DI mode for operand 0.
1045         ("mmx_psadbw"): Use V1DI mode for operand 0.
1046         * config/i386/i386-modes.def (V1SI): New vector mode.
1047         * config/i386/i386.c (struct builtin_description)
1048         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
1049         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
1050         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
1051         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
1052         v1di_ftype_v8qi_v8qi type.
1053         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
1055         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
1056         __builtin_ia32_pmuludq]: Fix the mode of return value.
1058 2008-03-15  Richard Guenther  <rguenther@suse.de>
1060         PR middle-end/35595
1061         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
1062         being a PHI_NODE.
1064 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
1065         
1066         * doc/invoke.texi (Option Summary, Xtensa Options): Document
1067         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
1068         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
1069         unless TARGET_SERIALIZE_VOLATILE is enabled.
1070         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
1071         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
1072         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
1074 2008-03-14  Richard Guenther  <rguenther@suse.de>
1076         PR tree-optimization/34172
1077         * tree-flow.h (refs_may_alias_p): Declare.
1078         (get_single_def_stmt): Likewise.
1079         (get_single_def_stmt_from_phi): Likewise.
1080         (get_single_def_stmt_with_phi): Likewise.
1081         * tree-dfa.c (refs_may_alias_p): New function.
1082         (get_single_def_stmt): Likewise.
1083         (get_single_def_stmt_from_phi): Likewise.
1084         (get_single_def_stmt_with_phi): Likewise.
1085         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
1086         (vn_reference_lookup_1): New helper function.
1087         (vn_reference_lookup): Walk the virtual use-def chain to
1088         continue searching for a match if the def does not alias the
1089         reference we are looking for.
1091 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
1093         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
1094         archive and Perzl.  Update The Written Word listing.
1096 2008-03-14  Richard Guenther  <rguenther@suse.de>
1098         PR tree-optimization/34043
1099         PR tree-optimization/33989
1100         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
1101         when doing FRE.
1102         (bitmap_find_leader): Use extra argument to verify dominance
1103         relationship inside a basic-block.
1104         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
1105         (find_leader_in_sets): Adjust.
1106         (create_component_ref_by_pieces): Take extra argument for
1107         dominance check, handle lookup failures.
1108         (find_or_generate_expression): Likewise.
1109         (create_expression_by_pieces): Likewise.
1110         (insert_into_preds_of_block): Adjust.
1111         (create_value_expr_from): If asked for, verify all operands
1112         are in the blocks AVAIL_OUT set.
1113         (make_values_for_stmt): Check for SSA_NAMEs that are life
1114         over an abnormal edge.
1115         (compute_avail): Remove such check.
1116         (do_SCCVN_insertion): New function.
1117         (eliminate): If we do not find a leader suitable for replacement
1118         insert a replacement expression from SCCVN if available.
1119         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
1120         (struct vn_ssa_aux): Add needs_insertion flag.
1121         * tree-ssa-sccvn.c (may_insert): New global flag.
1122         (copy_reference_ops_from_ref): Value-number union member access
1123         based on its size, not type and member if insertion is allowed.
1124         (visit_reference_op_load): For a weak match from union type
1125         punning lookup a view-converted value and insert a SSA_NAME
1126         for that value if that is not found.
1127         (visit_use): Make dumps shorter.  Do not disallow value numbering
1128         SSA_NAMEs that are life over an abnormal edge to constants.
1129         (free_scc_vn): Release inserted SSA_NAMEs.
1130         (run_scc_vn): New flag to specify whether insertion is allowed.
1131         Process SSA_NAMEs in forward order.
1132         * tree-ssa-loop-im.c (for_each_index): Handle invariant
1133         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
1134         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
1135         pointer type to/from integral types that do not change the
1136         precision to regular conversions.
1138 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1140         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
1141         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
1142         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
1143         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
1144         input arguments and the mode of return value.  Built-in functions
1145         that operate on whole 64-bit MMX register now use V1DI mode.
1147 2008-03-13  Alon Dayan  <alond@il.ibm.com>
1148             Olga Golovanevsky  <olga@il.ibm.com>
1150         PR tree-optimization/35041
1151         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
1152         to locate the right position in a statement.
1154 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1156         PR target/34000
1157         PR target/35553
1158         * config/i386/xmmintrin.h:  Change all static inline functions to
1159         extern inline and add __gnu_inline__ attribute.
1160         * config/i386/bmintrin.h: Ditto.
1161         * config/i386/smmintrin.h: Ditto.
1162         * config/i386/tmmintrin.h: Ditto.
1163         * config/i386/mmintrin-common.h: Ditto.
1164         * config/i386/ammintrin.h: Ditto.
1165         * config/i386/emmintrin.h: Ditto.
1166         * config/i386/pmmintrin.h: Ditto.
1167         * config/i386/mmintrin.h: Ditto.
1168         * config/i386/mm3dnow.h: Ditto.
1170 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1172         PR middle-end/35185
1173         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
1174         (lower_omp_2): New function.
1175         (lower_omp_1, lower_omp): Rewritten.
1177 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
1179         PR 35054
1180         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
1181         with the phrase "Microsoft Windows compilers".
1182         (Push/Pop Macro Pragmas): New subsection. Document
1183         #pragma push_macro and pragma pop_macro.
1185 2008-03-12  Paul Brook  <paul@codesourcery.com>
1187         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
1189 2008-03-12  Paul Brook  <paul@codesourcery.com>
1191         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
1192         (thumb2_alusi3_short): Exclude PLUS and MINUS.
1193         (thumb2_addsi_shortim): Rename ...
1194         (thumb2_addsi_short): ... to this.  Allow register operands.
1195         (thumb2_subsi_short): New pattern.
1196         (thumb2_one_cmplsi2_short,
1197         thumb2_negsi2_short): New patterns and peepholes.
1199 2008-03-12  Paul Brook  <paul@codesourcery.com>
1201         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
1203 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
1205         * config/i386/i386.md (int_cond): New code iterator.
1206         (fp_cond): Ditto.
1207         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
1208         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
1209         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
1210         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
1211         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
1212         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
1213         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
1214         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
1216 2008-03-12  Paul Brook  <paul@codesourcery.com>
1218         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
1219         instead of {arm,thumb}_compute_save_reg_mask.
1220         (output_return_instruction): Ditto.
1221         (thumb_unexpanded_epilogue): Ditto.
1222         (thumb1_expand_prologue): Ditto.
1223         (thumb1_output_function_prologue): Ditto.
1224         (arm_set_return_address): Ditto.
1225         (thumb_set_return_address): Ditto.
1226         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
1227         regs to achieve stack alignment.
1228         (thumb1_compute_save_reg_mask): Fix compiler warning.
1229         (arm_output_epilogue): Use offsets->saved_regs_mask.
1230         Adjust stack pointer by poping call clobered registers.
1231         (arm_expand_prologue): Use offsets->saved_regs_mask.
1232         Adjust stack pointer by pushing extra registers.
1233         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
1235 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
1237         PR tree-opt/35422
1238         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
1239         conversion to the operands of a multiplication.
1241 2008-03-12  Richard Guenther  <rguenther@suse.de>
1243         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
1244         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
1245         * timevar.def (TV_TREE_PHIPROP): Add.
1246         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
1247         pass description.  Use TV_TREE_PHIPROP.
1248         * tree-ssa-forwprop.c: Remove phiprop code.
1250 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1252         PR middle-end/35549
1253         * omp-low.c (maybe_lookup_decl): Constify first argument.
1254         (use_pointer_for_field): Change last argument from bool to
1255         omp_context *.  Disallow shared copy-in/out in nested
1256         parallel if decl is shared in outer parallel too.
1257         (build_outer_var_ref, scan_sharing_clauses,
1258         lower_rec_input_clauses, lower_copyprivate_clauses,
1259         lower_send_clauses, lower_send_shared_vars): Adjust callers.
1261 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
1262             Ira Rosen  <irar@il.ibm.com>
1264         * tree-vectorizer.c (free_stmt_vec_info): New function.
1265         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
1266         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
1267         * tree-vectorizer.h (free_stmt_vec_info): Declare.
1268         * tree-vect-transform.c (vectorizable_conversion): Free
1269         vec_oprnds0 if it was allocated.
1270         (vect_permute_store_chain): Remove unused VECs.
1271         (vectorizable_store): Free VECs that are allocated in the..
1272         function.
1273         (vect_transform_strided_load, vectorizable_load): Likewise.
1274         (vect_remove_stores): Simplify the code.
1275         (vect_transform_loop): Move code to vect_remove_stores().
1276         Call vect_remove_stores() and free_stmt_vec_info().
1278 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1280         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
1281         TARGET_HPUX.  Revise comment.
1282         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
1283         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
1284         Use sr4 variant of `be' instruction when not generating PIC code.
1285         (attr_length_call): Adjust for above change.
1287 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1289         * ipa-reference.c (static_execute): Remove module_statics_const and
1290         associated setting code.
1292 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
1294         PR target/35540
1295         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
1296         predicate for operand 1.
1297         (paritysi2_cmp): Use register_operand predicate for operand 2.
1298         Use earlyclobber modifier for operand 1.  Remove support for
1299         memory operands.
1300         (paritydi2_cmp): Use register_operand predicate for operand 3.
1301         Use earlyclobber modifier for operand 1.  Remove support for
1302         memory operands.
1304 2008-03-11  Paul Brook  <paul@codesourcery.com>
1305             Vladimir Prus  <vladimir@codesourcery.com>
1307         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
1308         (arm_compute_save_reg0_reg12_mask): Always
1309         check if register 11 must be saved.  Always safe hard frame pointer
1310         when frame_pointer_needeed.
1311         (arm_compute_save_reg_mask): Save IP and PC
1312         only with apcs frames.
1313         (arm_output_epilogue): Adjust Thumb2 codepath to
1314         be also invoked and work for ARM non-apcs frames.
1315         (arm_expand_prologue): Don't bother saving IP
1316         for non-apcs frame, since it's not clobbered by
1317         prologue code.  Implement non-apcs frame
1318         layout.
1320 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
1322         PR rtl-optimization/35281
1323         * expr.c (convert_move): Use a new pseudo for the intermediate
1324         from_mode->word_mode result.
1326 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
1328         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
1329         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
1330         * toplev.c (compile_file): Don't call it.
1332 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
1334         PR middle-end/35526
1335         * expr.c (store_expr): Call emit_block_move if the mode
1336         of "temp" RTX is BLKmode.
1338 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1339             Richard Guenther  <rguenther@suse.de>
1341         PR tree-optimization/31358
1342         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
1343         the step with a NULL_TREE.
1344         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
1345         to sizetype if type is a pointer type.
1346         (add_candidate_1): Don't convert the base and step to
1347         the generic type if the orginal type is a pointer type.
1348         (add_iv_value_candidates): Use sizetype for the step
1349         if type is a pointer type.
1350         (cand_value_at): Likewise.
1351         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
1352         for pointer types.
1353         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
1354         Don't convert the tem affine to the type.
1355         (add_elt_to_tree): Use sizetype for the step if a pointer.
1356         Use POINTER_PLUS_EXPR for pointers.
1357         (aff_combination_to_tree): Use sizetype for the step if a
1358         pointer.
1360 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
1362         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
1363         Remove commutativity hint.
1365 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
1367         PR c/35438
1368         PR c/35439
1369         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
1370         errorneous type.  Check that v is a VAR_DECL.
1372         PR middle-end/35099
1373         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
1375 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
1377         PR tree-optimization/35494
1378         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
1379         may be overriden at link and run time.
1381 2008-03-10  Richard Guenther  <rguenther@suse.de>
1383         PR tree-optimization/34677
1384         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
1385         (poolify_tree): Likewise.
1386         (modify_expr_template): Likewise.
1387         (poolify_modify_stmt): Likewise.
1388         (insert_fake_stores): Handle all component-ref style stores
1389         in addition to INDIRECT_REF.  Also handle complex types.
1390         Do not poolify the inserted load.
1391         (realify_fake_stores): Do not rebuild the tree but only
1392         make it a SSA_NAME copy.
1393         (init_pre): Remove initialzation of modify_expr_template.
1394         Do not allocate modify_expr_node_pool.
1395         (fini_pre): Do not free modify_expr_node_pool.
1397 2008-03-10  Paul Brook  <paul@codesourcery.com>
1399         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
1400         to avoid conflicts.
1402 2008-03-10  Paul Brook  <paul@codesourcery.com>
1403             Mark Shinwell  <shinwell@codesourcery.com>
1405         * config/arm/cortex-r4.md: New.
1406         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
1407         insn attributes.
1408         * config/arm/arm.md: Include cortex-r4.md.
1409         (insn): Add smmls, sdiv and udiv values.
1410         (generic_sched): Don't use generic scheduling for Cortex-R4.
1411         (arm_issue_rate): New function.
1412         (TARGET_SCHED_ISSUE_RATE): Define.
1414 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
1416         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
1418 2008-03-10  Richard Guenther  <rguenther@suse.de>
1420         * tree-ssa-pre.c (get_sccvn_value): Simplify.
1421         (compute_avail): Do not add stmt uses to AVAIL_OUT.
1423 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
1425         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
1426         Set default to true.
1428 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1430         * c.opt (Wsynth): Deprecate.
1431         * doc/invoke.texi (Option Summary, Warning Options): Document
1432         -Wno-format-contains-nul.
1434 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
1436         PR target/35496
1437         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
1438         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
1440 2008-03-09  Ira Rosen  <irar@il.ibm.com>
1442         * config/rs6000/rs6000.c (builtin_description): Rename vector
1443         left shift operations.
1444         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
1445         (altivec_vsl<VI_char>): Rename to ...
1446         (ashl<mode>3): ... new name.
1447         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
1448         gen_ashlv4si3.
1449         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
1451 2008-03-08  Richard Guenther  <rguenther@suse.de>
1453         * coverage.h (tree_coverage_counter_addr): Declare.
1454         * coverage.c (tree_coverage_counter_addr): New function.
1455         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
1456         before using again.
1457         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
1458         (tree_gen_one_value_profiler): Likewise.
1459         (tree_gen_ic_profiler): Likewise.
1460         (tree_gen_average_profiler): Likewise.
1461         (tree_gen_ior_profiler): Likewise.
1463 2008-03-08  Richard Guenther  <rguenther@suse.de>
1465         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
1466         (vn_binary_op_insert): Likewise.
1467         (vn_unary_op_lookup): Likewise.
1468         (vn_unary_op_insert): Likewise.
1469         (vn_nary_op_lookup): Declare.
1470         (vn_nary_op_insert): Likewise.
1471         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
1472         and binary hashes, use a single obstack for unary_op_pool
1473         and binary_op_pool.
1474         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
1475         a single struct vn_nary_op_s.  Store tree code length and
1476         a variable number of operands.
1477         (struct vn_reference_op_struct): Remove unused op2.
1478         (vn_reference_op_eq): Do not compare op2.
1479         (vn_reference_op_compute_hash): Do not compute hash of op2.
1480         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
1481         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
1482         with vn_nary_op_compute_hash.
1483         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
1484         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
1485         vn_nary_op_lookup.
1486         (vn_unary_op_insert, vn_binary_op_insert): Replace with
1487         vn_nary_op_insert.
1488         (visit_unary_op): Call nary functions.
1489         (visit_binary_op): Likewise.
1490         (process_scc): Adjust for struct vn_tables_s changes.
1491         (allocate_vn_table): Likewise.
1492         (free_vn_table): Likewise.
1493         * tree-vn.c (vn_add): Call nary functions.
1494         (vn_lookup): Likewise.
1496 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
1498         PR target/35498
1499         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
1500         wdst back after sync_compare_and_swapqhi_internal.
1502 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
1504         PR target/22152
1505         * config/i386/i386-modes.def (V1DI): New vector mode.
1506         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
1507         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
1508         (MMXMODE248): Ditto.
1509         (MMXMODE): Add V1DI mode.
1510         (mmxvecsize): Change DI mode to V1DI mode.
1511         ("mov<mode>): Use MMXMODEI8 mode iterator.
1512         ("*mov<mode>_internal_rex64"): Ditto.
1513         ("*mov<mode>_internal"): Ditto.
1514         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
1515         ("mmx_sub<mode>3"): Ditto.
1516         ("mmx_adddi3"): Remove insn pattern.
1517         ("mmx_subdi3"): Ditto.
1518         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
1519         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
1520         ("mmx_ashl<mode>3"): Ditto.
1521         ("mmx_lshrdi3"): Remove insn pattern.
1522         ("mmx_ashldi3"): Ditto.
1523         * config/i386/i386.c (classify_argument): Handle V1DImode.
1524         (function_arg_advance_32): Ditto.
1525         (function_arg_32): Ditto.
1526         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
1527         mmx_addv1di3 insn pattern.
1528         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
1529         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
1530         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
1531         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
1532         Remove definitions of built-in functions.
1533         (V1DI_type_node): New node.
1534         (v1di_ftype_v1di_int): Ditto.
1535         (v1di_ftype_v1di_v1di): Ditto.
1536         (v2si_ftype_v2si_si): Ditto.
1537         (v4hi_ftype_v4hi_di): Remove node.
1538         (v2si_ftype_v2si_di): Ditto.
1539         (ix86_init_mmx_sse_builtins): Handle V1DImode.
1540         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
1541         Redefine builtins using def_builtin_const with *_ftype_*_int node.
1542         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
1543         Add new builtins using def_builtin_const.
1544         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
1545         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
1546         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
1547         * config/i386/mmintrin.h (__v1di): New typedef.
1548         (_mm_add_si64): Cast arguments to __v1di type.
1549         (_mm_sub_si64): Ditto.
1550         (_mm_sll_pi16): Cast __count to __v4hi type.
1551         (_mm_sll_pi32): Cast __count to __v2si type.
1552         (_mm_sll_si64): Cast arguments to __v1di type.
1553         (_mm_srl_pi16): Cast __count to __v4hi type.
1554         (_mm_srl_pi32): Cast __count to __v2si type.
1555         (_mm_srl_si64): Cast arguments to __v1di type.
1556         (_mm_sra_pi16): Cast __count to __v4hi type.
1557         (_mm_sra_pi32): Cast __count to __v2si type.
1558         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
1559         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
1560         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
1561         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
1562         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
1563         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
1564         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
1565         (_mm_srai_pi32): Use __builtin_ia32_psradi.
1566         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
1567         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
1568         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
1569         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
1571 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
1573         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
1575 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
1577         PR target/35373
1578         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
1579         reg+const addressing for Altivec modes.  Don't generate reg+reg
1580         addressing for TFmode or TDmode quantities.
1582 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
1584         * c-common.c (vector_types_convertible_p): Call langhook
1585         instead of comptypes.
1587 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1589         PR tree-opt/35402
1590         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
1591         integral and scalar float variables which have a
1592         NULL DECL_INITIAL.
1594 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
1596         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
1597         dwarf_register_span hook when emitting unwind information for
1598         register-to-memory saves.
1599         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
1600         (rs6000_frame_related): Remove call to spe_synthesize_frame.
1602 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1604         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
1605         for the same VAR_DECL.
1607 2008-03-06  Tom Tromey  <tromey@redhat.com>
1609         * treelang: Delete.
1610         * doc/standards.texi (Standards): Don't mention treelang.
1611         * doc/invoke.texi (Overall Options): Don't mention treelang.
1612         * doc/install.texi (Prerequisites): Don't mention bison or
1613         treelang.
1614         (Configuration): Don't mention treelang.
1615         (Building): Likewise.
1616         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
1618 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
1620         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
1621         word-extractions out of a multi-word object.
1623 2008-03-06  Richard Guenther  <rguenther@suse.de>
1625         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
1626         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
1627         result type and precision.
1628         * expr.c (get_inner_reference): Set unsignedp based on the result
1629         type of BIT_FIELD_REF.
1630         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
1631         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
1632         (try_instantiate_multiple_fields): Likewise.  Use the correct type
1633         for BIT_FIELD_REF.
1634         (sra_build_assignment): Likewise.
1635         (sra_build_elt_assignment): Likewise.
1636         (sra_explode_bitfield_assignment): Likewise.
1637         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
1638         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
1639         set BIT_FIELD_REF_UNSIGNED.
1640         (vectorizable_load): Likewise.
1642 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1644         * cse.c (cse_extended_basic_block): Invalidate artificial defs
1645         at bb start.
1647 2008-03-06  Richard Guenther  <rguenther@suse.de>
1649         * alias.c (struct alias_set_entry): Move has_zero_child field
1650         to pack with alias_set.
1652 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1654         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1655         32bit host.
1657 2008-03-05  Ian Lance Taylor  <iant@google.com>
1659         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
1661 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
1663         * fwprop.c (update_df): Support width and offset parameters of
1664         df_ref_create.
1665         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
1666         global_conflicts): Change DF_REF_EXTRACT to either
1667         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1668         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1669         * df-scan.c (df_ref_record, df_defs_record,
1670         df_ref_create_structure, df_def_record_1, df_uses_record,
1671         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
1672         df_bb_refs_collect, df_entry_block_defs_collect,
1673         df_exit_block_uses_collect): Support new width and offset fields.
1674         (ref_extract_pool): New storage pool.
1675         (df_free_ref): New function.
1676         (df_reg_chain_unlink, df_free_collection_rec,
1677         df_sort_and_compress_refs): Call df_free_ref.
1678         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
1679         of df_ref_extract.
1680         (df_ref_create_structure): Allocate df_ref_extract if offset and
1681         width fields are used.
1682         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
1683         (df_uses_record): Get offset and width from ZERO_EXTRACT 
1684         and SIGN_EXTRACT.
1685         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
1686         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1687         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1688         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
1689         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1690         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1691         (df_ref_extract): New structure.
1692         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
1693         (df_ref_create): Add width and offset parameters.
1694         
1695 2008-03-05  Richard Guenther  <rguenther@suse.de>
1697         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1698         Use ranges_overlap_p.
1699         (offset_overlaps_with_access): Rename
1700         to ranges_overlap_p and move ...
1701         * tree-flow-inline.h (ranges_overlap_p): ... here.
1703         * tree.h (get_inner_reference, handled_component_p): Update
1704         comments.
1706         * tree.h (record_component_aliases, get_alias_set,
1707         alias_sets_conflict_p, alias_sets_must_conflict_p,
1708         objects_must_conflict_p): Move declarations ...
1709         * alias.h (record_component_aliases, get_alias_set,
1710         alias_sets_conflict_p, alias_sets_must_conflict_p,
1711         objects_must_conflict_p): ... here.
1712         Include coretypes.h.
1713         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
1715 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
1717         * cfg.c: Include tree-flow.h.
1718         (remove_edge_raw): Call redirect_edge_var_map_clear.
1719         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
1720         * tree-flow-inline.h (redirect_edge_var_map_def): New.
1721         (redirect_edge_var_map_result): New.
1722         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
1723         PENDING_STMT use with redirect_edge_var_map_*.
1724         * tree-ssa.c (edge_var_maps): New definition.
1725         (redirect_edge_var_map_add): New.
1726         (redirect_edge_var_map_clear): New.
1727         (redirect_edge_var_map_dup): New.
1728         (redirect_edge_var_map_vector): New.
1729         (redirect_edge_var_map_destroy): New.
1730         (ssa_redirect_edge): Replace PENDING_STMT use with
1731         redirect_edge_var_map_*.
1732         (flush_pending_stmts): Same.
1733         (delete_tree_ssa): Destroy edge var map.
1734         * tree-flow.h (struct _edge_var_map): New.
1735         Define edge_var_map vector type.
1736         Declare redirect_edge_var_map_* prototypes.
1737         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
1738         * tree-cfg.c (reinstall_phi_args): Replace
1739         PENDING_STMT use with redirect_edge_var_map_*.
1741 2008-03-05  Richard Guenther  <rguenther@suse.de>
1743         PR tree-optimization/35472
1744         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
1745         whose single use_stmt has a overlapping set of loaded and
1746         stored symbols as that use_stmt might be a noop assignment then.
1748 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
1750         * gthr-rtems.h: Implement __gthread_mutex_destroy.
1752 2008-03-05  Richard Guenther  <rguenther@suse.de>
1754         PR c++/35336
1755         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
1756         should be constants.
1757         * tree-cfg.c (verify_expr): Verify it.
1758         * fold-const.c (fold_truthop): Remove code generating
1759         BIT_FIELD_REFs of structure bases.
1760         (fold_binary): Likewise.
1761         (fold_ternary): Position and size of BIT_FIELD_REFs are
1762         always host integers.
1763         (make_bit_field_ref): Remove.
1764         (optimize_bit_field_compare): Remove.
1765         (all_ones_mask_p): Remove.
1767 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
1769         PR gcc/33009
1770         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
1771         (split_block_and_df_analyze): New. Split basic block and rebuild
1772         dataflow.
1773         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
1774         SPLIT_BLOCK.
1775         (split_pattern_seq): Likewise.
1776         (erase_matching_seqs): Likewise.
1777         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
1779 2008-03-04  Geoff Keating  <geoffk@apple.com>
1781         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
1782         declaration and code.
1783         (tree_invalid_nonnegative_warnv_p): Likewise.
1785 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
1787         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
1788         examples.  Truncate option-names then causing overfull hbox.
1790 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1792         PR target/35222
1793         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
1794         on hpux10.
1795         * configure: Rebuilt.
1797 2008-03-04  Rafael Espindola  <espindola@google.com>
1799         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
1800         (tree_unary_nonnegative_warnv_p): New.
1801         (tree_binary_nonnegative_warnv_p): New.
1802         (tree_single_nonnegative_warnv_p): New.
1803         (tree_invalid_nonnegative_warnv_p): New.
1804         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
1806 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1808         PR 28322
1809         * opts.c (handle_option): Postpone 'unknown option' errors only for
1810         warning options.
1812 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
1814         PR target/35453
1815         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
1816         (_SIDD_XXX): This.
1818 2008-03-04  Rafael Espindola  <espindola@google.com>
1820         * fold-const.c (tree_unary_nonzero_warnv_p): New.
1821         (tree_binary_nonzero_warnv_p): New.
1822         (tree_single_nonzero_warnv_p): New.
1823         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
1825 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
1827         PR middle-end/35456
1828         * fold-const.c (fold_cond_expr_with_comparison): Prevent
1829         transformations for modes that have signed zeros.
1830         * ifcvt.c (noce_try_abs): Ditto.
1832 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
1834         * config/i386/i386.c (override_options): Force
1835         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
1837 2008-03-04  Jan Hubicka  <jh@suse.cz>
1839         PR c++/35262
1840         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
1841         in last commit.
1843 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1845         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
1846         label to probe the stack.
1848 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1850         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
1851         (__gthr_win32_mutex_destroy): Declare.
1852         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
1853         __gthr_win32_mutex_destroy.
1854         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
1856 2008-03-03  Jan Hubicka  <jh@suse.cz>
1858         PR c++/35262
1859         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
1860         aggressive on inlining cold calls.
1862 2008-03-03  Richard Guenther  <rguenther@suse.de>
1864         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
1865         struct copies into the expression table.
1866         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
1867         (try_to_simplify): Likewise.
1868         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
1869         integral and pointer arguments which do not change the
1870         precision to NOP_EXPRs.
1871         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
1872         VIEW_CONVERT_EXPR case.
1874 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
1876         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
1877         defined in a loop at depth 0 is invariant.
1878         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
1879         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
1880         be called at loop depth 0.
1882 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
1884         PR driver/35420
1885         * gcc.c (process_command): Update copyright notice dates.
1886         * gcov.c (print_version): Likewise.
1887         * gcov-dump.c (print_version): Likewise.
1888         * mips-tfile.c (main): Likewise.
1889         * mips-tdump.c (main): Likewise.
1891 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1893         PR 24924
1894         * c-common.c (flag_permissive): Delete.
1895         (constant_expression_warnings): Check flags first.
1896         (constant_expression_error): New.
1897         * c-common.h (flag_permissive): Delete.
1898         (constant_expression_error): Declare.
1899         * flags.h (flag_permissive): Declare. Update description.
1900         * diagnostic.c (pedwarn): Update.
1901         (permerror): New.
1902         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
1903         (permissive_error_kind): New.
1904         * toplev.c (flag_permissive): Define. Update description.
1905         * toplev.h (permissive_error_kind): Declare.
1906         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
1907         (pedwarn_c90): Use pedantic_warning_kind.
1908         * c-opts.c (c_common_post_options): flag_permissive does not affect
1909         flag_pedantic_errors.
1911 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
1913         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
1914         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
1915         __absvsi2, __absvDI2): Use unsigned arithmetic.
1917 2008-03-02  Andi Kleen  <ak@suse.de>
1918             Richard Guenther  <rguenther@suse.de>
1920         * struct-equiv.c: Remove file.
1921         * cfg_cleanup.c (condjump_equiv_p): Remove.
1922         * Makefile.in (OBJS-common): Remove struct-equiv.o.
1923         (struct-equiv.o): Remove rule.
1924         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
1925         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
1926         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
1928 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1930         * ifcvt.c (noce_process_if_block): Try to handle only the then
1931         block if the else block exists but isn't suitable.
1933 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1935         PR gcc/35063
1936         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
1937         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
1938         regression from previous patch.
1940 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1942         PR gcc/35063
1943         * gthr.h: Add __gthread_mutex_destroy as a function that must be
1944         implemented.
1945         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
1946         * gthr-single.h (__gthread_mutex_destroy): Likewise.
1947         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
1948         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
1949         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
1950         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
1951         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
1952         (__gthread_mutex_destroy_function): Rename to
1953         __gthread_mutex_destroy.
1954         * gthr-dce.h (__gthread_mutex_destroy): Call
1955         pthread_mutex_destroy.
1956         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
1957         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
1958         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
1960 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1962         * df-scan.c (df_ref_chain_change_bb): Simplify.
1963         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
1964         set_block_for_insn if there's any change.
1965         * df.h ((df_insn_change_bb): Fix prototype.
1966         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
1967         df_insn_change_bb, don't call set_block_for_insn.
1968         * emit-rtl.c (reorder_insns): Likewise.
1969         * haifa-sched.c (move_insn): Likewise.
1971 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1973         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
1975 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1977         * tree-flow-inline.h (next_readonly_imm_use): Return
1978         NULL_USE_OPERAND_P after the end.
1980 2008-03-01  Richard Guenther  <rguenther@suse.de>
1982         PR tree-optimization/35411
1983         * tree-sra.c (sra_build_assignment): Split conversion to
1984         final type to a separate statement if we are not assigning
1985         to a register.
1987 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1989         * fold-const.c (fold_convertible_p): Correct the logic to follow
1990         that in fold_convert().
1992 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
1994         PR c++/35315
1995         * tree-inline.c (build_duplicate_type): When we make a
1996         duplicate type, make it unique in the canonical types system.
1998 2008-02-29  Tom Tromey  <tromey@redhat.com>
2000         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
2001         input_file_stack_history, input_file_stack_restored): Remove.
2002         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
2003         * input.h (struct file_stack): Remove.
2004         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
2005         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
2006         Likewise.
2007         * diagnostic.h (struct diagnostic_context) <last_module>: Change
2008         type.
2009         (diagnostic_last_module_changed): Add 'map' argument.
2010         (diagnostic_set_last_function): Likewise.
2011         * diagnostic.c (undiagnostic_report_current_module): Iterate using
2012         line map, not input_file_stack.
2013         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
2015 2008-02-29  Paul Brook  <paul@codesourcery.com>
2017         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
2019 2008-02-29  Paul Brook  <paul@codesourcery.com>
2021         * config/arm/ieee754-df.S (muldf3): Use RET macros.
2023 2008-02-29  Richard Guenther  <rguenther@suse.de>
2025         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
2026         vn_lookup_or_add.
2027         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
2028         value for comparing for a store match.
2029         (simplify_unary_expression): Do nothing for SSA_NAMEs.
2030         (try_to_simplify): Do not do a full-blown reference lookup.
2032 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2034         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
2035         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2037         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
2039 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
2041         * tree-loop-linear.c (try_interchange_loops): Compare memory access
2042         strides against cache sizes.
2044 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2046         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
2047         constant to fpul.
2049 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
2051         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
2052         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
2053         is smaller than the original promoted value.
2054         (simplify_subreg): If OP is a SUBREG, try to preserve its
2055         SUBREG_PROMOTED_VAR_P information.
2057 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
2059         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
2060         (VN_INFO_GET): Allocate new objects on the obstack.
2061         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
2062         for rpo_numbers_temp, for consistency.
2063         (free_scc_vn): Free the obstack.
2065 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
2067         * doc/invoke.texi: Document -ftree-loop-distribution.
2068         * tree-loop-distribution.c: New.
2069         * tree-pass.h (pass_loop_distribution): New.
2070         * graphds.h (struct graph): Add htab_t indices.
2071         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
2072         * tree-vectorizer.c (rename_variables_in_loop): Extern.
2073         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
2074         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
2075         * tree-data-ref.c (debug_data_dependence_relations): New.
2076         (dump_data_dependence_relation): Also print data references.
2077         (free_data_ref): Extern.
2078         (same_access_functions): Moved...
2079         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
2080         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2081         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
2082         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
2083         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
2084         (stmts_from_loop): Skip LABEL_EXPR.
2085         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
2086         New.
2087         (build_rdg): Initialize rdg->indices htab.
2088         (free_rdg, stores_from_loop, ref_base_address,
2089         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
2090         have_similar_memory_accesses_1, ref_base_address_1,
2091         remove_similar_memory_refs): New.
2092         * tree-data-ref.h: Depend on tree-chrec.h.
2093         (debug_data_dependence_relations, free_data_ref): Declared.
2094         (same_access_functions): ... here.
2095         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
2096         New.
2097         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
2098         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
2099         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
2100         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2101         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
2102         rdg_vertex_for_stmt): Declared.
2103         (struct rdg_edge): Add level.
2104         (RDGE_LEVEL): New.
2105         (free_rdg, stores_from_loop, remove_similar_memory_refs,
2106         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
2107         Declared.
2108         (rdg_has_similar_memory_accesses): New.
2109         * tree-vect-analyze.c: Remove unused static decls.
2110         * lambda.h (dependence_level): New.
2111         * common.opt (ftree-loop-distribution): New.
2112         * tree-flow.h (mark_virtual_ops_in_bb, 
2113         slpeel_tree_duplicate_loop_to_edge_cfg,
2114         rename_variables_in_loop): Declared.
2115         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
2116         (OBJS-common): Add tree-loop-distribution.o.
2117         (tree-loop-distribution.o): New rule.
2118         * tree-cfg.c (mark_virtual_ops_in_bb): New.
2119         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
2120         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
2122 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
2124         PR target/33963
2125         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
2126         other than structures and unions.
2128 2008-02-28  Richard Guenther  <rguenther@suse.de>
2130         Revert:
2131         2008-02-26  Richard Guenther  <rguenther@suse.de>
2133         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2134         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2135         (lookup_decl_from_uid): Declare.
2136         (remove_decl_from_map): Likewise.
2137         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2138         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2139         (decl_for_uid_map): New global hashtable mapping DECL_UID
2140         to the decl tree.
2141         (init_ttree): Allocate it.
2142         (insert_decl_to_uid_decl_map): New helper function.
2143         (make_node_stat): Insert new decls into the map.
2144         (copy_node_stat): Likewise.
2145         (lookup_decl_from_uid): New function.
2146         (remove_decl_from_map): Likewise.
2147         (print_decl_for_uid_map_statistics): New helper.
2148         (dump_tree_statistics): Call it.
2150         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2151         (referenced_var_iterator): Adjust.
2152         (FOR_EACH_REFERENCED_VAR): Adjust.
2153         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2154         (num_referenced_vars): Adjust.
2155         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2156         (first_referenced_var): Remove.
2157         (end_referenced_vars_p): Likewise.
2158         (next_referenced_var): Likewise.
2159         (referenced_var_iterator_set): New helper function.
2160         * tree-dfa.c (referenced_var_lookup): Adjust.
2161         (referenced_var_check_and_insert): Likewise.
2162         (remove_referenced_var): Likewise.
2163         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2164         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2165         (verify_call_clobbering): Likewise.
2166         (verify_memory_partitions): Likewise.
2167         (init_tree_ssa): Allocate bitmap instead of hashtable for
2168         referenced_vars.
2169         (delete_tree_ssa): Adjust.
2170         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2171         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2172         (compute_tag_properties): Likewise.
2173         (set_initial_properties): Likewise.
2174         (find_partition_for): Likewise.
2175         (update_reference_counts): Likewise.
2176         (dump_may_aliases_for): Likewise.
2177         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2178         (add_call_clobber_ops): Likewise.
2179         (add_call_read_ops): Likewise.
2180         (get_asm_expr_operands): Likewise.
2181         * tree-into-ssa.c (dump_decl_set): Likewise.
2182         (update_ssa): Likewise.
2183         * tree-sra.c (scan_function): Likewise.
2184         (decide_instantiations): Likewise.
2185         (scalarize_parms): Likewise.
2186         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2187         (dsa_named_for): Likewise.
2188         * tree-ssa-structalias.c (update_alias_info): Likewise.
2189         (merge_smts_into): Likewise.
2191 2008-02-27  David Daney  <ddaney@avtrex.com>
2193         PR target/34409
2194         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
2195         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
2196         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
2197         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
2198         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
2200 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
2202         PR target/25477
2203         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
2204         (BUILT_IN_NEXTTOWARD): Remove.
2205         (BUILT_IN_NEXTTOWARDF): Ditto.
2206         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
2207         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
2209 2008-02-27  Tom Tromey  <tromey@redhat.com>
2211         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
2212         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
2214 2008-02-27  Jan Beulich  <jbeulich@novell.com>
2216         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
2217         update the respective field on newdecl.
2219 2008-02-27  Revital Eres  <eres@il.ibm.com>
2221         PR rtl-optimization/34999
2222         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
2223         crossing edges that ends with a call insn.
2224         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
2225         call insn and clear the EDGE_CROSSING flag of the crossing edge
2226         when fixing fallthru edges.
2228 2008-02-27  Richard Guenther  <rguenther@suse.de>
2230         PR middle-end/35390
2231         * fold-const.c (fold_unary): Return the correct argument,
2232         converted to the result type.
2234 2008-02-27  Richard Guenther  <rguenther@suse.de>
2236         PR middle-end/34971
2237         * expr.c (expand_expr_real_1): Assert on rotates that operate
2238         on partial modes.
2239         * fold-const.c (fold_binary): Use the types precision, not the
2240         bitsize of the mode if folding rotate expressions.  Build rotates
2241         only for full modes.
2243 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
2245         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
2246         and CPP_PRAGMA_EOL.
2247         * c-pragma.c (pragma_ns_name): New typedef.
2248         (registered_pp_pragmas): New variable.
2249         (c_pp_lookup_pragma): New function.
2250         (c_register_pragma_1): If flag_preprocess_only, do nothing
2251         for non-expanded pragmas, for expanded ones push pragma's
2252         namespace and name into registered_pp_pragmas vector.
2253         (c_invoke_pragma_handler): Register OpenMP pragmas even when
2254         flag_preprocess_only, don't register GCC pch_preprocess
2255         pragma if flag_preprocess_only.
2256         * c-opts.c (c_common_init): Call init_pragma even if
2257         flag_preprocess_only.
2258         * c-pragma.c (c_pp_lookup_pragma): New prototype.
2259         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
2260         cpp_register_pragma if flag_preprocess_only.
2262 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2264         PR c/28800
2265         * c-parser.c (c_parser_translation_unit): Warn for empty
2266         translation unit, not empty source file.
2268 2008-02-26  Paul Brook  <paul@codesourcery.com>
2270         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
2271         operand for Thumb-2.
2272         * config/arm/arm.h (reg_class): Add CORE_REGS.
2273         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
2274         (BASE_REG_CLASS): Use CORE_REGS.
2275         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
2276         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
2277         (REGNO_OK_FOR_INDEX_P): Exclude SP.
2278         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
2279         ARM_REGNO_OK_FOR_INDEX_P.
2280         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
2281         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
2282         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
2283         (ldm/stm peepholes): Ditto.
2284         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
2285         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
2286         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
2287         * config/arm/constraints.md: Enable "k" constraint on ARM.
2289 2008-02-27  Ben Elliston  <bje@au.ibm.com>
2291         * config/rs6000/rs6000.c: Annotate cache line size field in all
2292         instances of struct processor_costs.
2294 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
2296         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
2297         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
2298         jump_bypass): New counters.
2299         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
2300         * dce.c (gate_ud_dce): Same.
2301         (gate_fast_dce): Same.
2302         * dse.c (gate_dse1): New function.
2303         (gate_dse2): New function.
2304         (gate_dse): Merge results of new gate functions.
2305         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
2306         (gate_handle_jump_bypass): Add dbg_cnt.
2307         (gate_handle_gcse): Add dbg_cnt.
2308         * ifcvt.c (gate_handle_if_conversion): Same.
2309         (gate_handle_if_after_combine): Same.
2310         (gate_handle_if_after_reload): Same.
2311         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
2313 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
2315         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
2316         line sizes.
2317         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
2319 2008-02-26  Jason Merrill  <jason@redhat.com>
2321         PR c++/35315
2322         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
2323         alone if it's the naming decl for the type's main variant.
2325 2008-02-26  Tom Tromey  <tromey@redhat.com>
2327         * system.h (USE_MAPPED_LOCATION): Poison.
2328         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
2329         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
2330         (make_goto_expr_edges): Likewise.
2331         (remove_bb): Likewise.
2332         (execute_warn_function_return): Likewise.
2333         * basic-block.h (struct edge_def) <goto_locus>: Change type to
2334         location_t.
2335         * c-common.c (fname_decl): Remove old location code.
2336         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
2337         location code.
2338         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
2339         variant.
2340         (ASM_INPUT_SOURCE_LOCATION): Likewise.
2341         (gen_rtx_ASM_INPUT): Likewise.
2342         (gen_rtx_ASM_INPUT_loc): Likewise.
2343         (get_rtx_asm_OPERANDS): Remove.
2344         * cfglayout.c (insn_locators_alloc): Remove old location code.
2345         (set_curr_insn_source_location): Likewise.
2346         (curr_insn_locator): Likewise.
2347         * print-tree.c (print_node): Remove old location code.
2348         * tree-mudflap.c (mf_varname_tree): Remove old location code.
2349         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
2350         * cfgexpand.c (expand_gimple_cond_expr): Don't use
2351         location_from_locus.
2352         (construct_exit_block): Remove old location code.
2353         * emit-rtl.c (force_next_line_note): Remove old location code.
2354         * profile.c (branch_prob): Remove old location code.
2355         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2356         LOC_LINE): Remove old-location variants.
2357         * langhooks.c (lhd_print_error_function): Remove old location
2358         code.
2359         * configure, config.in: Rebuilt.
2360         * configure.ac (--enable-mapped-location): Remove.
2361         * c-decl.c (c_init_decl_processing): Remove old location code.
2362         (finish_function): Likewise.
2363         * recog.c (decode_asm_operands): Remove old location code.
2364         * c-pch.c (c_common_read_pch): Remove old location code.
2365         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
2366         variants.
2367         * gimple-low.c (lower_function_body): Remove old location code.
2368         * toplev.c (unknown_location): Remove.
2369         (push_srcloc): Remove old-location variant.
2370         (process_options): Remove old location code.
2371         (lang_dependent_init): Likewise.
2372         * input.h (UNKNOWN_LOCATION): Move definition.
2373         (location_t): Undeprecate.
2374         (source_locus): Remove.
2375         (location_from_locus): Remove.
2376         (struct location_s): Remove.
2377         Remove all old-location code.
2378         (input_line, input_filename): Remove.
2379         * final.c (final_scan_insn): Remove old location code.
2380         * diagnostic.c (diagnostic_build_prefix): Remove
2381         USE_MAPPED_LOCATION test.
2382         * tree.h (gimple_stmt) <locus>: Now a location_t.
2383         (tree_exp) <locus>: Likewise.
2384         (DECL_IS_BUILTIN): Remove old-location variant.
2385         (annotate_with_file_line, annotate_with_locus): Likewise.
2386         (expr_locus, set_expr_locus): Update.
2387         * tree.c (build1_stat): Remove old location code.
2388         (last_annotated_node): Remove.
2389         (annotate_with_file_line): Remove old-location variant.
2390         (annotate_with_locus): Likewise.
2391         (expr_location): Remove old location code.
2392         (set_expr_location): Likewise.
2393         (expr_has_location): Likewise.
2394         (expr_locus): Likewise.
2395         (set_expr_locus): Likewise.
2396         (expr_filename): Don't use location_from_locus.
2397         (expr_lineno): Likewise.
2398         * rtl-error.c (location_for_asm): Remove old location code.
2399         * c-lex.c (cb_line_change): Remove old location code.
2400         (fe_file_change): Likewise.
2401         (cb_def_pragma): Likewise.
2402         (c_lex_with_flags): Likewise.
2403         * gengtype.c (do_typedef): Don't special-case location types.
2404         (define_location_structures): Remove.
2405         (main): Don't call define_location_structures.
2406         * tree-pretty-print.c (dump_implicit_edges): Remove old location
2407         code.
2409 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2411         PR 26264
2412         * builtins.def (BUILT_IN_STDARG_START): Remove.
2413         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
2414         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2415         * tree-inline.c (inline_forbidden_p_1): Likewise.
2416         
2417 2008-02-26  Richard Guenther  <rguenther@suse.de>
2419         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2420         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2421         (lookup_decl_from_uid): Declare.
2422         (remove_decl_from_map): Likewise.
2423         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2424         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2425         (decl_for_uid_map): New global hashtable mapping DECL_UID
2426         to the decl tree.
2427         (init_ttree): Allocate it.
2428         (insert_decl_to_uid_decl_map): New helper function.
2429         (make_node_stat): Insert new decls into the map.
2430         (copy_node_stat): Likewise.
2431         (lookup_decl_from_uid): New function.
2432         (remove_decl_from_map): Likewise.
2433         (print_decl_for_uid_map_statistics): New helper.
2434         (dump_tree_statistics): Call it.
2436         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2437         (referenced_var_iterator): Adjust.
2438         (FOR_EACH_REFERENCED_VAR): Adjust.
2439         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2440         (num_referenced_vars): Adjust.
2441         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2442         (first_referenced_var): Remove.
2443         (end_referenced_vars_p): Likewise.
2444         (next_referenced_var): Likewise.
2445         (referenced_var_iterator_set): New helper function.
2446         * tree-dfa.c (referenced_var_lookup): Adjust.
2447         (referenced_var_check_and_insert): Likewise.
2448         (remove_referenced_var): Likewise.
2449         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2450         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2451         (verify_call_clobbering): Likewise.
2452         (verify_memory_partitions): Likewise.
2453         (init_tree_ssa): Allocate bitmap instead of hashtable for
2454         referenced_vars.
2455         (delete_tree_ssa): Adjust.
2456         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2457         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2458         (compute_tag_properties): Likewise.
2459         (set_initial_properties): Likewise.
2460         (find_partition_for): Likewise.
2461         (update_reference_counts): Likewise.
2462         (dump_may_aliases_for): Likewise.
2463         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2464         (add_call_clobber_ops): Likewise.
2465         (add_call_read_ops): Likewise.
2466         (get_asm_expr_operands): Likewise.
2467         * tree-into-ssa.c (dump_decl_set): Likewise.
2468         (update_ssa): Likewise.
2469         * tree-sra.c (scan_function): Likewise.
2470         (decide_instantiations): Likewise.
2471         (scalarize_parms): Likewise.
2472         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2473         (dsa_named_for): Likewise.
2474         * tree-ssa-structalias.c (update_alias_info): Likewise.
2475         (merge_smts_into): Likewise.
2477 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2479         PR 34351
2480         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
2481         * c-opts.c (c_common_handle_option): Wall enables
2482         Wvolatile-register-var.
2483         * common.opt: Move Wvolatile-register-var to...
2484         * c.opt: ...here.
2485         
2486 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2488         * common.opt (Wlarger-than=): New.
2489         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
2490         -Wlarger-than=.
2491         * opts.c (common_handle_option): Handle -Wlarger-than=.
2492         * optc-gen.awk: Likewise.
2493         * opth-gen.awk: Likewise.
2494         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
2495         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2496         
2497 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2499         * c-common.c (match_case_to_enum_1): Add appropriate
2500         OPT_W* parameter to warning.
2501         (c_do_switch_warnings): Likewise.
2502         * c-typeck.c (warning_init): Add one more parameter following
2503         'warning' function.
2504         (push_init_level): Update call to warning_init.
2505         (pop_init_level): Likewise.
2506         (add_pending_init): Likewise.
2507         (output_init_element: Likewise.
2509 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2511         PR 28322
2512         * toplev.c (toplev_main): If there are warnings or error, print
2513         errors for ignored options.
2514         * opts.c (ignored_options): New static variable.
2515         (postpone_unknown_option_error): New.
2516         (print_ignored_options): New.
2517         (handle_option): Postpone errors for unknown -Wno-* options.
2518         * opts.h (print_ignored_options): Declare.
2519         
2520 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
2522         * config/mips/mips.md (loadgp_blockage, blockage): Change type
2523         to "ghost".
2525 2008-02-25  Richard Guenther  <rguenther@suse.de>
2527         Revert:
2528         2008-02-25  Richard Guenther  <rguenther@suse.de>
2530         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2531         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2532         (lookup_decl_from_uid): Declare.
2533         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2534         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2535         (decl_for_uid_map): New global hashtable mapping DECL_UID
2536         to the decl tree.
2537         (init_ttree): Allocate it.
2538         (insert_decl_to_uid_decl_map): New helper function.
2539         (make_node_stat): Insert new decls into the map.
2540         (copy_node_stat): Likewise.
2541         (lookup_decl_from_uid): New function.
2542         (print_decl_for_uid_map_statistics): New helper.
2543         (dump_tree_statistics): Call it.
2545         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2546         (referenced_var_iterator): Adjust.
2547         (FOR_EACH_REFERENCED_VAR): Adjust.
2548         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2549         (num_referenced_vars): Adjust.
2550         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2551         (first_referenced_var): Remove.
2552         (end_referenced_vars_p): Likewise.
2553         (next_referenced_var): Likewise.
2554         (referenced_var_iterator_set): New helper function.
2555         * tree-dfa.c (referenced_var_lookup): Adjust.
2556         (referenced_var_check_and_insert): Likewise.
2557         (remove_referenced_var): Likewise.
2558         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2559         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2560         (verify_call_clobbering): Likewise.
2561         (verify_memory_partitions): Likewise.
2562         (init_tree_ssa): Allocate bitmap instead of hashtable for
2563         referenced_vars.
2564         (delete_tree_ssa): Adjust.
2565         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2566         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2567         (compute_tag_properties): Likewise.
2568         (set_initial_properties): Likewise.
2569         (find_partition_for): Likewise.
2570         (update_reference_counts): Likewise.
2571         (dump_may_aliases_for): Likewise.
2572         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2573         (add_call_clobber_ops): Likewise.
2574         (add_call_read_ops): Likewise.
2575         (get_asm_expr_operands): Likewise.
2576         * tree-into-ssa.c (dump_decl_set): Likewise.
2577         (update_ssa): Likewise.
2578         * tree-sra.c (scan_function): Likewise.
2579         (decide_instantiations): Likewise.
2580         (scalarize_parms): Likewise.
2581         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2582         (dsa_named_for): Likewise.
2583         * tree-ssa-structalias.c (update_alias_info): Likewise.
2584         (merge_smts_into): Likewise.
2586 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2588         PR fortran/29549
2589         * doc/invoke.texi (-fcx-limited-range): Document new option.
2590         * toplev.c (process_options): Handle -fcx-fortran-rules.
2591         * common.opt: Add documentation for -fcx-fortran-rules.
2593 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2595         PR c/35162
2596         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
2597         actual behaviour and C99.
2598         
2599 2008-02-26  Ben Elliston  <bje@au.ibm.com>
2601         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
2602         (ASM_CPU_POWER6_SPEC): Likewise.
2603         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
2604         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
2605         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
2607 2008-02-25  Richard Guenther  <rguenther@suse.de>
2609         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2610         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2611         (lookup_decl_from_uid): Declare.
2612         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2613         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2614         (decl_for_uid_map): New global hashtable mapping DECL_UID
2615         to the decl tree.
2616         (init_ttree): Allocate it.
2617         (insert_decl_to_uid_decl_map): New helper function.
2618         (make_node_stat): Insert new decls into the map.
2619         (copy_node_stat): Likewise.
2620         (lookup_decl_from_uid): New function.
2621         (print_decl_for_uid_map_statistics): New helper.
2622         (dump_tree_statistics): Call it.
2624         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2625         (referenced_var_iterator): Adjust.
2626         (FOR_EACH_REFERENCED_VAR): Adjust.
2627         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2628         (num_referenced_vars): Adjust.
2629         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2630         (first_referenced_var): Remove.
2631         (end_referenced_vars_p): Likewise.
2632         (next_referenced_var): Likewise.
2633         (referenced_var_iterator_set): New helper function.
2634         * tree-dfa.c (referenced_var_lookup): Adjust.
2635         (referenced_var_check_and_insert): Likewise.
2636         (remove_referenced_var): Likewise.
2637         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2638         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2639         (verify_call_clobbering): Likewise.
2640         (verify_memory_partitions): Likewise.
2641         (init_tree_ssa): Allocate bitmap instead of hashtable for
2642         referenced_vars.
2643         (delete_tree_ssa): Adjust.
2644         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2645         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2646         (compute_tag_properties): Likewise.
2647         (set_initial_properties): Likewise.
2648         (find_partition_for): Likewise.
2649         (update_reference_counts): Likewise.
2650         (dump_may_aliases_for): Likewise.
2651         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2652         (add_call_clobber_ops): Likewise.
2653         (add_call_read_ops): Likewise.
2654         (get_asm_expr_operands): Likewise.
2655         * tree-into-ssa.c (dump_decl_set): Likewise.
2656         (update_ssa): Likewise.
2657         * tree-sra.c (scan_function): Likewise.
2658         (decide_instantiations): Likewise.
2659         (scalarize_parms): Likewise.
2660         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2661         (dsa_named_for): Likewise.
2662         * tree-ssa-structalias.c (update_alias_info): Likewise.
2663         (merge_smts_into): Likewise.
2665 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
2667         PR target/35258
2668         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
2669         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
2670         * alias.h (nonoverlapping_memrefs_p): Likewise.
2672 2008-02-25  Jan Beulich  <jbeulich@novell.com>
2674         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
2675         * config/i386/netware-libgcc.exp: Add __bswap?i2,
2676         __emultls_get_address, __emultls_register_common,
2677         __floatundi?f, and _Unwind_GetIPInfo.
2678         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
2679         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
2680         (gen_regparm_prefix): Likewise.
2681         (i386_nlm_encode_section_info): Sync with
2682         config/i386/winnt.c:i386_pe_encode_section_info().
2683         (i386_nlm_maybe_mangle_decl_assembler_name): New.
2684         i386_nlm_mangle_decl_assembler_name): New.
2685         (netware_override_options): New.
2686         * config/i386/netware.h (netware_override_options): Declare.
2687         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
2688         (i386_nlm_mangle_decl_assembler_name): Declare.
2689         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
2691 2008-02-25  Ben Elliston  <bje@au.ibm.com>
2693         PR other/32948
2694         * c-decl.c (grokdeclarator): Remove unused local variables
2695         `typedef_type' and `type_as_written'.
2696         * bb-reorder.c
2697         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
2698         unused local variable `has_hot_blocks'.
2699         (fix_crossing_conditional_branches): Remove unused local variable
2700         `prev_bb'.
2701         
2702 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
2704         PR middle-end/19984
2705         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
2706         using DEF_C99_BUILTIN.
2707         (BUILT_IN_NANF): Ditto.
2708         (BUILT_IN_NANL): Ditto.
2710 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
2711             Revital Eres  <eres@il.ibm.com>
2713         * modulo-sched.c (calculate_must_precede_follow): Address TODO
2714         regarding the order of two dependent insns in the same row.
2716 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
2718         * stor-layout.c (layout_decl): Do not bump the alignment of a
2719         bit-field to more than byte alignment if it is packed.
2721 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
2723         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
2724         e300c2 and e300c3.
2726 2008-02-24  Diego Novillo  <dnovillo@google.com>
2728         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
2730         PR 33738
2731         * tree-vrp.c (vrp_evaluate_conditional): With
2732         -Wtype-limits, emit a warning when comparing against a
2733         constant outside the natural range of OP0's type.
2734         * c.opt (Wtype-limits): Move ...
2735         * common.opt (Wtype-limits): ... here.
2737 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
2739         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
2740         * config/rs6000/e300c2c3.md: New file.
2741         * config/rs6000/rs6000.c (processor_costs): Add new costs for
2742         e300c2 and e300c3.
2743         (rs6000_override_options): Add e300c2 and e300c3 cases to
2744         processor_target_table. Do not allow usage of Altivec or Spe
2745         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
2746         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
2747         * config/rs6000/rs6000.h (processor_type): Add
2748         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
2749         (ASM_CPU_SPEC): Add e300c2 and e300c3.
2750         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
2751         and ppce300c3. Include e300c2c3.md.
2753 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
2755         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
2756         instead of TARGET_STRICT_ALIGN.
2758 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
2760         * explow.c (memory_address): Assert that the generated address is
2761         valid.
2763 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2765         PR target/25477
2766         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
2767         * config/darwin-ppc-ldouble-patch.def: New file.
2768         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
2769         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
2770         SUBTARGET_INIT_BUILTINS if defined.
2771         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
2772         New functions.
2774 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2776         PR rtl-opt/33512
2777         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
2778         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
2780 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2782         PR pch/35027
2783         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
2784         file" warning condtional on -Winvalid-PCH.
2786 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
2788         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
2790 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
2792         PR target/22076
2793         PR target/34256 
2794         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
2795         prevent reload from using MMX registers.
2796         (*mov<mode>_internal): Ditto.
2797         (*movv2sf_internal_rex64): Ditto.
2798         (*movv2sf_internal): Ditto.
2800 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2802         PR documentation/31569
2803         * doc/install.texi2html: Use makeinfo --no-number-sections.
2805 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2807         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
2808         ensure that we can address an entire entity > 8 bytes.  Don't
2809         generate reg+reg addressing for such data.
2811 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2813         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
2814         strings when optimizing for size, unless the target cares about
2815         alignment.
2817 2008-02-22  Tom Tromey  <tromey@redhat.com>
2819         * regclass.c (current_pass): Remove declaration.
2821 2008-02-22  Anatoly Sokolov <aesok@post.ru>
2823         * config/avr/libgcc.S (__RAMPZ__): Define.
2824         (__do_copy_data): Add for devices with 128KB code memory.
2826 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2828         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2829         Use spe_abi.
2830         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2832 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
2834         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
2835         GENNONACR_REGS.
2837 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2839         PR c/19999
2840         * c-typeck.c (build_binary_op): Warn about floating point
2841         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
2843 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
2845         PR target/34526
2846         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
2847         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
2848         add vrsave.
2849         (rs6000_override_options): Set altivec_abi as default, not override,
2850         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
2851         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
2852         is used; use new member spe_abi.
2853         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
2854         spe_abi and altivec_abi.
2856 2008-02-22  Tomas Bily  <tbily@suse.cz>
2858         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
2860 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2862         PR bootstrap/35273
2863         * config.build (build_file_translate): Set to `CMD //c' only if
2864         it works.
2865         * Makefile.in (build_file_translate): Improve comment.
2867 2008-02-21  Jan Hubicka  <jh@suse.cz>
2869         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
2870         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
2871         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
2873 2008-02-21  Michael Matz  <matz@suse.de>
2875         PR target/35264
2876         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
2878 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
2880         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
2881         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
2882         as insn constraint.
2883         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
2884         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
2885         SSE_VEC_FLOAT_MODE_P as insn constraint.
2886         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
2887         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
2888         sse4a_movntdf using MODEF mode iterator.
2889         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
2890         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
2891         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
2892         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
2893         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
2894         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
2895         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
2897 2008-02-21  Richard Guenther  <rguenther@suse.de>
2899         * tree.def (PAREN_EXPR): New tree code.
2900         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
2901         and PAREN_EXPR.
2902         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
2903         * expr.c (expand_expr_real_1): Likewise.
2904         * tree-inline.c (estimate_num_insns_1): Likewise.
2905         * tree-complex.c (expand_complex_move): Likewise.
2906         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
2907         as plain x.
2909 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2911         PR target/35225
2912         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
2914 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2916         PR target/35190
2917         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
2919         * config/sh/sh.c (find_barrier): Don't go past
2920         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
2922 2008-02-20  DJ Delorie  <dj@redhat.com>
2924         * config/h8300/h8300.md (insv): Force source operand to be a register.
2926         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
2927         as a jump, not as a plain insn.
2928         
2929 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
2931         * doc/invoke.texi (Warning Options): Add new option
2932         -Wframe-larger-than=.
2933         (-Wframe-larger-than): Document.
2935         * flags.h (warn_frame_larger_than, frame_larger_than_size):
2936         Add declarations for new option variables.
2938         * final.c (final_start_function): Check the frame size
2939         before emission and issue a Wframe-larger-than warning.
2941         * opts.c (warn_frame_larger_than, frame_larger_than_size):
2942         Add definitions for new option variables.
2943         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
2945         * common.opt (Wframe-larger-than=): New option.
2947 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
2949         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
2950         (<sse>_div<mode>3): Ditto.
2951         (<sse>_vmdiv<mode>3): Ditto.
2952         (<sse>_vmsqrt<mode>2): Ditto.
2953         (*smax<mode>3): Ditto.
2954         (sse5_frcz<mode>2): Ditto.
2955         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
2956         as insn constraint.
2958 2008-02-20  Richard Guenther  <rguenther@suse.de>
2960         PR middle-end/35265
2961         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
2962         be happy with INTEGRAL_TYPE_P.
2964 2008-02-20  Richard Guenther  <rguenther@suse.de>
2966         * fold-const.c (split_tree): Associate floatig-point expressions
2967         if flag_associative_math is set.
2969 2008-02-20  Richard Guenther  <rguenther@suse.de>
2971         * tree.h (fold_real_zero_addition_p): Declare.
2972         * fold-const.c (fold_real_zero_addition_p): Export.
2973         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
2974         floating-point operations with zero and one.
2976 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
2978         * doc/install.texi: Correct references to CFLAGS, replacing them
2979         with BOOT_CFLAGS.  Document flags used during bootstrap for
2980         target libraries.
2981                                 
2982 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
2984         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
2985         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
2986         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
2987         insn constraint.
2988         (smin<mode>3): Ditto from similar patterns.
2989         (smax<mode>3): Ditto.
2990         (*ieee_smin<mode>3): Ditto.
2991         (*ieee_smax<mode>3): Ditto.
2992         * config/i386/sse.md (sse): New mode attribute.
2993         (mov<mode>): Macroize expander from movv4sf and movv2df using
2994         SSEMODEF2P mode iterator.
2995         (<sse>_movnt<mode>): Ditto from similar patterns. Use
2996         SSE_VEC_FLOAT_MODE_P as insn constraint.
2997         (storent<mode>): Ditto.
2998         (storent<mode>): Macroize expander from storentsf and storentdf using
2999         MODEF mode iterator.
3000         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
3001         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
3002         (abs<mode>2): Ditto from similar patterns.
3003         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
3004         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
3005         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
3006         (<sse>_vmsqrt<mode>2): Ditto.
3007         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
3008         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
3009         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
3010         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
3011         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
3012         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
3013         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
3014         insn constraint.
3015         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
3016         iterator and SSE_FLOAT_MODE_P as insn constraint.
3017         (<sse>_ucomi): Ditto from similar patterns.
3018         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
3019         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
3020         SSE_VEC_FLOAT_MODE_P as insn constraint.
3021         (vcond<mode>): Ditto from similar patterns.
3022         (and<mode>3, *and<mode>3): Ditto.
3023         (<sse>_nand<mode>3): Ditto.
3024         (ior<mode>3, *ior<mode>3): Ditto.
3025         (xor<mode>3, *xor<mode>3): Ditto.
3026         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
3027         iterator and SSE_FLOAT_MODE_P as insn constraint.
3028         (*nand<mode>3): Ditto from similar patterns.
3029         (*ior<mode>3): Ditto.
3030         (*xor<mode>3): Ditto.
3032 2008-02-20  Ira Rosen  <irar@il.ibm.com>
3034         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
3035         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
3036         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
3038 2008-02-19  Jan Hubicka  <jh@suse.cz>
3040         * predict.c (tree_bb_level_predictions): Remove variable next
3041         mistakely introduced by previous commit.
3043 2008-02-19  Jan Hubicka  <jh@suse.cz>
3045         * predict.c (predict_paths_leading_to): Rewrite.
3046         (predict_paths_for_bb): New.
3047         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
3049 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3051         PR bootstrap/35218
3052         * Makefile.in (build_file_translate): New.
3053         (gcc-vers.texi): Use it for translating $(abs_srcdir).
3054         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
3055         * configure.ac (build_file_translate): Substitute it.
3056         * configure: Regenerate.
3058 2008-02-19  Jan Hubicka  <jh@suse.cz>
3060         PR rtl-optimization/34408
3061         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
3062         invalid sharing.
3064 2008-02-19  Jan Hubicka  <jh@suse.cz>
3066         PR middle-end/28779
3067         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
3068         call_expr.
3070 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
3072         PR Ada/35186
3073         * config/i386/i386-modes.def: Revert the last DI alignment
3074         change until Ada people can look into it.
3076 2008-02-19  Nick Clifton  <nickc@redhat.com>
3078         * opts.c (print_specific_help): Fix typo in --help text.
3080 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
3082         PR target/35239
3083         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
3084         32-bit inline asm without asm alternatives for host GCC < 3.0.
3086 2008-02-19  Richard Guenther  <rguenther@suse.de>
3088         PR tree-optimization/34989
3089         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
3090         Allow propagation to INDIRECT_REF if we can simplify only.
3092 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3094         * c-common.c (warn_for_collisions_1): Use appropriate option when
3095         warning.
3097 2008-02-19  Nick Clifton  <nickc@redhat.com>
3099         PR other/31349
3100         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
3101         (handle_options): Fix indentation.
3102         (print_filtered_help): If no language-specific options were
3103         displayed tell the user how to list all the options supported by
3104         the language's front-end.
3105         (print_specific_help): Fix indentation and remove duplicate line.
3106         (common_handle_option): Handle the -v option.
3107         For --help enable the display of undocumented options if the -v
3108         switch has been included on the command line.
3109         For --help= check for overlaps in the arguments between the option
3110         classes and the language names and issue a warning when they
3111         cannot be disambiguated.
3112         * c.opt (v): Pass on to the common option handler.
3114 2008-02-19  Revital Eres  <eres@il.ibm.com> 
3116         * modulo-sched.c (sms_schedule): Change dump message when
3117         create_ddg function fails.
3118         (try_scheduling_node_in_cycle): Rename row to cycle.
3119         (print_partial_schedule): Rename CYCLE to ROW.
3121 2008-02-19  Christian Bruel  <christian.bruel@st.com>
3122             Zdenek Dvorak  <ook@ucw.cz>
3124         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
3126 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
3128         PR target/33555
3129         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
3130         (*x86_movdicc_0_m1_se): Ditto.
3132 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
3134         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
3135         (CMPtype): Define as __gcc_CMPtype.
3136         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
3137         (CMPtype): Define as __gcc_CMPtype.
3139 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
3141         Support valgrind 3.3 for --enable-checking=valgrind.
3142         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
3143         here.
3144         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
3145         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
3146         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
3147         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
3148         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
3149         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
3150         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
3151         respectively.
3152         * ggc-zone.c: Similar.
3153         * ggc-page.c: Similar.
3155 2008-02-19  Paul Brook  <paul@codesourcery.com>
3157         PR target/35071
3158         * config/arm/ieee754-df.S: Fix do_it typo.
3159         * config/arm/ieee754-sf.S: Fix do_it typo.
3161 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3163         PR target/35189
3164         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
3165         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
3166         (OPTION_MASK_ISA_SSE_SET): Likewise.
3167         (OPTION_MASK_ISA_SSE2_SET): Likewise.
3168         (OPTION_MASK_ISA_SSE3_SET): Likewise.
3169         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
3170         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
3171         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
3172         (OPTION_MASK_ISA_SSE4_SET): Likewise.
3173         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
3174         (OPTION_MASK_ISA_SSE5_SET): Likewise.
3175         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
3176         (OPTION_MASK_ISA_MMX_UNSET): Updated.
3177         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
3178         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
3179         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
3180         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
3181         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
3182         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
3183         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
3184         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
3185         (OPTION_MASK_ISA_SSE4): Removed.
3186         (ix86_handle_option): Turn on bits in ix86_isa_flags and
3187         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
3188         (override_options): Don't turn on implied SSE/MMX bits in
3189         ix86_isa_flags.
3191 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3193         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3194         32bit host.
3196 2008-02-18  Joey Ye  <joey.ye@intel.com>
3198         PR middle-end/34921
3199         * tree-nested.c (insert_field_into_struct): Set type alignment
3200         to field alignment if the former is less than the latter.
3202 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
3204         * BASE-VER: Set to 4.4.0.
3206 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3208         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
3209         * doc/cfg.texi: Likewise.
3210         * doc/extend.texi: Likewise.
3211         * doc/gty.texi: Likewise.
3212         * doc/invoke.texi: Likewise.
3213         * doc/loop.texi: Likewise.
3214         * doc/md.texi: Likewise.
3215         * doc/passes.texi: Likewise.
3216         * doc/rtl.texi: Likewise.
3217         * doc/sourcebuild.texi: Likewise.
3218         * doc/tm.texi: Likewise.
3219         * doc/tree-ssa.texi: Likewise.
3221 2008-02-17  Richard Guenther  <rguenther@suse.de>
3223         PR middle-end/35227
3224         * tree-complex.c (init_parameter_lattice_values): Handle parameters
3225         without default definition.
3227 2008-02-17  Richard Guenther  <rguenther@suse.de>
3229         PR tree-optimization/35231
3230         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
3231         if A | B != 1.
3233 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
3235         Revert:
3236         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
3237         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
3238         libgcc_cmp_return mode.
3240 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3242         PR c/28368
3243         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
3245 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
3247         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
3248         multilibs.
3250 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3252         * doc/c-tree.texi: Use `@.' where appropriate.
3253         * doc/extend.texi: Likewise.
3254         * doc/install.texi: Likewise.
3255         * doc/invoke.texi: Likewise.
3256         * doc/loop.texi: Likewise.
3257         * doc/makefile.texi: Likewise.
3258         * doc/md.texi: Likewise.
3259         * doc/passes.texi: Likewise.
3260         * doc/standards.texi: Likewise.
3261         * doc/tm.texi: Likewise.
3263 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3265         PR middle-end/35196
3266         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
3267         in entry_bb.
3268         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
3269         rather than in entry_bb.
3271 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3273         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
3274         libgcc_cmp_return mode.
3276 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3278         PR middle-end/35130
3279         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
3280         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
3282 2008-02-15  Richard Guenther  <rguenther@suse.de>
3283             Zdenek Dvorak  <ook@ucw.cz>
3285         PR tree-optimization/35164
3286         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
3287         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
3288         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3289         Only propagate addresses which do not have abnormal SSA_NAMEs
3290         in their operands.
3292 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
3294         PR target/35088
3295         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
3297 2008-02-15  Jan Hubicka  <jh@suse.cz>
3299         PR middle-end/35149
3300         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
3302 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3304         PR middle-end/34621
3305         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
3306         when calculating alignment_pad.
3308 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3310         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
3311         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
3312         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
3313         and STACK_BOUNDARY define.
3315 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
3317         PR preprocessor/35061
3318         * c-pragma.c (handle_pragma_pop_macro): Check that
3319         pushed_macro_table has been allocated.
3321 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3323         PR middle-end/35136
3324         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
3325         (force_gimple_operand): Likewise.
3326         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
3327         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
3328         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
3329         (find_interesting_uses_address): Check addressability and alignment
3330         of the base expression only after substituting bases of IVs into it.
3332 2008-02-14  Michael Matz  <matz@suse.de>
3334         PR target/34930
3335         * function.c (instantiate_virtual_regs_in_insn): Reload address
3336         before falling back to reloading the whole operand.
3338 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
3340         * config/s390/s390.c (s390_mainpool_start): Emit the pool
3341         before the first section switch note.
3343 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3345         * doc/bugreport.texi: Update copyright years.
3346         * doc/c-tree.texi: Likewise.
3347         * doc/cfg.texi: Likewise.
3348         * doc/cpp.texi: Likewise.
3349         * doc/cppinternals.texi: Likewise.
3350         * doc/fragments.texi: Likewise.
3351         * doc/frontends.texi: Likewise.
3352         * doc/gcc.texi: Likewise.
3353         * doc/gty.texi: Likewise.
3354         * doc/hostconfig.texi: Likewise.
3355         * doc/implement-c.texi: Likewise.
3356         * doc/libgcc.texi: Likewise.
3357         * doc/loop.texi: Likewise.
3358         * doc/makefile.texi: Likewise.
3359         * doc/options.texi: Likewise.
3360         * doc/passes.texi: Likewise.
3361         * doc/rtl.texi: Likewise.
3362         * doc/sourcebuild.texi: Likewise.
3363         * doc/standards.texi: Likewise.
3364         * doc/tree-ssa.texi: Likewise.
3365         * doc/trouble.texi: Likewise.
3367         * doc/extend.texi: Use @: or add comma where appropriate.
3368         * doc/invoke.texi: Likewise.
3369         * doc/tm.texi: Likewise.
3371 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
3373         PR target/34393
3374         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
3375         to a reg.
3377 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
3379         * doc/md.texi (clz, ctz): Add reference.
3380         * doc/rtl.texi (clz, ctz): Likewise.
3382 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3384         PR other/35148
3385         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
3386         srcdir.
3388 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
3390         * config/s390/s390.c (struct constant_pool): New field
3391         emit_pool_after added.
3392         (s390_mainpool_start): Set the emit_pool_after flag according
3393         to the section switch notes.
3394         (s390_mainpool_finish): Consider emit_pool_after when emitting
3395         the literal pool at the end of the function.
3396         (s390_chunkify_start): Force literal pool splits at section
3397         switch notes.
3399 2008-02-13  Michael Matz  <matz@suse.de>
3401         PR debug/35065
3402         * var-tracking.c (clobber_variable_part): Correctly traverse the
3403         list.
3405 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3407         PR 29673
3408         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
3409         Add -fdump-ipa-inline.
3410         * tree-dump.c (dump_files): Remove tree-inlined dump.
3411         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
3412         
3413 2008-02-12  Richard Guenther  <rguenther@suse.de>
3415         PR tree-optimization/35171
3416         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
3417         default defs.
3419 2008-02-12  Richard Guenther  <rguenther@suse.de>
3421         PR middle-end/35163
3422         * fold-const.c (fold_widened_comparison): Use get_unwidened in
3423         value-preserving mode.  Disallow final truncation.
3425 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3427         PR middle-end/35136
3428         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
3429         code from here to...
3430         (force_gimple_operand): ...here.
3432 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
3434         PR c++/35144
3435         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
3436         non-compatible pointers.
3437         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
3438         different FIELD_DECLs, try harder by comparing field offsets, sizes
3439         and types.
3441         PR inline-asm/35160
3442         * function.c (match_asm_constraints_1): Don't replace the same input
3443         multiple times.
3445 2008-02-12  Anatoly Sokolov <aesok@post.ru>
3447         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
3448         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
3449         (expand_epilogue): Restore RAMPZ register.
3450         * config/avr/avr.md (RAMPZ_ADDR): New constant.
3452 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
3454         * config/i386/cygwin.asm: (__alloca): Correct calling
3455         convention and alignment.
3456         (__chkstk): Force 8 byte stack alignment.
3458 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
3459             Richard Guenther  <rguenther@suse.de>
3461         PR tree-optimization/33992
3462         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
3463         the zero we compare against.
3465 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
3467         PR libfortran/35063
3468         * gthr-win32.h (__gthread_mutex_destroy_function): New function
3469         to CloseHandle after unlocking to prevent accumulation of handle
3470         count.
3472 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3474         PR middle_end/34150
3475         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
3476         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
3477         and update LABEL_NUSES during and after reload.
3479 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3481         PR middle-end/34627
3482         * combine.c (simplify_if_then_else): Make sure the comparison is
3483         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
3485 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
3487         PR bootstrap/35051
3488         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
3489         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
3490         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
3491         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
3492         * tree.h (get_type_static_bounds): Likewise.
3494 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3496         * doc/invoke.texi (Option Summary, C++ Dialect Options)
3497         (Objective-C and Objective-C++ Dialect Options, Warning Options):
3498         Make -Wfoo language annotations match what the compiler outputs.
3500 2008-02-08  Sa Liu  <saliu@de.ibm.com>
3502         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
3503         intrinsics spu_convts, spu_convtu, spu_convtf.
3504         * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
3506 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
3508         * doc/extend.texi (Function Attributes) <noinline>: Mention
3509         asm ("") as method to keep calls.
3511 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3513         PR other/32754
3514         * doc/options.texi (Options): Replace references to opts.sh with
3515         optc-gen.awk.
3516         * opts-common.c: Likewise.
3517         * optc-gen.awk: Likewise.
3518         
3519 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
3521         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
3523 2008-02-07  Richard Henderson  <rth@redhat.com>
3525         PR rtl-opt/33410
3526         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
3527         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
3528         funny mode.
3530 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
3532         PR tree-optimization/35085
3533         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
3534         for operand entry oe2 in addition to operand entry oe3 in order to
3535         expose more opportunities for vectorizer sum reduction.
3537 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3539         PR other/35107
3540         * Makefile.in (LIBS): Remove $(GMPLIBS).
3541         (cc1-dummy, cc1): Add $(GMPLIBS).
3543 2008-02-06  Jan Hubicka  <jh@suse.cz>
3545         PR target/23322
3546         * i386.md (moddf_integer): Do not produce partial memory stalls for
3547         targets where it hurts.
3549 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
3551         PR target/35083
3552         * optabs.c (expand_float): Do not check for decimal modes when
3553         expanding unsigned integer through signed conversion.
3555 2008-02-06  Nick Clifton  <nickc@redhat.com>
3557         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
3558         inside the clobber with a match_operand and duplicated operand
3559         number in the constraint.
3560         (ineqbranchsi): Delete redundant comment.
3562 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3564         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
3565         builtin_define ("__USE_INIT_FINI__").
3566         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
3567         -msx multilibs.
3568         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
3570 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3572         PR documentation/30330
3573         * doc/invoke.texi (C++ Dialect Options)
3574         (Objective-C and Objective-C++ Dialect Options, Warning Options):
3575         For each warning option -Wfoo that allows -Wno-foo, ensure both
3576         -Wfoo and -Wno-foo are listed in the option index.  Fix index
3577         entry of -Wswitch-default, index -Wnormalized= including the
3578         `=', and -Wlarger-than-@var{len} including @var{len}.
3580 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
3582         * config/i386/i386.md (floatunssisf2): Use
3583         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
3584         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
3585         Macroize expander using MODEF mode iterator.
3587 2008-02-05  Diego Novillo  <dnovillo@google.com>
3589         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
3591         PR 33738
3592         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
3594 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3596         PR other/35070
3597         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
3599 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
3601         PR target/35084
3602         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
3603         to indicate if a message should be generated.
3604         (init_cumulative_args): Updated.
3605         (function_value_32): Likewise.
3607 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
3609         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
3611 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
3613         PR target/35083
3614         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
3615         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
3617 2008-02-04  Diego Novillo  <dnovillo@google.com>
3619         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
3621         PR 33738
3622         * tree-vrp.c (vrp_evaluate_conditional): With
3623         -Wtype-limits, emit a warning when comparing against a
3624         constant outside the natural range of OP0's type.
3626 2008-02-04  Richard Guenther  <rguenther@suse.de>
3628         PR middle-end/33631
3629         * expr.c (count_type_elements): Give for unions instead of
3630         guessing.
3632 2008-02-04  Richard Guenther  <rguenther@suse.de>
3634         PR middle-end/35043
3635         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
3636         to TYPE_DOMAINs base type instead of using bitsizetype here.
3638 2008-02-03  Jason Merrill  <jason@redhat.com>
3640         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
3642 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3644         PR other/29972
3645         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
3646         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
3647         (RS/6000 and PowerPC Options): Fix typos and markup.
3648         * doc/passes.texi (Tree-SSA passes): Likewise.
3650 2008-02-02  Michael Matz  <matz@suse.de>
3652         PR target/35045
3653         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
3654         from record_last_reg_set_info.
3655         (record_last_reg_set_info): Take an RTX argument, iterate over all
3656         constituent hardregs.
3657         (record_last_set_info, record_opr_changes): Change calls to
3658         new signature or to record_last_reg_set_info_regno.
3660 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
3662         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
3664 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
3666         PR rtl-optimization/34773
3667         * reg-notes.def (EQUAL): Mention significance of combination of
3668         REG_EQUAL and REG_RETVAL.
3669         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
3670         insn that has a REG_RETVAL.
3672 2008-02-01  Roger Sayle  <roger@eyesopen.com>
3674         PR bootstrap/33781
3675         * configure.ac (--enable-fixed-point): Disable unless explicitly
3676         requested on IRIX.
3677         * configure: Regenerate.
3679 2008-02-01  Richard Guenther  <rguenther@suse.de>
3681         PR other/35042
3682         * invoke.texi (-finline-limit): Remove no longer true parts
3683         of the documentation.  Note that there is no default value.
3685 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
3686             Mark Mitchell  <mark@codesourcery.com>
3687             Ben Elliston  <bje@au.ibm.com>
3689         PR c/29326
3690         * doc/extend.texi (Other Builtins): Document.
3692 2008-01-31  Tom Browder <tom.browder@gmail.com>
3694         * doc/c-tree.texi (Types): Fix grammar.
3695         (Expression trees): Ditto.
3696         * doc/passes.texi (Tree-SSA passes): Ditto.
3697         
3698         * doc/configterms.texi (Configure Terms): Fix typo.
3699         * doc/cpp.texi (Common Predefined Macros): Ditto.
3700         * doc/md.texi (Machine Constraints): Ditto.
3701         
3702         * doc/makefile.texi (Makefile): Add comma.
3704 2008-01-31  Tom Browder  <tom.browder@gmail.com>
3705             Gerald Pfeifer  <gerald@pfeifer.com>
3706         
3707         * doc/sourcebuild.texi (Front End): Remove references to CVS
3708         and CVSROOT/modules.
3709         (Texinfo Manuals): Replace reference to CVS by one to SVN.
3710         (Back End): Remove reference to CVS.
3712 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
3714         PR target/34900
3715         * config/mips/mips.c (gen_load_const_gp): New function, taking a
3716         comment from...
3717         (mips16_gp_pseudo_reg): ...here.
3718         * config/mips/mips.md (load_const_gp): Replace with...
3719         (load_const_gp_<mode>): ...this :P-based insn.
3721 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3723         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
3724         options. Minor fixes.
3725         (-std): Move reference to standards closer to where language
3726         standards are first mentioned.
3727         
3728 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
3730         PR rtl-optimization/34995
3731         * reload.c (alternative_allows_const_pool_ref): Take an rtx
3732         parameter and return a bool.  If the rtx parameter is nonnull,
3733         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
3734         (find_reloads): Update call accordingly.  Pass the new operand
3735         if it needed no address reloads, otherwise pass null.
3737 2008-01-30  Richard Henderson  <rth@redhat.com>
3739         PR c/34993
3740         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
3741         for unbounded arrays.
3743 2008-01-30  Silvius Rus  <rus@google.com>
3745         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
3747 2008-01-30  Jan Hubicka  <jh@suse.cz>
3749         PR target/34982
3750         * i386.c (init_cumulative_args): Use real function declaration when
3751         calling locally.
3753 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
3755         PR rtl-optimization/34998
3756         * global.c (build_insn_chain): Treat non-subreg_lowpart
3757         SUBREGs of pseudos as clobbering all the words covered by the
3758         SUBREG, not just all the bytes.
3759         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
3760         original df_ref rather than an extract parameter.
3761         (global_conflicts): Update call accordingly.
3763 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
3765         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
3766         the overflow check to make it easier to read.
3767         (__fixtfdi): Change the type of the ll member in union
3768         long_double to UDItype_x.
3770 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
3772         PR middle-end/34969
3773         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
3774         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
3775         * tree-inline.c (fold_marked_statements): Call
3776         cgraph_update_edges_for_call_stmt if folding a call statement.
3777         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
3778         debug_generic_stmt calls, reset it back afterwards.
3780         PR c/35017
3781         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
3782         static decls.
3783         * c-typeck.c (build_external_ref): Don't pedwarn about
3784         static vars in current function's scope.
3786 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
3788         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
3790 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
3792         PR c/35002
3793         * ipa-struct-reorg.c: Fix spelling.
3794         * params.def: Ditto.
3796 2008-01-29  Richard Guenther  <rguenther@suse.de>
3798         PR middle-end/35006
3799         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
3800         field.
3801         * tree-inline.c (remap_type): Increment remapping_type_depth
3802         around remapping types.
3803         (copy_body_r): Only add referenced variables if they are referenced
3804         from code, not types.
3806 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
3808         PR c++/34055
3809         PR c++/34103
3810         PR c++/34219
3811         PR c++/34606
3812         PR c++/34753
3813         PR c++/34754
3814         PR c++/34755
3815         PR c++/34919
3816         PR c++/34961
3817         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
3818         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
3820 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
3822         PR target/34412
3823         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
3824         pointer for tiny stack.
3826 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
3828         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
3830 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
3832         * config/vx-common.h: Fix typo in comment.
3834 2008-01-28  Ian Lance Taylor  <iant@google.com>
3836         PR c++/34862
3837         PR c++/33407
3838         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3839         coalesce pointers if they have different DECL_NO_TBAA_P values.
3840         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
3841         between variables with different DECL_NO_TBAA_P values.
3843 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
3845         PR 31535
3846         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
3847         are not legitimate small data references on SPE targets.
3849 2008-01-28  David Daney  <ddaney@avtrex.com>
3851         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
3853 2008-01-28  David Daney  <ddaney@avtrex.com>
3855         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
3857 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
3859         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
3860         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
3861         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
3862         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
3863         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3864         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
3865         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
3866         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
3868 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3870         * basic-block.h (condjump_equiv_p): Fix comment.
3872 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3874         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
3875         print_generic_stmt_indented): Fix comment.
3877 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3879         * configure.ac (__stack_chk_fail): Add detecion for availability
3880         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
3881         * configure: Regenerate.
3883 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
3885         PR middle-end/34688
3886         * final.c (output_addr_const): Handle TRUNCATE.
3888 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
3890         PR target/34711
3891         * tree-ssa-loop-ivopts.c (comp_cost): New type.
3892         (zero_cost, infinite_cost): New constants.
3893         (struct cost_pair): Change type of cost to comp_cost.
3894         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
3895         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
3896         New functions.
3897         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
3898         split_address_cost, ptr_difference_cost, difference_cost,
3899         get_computation_cost_at, get_computation_cost,
3900         determine_use_iv_cost_generic, determine_use_iv_cost_address,
3901         determine_use_iv_cost_condition, determine_use_iv_costs,
3902         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
3903         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
3904         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
3905         Change type of cost to comp_cost.
3906         (determine_iv_cost): Increase cost of non-original ivs, instead
3907         of decreasing the cost of original ones.
3908         (get_address_cost): Indicate the complexity of the addressing mode 
3909         in comp_cost.
3910         (try_add_cand_for): Prefer using ivs not specific to some object.
3911         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
3913 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
3914             Janis Johnson  <janis187@us.ibm.com>
3916         PR target/34814
3917         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
3918         (TARGET_INSTANTIATE_DECLS): Likewise.
3919         * target.h (expand_to_rtl_hook): New target hook.
3920         (instantiate_decls): Likewise.
3921         * function.c (instantiate_decl): Make non-static.  Rename to...
3922         (instantiate_decl_rtl): ... this.
3923         (instantiate_expr): Use instantiate_decl_rtl.
3924         (instantiate_decls_1): Likewise.
3925         (instantiate_decls): Likewise.
3926         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
3927         * function.h (instantiate_decl_rtl): Add prototype.
3928         * cfgexpand.c (target.h): New include.
3929         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
3930         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
3931         (TARGET_INSTANTIATE_DECLS): Likewise.
3932         (TARGET_INITIALIZER): New target hooks added.
3933         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
3934         New prototype.
3935         * config/rs6000/rs6000.c (tree-flow.h): New include.
3936         (machine_function): Add sdmode_stack_slot field.
3937         (rs6000_alloc_sdmode_stack_slot): New function.
3938         (rs6000_instantiate_decls): Likewise.
3939         (rs6000_secondary_memory_needed_rtx): Likewise.
3940         (rs6000_check_sdmode): Likewise.
3941         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
3942         (TARGET_INSTANTIATE_DECLS): Likewise.
3943         (rs6000_hard_regno_mode_ok): Allow SDmode.
3944         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
3945         (rs6000_emit_move): Handle SDmode.
3946         (function_arg_advance): Likewise.
3947         (function_arg): Likewise.
3948         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
3949         SDmode var args for 32-bit compiles.
3950         (rs6000_secondary_reload_class): Handle SDmode.
3951         (rs6000_output_function_epilogue): Likewise.
3952         (rs6000_function_value): Simplify if statement.
3953         (rs6000_libcall_value): Likewise.
3954         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
3955         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
3956         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
3957         (movsd_hardfloat): New define_insn.
3958         (movsd_softfloat): Likewise.
3959         (movsd_store): Likewise.
3960         (movsd_load): Likewise.
3961         (extendsddd2): Likewise.
3962         (extendsdtd2): Likewise.
3963         (truncddsd2): Likewise.
3964         (movdd_hardfloat64): Fixup comment.
3965         (UNSPEC_MOVSD_LOAD): New constant.
3966         (UNSPEC_MOVSD_STORE): Likewise.
3968 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
3970         PR c++/34965
3971         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
3972         TRUTH_XOR_EXPR.
3973         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
3974         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
3975         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
3976         and TRUTH_XOR_EXPR.
3978 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
3980         PR target/34794
3981         * config.gcc: Separate AIX 5.3 from AIX 6.1.
3982         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3983         __LONGDOUBLE128 too.
3984         * config/rs6000/aix61.h: New file.
3986 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
3988         PR rtl-optimization/34959
3989         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
3990         popcount and parity rtxes the same mode as their operand.
3991         Truncate or extend the result to the return value's mode
3992         if necessary.
3994 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
3996         PR target/34981
3997         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
3998         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
3999         to GOT_VERSION_REGNUM.
4000         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
4001         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
4002         * config/mips/mips.c (mips_emit_call_insn): New function.
4003         (mips_call_tls_get_addr): Call mips_expand_call directly.
4004         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
4005         emit_call_insn.
4006         (mips16_build_call_stub): Likewise.  Return the call insn or null.
4007         (mips_expand_call): Update the call to mips16_build_call_stub
4008         accordingly and a remove redundant condition.  Assert that MIPS16
4009         stubs do not use lazy binding.  Use mips_emit_call_insn and return
4010         the call insn.
4011         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
4012         TARGET_USE_GOT.
4013         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
4014         (mips_avoid_hazard): Remove hazard_set handling.
4015         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
4016         (UNSPEC_RESTORE_GP): ...this.
4017         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
4018         (FAKE_CALL_REGNO): Rename to...
4019         (GOT_VERSION_REGNUM): ...this.
4020         (type): Add "ghost" value.  Add an associated insn reservation.
4021         (hazard_set): Remove.
4022         (exception_receiver): Rename to...
4023         (restore_gp): ...this and update the unspec identifier accordingly.
4024         (exception_receiver, nonlocal_got_receiver): New expanders.
4025         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
4026         FAKE_CALL_REGNO.  Remove hazard_set attribute.
4027         (set_got_version, update_got_version): New patterns.
4029 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
4031         PR target/34970
4032         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
4034 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
4036         PR other/31955
4037         * doc/install.texi2html: Generate gcc-vers.texi.
4039 2008-01-25  DJ Delorie  <dj@redhat.com>
4041         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4043 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
4045         * config/c4x: Remove directory.
4046         * config.gcc (crx-*, mt-*): Mark obsolete.
4047         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
4048         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
4049         sh-*-rtemscoff*): Remove cases.
4050         * defaults.h (C4X_FLOAT_FORMAT): Remove.
4051         * real.c (encode_c4x_single, decode_c4x_single,
4052         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
4053         c4x_extended_format): Remove.
4054         * real.h (c4x_single_format, c4x_extended_format): Remove.
4055         * doc/extend.texi (interrupt, naked): Remove mention of attributes
4056         on C4x.
4057         (Pragmas): Remove comment about c4x pragmas.
4058         * doc/install.texi (c4x): Remove target-specific instructions.
4059         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
4060         * doc/md.texi (Machine Constraints): Remove C4x documentation.
4061         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
4062         refer to C4x source files as examples.
4063         (C4X_FLOAT_FORMAT): Remove documentation.
4065 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
4067         * config/bfin/bfin.c (override_options): Reorder tests so that
4068         flag_pic gets enabled for -msep-data.
4070 2008-01-25  Richard Guenther  <rguenther@suse.de>
4072         PR middle-end/32244
4073         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
4074         to its bitfield precision if required.
4076 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
4078         PR middle-end/33880
4079         * tree-nested.c (walk_omp_for): New function.
4080         (convert_nonlocal_reference, convert_local_reference): Call
4081         walk_omp_for on OMP_FOR.
4082         (convert_call_expr): Call walk_body on OMP_FOR's
4083         OMP_FOR_PRE_INIT_BODY.
4085 2008-01-25  Richard Guenther  <rguenther@suse.de>
4087         PR tree-optimization/34966
4088         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
4089         default defs and PHI_NODEs we have to insert after the
4090         defining statement.
4092 2008-01-24  Nick Clifton  <nickc@redhat.com>
4094         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
4095         Provide a default definition.
4096         (LIBGCC2_UNITS_PER_WORD): Likewise.
4098         * config/stormy16/stormy16.c: Include df.h for the prototype
4099         for df_regs_ever_live_p.
4100         (xstormy16_expand_builtin_va_start): Convert the stack offset
4101         into a component_ref and then use POINTER_PLUS_EXPR to add it
4102         to the incoming_virtual_args_rtx.
4103         (xstormy16_gimplify_va_arg_expr): Rename to
4104         xstormy16_gimplify_va_arg_expr.
4105         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
4106         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
4107         xstormy16_gimplify_va_arg_expr.
4108         Fix up some formatting issues.
4110         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
4111         Move to predicates.md.
4112         (xs_hi_general_operand): Likewise.
4113         (xs_hi_nonmemory_operand): Likewise.
4114         * config/stormy16/predicates.md:
4115         (xstormy16_carry_plus_operand): New predicate.
4116         (xs_hi_general_operand): New predicate.
4117         (xs_hi_nonmemory_operand): New predicate.
4118         * config/stormy16/stormy16-protos.h:
4119         (xstormy16_carry_plus_operand): Delete prototype.
4120         (xs_hi_general_operand): Likewise.
4121         (xs_hi_nonmemory_operand): Likewise.
4123         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
4124         modifiers as they are no longer needed and they can trigger
4125         reload spill failures.
4127         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
4128         with a match_operand in order to help reload.
4130         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
4131         constraint with 'e' for the 8th alternative as this version of
4132         the mov.w instruction only accepts the lower 8 registers.
4134 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
4136         PR target/34856
4137         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
4138         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
4139         vector elements.
4141 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
4143         PR middle-end/33333
4144         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
4146 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
4148         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
4149         New functions.
4150         (remove_structure): Update allocations list before removing structure.
4151         
4152 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
4154         * ipa-struct-reorg.c (is_safe_cond_expr, 
4155         create_new_stmts_for_cond_expr): Use integer_zerop function,
4156         that recognize not only zero-pointer, but zero-integer too.
4158 2008-01-25  Ben Elliston  <bje@au.ibm.com>
4160         PR other/22232
4161         * fixproto: Escape "." in sed expression that strips leading "./".
4163 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
4165         PR driver/34904
4166         * gcc.c (SWITCH_OK): Removed.
4167         (SWITCH_LIVE): Changed to bit.
4168         (SWITCH_FALSE): Likewise.
4169         (SWITCH_IGNORE): Likewise.
4170         (switchstr): Change live_cond to unsigned int.
4171         (process_command): Replace SWITCH_OK with 0.
4172         (do_self_spec): Likewise.
4173         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
4174         (give_switch): Likewise.
4175         (used_arg): Likewise.
4176         (do_spec_1): Set the SWITCH_IGNORE bit.
4177         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
4178         bits.  Set the SWITCH_LIVE bit.
4180 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
4182         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
4184 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
4186         PR tree-optimization/34472
4187         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
4188         parameter to a "bool *" and set *DATA to false if there is
4189         an unsafe access.  Do not delete the structure here.
4190         (check_cond_exprs): Delete it here instead.
4191         (check_cond_exprs, exclude_cold_structs): Do not increase
4192         I when removing a structure.
4194 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
4196         PR target/34856
4197         * config/i386/i386.c (ix86_expand_vector_init): Consider only
4198         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
4200 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
4202         PR middle-end/34934
4203         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
4204         a fixed vector for stack.
4206 2008-01-24  Ben Elliston  <bje@au.ibm.com>
4208         PR c++/25701
4209         * doc/gcc.texi (Software development): Add a direntry for g++.
4210         
4211 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
4213         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
4214         stale and straggling -fforce-addr comments above.
4216         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
4217         define.
4218         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
4219         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
4221 2008-01-23  Michael Matz  <matz@suse.de>
4223         PR debug/34895
4224         * dwarf2out.c (force_type_die): Use modified_type_die instead of
4225         gen_type_die.
4227 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
4229         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
4230         malloc result type.
4232 2008-01-23 Anatoly Sokolov <aesok@post.ru>
4234         * config/avr/avr.c (avr_current_arch): New variable.
4235         (avr_arch_types): Add 'avr31' and 'avr51' entries.
4236         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
4237         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
4238         (avr_override_options): Init 'avr_current_arch'. 
4239         (base_arch_s): Move from here...
4240         * config/avr/avr.h (base_arch_s): ... here. Add new members 
4241         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
4242         'mega' to 'have_jmp_call'.
4243         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
4244         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
4245         macros.
4246         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
4247         architectures.
4248         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
4249         MULTILIB_MATCHES): (Ditto.).
4251 2008-01-23  Richard Guenther  <rguenther@suse.de>
4253         PR middle-end/31529
4254         * cgraphunit.c (cgraph_reset_node): Always mark the node
4255         not reachable if it is not queued already.
4257 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
4259         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
4260         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
4261         (cputype_selected): New static variable.
4262         (bfin_handle_option): Set it if -mcpu is used.
4263         (override_option): Select default set of workarounds if no cpu type
4264         selected on the command line.
4265         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
4267         From  Michael Frysinger  <michael.frysinger@analog.com>
4268         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
4269         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
4271         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
4272         for bf547, bf523, bf524, and bf526.
4273         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
4274         bf526.
4275         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4276         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
4277         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
4278         __ADSPBF547__ and __ADSPBF54x__ for bf547.
4279         * doc/invoke.texi (Blackfin Options): Document that
4280         -mcpu now accept bf547, bf523, bf524, and bf526.
4282 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4284         PR rtl-optimization/34628
4285         * combine.c (try_combine): Stop and undo after the first combination
4286         if an autoincrement side-effect on the first insn has effectively
4287         been lost.
4289 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
4291         PR target/34529
4292         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
4293         Offset addresses are not valid for Altivec or paired float modes.
4295 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
4297         PR c++/34607
4298         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
4299         if DECL_INITIAL (decl) is error_mark_node.
4301         PR c++/34914
4302         * c-common.c (handle_vector_size_attribute): Only allow
4303         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
4304         the same way as pointer, array etc. types.
4305         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
4307         PR c++/34917
4308         * tree.c (build_type_attribute_qual_variant): Call
4309         build_qualified_type if attributes are equal, but quals are not.
4311 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4313         PR 32102
4314         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
4315         * flags.h (warn_strict_aliasing): Remove.
4316         (warn_strict_overflow): Remove.
4317         * opts.c (warn_strict_aliasing): Remove.
4318         (warn_strict_overflow): Remove.
4319         * c-opts.c (c_common_handle_option): -Wall only sets
4320         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
4321         (c_common_post_options): Give default values to -Wstrict-aliasing
4322         and -Wstrict-overflow if they are uninitialized.
4323         * common.opt (Wstrict-aliasing): Specify Var and Init.
4324         (Wstrict-overflow): Likewise.
4326 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
4328         PR rtl-optimization/26854
4329         PR rtl-optimization/34400
4330         PR rtl-optimization/34884
4331         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
4332         DF_RD->gen.
4333         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
4334         (df_rd_bb_info.expanded_lr_out): Deleted
4335         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
4336         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
4337         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
4338         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
4339         Removed code to allocate, initialize or free expanded_lr_out.
4340         (df_rd_bb_local_compute_process_def): Restructured to make more
4341         understandable.
4342         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
4343         sets if the sets are being trimmed.
4345 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
4347         PR bootstrap/32287
4348         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
4349         (as_vers): Likewise.
4350         * configure: Regenerated.
4352 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4354         PR middle-end/33092
4355         * tree-pass.h (pass_build_alias): New pass.
4356         * tree-ssa-alias.c (gate_build_alias): New.
4357         (pass_build_alias): New.
4358         * passes.c (init_optimization_passes): Add pass_build_alias after
4359         pass_create_structure_vars.
4361 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
4363         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
4364         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
4365         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
4366         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
4367         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
4368         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
4369         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
4370         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
4371         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
4372         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
4373         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
4374         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
4375         * config/s390/s390.md (FP_ALL): New mode iterator.
4376         (_d): New mode attribute.
4377         ("*signbit<mode>2>"): Changed mode of first operand.
4378         ("isinf<mode>2"): Changed mode of first operand.
4379         ("*TDC_insn"): Adaptation for DFP modes.
4381 2008-01-22  Ben Elliston  <bje@au.ibm.com>
4383         * tree.c (check_qualified_type): Improve function description.
4385 2008-01-21  Jason Merrill  <jason@redhat.com>
4387         PR c++/34196
4388         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
4389         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
4390         if it is set.
4392 2008-01-21  DJ Delorie  <dj@redhat.com>
4394         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
4395         return zero.
4397 2008-01-21  Richard Guenther  <rguenther@suse.de>
4399         PR middle-end/34856
4400         * tree-cfg.c (verify_expr): Allow all invariant expressions
4401         instead of just constant class ones as reference argument.
4402         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
4403         like any other constant.
4404         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4406 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4408         * regmove.c (fixup_match_1): Update call crossed frequencies.
4410 2008-01-21  Richard Guenther  <rguenther@suse.de>
4412         PR c/34885
4413         * tree-inline.c (setup_one_parameter): Deal with mismatched
4414         types using a VIEW_CONVERT_EXPR.
4416 2008-01-21  Alon Dayan  <alond@il.ibm.com>
4417             Olga Golovanevsky  <olga@il.ibm.com>
4418         
4419         PR tree-optimization/34701
4420         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
4421         when the structure size is not a power of 2.
4423 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
4425         * doc/install.texi: Add doc for --enable-checking=df.
4426         
4427 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4429         PR rtl-optimization/34808
4430         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
4432 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
4434         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
4435         input.
4437 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
4439         PR rtl-optimization/26854
4440         PR rtl-optimization/34400
4441         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
4442         DF_RD->gen.
4443         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
4444         (df_rd_bb_info.expanded_lr_out): New.
4445         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
4446         * loop_iv.c (iv_analysis_loop_init): Ditto.
4447         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
4448         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
4449         Added code to allocate, initialize or free expanded_lr_out.
4450         (df_rd_bb_local_compute_process_def): Restructured to make
4451         more understandable.
4452         (df_rd_confluence_n): Add code to do nothing with fake edges and
4453         code to no apply invalidate_by_call sets if the sets are being trimmed.
4454         (df_lr_local_finalize): Renamed to df_lr_finalize.
4455         (df_live_local_finalize): Renamed to df_live_finalize.
4457 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
4459         PR target/34831
4460         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
4461         deciding whether to use reciprocal instructions.
4463 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
4465         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
4466         dwarf2out_note_section_used if cold_text_section is NULL.
4468 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
4470         PR gcov-profile/34610
4471         * tree-cfg.c (make_edges): Mark both outgoing edges from
4472         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
4473         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
4474         from OMP_FOR and OMP_CONTINUE outgoing edges.
4476         * tree-profile.c (tree_profiling): Return early if
4477         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
4478         at the end.
4479         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
4480         from cfun to child_cfun.
4481         * function.h (struct function): Add after_tree_profile bit.
4483 2008-01-19 Anatoly Sokolov <aesok@post.ru>
4485         * config/avr/avr.S (_exit): Disable interrupt.
4487 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
4488             Steven Bosscher  <stevenb.gcc@gmail.com>
4490         PR rtl-optimization/26854
4491         PR rtl-optimization/34400
4492         * df-problems.c (df_live_scratch): New scratch bitmap.
4493         (df_live_alloc): Allocate df_live_scratch when doing df_live.
4494         (df_live_reset): Clear the proper bitmaps.
4495         (df_live_bb_local_compute): Only process the artificial defs once
4496         since the order is not important.
4497         (df_live_init): Init the df_live sets only with the variables
4498         found live by df_lr.
4499         (df_live_transfer_function): Use the df_lr sets to prune the
4500         df_live sets as they are being computed.  
4501         (df_live_free): Free df_live_scratch.
4503 2008-01-18  Ian Lance Taylor  <iant@google.com>
4505         * common.opt: Add fmerge-debug-strings.
4506         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
4507         flag_merge_debug_strings rather than flag_merge_constants.
4508         * doc/invoke.texi (Option Summary): Mention
4509         -fmerge-debug-strings.
4510         (Debugging Options): Document -fmerge-debug-strings.
4512 2008-01-18  Ian Lance Taylor  <iant@google.com>
4514         PR c++/33407
4515         * tree.h (DECL_IS_OPERATOR_NEW): Define.
4516         (struct tree_function_decl): Add new field operator_new_flag.
4517         * tree-inline.c (expand_call_inline): When inlining a call to
4518         operator new, force the return value to go into a variable, and
4519         set DECL_NO_TBAA_P on that variable.
4520         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
4522 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
4524         PR debug/34484
4525         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
4526         DWARF2_DEBUGGING_INFO.
4527         (dwarf2out_note_section_used): Ditto.  Add prototype.
4528         (have_multiple_function_sections, text_section_used,
4529         cold_text_section_used, *cold_text_sections): Move declarations
4530         before their uses.
4532 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
4534         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
4535         field and add signal_ra.
4536         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
4537         assignments to frame state pc.  Move end of stack check after
4538         MD_FALLBACK_FRAME_STATE_FOR.
4539         (uw_update_context_1): Use frame state signal_regs if set, instead
4540         of checking signal_frame flag.
4541         (uw_update_context): Use frame state signal_ra if set.
4542         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
4543         * config/xtensa/linux-unwind.h: New file.
4545 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
4547         * modulo-sched.c (get_sched_window): Fix comment typo.
4549 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
4551         PR tree-optimization/34648
4552         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
4554 2008-01-17  Anatoly Sokolov <aesok@post.ru>
4556         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
4557         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
4559 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
4561         PR rtl-optimization/34400
4562         * df-core.c (df_worklist_dataflow_overeager,
4563         df_worklist_dataflow_doublequeue): New functions.
4564         (df_worklist_dataflow): Two different worklist solvers.
4565         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
4566         New param.
4568 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
4570         PR testsuite/34821
4571         * doc/invoke.texi: Document the dependence on pthread for fopenmp
4572         and ftree-parallelize-loops.
4574 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
4576         PR rtl-optimization/34826
4577         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
4579 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
4581         * global.c (find_reg): Mark the eh regs as used if necessary.
4582         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
4583         * ra.h (struct allocno): no_eh_reg field added.  Changed
4584         no_stack_reg type to bitfield.
4586 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4588         * tree.c (substitute_in_expr): Add missing 'break'.
4590 2008-01-17  Richard Guenther  <rguenther@suse.de>
4592         PR tree-optimization/34825
4593         * tree-ssa-math-opts.c (is_division_by): Do not recognize
4594         x / x as division to handle.
4596 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4598         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
4599         "-pthread" is specified.
4600         * pa-hpux11.h (LIB_SPEC): Likewise.
4602 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
4603             Peter Bergner  <bergner@vnet.ibm.com>
4605         PR rtl-optimization/33796
4606         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
4608 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4610         PR libgfortran/34699
4611         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
4612         static links.
4613         * pa-hpux10.h (LINK_SPEC): Likewise.
4614         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
4616 2008-01-16  Richard Guenther  <rguenther@suse.de>
4618         PR middle-end/32628
4619         * fold-const.c (fold_convert_const_int_from_int): Do not
4620         set overflow if that occured only because of a sign extension
4621         change when converting from/to a sizetype with the same
4622         precision and signedness.
4624 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
4626         PR debug/34249
4627         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
4628         location address to the correct place.  Update copyright year.
4630 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
4632         * lambda-code.c (lambda_transform_legal_p): Handle the case of
4633         no dependences in the dependence_relations vector.
4635 2008-01-16  Jan Hubicka  <jh@suse.cz>
4637         PR rtl-optimization/31396
4638         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
4639         * cfg.c (dump_reg_info): Print it.
4640         * regs.h (struct reg_info_t): add freq_calls_crossed.
4641         (REG_FREQ_CALLS_CROSSED): New macro.
4642         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
4643         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
4644         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
4645         regmove_optimize): Update call crossed frequencies.
4646         * local-alloc.c (struct qty): Add freq_calls_crossed.
4647         (alloc_qty): Copute freq_calls_crossed.
4648         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
4649         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
4650         * ra.h (struct allocno): Add freq_calls_crossed.
4652 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
4654         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
4655         libgomp when compiling with ftree-parallelize-loops.
4656         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
4658 2008-01-16  Richard Guenther  <rguenther@suse.de>
4660         PR tree-optimization/34769
4661         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
4662         * tree.c (int_cst_value): Instead make this function more
4663         permissive in what it accepts as valid input.  Document this
4664         function always sign-extends the value.
4666 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
4667             Richard Guenther  <rguenther@suse.de>
4669         PR c/34668
4670         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
4671         (gimple_fold_indirect_ref_rhs): ... this.
4672         (gimple_fold_indirect_ref): New function with foldings
4673         that preserve lvalueness.
4674         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
4675         * tree-flow.h (gimple_fold_indirect_ref): Declare.
4676         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
4677         to fold an INDIRECT_REF, fall back to the old use of
4678         fold_indirect_ref_1.
4680 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
4682         * tree-data-ref.c (subscript_dependence_tester_1): Call 
4683         free_conflict_function.
4684         (compute_self_dependence): Same.
4686 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
4688         PR debug/34249
4689         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
4690         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
4691         function global.
4692         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
4693         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
4694         for DWARF2_UNWIND_INFO targets.
4696 2008-01-16  Richard Guenther  <rguenther@suse.de>
4698         PR c/34768
4699         * c-typeck.c (common_pointer_type): Do not merge inconsistent
4700         type qualifiers for function types.
4702 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4704         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
4705         loop_iterator li from previous commit.
4707 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
4709         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
4711 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
4713         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
4714         (parallelize_loops): Don't parallelize irreducible components.
4716 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4718         PR c++/24924
4719         * c-opts (c_common_post_options): Do not enable CPP
4720         flag_pedantic_errors by default.
4721         
4722 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
4724         PR rtl-optimization/31944
4725         * cse.c (remove_pseudo_from_table): New function.
4726         (merge_equiv_classes): Use above function to remove pseudo-registers.
4727         (invalidate): Likewise.
4729 2008-01-13  Richard Guenther  <rguenther@suse.de>
4731         PR middle-end/34601
4732         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
4733         instead of TYPE_MODE to deal with calls from expand_one_error_var.
4735 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
4737         * gcse.c (cprop_jump): Call validate_unshare_change instead of
4738         validate_change to unshare the source of the PC set.
4740 2008-01-12  Jan Hubicka  <jh@suse.cz>
4742         PR middle-end/32135
4743         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
4744         references above array bounds.  This might trigger bounds checks for
4745         pointers to arrays.
4747 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
4749         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
4750         new_replaceable_dependencies.
4752 2008-01-12  Doug Kwan  <dougkwan@google.com>
4754         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
4755         instead of OPT_Wreturn_type in warning due to ignored return type
4756         qualifiers.
4757         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
4758         options included in -Wextra.
4759         * c.opt: New option -Wignored_qualifiers.
4760         * doc/invoke.texi (Warning Options, -Wextra): Add new option
4761         -Wignore_qualifiers.
4762         (-Wignored-qualifiers): Document.
4763         (-Wreturn-type): Remove description of functionality now handled
4764         by -Wignored-qualifiers.
4766 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
4768         PR ada/33788
4769         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
4770         NOP_EXPR if it is between integral types with the same precision.
4772 2008-01-12  Jan Hubicka  <jh@suse.cz>
4774         PR other/28023
4775         * invoke.texi (max-inline-recursive-depth): Fix default value.
4777 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
4779         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
4780         correct type.
4782 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
4783         
4784         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
4785         
4786 2008-01-11  James E. Wilson  <wilson@specifix.com>
4788         PR target/26015
4789         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
4791 2008-01-11  Anatoly Sokolov <aesok@post.ru>
4793         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
4794         save/restore frame pointer register and don't use 'call-prologues' 
4795         optimization in function with "OS_task" attribute.
4797 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
4799         PR middle-end/31309
4800         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
4801         when copying to memory.
4803 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
4805         PR rtl-optimization/30905
4806         * cfgcleanup.c: Include dce.h
4807         (crossjumps_occured): New global variable.
4808         (try_crossjump_bb): Exit loop after finding a fallthru edge.
4809         If something changed, set crossjumps_occured to true.
4810         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
4811         Don't add/remove fake edges to exit here...
4812         (cleanup_cfg): ...but do it here, when crossjumping.
4813         Run a fast DCE when successful crossjumps occured in the latest
4814         iteration of try_optimize_cfg.
4816 2008-01-11  Richard Guenther  <rguenther@suse.de>
4818         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
4819         (struct vn_unary_op_s): Likewise.
4820         (vn_reference_insert): Free old reference on hash collision.
4822 2008-01-10  Raksit Ashok  <raksit@google.com>
4824         PR rtl-optimization/27971
4825         * combine.c (find_split_point): Split PLUS expressions which are
4826         inside a MEM rtx, and whose first operand is complex.
4828 2008-01-10  DJ Delorie  <dj@redhat.com>
4830         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
4831         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
4832         (m32c_hard_regno_ok): Call the underlying function.
4834 2008-01-10  Richard Guenther  <rguenther@suse.de>
4836         PR middle-end/34683
4837         * tree-cfg.c (tree_merge_blocks): Do not go through the
4838         full-blown folding and stmt updating path if we just deal
4839         with virtual operands.
4840         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
4841         test for abnormal SSA_NAMEs.
4843 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4845         PR middle-end/34641
4846         * reload.c (push_reload): Add assertions.  All constants from
4847         reg_equiv_constant should have been used for replacing the respective
4848         pseudo earlier.
4849         (find_reloads_address): Invoke find_reloads_address_part for
4850         constant taken from the reg_equiv_constant array.
4852 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
4854         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
4855         field (valnum) the first in the struct.  Replace bools with
4856         unit bit fields.
4858 2008-01-10  Richard Guenther  <rguenther@suse.de>
4860         PR tree-optimization/34651
4861         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
4862         types and ordering for masking and converting.
4864 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
4866         PR tree-optimization/34017
4867         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
4868         also for PHI_NODE expressions.
4870 2008-01-09  Jan Hubicka  <jh@suse.cz>
4872         PR tree-optimization/34708
4873         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
4874         based on number of case labels.
4875         (init_inline_once): Remove switch_cost.
4876         * tree-inline.h (eni_weights_d): Remove switch_cost.
4878 2008-01-09  Richard Guenther  <rguenther@suse.de>
4879         Andrew Pinski  <andrew_pinski@playstation.sony.com>
4881         PR middle-end/30132
4882         * gimplify.c (gimplify_cond_expr): Do not create an addressable
4883         temporary if an rvalue is ok or an lvalue is not required.
4885 2008-01-09  Richard Guenther  <rguenther@suse.de>
4887         PR middle-end/34458
4888         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
4889         adjust return type.
4891 2008-01-09  Richard Guenther  <rguenther@suse.de>
4893         PR middle-end/34679
4894         * tree.c (host_integerp): Check for sizetype only if the
4895         type is an integer type.
4897 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
4899         PR debug/26364
4900         * opts.c (decode_options): Disable inlining of functions called
4901         once if not in unit-at-a-time mode.
4903 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
4905         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
4907 2008-01-08  Richard Guenther  <rguenther@suse.de>
4909         PR middle-end/31863
4910         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
4911         out early if the result will be unused.
4913 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
4915         PR target/34709
4916         Revert:
4918         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
4919         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
4920         for TARGET_RECIP.       
4921         
4922 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
4923         
4924         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
4925         for vectorization tuned.
4926         
4927 2008-01-08  Richard Guenther  <rguenther@suse.de>
4929         PR tree-optimization/34683
4930         * tree-ssa-operands.c (operand_build_cmp): Export.
4931         * tree-ssa-operands.h (operand_build_cmp): Declare.
4932         * tree-vn.c (vuses_compare): Remove.
4933         (sort_vuses): Use operand_build_cmp.
4934         (sort_vuses_heap): Likewise.
4935         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
4936         to re-use old VEC if available.  Do not sort already sorted VUSEs.
4937         (vdefs_to_vec): Do not sort already sorted VDEFs.
4939 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4941         PR middle-end/34694
4942         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
4944 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
4946         PR target/34702
4947         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
4948         limitations of reciprocal sequences on x86 targets.
4950 2008-01-08  Richard Guenther  <rguenther@suse.de>
4952         PR tree-optimization/34683
4953         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
4955 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
4957         PR target/34622
4958         * config/darwin.c (darwin_mergeable_string_section): Don't use
4959         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
4961 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
4963         PR target/34682
4964         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
4965         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
4966         predicates of op0 and op1 to register_operand.
4967         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
4968         expander using X87MODEF mode iterator.  Change predicates of
4969         op0 and op1 to register_operand.
4970         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
4971         corresponding patterns and macroize using MODEF macro.  Change
4972         predicates of op0 and op1 to register_operand and remove
4973         "m" constraint. Disparage "r" alternative with "!".
4974         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
4975         macroize using X87MODEF macro.  Change predicates of op0 and op1
4976         to register_operand and remove "m" constraint.  Disparage "r"
4977         alternative with "!".
4978         (absneg splitter with memory operands): Remove.
4979         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
4980         patterns and macroize using X87MODEF mode iterator.
4981         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
4982         Change predicate of op1 to register_operand.
4983         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
4984         for memory operands.
4986 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
4988         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
4990 2008-01-07  Richard Guenther  <rguenther@suse.de>
4992         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
4993         fields.
4995 2008-01-07  Richard Guenther  <rguenther@suse.de>
4997         PR tree-optimization/34683
4998         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
4999         VOPs of the needed size to save memory.  Use VEC_quick_push
5000         to save compile-time.
5001         (vdefs_to_vec): Likewise.
5003 2008-01-07  Sa Liu  <saliu@de.ibm.com>
5005         * config/spu/spu.md (divdf3): Genetate inline code for double
5006         division.  The implementation doesn't handle INF or NAN, therefore it
5007         only applies when -ffinite-math-only is given.
5009 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
5011         PR libstdc++/34680
5012         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
5013         * doc/cpp.texi ([Common Predefined Macros]): Document.
5015 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
5017         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
5018         order to use commutative addition instead of subtraction.
5020 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5021             Mircea Namolaru  <namolaru@il.ibm.com>
5022             Vladimir Yanovsky  <yanov@il.ibm.com>
5023             Revital Eres  <eres@il.ibm.com>
5025         PR tree-optimization/34263
5026         * tree-outof-ssa.c (process_single_block_loop_latch,
5027         contains_tree_r): New functions.
5028         (analyze_edges_for_bb): Call process_single_block_loop_latch
5029         function to empty single-basic-block latch block if possible.
5031 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
5033         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
5034         for TARGET_RECIP.
5035         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
5037 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
5039         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
5041 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
5043         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
5045 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5047         PR tree-optimization/34618
5048         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
5049         flag from T.
5051 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
5053         PR target/34673
5054         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
5055         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
5056         Update copyright year.
5058         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
5059         Update copyright year.
5060         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
5061         using NR fixup.
5063 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
5065         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
5066         edge does not point to current bb before changing need_assert.
5068 2008-01-04  Richard Guenther  <rguenther@suse.de>
5070         PR middle-end/34029
5071         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
5072         for verifying purposes if they are is_gimple_min_invariant.
5074 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
5076         PR tree-optimization/34448
5077         PR tree-optimization/34465
5078         * gimplify.c (gimplify_init_constructor): Add new parameter
5079         notify_temp_creation.  Use it.
5080         (gimplify_modify_expr_rhs): Take volatiles into account when
5081         optimizing constructors.
5082         Do not optimize constructors if gimplify_init_constructor will dump to
5083         memory.
5084         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
5085         * gcc.c-torture/compile/pr34448.c: New.
5087 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
5089         PR gcov-profile/34609
5090         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
5091         return_slot if result is TREE_ADDRESSABLE.
5093 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
5095         * config/mips/mips.md (sqrt_condition): Tweak comment.
5096         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
5098 2008-01-03  Tom Tromey  <tromey@redhat.com>
5100         PR c/34457
5101         * c-common.c (c_type_hash): Handle VLAs.
5103 2008-01-03  Jan Hubicka  <jh@suse.cz>
5105         PR tree-optimization/31081
5106         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
5107         0 when inlining and not inlining to first basic block.
5108         (remap_decl): When var is initialized to 0, don't set default_def.
5109         (expand_call_inline): Set entry_bb.
5110         * tree-inline.h (copy_body_data): Add entry_bb.
5112 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5114         PR c++/34619
5115         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
5116         before returning.
5118         PR tree-optimization/29484
5119         * tree-inline.c (inline_forbidden_p_2): New function.
5120         (inline_forbidden_p): Disallow inlining if some static var
5121         has an address of a local LABEL_DECL in its initializer.
5122         * doc/extend.texi (Labels as Values): Document &&foo behaviour
5123         vs. inlining.
5125 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
5127         PR tree-optimization/34635
5128         * tree-data-ref.c (add_other_self_distances): Make sure that the
5129         evolution step is constant.
5131 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5133         PR middle-end/34608
5134         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
5136 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
5138         * tree-sra.c (scalarize_init): Insert the generate_element_init
5139         statements after the generate_element_zero statements.
5141 2008-01-02  Richard Guenther  <rguenther@suse.de>
5143         PR middle-end/34093
5144         PR middle-end/31976
5145         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
5146         for very large number of operands instead of ICEing.
5148 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
5150         PR target/34013
5151         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
5152         while stack probing.
5154 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
5156         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
5157         in C++0x mode.
5159 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
5161         PR libmudflap/26442
5162         * tree-mudflap.c (mx_register_decls): Guard warning by
5163         !DECL_ARTIFICIAL check.
5165 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
5167         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
5168         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
5169         sse5_perm<mode>): Fix constraints.