OSDN Git Service

16590e4a9327f4c43cc545694044c99bbe0fd2eb
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-03-28  Rafael Espindola  <espindola@google.com>
2
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.
25
26 2008-03-28  Richard Guenther  <rguenther@suse.de>
27
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.
53
54 2008-03-28  Nick Clifton  <nickc@redhat.com>
55
56         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
57         Return GENERAL_REGS for stack adjustment reloads.
58
59 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
60
61         PR target/31334
62         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
63         const_vector when all the vectors are constant.
64
65 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
66
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.
73
74 2008-03-27  Tom Tromey  <tromey@redhat.com>
75
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.
91
92 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
93
94         PR target/35657
95         * config/i386/i386.c (ix86_function_arg_boundary): Align
96         decimal floating point to its natural boundary.
97
98 2008-03-27  Richard Guenther  <rguenther@suse.de>
99
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.
104
105 2008-03-27  Richard Guenther  <rguenther@suse.de>
106
107         PR c/32511
108         * c-common.c (handle_weak_attribute): Reject combination of
109         weak and inline.
110
111 2008-03-27  Richard Guenther  <rguenther@suse.de>
112
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.
117
118 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
119
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.
164
165 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
166
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.
174
175         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
176         * config/t-openbsd-thread: Remove commented out lines.
177         
178         * config/x-interix: Remove.
179
180         * config/m68hc11/t-m68hc11-gas: Rename to...
181         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
182
183         * config/mcore/t-mcore: Remove T_CFLAGS.
184         * config/mcore/t-mcore-pe: Likewise.
185
186 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
187
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.
193
194 2008-03-27  Richard Guenther  <rguenther@suse.de>
195
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.
202
203 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
204
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 .
208
209 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
210
211         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
212
213 2008-03-26  Andreas Schwab  <schwab@suse.de>
214
215         * doc/invoke.texi: Fix use of @item vs. @itemx.
216
217 2008-03-26  Tom Tromey  <tromey@redhat.com>
218
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.
227
228 2008-03-26  Richard Guenther  <rguenther@suse.de>
229
230         Revert
231         2008-03-26  Richard Guenther  <rguenther@suse.de>
232
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.
236
237 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
238
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.
252
253 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
254
255         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
256
257         * config/i386/i386.c (ix86_function_arg_boundary): Check
258         BIGGEST_ALIGNMENT instead of 128.
259         (setup_incoming_varargs_64): Likewise.
260
261 2008-03-26  Tom Tromey  <tromey@redhat.com>
262
263         * Makefile.in (DEPFILES): Add missing '/'.
264
265 2008-03-26  Richard Guenther  <rguenther@suse.de>
266
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.
270
271 2008-03-26  Nick Clifton  <nickc@redhat.com>
272
273         PR target/31232
274         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
275         not allow INT+INT as a legitimate addressing mode.
276
277 2008-03-26  Richard Guenther  <rguenther@suse.de>
278
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.
284
285 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
286
287         PR target/31558
288         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
289         error_mark_node's.
290
291 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
292
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.
329
330 2008-03-25  Tom Tromey  <tromey@redhat.com>
331
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.
341
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>
350
351         * configure: Rebuilt.
352         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
353         Makefile.
354
355 2008-03-25  Tom Tromey  <tromey@redhat.com>
356
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.
446
447 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
448
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.
451
452 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
453
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.
457
458 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
459
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.
462
463 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
464
465         * config/sh/sh.md (prefetch): Add condition for SH2A target.
466         (prefetch_sh2a): New.   
467
468 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
469             Naveen.H.S  <naveen.hs@kpitcummins.com>
470
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.
474
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>
478
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.
505
506 2008-03-24  Richard Guenther  <rguenther@suse.de>
507
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.
514
515 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
516
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>
521
522         * gthr-vxworks.h (UNUSED): Define.
523
524 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
525
526         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
527         CX_REG.
528
529 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
530
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>
535
536         Revert:
537         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
538
539         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
540         32bit host.
541
542         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
543
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.
548
549         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
550
551         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
552         to their natural alignment to avoid store forwarding stalls.
553
554 2008-03-22  Richard Guenther  <rguenther@suse.de>
555
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.
561
562 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
563
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).
580
581 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
582
583         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
584         to their natural alignment to avoid store forwarding stalls.
585
586 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
587
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.
595
596 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
597
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.
607
608 2008-03-21  Martin Jambor  <mjambor@suse.cz>
609
610         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
611         reference dumps if ddr is NULL or dependence is unknown.
612
613 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
614
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.
620
621 2008-03-21  Richard Guenther  <rguenther@suse.de>
622
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.
630
631 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
632
633         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
634         as 'delete_unused' argument.
635
636 2008-03-20  Richard Guenther  <rguenther@suse.de>
637
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.
645
646 2008-03-20  Paul Brook  <paul@codesourcery.com>
647
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.
655
656 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
657
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.
663
664 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
665
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.
687
688 2008-03-20  Ira Rosen  <irar@il.ibm.com>
689
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.
693
694 2008-03-20  Ben Elliston  <bje@au.ibm.com>
695
696         * regmove.c (try_auto_increment): Fix spelling error in comment.
697         * final.c (final_scan_insn): Likewise.
698
699 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
700
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.
707
708 2008-03-19  Michael Matz  <matz@suse.de>
709
710         PR middle-end/35616
711         * calls.c (expand_call): Check overlap of arguments with call
712         address for sibcalls.
713
714 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
715
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.
720
721 2008-03-19  Jan Hubicka  <jh@suse.cz>
722
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.
839
840 2008-03-19  Richard Guenther  <rguenther@suse.de>
841
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.
848
849 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
850
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.
854
855 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
856
857         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
858
859 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
860
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.
871
872 2008-03-18  Richard Guenther  <rguenther@suse.de>
873
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.
884
885 2008-03-18  Jan Hubicka  <jh@suse.cz>
886
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.
907
908 2008-03-18  Michael Matz  <matz@suse.de>
909
910         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
911
912 2008-03-18  Richard Guenther  <rguenther@suse.de>
913
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.
924
925 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
926
927         PR middle-end/35611
928         * gimplify.c (gimplify_expr): Gimplify second operand of
929         OMP_ATOMIC_LOAD.
930
931 2008-03-17  Richard Guenther  <rguenther@suse.de>
932
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].
939
940 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
941
942         PR debug/31510
943         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
944         emulated thread local variables.
945
946 2008-03-16  Richard Guenther  <rguenther@suse.de>
947
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.
951
952 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
953
954         * doc/extend.texi (Alignment): Say that the ABI controls
955         the __alignof__ for non-strict-alignment targets rather
956         than being a recommendation.
957
958 2008-03-15  Paul Brook  <paul@codesourcery.com>
959
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.
963
964 2008-03-15  Paul Brook  <paul@codesourcery.com>
965
966         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
967         extension instructions.
968
969 2008-03-15  Richard Guenther  <rguenther@suse.de>
970
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.
977
978 2008-03-15  Paul Brook  <paul@codesourcery.com>
979
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.
983
984 2008-03-15  Richard Guenther  <rguenther@suse.de>
985
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.
993
994 2008-03-15  Richard Guenther  <rguenther@suse.de>
995
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.
1004
1005 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
1006             Anatoly Sokolov <aesok@post.ru>
1007
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.
1040
1041 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
1042
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.
1054
1055         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
1056         __builtin_ia32_pmuludq]: Fix the mode of return value.
1057
1058 2008-03-15  Richard Guenther  <rguenther@suse.de>
1059
1060         PR middle-end/35595
1061         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
1062         being a PHI_NODE.
1063
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.
1073
1074 2008-03-14  Richard Guenther  <rguenther@suse.de>
1075
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.
1090
1091 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
1092
1093         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
1094         archive and Perzl.  Update The Written Word listing.
1095
1096 2008-03-14  Richard Guenther  <rguenther@suse.de>
1097
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.
1137
1138 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1139
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.
1146
1147 2008-03-13  Alon Dayan  <alond@il.ibm.com>
1148             Olga Golovanevsky  <olga@il.ibm.com>
1149
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.
1153
1154 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1155
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.
1169
1170 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1171
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.
1176
1177 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
1178
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.
1184
1185 2008-03-12  Paul Brook  <paul@codesourcery.com>
1186
1187         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
1188
1189 2008-03-12  Paul Brook  <paul@codesourcery.com>
1190
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.
1198
1199 2008-03-12  Paul Brook  <paul@codesourcery.com>
1200
1201         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
1202
1203 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
1204
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.
1215
1216 2008-03-12  Paul Brook  <paul@codesourcery.com>
1217
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.
1234
1235 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
1236
1237         PR tree-opt/35422
1238         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
1239         conversion to the operands of a multiplication.
1240
1241 2008-03-12  Richard Guenther  <rguenther@suse.de>
1242
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.
1249
1250 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1251
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.
1260
1261 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
1262             Ira Rosen  <irar@il.ibm.com>
1263
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().
1277
1278 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1279
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.
1286
1287 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1288
1289         * ipa-reference.c (static_execute): Remove module_statics_const and
1290         associated setting code.
1291
1292 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
1293
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.
1303
1304 2008-03-11  Paul Brook  <paul@codesourcery.com>
1305             Vladimir Prus  <vladimir@codesourcery.com>
1306
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.
1319
1320 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
1321
1322         PR rtl-optimization/35281
1323         * expr.c (convert_move): Use a new pseudo for the intermediate
1324         from_mode->word_mode result.
1325
1326 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
1327
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.
1331
1332 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
1333
1334         PR middle-end/35526
1335         * expr.c (store_expr): Call emit_block_move if the mode
1336         of "temp" RTX is BLKmode.
1337
1338 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1339             Richard Guenther  <rguenther@suse.de>
1340
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.
1359
1360 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
1361
1362         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
1363         Remove commutativity hint.
1364
1365 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
1366
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.
1371
1372         PR middle-end/35099
1373         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
1374
1375 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
1376
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.
1380
1381 2008-03-10  Richard Guenther  <rguenther@suse.de>
1382
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.
1396
1397 2008-03-10  Paul Brook  <paul@codesourcery.com>
1398
1399         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
1400         to avoid conflicts.
1401
1402 2008-03-10  Paul Brook  <paul@codesourcery.com>
1403             Mark Shinwell  <shinwell@codesourcery.com>
1404
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.
1413
1414 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
1415
1416         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
1417
1418 2008-03-10  Richard Guenther  <rguenther@suse.de>
1419
1420         * tree-ssa-pre.c (get_sccvn_value): Simplify.
1421         (compute_avail): Do not add stmt uses to AVAIL_OUT.
1422
1423 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
1424
1425         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
1426         Set default to true.
1427
1428 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1429
1430         * c.opt (Wsynth): Deprecate.
1431         * doc/invoke.texi (Option Summary, Warning Options): Document
1432         -Wno-format-contains-nul.
1433
1434 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
1435
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.
1439
1440 2008-03-09  Ira Rosen  <irar@il.ibm.com>
1441
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.
1450
1451 2008-03-08  Richard Guenther  <rguenther@suse.de>
1452
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.
1462
1463 2008-03-08  Richard Guenther  <rguenther@suse.de>
1464
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.
1495
1496 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
1497
1498         PR target/35498
1499         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
1500         wdst back after sync_compare_and_swapqhi_internal.
1501
1502 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
1503
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.
1570
1571 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
1572
1573         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
1574
1575 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
1576
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.
1581
1582 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
1583
1584         * c-common.c (vector_types_convertible_p): Call langhook
1585         instead of comptypes.
1586
1587 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1588
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.
1593
1594 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
1595
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.
1601
1602 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1603
1604         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
1605         for the same VAR_DECL.
1606
1607 2008-03-06  Tom Tromey  <tromey@redhat.com>
1608
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.
1617
1618 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
1619
1620         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
1621         word-extractions out of a multi-word object.
1622
1623 2008-03-06  Richard Guenther  <rguenther@suse.de>
1624
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.
1641
1642 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1643
1644         * cse.c (cse_extended_basic_block): Invalidate artificial defs
1645         at bb start.
1646
1647 2008-03-06  Richard Guenther  <rguenther@suse.de>
1648
1649         * alias.c (struct alias_set_entry): Move has_zero_child field
1650         to pack with alias_set.
1651
1652 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1653
1654         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1655         32bit host.
1656
1657 2008-03-05  Ian Lance Taylor  <iant@google.com>
1658
1659         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
1660
1661 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
1662
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>
1696
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.
1702
1703         * tree.h (get_inner_reference, handled_component_p): Update
1704         comments.
1705
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.
1714
1715 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
1716
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_*.
1740
1741 2008-03-05  Richard Guenther  <rguenther@suse.de>
1742
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.
1747
1748 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
1749
1750         * gthr-rtems.h: Implement __gthread_mutex_destroy.
1751
1752 2008-03-05  Richard Guenther  <rguenther@suse.de>
1753
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.
1766
1767 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
1768
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.
1778
1779 2008-03-04  Geoff Keating  <geoffk@apple.com>
1780
1781         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
1782         declaration and code.
1783         (tree_invalid_nonnegative_warnv_p): Likewise.
1784
1785 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
1786
1787         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
1788         examples.  Truncate option-names then causing overfull hbox.
1789
1790 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1791
1792         PR target/35222
1793         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
1794         on hpux10.
1795         * configure: Rebuilt.
1796
1797 2008-03-04  Rafael Espindola  <espindola@google.com>
1798
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.
1805
1806 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1807
1808         PR 28322
1809         * opts.c (handle_option): Postpone 'unknown option' errors only for
1810         warning options.
1811
1812 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
1813
1814         PR target/35453
1815         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
1816         (_SIDD_XXX): This.
1817
1818 2008-03-04  Rafael Espindola  <espindola@google.com>
1819
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.
1824
1825 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
1826
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.
1831
1832 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
1833
1834         * config/i386/i386.c (override_options): Force
1835         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
1836
1837 2008-03-04  Jan Hubicka  <jh@suse.cz>
1838
1839         PR c++/35262
1840         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
1841         in last commit.
1842
1843 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1844
1845         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
1846         label to probe the stack.
1847
1848 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1849
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.
1855
1856 2008-03-03  Jan Hubicka  <jh@suse.cz>
1857
1858         PR c++/35262
1859         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
1860         aggressive on inlining cold calls.
1861
1862 2008-03-03  Richard Guenther  <rguenther@suse.de>
1863
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.
1873
1874 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
1875
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.
1881
1882 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
1883
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.
1890
1891 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1892
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.
1910
1911 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
1912
1913         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
1914         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
1915         __absvsi2, __absvDI2): Use unsigned arithmetic.
1916
1917 2008-03-02  Andi Kleen  <ak@suse.de>
1918             Richard Guenther  <rguenther@suse.de>
1919
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.
1927
1928 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1929
1930         * ifcvt.c (noce_process_if_block): Try to handle only the then
1931         block if the else block exists but isn't suitable.
1932
1933 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1934
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.
1939
1940 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1941
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.
1959
1960 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1961
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.
1970
1971 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1972
1973         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
1974
1975 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1976
1977         * tree-flow-inline.h (next_readonly_imm_use): Return
1978         NULL_USE_OPERAND_P after the end.
1979
1980 2008-03-01  Richard Guenther  <rguenther@suse.de>
1981
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.
1986
1987 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1988
1989         * fold-const.c (fold_convertible_p): Correct the logic to follow
1990         that in fold_convert().
1991
1992 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
1993
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.
1997
1998 2008-02-29  Tom Tromey  <tromey@redhat.com>
1999
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.
2014
2015 2008-02-29  Paul Brook  <paul@codesourcery.com>
2016
2017         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
2018
2019 2008-02-29  Paul Brook  <paul@codesourcery.com>
2020
2021         * config/arm/ieee754-df.S (muldf3): Use RET macros.
2022
2023 2008-02-29  Richard Guenther  <rguenther@suse.de>
2024
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.
2031
2032 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2033
2034         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
2035         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2036
2037         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
2038
2039 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
2040
2041         * tree-loop-linear.c (try_interchange_loops): Compare memory access
2042         strides against cache sizes.
2043
2044 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2045
2046         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
2047         constant to fpul.
2048
2049 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
2050
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.
2056
2057 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
2058
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.
2064
2065 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
2066
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.
2121
2122 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
2123
2124         PR target/33963
2125         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
2126         other than structures and unions.
2127
2128 2008-02-28  Richard Guenther  <rguenther@suse.de>
2129
2130         Revert:
2131         2008-02-26  Richard Guenther  <rguenther@suse.de>
2132
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.
2149
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.
2190
2191 2008-02-27  David Daney  <ddaney@avtrex.com>
2192
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.
2199
2200 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
2201
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.
2208
2209 2008-02-27  Tom Tromey  <tromey@redhat.com>
2210
2211         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
2212         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
2213
2214 2008-02-27  Jan Beulich  <jbeulich@novell.com>
2215
2216         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
2217         update the respective field on newdecl.
2218
2219 2008-02-27  Revital Eres  <eres@il.ibm.com>
2220
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.
2227
2228 2008-02-27  Richard Guenther  <rguenther@suse.de>
2229
2230         PR middle-end/35390
2231         * fold-const.c (fold_unary): Return the correct argument,
2232         converted to the result type.
2233
2234 2008-02-27  Richard Guenther  <rguenther@suse.de>
2235
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.
2242
2243 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
2244
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.
2261
2262 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2263
2264         PR c/28800
2265         * c-parser.c (c_parser_translation_unit): Warn for empty
2266         translation unit, not empty source file.
2267
2268 2008-02-26  Paul Brook  <paul@codesourcery.com>
2269
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.
2288
2289 2008-02-27  Ben Elliston  <bje@au.ibm.com>
2290
2291         * config/rs6000/rs6000.c: Annotate cache line size field in all
2292         instances of struct processor_costs.
2293
2294 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
2295
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.
2312
2313 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
2314
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.
2318
2319 2008-02-26  Jason Merrill  <jason@redhat.com>
2320
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.
2324
2325 2008-02-26  Tom Tromey  <tromey@redhat.com>
2326
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.
2408
2409 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2410
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>
2418
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.
2435
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.
2476
2477 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2478
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>
2487
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>
2498
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.
2508
2509 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2510
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>
2521
2522         * config/mips/mips.md (loadgp_blockage, blockage): Change type
2523         to "ghost".
2524
2525 2008-02-25  Richard Guenther  <rguenther@suse.de>
2526
2527         Revert:
2528         2008-02-25  Richard Guenther  <rguenther@suse.de>
2529
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.
2544
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.
2585
2586 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2587
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.
2592
2593 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2594
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>
2600
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.
2606
2607 2008-02-25  Richard Guenther  <rguenther@suse.de>
2608
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.
2623
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.
2664
2665 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
2666
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.
2671
2672 2008-02-25  Jan Beulich  <jbeulich@novell.com>
2673
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.
2690
2691 2008-02-25  Ben Elliston  <bje@au.ibm.com>
2692
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>
2703
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.
2709
2710 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
2711             Revital Eres  <eres@il.ibm.com>
2712
2713         * modulo-sched.c (calculate_must_precede_follow): Address TODO
2714         regarding the order of two dependent insns in the same row.
2715
2716 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
2717
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.
2720
2721 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
2722
2723         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
2724         e300c2 and e300c3.
2725
2726 2008-02-24  Diego Novillo  <dnovillo@google.com>
2727
2728         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
2729
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.
2736
2737 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
2738
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.
2752
2753 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
2754
2755         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
2756         instead of TARGET_STRICT_ALIGN.
2757
2758 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
2759
2760         * explow.c (memory_address): Assert that the generated address is
2761         valid.
2762
2763 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2764
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.
2773
2774 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2775
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).
2779
2780 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2781
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.
2785
2786 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
2787
2788         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
2789
2790 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
2791
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.
2799
2800 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2801
2802         PR documentation/31569
2803         * doc/install.texi2html: Use makeinfo --no-number-sections.
2804
2805 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2806
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.
2810
2811 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2812
2813         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
2814         strings when optimizing for size, unless the target cares about
2815         alignment.
2816
2817 2008-02-22  Tom Tromey  <tromey@redhat.com>
2818
2819         * regclass.c (current_pass): Remove declaration.
2820
2821 2008-02-22  Anatoly Sokolov <aesok@post.ru>
2822
2823         * config/avr/libgcc.S (__RAMPZ__): Define.
2824         (__do_copy_data): Add for devices with 128KB code memory.
2825
2826 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2827
2828         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2829         Use spe_abi.
2830         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2831
2832 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
2833
2834         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
2835         GENNONACR_REGS.
2836
2837 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2838
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.
2842
2843 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
2844
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.
2855
2856 2008-02-22  Tomas Bily  <tbily@suse.cz>
2857
2858         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
2859
2860 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2861
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.
2866
2867 2008-02-21  Jan Hubicka  <jh@suse.cz>
2868
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.
2872
2873 2008-02-21  Michael Matz  <matz@suse.de>
2874
2875         PR target/35264
2876         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
2877
2878 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
2879
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.
2896
2897 2008-02-21  Richard Guenther  <rguenther@suse.de>
2898
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.
2908
2909 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2910
2911         PR target/35225
2912         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
2913
2914 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2915
2916         PR target/35190
2917         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
2918
2919         * config/sh/sh.c (find_barrier): Don't go past
2920         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
2921
2922 2008-02-20  DJ Delorie  <dj@redhat.com>
2923
2924         * config/h8300/h8300.md (insv): Force source operand to be a register.
2925
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>
2930
2931         * doc/invoke.texi (Warning Options): Add new option
2932         -Wframe-larger-than=.
2933         (-Wframe-larger-than): Document.
2934
2935         * flags.h (warn_frame_larger_than, frame_larger_than_size):
2936         Add declarations for new option variables.
2937
2938         * final.c (final_start_function): Check the frame size
2939         before emission and issue a Wframe-larger-than warning.
2940
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_.
2944
2945         * common.opt (Wframe-larger-than=): New option.
2946
2947 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
2948
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.
2957
2958 2008-02-20  Richard Guenther  <rguenther@suse.de>
2959
2960         PR middle-end/35265
2961         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
2962         be happy with INTEGRAL_TYPE_P.
2963
2964 2008-02-20  Richard Guenther  <rguenther@suse.de>
2965
2966         * fold-const.c (split_tree): Associate floatig-point expressions
2967         if flag_associative_math is set.
2968
2969 2008-02-20  Richard Guenther  <rguenther@suse.de>
2970
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.
2975
2976 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
2977
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>
2983
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.
3031
3032 2008-02-20  Ira Rosen  <irar@il.ibm.com>
3033
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.
3037
3038 2008-02-19  Jan Hubicka  <jh@suse.cz>
3039
3040         * predict.c (tree_bb_level_predictions): Remove variable next
3041         mistakely introduced by previous commit.
3042
3043 2008-02-19  Jan Hubicka  <jh@suse.cz>
3044
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.
3048
3049 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3050
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.
3057
3058 2008-02-19  Jan Hubicka  <jh@suse.cz>
3059
3060         PR rtl-optimization/34408
3061         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
3062         invalid sharing.
3063
3064 2008-02-19  Jan Hubicka  <jh@suse.cz>
3065
3066         PR middle-end/28779
3067         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
3068         call_expr.
3069
3070 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
3071
3072         PR Ada/35186
3073         * config/i386/i386-modes.def: Revert the last DI alignment
3074         change until Ada people can look into it.
3075
3076 2008-02-19  Nick Clifton  <nickc@redhat.com>
3077
3078         * opts.c (print_specific_help): Fix typo in --help text.
3079
3080 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
3081
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.
3085
3086 2008-02-19  Richard Guenther  <rguenther@suse.de>
3087
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.
3091
3092 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3093
3094         * c-common.c (warn_for_collisions_1): Use appropriate option when
3095         warning.
3096
3097 2008-02-19  Nick Clifton  <nickc@redhat.com>
3098
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.
3113
3114 2008-02-19  Revital Eres  <eres@il.ibm.com> 
3115
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.
3120
3121 2008-02-19  Christian Bruel  <christian.bruel@st.com>
3122             Zdenek Dvorak  <ook@ucw.cz>
3123
3124         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
3125
3126 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
3127
3128         PR target/33555
3129         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
3130         (*x86_movdicc_0_m1_se): Ditto.
3131
3132 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
3133
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.
3138
3139 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
3140
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.
3154
3155 2008-02-19  Paul Brook  <paul@codesourcery.com>
3156
3157         PR target/35071
3158         * config/arm/ieee754-df.S: Fix do_it typo.
3159         * config/arm/ieee754-sf.S: Fix do_it typo.
3160
3161 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3162
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.
3190
3191 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3192
3193         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3194         32bit host.
3195
3196 2008-02-18  Joey Ye  <joey.ye@intel.com>
3197
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.
3201
3202 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
3203
3204         * BASE-VER: Set to 4.4.0.
3205
3206 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3207
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.
3220
3221 2008-02-17  Richard Guenther  <rguenther@suse.de>
3222
3223         PR middle-end/35227
3224         * tree-complex.c (init_parameter_lattice_values): Handle parameters
3225         without default definition.
3226
3227 2008-02-17  Richard Guenther  <rguenther@suse.de>
3228
3229         PR tree-optimization/35231
3230         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
3231         if A | B != 1.
3232
3233 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
3234
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.
3239
3240 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3241
3242         PR c/28368
3243         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
3244
3245 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
3246
3247         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
3248         multilibs.
3249
3250 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3251
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.
3262
3263 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3264
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.
3270
3271 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3272
3273         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
3274         libgcc_cmp_return mode.
3275
3276 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3277
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.
3281
3282 2008-02-15  Richard Guenther  <rguenther@suse.de>
3283             Zdenek Dvorak  <ook@ucw.cz>
3284
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.
3291
3292 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
3293
3294         PR target/35088
3295         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
3296
3297 2008-02-15  Jan Hubicka  <jh@suse.cz>
3298
3299         PR middle-end/35149
3300         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
3301
3302 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3303
3304         PR middle-end/34621
3305         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
3306         when calculating alignment_pad.
3307
3308 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3309
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.
3314
3315 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
3316
3317         PR preprocessor/35061
3318         * c-pragma.c (handle_pragma_pop_macro): Check that
3319         pushed_macro_table has been allocated.
3320
3321 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3322
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.
3331
3332 2008-02-14  Michael Matz  <matz@suse.de>
3333
3334         PR target/34930
3335         * function.c (instantiate_virtual_regs_in_insn): Reload address
3336         before falling back to reloading the whole operand.
3337
3338 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
3339
3340         * config/s390/s390.c (s390_mainpool_start): Emit the pool
3341         before the first section switch note.
3342
3343 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3344
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.
3366
3367         * doc/extend.texi: Use @: or add comma where appropriate.
3368         * doc/invoke.texi: Likewise.
3369         * doc/tm.texi: Likewise.
3370
3371 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
3372
3373         PR target/34393
3374         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
3375         to a reg.
3376
3377 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
3378
3379         * doc/md.texi (clz, ctz): Add reference.
3380         * doc/rtl.texi (clz, ctz): Likewise.
3381
3382 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3383
3384         PR other/35148
3385         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
3386         srcdir.
3387
3388 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
3389
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.
3398
3399 2008-02-13  Michael Matz  <matz@suse.de>
3400
3401         PR debug/35065
3402         * var-tracking.c (clobber_variable_part): Correctly traverse the
3403         list.
3404
3405 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3406
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>
3414
3415         PR tree-optimization/35171
3416         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
3417         default defs.
3418
3419 2008-02-12  Richard Guenther  <rguenther@suse.de>
3420
3421         PR middle-end/35163
3422         * fold-const.c (fold_widened_comparison): Use get_unwidened in
3423         value-preserving mode.  Disallow final truncation.
3424
3425 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3426
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.
3431
3432 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
3433
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.
3440
3441         PR inline-asm/35160
3442         * function.c (match_asm_constraints_1): Don't replace the same input
3443         multiple times.
3444
3445 2008-02-12  Anatoly Sokolov <aesok@post.ru>
3446
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.
3451
3452 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
3453
3454         * config/i386/cygwin.asm: (__alloca): Correct calling
3455         convention and alignment.
3456         (__chkstk): Force 8 byte stack alignment.
3457
3458 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
3459             Richard Guenther  <rguenther@suse.de>
3460
3461         PR tree-optimization/33992
3462         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
3463         the zero we compare against.
3464
3465 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
3466
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.
3471
3472 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3473
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.
3478
3479 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3480
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)).
3484
3485 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
3486
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.
3493
3494 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3495
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.
3499
3500 2008-02-08  Sa Liu  <saliu@de.ibm.com>
3501
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.
3505
3506 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
3507
3508         * doc/extend.texi (Function Attributes) <noinline>: Mention
3509         asm ("") as method to keep calls.
3510
3511 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3512
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>
3520
3521         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
3522
3523 2008-02-07  Richard Henderson  <rth@redhat.com>
3524
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.
3529
3530 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
3531
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.
3536
3537 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3538
3539         PR other/35107
3540         * Makefile.in (LIBS): Remove $(GMPLIBS).
3541         (cc1-dummy, cc1): Add $(GMPLIBS).
3542
3543 2008-02-06  Jan Hubicka  <jh@suse.cz>
3544
3545         PR target/23322
3546         * i386.md (moddf_integer): Do not produce partial memory stalls for
3547         targets where it hurts.
3548
3549 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
3550
3551         PR target/35083
3552         * optabs.c (expand_float): Do not check for decimal modes when
3553         expanding unsigned integer through signed conversion.
3554
3555 2008-02-06  Nick Clifton  <nickc@redhat.com>
3556
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.
3561
3562 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3563
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.
3569
3570 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3571
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}.
3579
3580 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
3581
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.
3586
3587 2008-02-05  Diego Novillo  <dnovillo@google.com>
3588
3589         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
3590
3591         PR 33738
3592         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
3593
3594 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3595
3596         PR other/35070
3597         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
3598
3599 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
3600
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.
3606
3607 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
3608
3609         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
3610
3611 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
3612
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.
3616
3617 2008-02-04  Diego Novillo  <dnovillo@google.com>
3618
3619         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
3620
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.
3625
3626 2008-02-04  Richard Guenther  <rguenther@suse.de>
3627
3628         PR middle-end/33631
3629         * expr.c (count_type_elements): Give for unions instead of
3630         guessing.
3631
3632 2008-02-04  Richard Guenther  <rguenther@suse.de>
3633
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.
3637
3638 2008-02-03  Jason Merrill  <jason@redhat.com>
3639
3640         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
3641
3642 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3643
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.
3649
3650 2008-02-02  Michael Matz  <matz@suse.de>
3651
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.
3659
3660 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
3661
3662         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
3663
3664 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
3665
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.
3671
3672 2008-02-01  Roger Sayle  <roger@eyesopen.com>
3673
3674         PR bootstrap/33781
3675         * configure.ac (--enable-fixed-point): Disable unless explicitly
3676         requested on IRIX.
3677         * configure: Regenerate.
3678
3679 2008-02-01  Richard Guenther  <rguenther@suse.de>
3680
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.
3684
3685 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
3686             Mark Mitchell  <mark@codesourcery.com>
3687             Ben Elliston  <bje@au.ibm.com>
3688
3689         PR c/29326
3690         * doc/extend.texi (Other Builtins): Document.
3691
3692 2008-01-31  Tom Browder <tom.browder@gmail.com>
3693
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.
3703
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.
3711
3712 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
3713
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.
3720
3721 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3722
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>
3729
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.
3736
3737 2008-01-30  Richard Henderson  <rth@redhat.com>
3738
3739         PR c/34993
3740         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
3741         for unbounded arrays.
3742
3743 2008-01-30  Silvius Rus  <rus@google.com>
3744
3745         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
3746
3747 2008-01-30  Jan Hubicka  <jh@suse.cz>
3748
3749         PR target/34982
3750         * i386.c (init_cumulative_args): Use real function declaration when
3751         calling locally.
3752
3753 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
3754
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.
3762
3763 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
3764
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.
3769
3770 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
3771
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.
3779
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.
3785
3786 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
3787
3788         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
3789
3790 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
3791
3792         PR c/35002
3793         * ipa-struct-reorg.c: Fix spelling.
3794         * params.def: Ditto.
3795
3796 2008-01-29  Richard Guenther  <rguenther@suse.de>
3797
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.
3805
3806 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
3807
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.
3819
3820 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
3821
3822         PR target/34412
3823         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
3824         pointer for tiny stack.
3825
3826 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
3827
3828         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
3829
3830 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
3831
3832         * config/vx-common.h: Fix typo in comment.
3833
3834 2008-01-28  Ian Lance Taylor  <iant@google.com>
3835
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.
3842
3843 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
3844
3845         PR 31535
3846         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
3847         are not legitimate small data references on SPE targets.
3848
3849 2008-01-28  David Daney  <ddaney@avtrex.com>
3850
3851         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
3852
3853 2008-01-28  David Daney  <ddaney@avtrex.com>
3854
3855         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
3856
3857 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
3858
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.
3867
3868 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3869
3870         * basic-block.h (condjump_equiv_p): Fix comment.
3871
3872 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3873
3874         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
3875         print_generic_stmt_indented): Fix comment.
3876
3877 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3878
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.
3882
3883 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
3884
3885         PR middle-end/34688
3886         * final.c (output_addr_const): Handle TRUNCATE.
3887
3888 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
3889
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.
3912
3913 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
3914             Janis Johnson  <janis187@us.ibm.com>
3915
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.
3967
3968 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
3969
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.
3977
3978 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
3979
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.
3985
3986 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
3987
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.
3993
3994 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
3995
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     &n