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