OSDN Git Service

PR target/31110
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-03-28  Nick Clifton  <nickc@redhat.com>
2
3         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4         Return GENERAL_REGS for stack adjustment reloads.
5
6 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7
8         PR target/31334
9         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10         const_vector when all the vectors are constant.
11
12 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
13
14         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
15         comparisons.
16         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
18         (scc_sf): New.
19         (s<code>_sf): Use new scc_sf attribute for opcode names.
20
21 2008-03-27  Tom Tromey  <tromey@redhat.com>
22
23         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
24         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
25         config/spu/t-spu-elf, config/i386/t-interix,
26         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
27         config/i386/x-darwin, config/i386/x-mingw32,
28         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
29         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
30         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
31         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
32         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
33         config/rs6000/x-darwin, config/rs6000/t-rs6000,
34         config/score/t-score-elf, config/arm/t-strongarm-pe,
35         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
36         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
37         Revert automatic dependency patch.
38
39 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
40
41         PR target/35657
42         * config/i386/i386.c (ix86_function_arg_boundary): Align
43         decimal floating point to its natural boundary.
44
45 2008-03-27  Richard Guenther  <rguenther@suse.de>
46
47         PR middle-end/35716
48         * fold-const.c (fold_comparison): Restrict distinct decl
49         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
50         solely rely on operand_equal_p.
51
52 2008-03-27  Richard Guenther  <rguenther@suse.de>
53
54         PR c/32511
55         * c-common.c (handle_weak_attribute): Reject combination of
56         weak and inline.
57
58 2008-03-27  Richard Guenther  <rguenther@suse.de>
59
60         PR tree-optimization/32810
61         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
62         conversions from DECL_INITIAL.
63         (fold_const_aggregate_ref): Likewise from constructor elements.
64
65 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
66
67         * tree-affine.h (aff_combination_expand): Declare.
68         (get_inner_reference_aff): Likewise.
69         * tree-affine.c (aff_combination_expand): Split out from
70         tree_to_aff_combination_expand.
71         (get_inner_reference_aff): New function.
72         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
73         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
74         (struct lim_aux_data): sm_done field removed.
75         (mem_ref_loc_p, mem_ref_locs_p): New types.
76         (struct mem_ref): Added id, stored, accesses_in_loop,
77         indep_loop, dep_loop, indep_ref, dep_ref fields.
78         Removed is_stored, locs and next fields.
79         (memory_accesses): New variable.
80         (movement_possibility): Do not allow moving statements
81         that store to memory.
82         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
83         New functions.
84         (determine_max_movement): For statements with memory references,
85         find the outermost loop in that the reference is independent.
86         (move_computations_stmt): Mark the virtual operands for
87         renaming.
88         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
89         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
90         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
91         add_vop_ref_mapping, create_vop_ref_mapping_loop,
92         create_vop_ref_mapping, analyze_memory_references,
93         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
94         get_all_locs_in_loop, ref_always_accessed_p,
95         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
96         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
97         store_motion_loop, store_motion): New functions.
98         (struct vop_to_refs_elt): New type.
99         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
100         memref_hash, memref_eq, hoist_memory_references): Rewritten.
101         (schedule_sm): Replaced by...
102         (execute_sm): ... this.
103         (determine_lsm_ref, hoist_memory_references,
104         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
105         find_more_ref_vops, free_mem_ref, free_mem_refs,
106         determine_lsm_loop, determine_lsm): Removed.
107         (tree_ssa_lim_finalize): Free data structures used by store
108         motion.
109         (tree_ssa_lim): Call analyze_memory_references.  Use
110         store_motion instead of determine_lsm.
111
112 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
113
114         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
115         rename tmake_file to m68hc11/t-m68hc11.
116         (mcore): Set inhibit_libc to true.
117         * config.host (alpha*-dec-*vms*): Set extra_programs.
118         (interix3*): Don't use host_xmake_file.
119         * configure.ac: Let config.gcc override inhibit_libc.
120         * configure: Regenerate.
121
122         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
123         * config/t-openbsd-thread: Remove commented out lines.
124         
125         * config/x-interix: Remove.
126
127         * config/m68hc11/t-m68hc11-gas: Rename to...
128         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
129
130         * config/mcore/t-mcore: Remove T_CFLAGS.
131         * config/mcore/t-mcore-pe: Likewise.
132
133 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
134
135         * configure.ac: Replace custom __GNU_SOURCE test with
136         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
137         * aclocal.m4: Regenerate.
138         * configure: Regenerate.
139         * config.in: Regenerate.
140
141 2008-03-27  Richard Guenther  <rguenther@suse.de>
142
143         * fold-const.c (target.h): Include.
144         (fold_comparison): Fold comparison of addresses of decls
145         that bind locally or of constants.  Consolidate address folding code.
146         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
147         results from fold_binary_to_constant.
148         (compare_values_warnv): Likewise.
149
150 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
151
152         PR middle-end/35429
153         * fold-const.c (fold_truthop): Check for integeral types when folding
154         a == 0 && b == 0 and a != 0 || b != 0 .
155
156 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
157
158         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
159
160 2008-03-26  Andreas Schwab  <schwab@suse.de>
161
162         * doc/invoke.texi: Fix use of @item vs. @itemx.
163
164 2008-03-26  Tom Tromey  <tromey@redhat.com>
165
166         * Makefile.in (build/gensupport.o, build/print-rtl.o,
167         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
168         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
169         build/gencodes.o, build/genconditions.o, build/genconfig.o,
170         build/genconstants.o, build/genemit.o, build/genextract.o,
171         build/genflags.o, build/genmddeps.o, build/genopinit.o,
172         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
173         options.h.
174
175 2008-03-26  Richard Guenther  <rguenther@suse.de>
176
177         Revert
178         2008-03-26  Richard Guenther  <rguenther@suse.de>
179
180         * fold-const.c (target.h): Include.
181         (fold_comparison): Fold comparison of addresses of two decls
182         that bind locally.  Consolidate address folding code.
183
184 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
185
186         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
187         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
188         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
189         dconstsqrt2, dconstthird, dconste and/or dconst10.
190         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
191         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
192         dconstsqrt2, dconste): Delete.
193         (init_emit_once): Likewise.  Simplify initializing dconstm1.
194         Constify variable.
195         * real.c (get_real_const): New.
196         * real.h (dconst3, dconst10, dconstm2, dconstthird,
197         dconstsqrt2, dconste): Delete.
198         (real_value_const, get_real_const): New.
199
200 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
201
202         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
203
204         * config/i386/i386.c (ix86_function_arg_boundary): Check
205         BIGGEST_ALIGNMENT instead of 128.
206         (setup_incoming_varargs_64): Likewise.
207
208 2008-03-26  Tom Tromey  <tromey@redhat.com>
209
210         * Makefile.in (DEPFILES): Add missing '/'.
211
212 2008-03-26  Richard Guenther  <rguenther@suse.de>
213
214         * fold-const.c (target.h): Include.
215         (fold_comparison): Fold comparison of addresses of two decls
216         that bind locally.  Consolidate address folding code.
217
218 2008-03-26  Nick Clifton  <nickc@redhat.com>
219
220         PR target/31232
221         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
222         not allow INT+INT as a legitimate addressing mode.
223
224 2008-03-26  Richard Guenther  <rguenther@suse.de>
225
226         * tree-flow.h (widen_bitfield): Remove declaration.
227         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
228         (widen_bitfield): Remove function.
229         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
230         code.
231
232 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
233
234         PR target/31558
235         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
236         error_mark_node's.
237
238 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
239
240         PR rtl-optimization/35232
241         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
242         (forget_old_reloads_1, forget_marked_reloads): Don't clear
243         reg_reloaded_call_part_clobbered here.
244         (reload_regs_reach_end_p): New function.
245         (reload_reg_rtx_for_input): New variable.
246         (reload_reg_rtx_for_output): Likewise.
247         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
248         when reassigning a pseudo register.  Load reloadreg from 
249         reload_reg_rtx_for_input, moving the mode and register
250         calculation to...
251         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
252         instead of the original when deciding whether an input reload
253         would be a no-op or whether an output reload can be deleted.
254         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
255         when setting up new_spill_reg_store.  Load it from
256         reload_reg_rtx_for_output, moving the mode and register
257         calculation to...
258         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
259         instead of the original when deciding whether an output reload
260         would be a no-op.  Do the same when modifying insn notes.
261         Use rtx_equal_p instead of == to compare the registers.
262         (inherit_piecemeal_p): Take a mode and two register numbers
263         as argument.
264         (emit_reload_insns): Clear new_spill_reg_store for every hard
265         register in the reload register.  Remove spill registers
266         from reg_reloaded_valid before considering whether to record
267         inheritance information for them.  Use reload_reg_rtx_for_output
268         instead of reg_rtx when recording output reloads.  Use
269         reload_reg_rtx_for_input instead of reg_rtx when recording
270         input reloads.  Set or clear reg_reloaded_call_part_clobbered
271         at the same time as setting reg_reloaded_valid.
272         (delete_output_reload): Add a new_reload_reg parameter and use it
273         instead of rld[j].reg_rtx.
274         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
275         calls accordingly.
276
277 2008-03-25  Tom Tromey  <tromey@redhat.com>
278
279         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
280         (build/genattr.o): Likewise.
281         (build/genattrtab.o): Likewise.
282         (build/gencodes.o): Likewise.
283         (build/genconfig.o): Likewise.
284         (build/genconstants.o): Likewise.
285         (build/genemit.o): Likewise.
286         (build/genextract.o): Likewise.
287         (build/genflags.o): Likewise.
288
289 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
290         
291         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
292         instead of size_int for integer types.
293         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
294         to match type of MINUS_EXPR.
295         
296 2008-03-25  Tom Tromey  <tromey@redhat.com>
297
298         * configure: Rebuilt.
299         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
300         Makefile.
301
302 2008-03-25  Tom Tromey  <tromey@redhat.com>
303
304         * config/x-solaris (host-solaris.o): Update.
305         * config/x-linux (host-linux.o): Update.
306         * config/x-hpux (host-hpux.o): Update.
307         * config/x-darwin (host-darwin.o): Update.
308         * config/v850/t-v850e (v850-c.o): Update.
309         * config/v850/t-v850 (v850-c.o): Update.
310         * config/t-vxworks (vxworks.o): Update.
311         * config/t-sol2 (sol2-c.o, sol2.o): Update.
312         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
313         * config/spu/t-spu-elf (spu-c.o): Update.
314         (spu.o): Remove.
315         * config/sh/t-symbian (sh-c.o): Update.
316         (symbian.o): Update.
317         * config/sh/t-sh (sh-c.o): Update.
318         * config/score/t-score-elf (score7.o, score3.o): Update.
319         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
320         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
321         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
322         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
323         (rs6000.o): Remove.
324         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
325         * config/m32c/t-m32c (m32c-pragma.o): Update.
326         * config/ia64/t-ia64 (ia64-c.o): Update.
327         * config/i386/x-mingw32 (host-mingw32.o): Update.
328         * config/i386/x-i386 (driver-i386.o): Update.
329         * config/i386/x-darwin (host-i386-darwin.o): Update.
330         * config/i386/x-cygwin (host-cygwin.o): Update.
331         * config/i386/t-nwld (nwld.o): Update.
332         * config/i386/t-netware (netware.o): Update.
333         * config/i386/t-interix (winnt.o): Update.
334         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
335         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
336         msformat-c.o): Update.
337         * config/bfin/t-bfin-linux (generated_files): Add
338         linux-sysroot-suffix.h.
339         * config/arm/t-wince-pe (pe.o): Update.
340         * config/arm/t-strongarm-pe (pe.o): Update.
341         * config/arm/t-pe (pe.o): Update.
342         * config/arm/t-arm (arm-c.o): Update.
343         * doc/install.texi (Prerequisites): Require make 3.80.
344         * Makefile.in: Remove .o targets.
345         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
346         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
347         (simple_generated_h, simple_generated_c): Move earlier.
348         (generated_files): New variable.
349         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
350         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
351         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
352         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
353         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
354         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
355         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
356         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
357         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
358         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
359         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
360         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
361         (.c.o): Remove.
362         (COMPILE.base, COMPILE): New variables.
363         (%.o): New pattern rule.
364         (ALL_HOST_OBJS): New variable.
365         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
366         (dummy-checksum.o, cc1-checksum.o): Remove.
367         (DRIVER_SHLIB): New variable.
368         (DRIVER_DEFINES): Use it.
369         (gencondmd.c): Move out of build/.
370         (s-conditions): Update.
371         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
372         (ALL_BUILD_OBJS): Likewise.
373         (build/%.o): Use BUILDCOMPILE.
374         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
375         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
376         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
377         build/gencheck.o, build/gencodes.o, build/genconditions.o,
378         build/genconfig.o, build/genconstants.o, build/genemit.o,
379         build/genextract.o, build/genflags.o, build/genmddeps.o,
380         build/genopinit.o, build/genoutput.o, build/genpeep.o,
381         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
382         build/gen-protos.o, build/scan.o, build/fix-header.o,
383         build/scan-decls.o): Simplify.
384         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
385         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
386         prefix.o, toplev.o): Reduce to variable setting.
387         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
388         ($(out_object_file), gcc-options.o): New targets.
389         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
390         * configure: Rebuilt.
391         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
392         * doc/sourcebuild.texi (Front End Directory): Document new variable.
393
394 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
395
396         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
397         complain when we hit an error, return ERROR_MARK_NODE.
398
399 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
400
401         * config/sh/constraints.md (Pso, Psz): New constraints.
402         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
403         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
404
405 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
406
407         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
408         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
409
410 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
411
412         * config/sh/sh.md (prefetch): Add condition for SH2A target.
413         (prefetch_sh2a): New.   
414
415 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
416             Naveen.H.S  <naveen.hs@kpitcummins.com>
417
418         * config/sh/constraints.md (I28): New constraint.
419         * config/sh/sh.c (broken_move): Add support for movi20s.
420         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
421
422 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
423             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
424             Naveen.H.S  <naveen.hs@kpitcummins.com>
425
426         * config/sh/sh.c (SH_ATTRIBUTES): Define.
427         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
428         (print_operand): Handle resbank in %@ operand code.
429         (sh_encode_section_info): New.
430         (push_regs): Add conditions for resbank.
431         (sh_expand_epilogue): Likewise.
432         (sh_insert_attributes): Likewise.
433         (sh_attribute_table): Likewise.
434         (sh_handle_resbank_handler_attribute): New.
435         (sh2a_handle_function_vector_handler_attribute): New.
436         (sh2a_is_function_vector_call): New.
437         (sh2a_get_function_vector_number): New.
438         (sh2a_function_vector_p): New.
439         (sh_cfun_resbank_handler_p): New.
440         * config/sh/sh.md (calli): Emit jsr/n if possible.
441         (calli_tbr_rel): New.
442         (calli_pcrel): Emit jsr/n if possible.
443         (return_i): Emit rts/n if possible.
444         (call_valuei_tbr_rel): New.
445         (call_valuei_pcrel): Add condition for SH2A target.
446         (call_value): Likewise.
447         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
448         (sh2a_get_function_vector_number): Likewise.
449         (sh2a_is_function_vector_call): Likewise.
450         * doc/extend.texi: Document TBR relative addressing of SH2A.
451         (resbank): Add description for SH2A.
452
453 2008-03-24  Richard Guenther  <rguenther@suse.de>
454
455         PR c/22371
456         * gimplify.c (gimplify_modify_expr): For frontend type-correct
457         pointer assignments change conversions according to middle-end rules.
458         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
459         * configure.ac: Include type checking in yes.
460         * configure: Regenerate.
461
462 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
463
464         * diagnostic.c (diagnostic_count_diagnostic): Delete.
465         (diagnostic_report_diagnostic): Update. Handle ICEs here.
466         
467 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
468
469         * gthr-vxworks.h (UNUSED): Define.
470
471 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
472
473         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
474         CX_REG.
475
476 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
477
478         * doc/extend.texi (Function Attributes): Add missing comma in the
479         example of the "alloc_size" attribute.
480         
481 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
482
483         Revert:
484         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
485
486         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
487         32bit host.
488
489         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
490
491         PR target/35496
492         * stor-layout.c (update_alignment_for_field): Set minimum alignment
493         of the underlying type of a MS bitfield layout to the natural
494         alignment of the type.
495
496         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
497
498         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
499         to their natural alignment to avoid store forwarding stalls.
500
501 2008-03-22  Richard Guenther  <rguenther@suse.de>
502
503         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
504         For PHI nodes verify the address is invariant.
505         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
506         (get_symbol_constant_value): Use is_gimple_min_invariant.
507         (maybe_fold_stmt_indirect): Likewise.
508
509 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
510
511         PR rtl-optimization/33927
512         * Makefile.in (dse.o): Depend on $(TM_P_H).
513         * expr.h (extract_low_bits): Declare.
514         * expmed.c (extract_low_bits): New function.
515         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
516         * dse.c: Include tm_p.h.
517         (find_shift_sequence): Remove the read_reg argument and return the
518         read value.  Emit the instructions instead of returning them.
519         Iterate on new_mode rather than calculating it each time.
520         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
521         source to NEW_MODE and extract_low_bits to convert the shifted
522         value to READ_MODE.
523         (replace_read): Allow the load and store to have different mode
524         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
525         or extraction instructions before trying the replacement.  Update
526         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
527
528 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
529
530         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
531         to their natural alignment to avoid store forwarding stalls.
532
533 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
534
535         PR target/27946
536         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
537         encouraging but not allowing gprs for input;
538         change the input constraint to !f#r.
539         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
540         gprs for output;
541         change the output constraint to !f#r.
542
543 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
544
545         PR target/13958
546         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
547         corresponding post-reload splitters.
548         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
549         when x87 FP math is selected.
550         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
551         New function prototype.
552         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
553         unreachable function to ease macroization of insn patterns.
554
555 2008-03-21  Martin Jambor  <mjambor@suse.cz>
556
557         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
558         reference dumps if ddr is NULL or dependence is unknown.
559
560 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
561
562         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
563         unsigned extension into account.
564         (ATOMIC_COMPARE_AND_SWAP): Likewise.
565         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
566         Do computations on a scratch register.
567
568 2008-03-21  Richard Guenther  <rguenther@suse.de>
569
570         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
571         Use is_gimple_min_invariant instead of TREE_INVARIANT.
572         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
573         * tree-ssa-dom.c (record_equality): Likewise.
574         * tree-inline.c (copy_body_r): Likewise.
575         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
576         TREE_INVARIANT.
577
578 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
579
580         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
581         as 'delete_unused' argument.
582
583 2008-03-20  Richard Guenther  <rguenther@suse.de>
584
585         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
586         special casing of constant qualifiers.
587         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
588         care about them in general.
589         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
590         regardless of their type.
591         (fold_stmt_r): Forcefully fold *& if we end up with that.
592
593 2008-03-20  Paul Brook  <paul@codesourcery.com>
594
595         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
596         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
597         linker flags.
598         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
599         definition.
600         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
601         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
602
603 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
604
605         * common.opt (Wmudflap): New option.
606         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
607         (mx_register_decls): Likewise.
608         (mudflap_finish_file): Likewise.
609         * doc/invoke.texi: Document -Wno-mudflap.
610
611 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
612
613         * c-format.c (replace_format_name_to_system_name): New.
614         (cmp_attribs): New.
615         (convert_format_name_to_system_name): New.
616         (decode_format_attr): Add use of convert_format_name_to_system_name.
617         (format_types_orig): Add gnu_ prefix to names.
618         (check_format_info_main): Special treating of \0 escaped names for
619         supporting multi-character format specifiers as I32, I64.
620         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
621         (gnu_target_overrides_format_attributes): New.
622         * c-format.h: Add structure target_ovr_attr to hold
623         system specific formatter names.
624         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
625         msformat-c.o file to c_target_objs and cxx_target_objs.
626         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
627         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
628         (TARGET_N_FORMAT_TYPES): New.
629         * config/i386/msformat-c.c: New.
630         * config/i386/t-cygming: Add build rule for msformat-c.o.
631         * doc/extend.texi: Add new format names gnu_* and ms_* and
632         further details.
633         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
634
635 2008-03-20  Ira Rosen  <irar@il.ibm.com>
636
637         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
638         optimizations turned on under -O3.
639         (ftree-vectorize): Add that the flag is turned on with -O3.
640
641 2008-03-20  Ben Elliston  <bje@au.ibm.com>
642
643         * regmove.c (try_auto_increment): Fix spelling error in comment.
644         * final.c (final_scan_insn): Likewise.
645
646 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
647
648         PR target/14552
649         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
650         allocator preferences for "y" and "r" class registers.
651         ("*mov<mode>_internal"): Ditto.
652         ("*movv2sf_internal_rex64"): Ditto.
653         ("*movv2sf_internal"): Ditto.
654
655 2008-03-19  Michael Matz  <matz@suse.de>
656
657         PR middle-end/35616
658         * calls.c (expand_call): Check overlap of arguments with call
659         address for sibcalls.
660
661 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
662
663         PR target/35496
664         * stor-layout.c (update_alignment_for_field): Set minimum alignment
665         of the underlying type of a MS bitfield layout to the natural
666         alignment of the type.
667
668 2008-03-19  Jan Hubicka  <jh@suse.cz>
669
670         PR other/35094
671         * toplev.c (decode_d_option): Handle all CPP flags.
672         * tree-vrp.c: Update tree_pass descriptors.
673         * regrename.c: Update tree_pass descriptors.
674         * fwprop.c: Update tree_pass descriptors.
675         * doc/invoke.texi: Remove documentation of dropped -d? flags.
676         * tree-into-ssa.c: Update tree_pass descriptors.
677         * tree-dump.c: Update tree_pass descriptors.
678         * tree-complex.c: Update tree_pass descriptors.
679         * tree-dump.h: Update tree_pass descriptors.
680         * see.c: Update tree_pass descriptors.
681         * cgraphbuild.c: Update tree_pass descriptors.
682         * tracer.c: Update tree_pass descriptors.
683         * tree-loop-distribution.c: Update tree_pass descriptors.
684         * cgraph.c: Update tree_pass descriptors.
685         * postreload-gcse.c: Update tree_pass descriptors.
686         * postreload.c: Update tree_pass descriptors.
687         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
688         * tree-tailcall.c: Update tree_pass descriptors.
689         * tree-pass.h (tree_opt_pass): Rename to ...
690         (opt_pass) ... this one; add "type" field and remove letter field.
691         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
692         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
693         all_lowering_passes): Update declaration.
694         * ipa-cp.c: Update tree_pass descriptors.
695         * final.c: Update tree_pass descriptors.
696         * omp-low.c: Update tree_pass descriptors.
697         * tree-ssa-dse.c: Update tree_pass descriptors.
698         * ipa-reference.c: Update tree_pass descriptors.
699         * tree-ssa-uncprop.c: Update tree_pass descriptors.
700         * auto-inc-dec.c: Update tree_pass descriptors.
701         * reorg.c: Update tree_pass descriptors.
702         * cgraphunit.c: Update tree_pass descriptors.
703         * tree-ssa-copyrename.c: Update tree_pass descriptors.
704         * tree-ssa-ccp.c: Update tree_pass descriptors.
705         * df-core.c: Update tree_pass descriptors.
706         * mode-switching.c: Update tree_pass descriptors.
707         * tree-nomudflap.c: Update tree_pass descriptors.
708         * modulo-sched.c: Update tree_pass descriptors.
709         * ipa-pure-const.c: Update tree_pass descriptors.
710         * cse.c: Update tree_pass descriptors.
711         * web.c: Update tree_pass descriptors.
712         * tree-stdarg.c: Update tree_pass descriptors.
713         * tree-ssa-math-opts.c: Update tree_pass descriptors.
714         * tree-ssa-dom.c: Update tree_pass descriptors.
715         * tree-nrv.c: Update tree_pass descriptors.
716         * tree-ssa-alias.c: Update tree_pass descriptors.
717         * loop-init.c: Update tree_pass descriptors.
718         * gimple-low.c: Update tree_pass descriptors.
719         * ipa-inline.c: Update tree_pass descriptors.
720         * tree-ssa-sink.c: Update tree_pass descriptors.
721         * global.c: Update tree_pass descriptors.
722         * ifcvt.c: Update tree_pass descriptors.
723         * jump.c: Update tree_pass descriptors.
724         * predict.c: Update tree_pass descriptors.
725         * tree-ssa-loop.c: Update tree_pass descriptors.
726         * recog.c: Update tree_pass descriptors.
727         * dse.c: Update tree_pass descriptors.
728         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
729         * tree-eh.c: Update tree_pass descriptors.
730         * regmove.c: Update tree_pass descriptors.
731         * local-alloc.c
732         * function.c: Update tree_pass descriptors.
733         * tree-vectorizer.c: Update tree_pass descriptors.
734         * gcse.c: Update tree_pass descriptors.
735         * ipa-type-escape.c: Update tree_pass descriptors.
736         * tree-if-conv.c: Update tree_pass descriptors.
737         * init-regs.c: Update tree_pass descriptors.
738         * ipa.c: Update tree_pass descriptors.
739         * tree-ssa-phiopt.c: Update tree_pass descriptors.
740         * rtl-factoring.c: Update tree_pass descriptors.
741         * lower-subreg.c: Update tree_pass descriptors.
742         * bt-load.c: Update tree_pass descriptors.
743         * tree-dfa.c: Update tree_pass descriptors.
744         * except.c: Update tree_pass descriptors.
745         * emit-rtl.c: Update tree_pass descriptors.
746         * cfgexpand.c: Update tree_pass descriptors.
747         * tree-cfgcleanup.c: Update tree_pass descriptors.
748         * cfgcleanup.c: Update tree_pass descriptors.
749         * tree-ssa-pre.c: Update tree_pass descriptors.
750         * tree-sra.c: Update tree_pass descriptors.
751         * tree-mudflap.c: Update tree_pass descriptors.
752         * tree-ssa-copy.c: Update tree_pass descriptors.
753         * cfglayout.c: Update tree_pass descriptors.
754         * tree-ssa-forwprop.c: Update tree_pass descriptors.
755         * tree-ssa-dce.c: Update tree_pass descriptors.
756         * tree-ssa.c: Update tree_pass descriptors.
757         * regclass.c: Update tree_pass descriptors.
758         * integrate.c: Update tree_pass descriptors.
759         * tree-optimize.c: Update tree_pass descriptors.
760         * tree-ssa-phiprop.c: Update tree_pass descriptors.
761         * tree-object-size.c: Update tree_pass descriptors.
762         * combine.c: Update tree_pass descriptors.
763         * tree-outof-ssa.c: Update tree_pass descriptors.
764         * bb-reorder.c: Update tree_pass descriptors.
765         * stack-ptr-mod.c: Update tree_pass descriptors.
766         * var-tracking.c: Update tree_pass descriptors.
767         * tree-profile.c: Update tree_pass descriptors.
768         * tree-vect-generic.c: Update tree_pass descriptors.
769         * reg-stack.c: Update tree_pass descriptors.
770         * sched-rgn.c: Update tree_pass descriptors.
771         * tree-ssa-structalias.c: Update tree_pass descriptors.
772         * tree-cfg.c: Update tree_pass descriptors.
773         * passes.c (current_pass): Update declaration.
774         (finish_optimization_passes): Update.
775         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
776         (register_one_dump_file, register_dump_files_1, next_pass_1):
777         Update arguments.
778         (init_optimization_passes): Update handling of new types.
779         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
780         * ipa-struct-reorg.c: Update tree_pass descriptors.
781         * tree-ssa-reassoc.c: Update tree_pass descriptors.
782         * combine-stack-adj.c: Update tree_pass descriptors.
783         * cfgrtl.c: Update tree_pass descriptors.
784         * dce.c: Update tree_pass descriptors.
785         * tree-ssanames.c: Update tree_pass descriptors.
786
787 2008-03-19  Richard Guenther  <rguenther@suse.de>
788
789         PR middle-end/35609
790         * tree-ssa.c (walk_data): New structure.
791         (warn_uninitialized_var): If not always_executed warn with "maybe"
792         instead of "is".
793         (execute_early_warn_uninitialized): Compute post-dominators.
794         Initialize always_executed before processing each basic block.
795
796 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
797
798         PR target/35504
799         * config/i386/i386.c (x86_this_parameter): Calculate correct location
800         of "this" pointer when "regparm = N" or "fastcall" is in effect.
801
802 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
803
804         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
805
806 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
807
808         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
809         is true.
810         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
811         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
812         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
813         target after ignore has been set, and move there also the commputation
814         of subtarget and original_target.
815         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
816         (LANG_HOOKS_INITIALIZER): Remove it.
817         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
818
819 2008-03-18  Richard Guenther  <rguenther@suse.de>
820
821         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
822         found an expression with constants, note that in the VN for the lhs.
823         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
824         fold them to constants if possible.  Run cleanup_cfg if done so.
825         (execute_pre): Return todo.
826         (do_pre): Likewise.
827         (execute_fre): Likewise.
828         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
829         of constants.
830         (get_prop_source_stmt): Look through pointer conversions.
831
832 2008-03-18  Jan Hubicka  <jh@suse.cz>
833
834         * tree-pretty-print.c: Include predict.h.
835         (dump_generic_node): Dump predictor.
836         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
837         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
838         * gimple-low.c (lower_stmt): Likewise.
839         * expr.c (expand_expr_real): Likewise.
840         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
841         them.
842         (build_predict_expr, build_predict_expr): New.
843         * predict.h (predictor_name, build_predict_expr): Update.
844         * c-typeck.c (c_finish_bc_stmt): Add prediction.
845         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
846         * predict.def (PRED_CONTINUE): Update hitrate.
847         * tree.def (PREDICT_EXPR): Define.
848         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
849         do not handle BIND_EXPR.
850         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
851         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
852         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
853         operands.
854
855 2008-03-18  Michael Matz  <matz@suse.de>
856
857         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
858
859 2008-03-18  Richard Guenther  <rguenther@suse.de>
860
861         * tree-gimple.h (is_gimple_invariant_address): Declare.
862         (is_gimple_constant): Likewise.
863         * tree-gimple.c (is_gimple_constant): New function.
864         (is_gimple_invariant_address): Likewise.
865         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
866         and is_gimple_invariant_address.
867         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
868         previous change.
869         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
870         an addressable base.
871
872 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
873
874         PR middle-end/35611
875         * gimplify.c (gimplify_expr): Gimplify second operand of
876         OMP_ATOMIC_LOAD.
877
878 2008-03-17  Richard Guenther  <rguenther@suse.de>
879
880         PR tree-optimization/19637
881         * fold-const.c (fold_unary): Remove restrictions of removing
882         intermediate pointer-conversions (P2)(P1)P0.
883         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
884         conversion to void pointer.
885         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
886
887 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
888
889         PR debug/31510
890         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
891         emulated thread local variables.
892
893 2008-03-16  Richard Guenther  <rguenther@suse.de>
894
895         PR middle-end/35607
896         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
897         expand TREE_INVARIANT operations that are not gimple invariant.
898
899 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
900
901         * doc/extend.texi (Alignment): Say that the ABI controls
902         the __alignof__ for non-strict-alignment targets rather
903         than being a recommendation.
904
905 2008-03-15  Paul Brook  <paul@codesourcery.com>
906
907         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
908         annotations.
909         (arm_output_fn_unwind): Mark functions that can not be unwound.
910
911 2008-03-15  Paul Brook  <paul@codesourcery.com>
912
913         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
914         extension instructions.
915
916 2008-03-15  Richard Guenther  <rguenther@suse.de>
917
918         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
919         and fold constant aggregate refs.
920         (fold_const_aggregate_ref): Handle string constants
921         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
922         (evaluate_stmt): Simplify now that ccp_fold folds constant
923         aggregate refs.
924
925 2008-03-15  Paul Brook  <paul@codesourcery.com>
926
927         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
928         (extzv): Use gen_extzv_t2.
929         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
930
931 2008-03-15  Richard Guenther  <rguenther@suse.de>
932
933         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
934         (fold_const_aggregate_ref): Likewise.
935         (get_value): Return NULL if we don't have any values.
936         (ccp_finalize): Set const_val to NULL after freeing it.
937         * tree-flow.h (get_symbol_constant_value): Declare.
938         (fold_const_aggregate_ref): Likewise.
939         * tree-ssa-sccvn.c (try_to_simplify): Use them.
940
941 2008-03-15  Richard Guenther  <rguenther@suse.de>
942
943         PR middle-end/35593
944         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
945         to not produce negative array indices if not allowed.  Add
946         parameter to indicate that.
947         (maybe_fold_offset_to_component_ref): Allow negative array
948         indices only for the first member of a structure.
949         (maybe_fold_offset_to_reference): Allow negative array indices.
950         (maybe_fold_stmt_addition): Likewise.
951
952 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
953             Anatoly Sokolov <aesok@post.ru>
954
955         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
956         (avr_arch): Add ARCH_AVR6.
957         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
958         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
959         instead of fixed value 2.
960         (print_operand_address): Use gs() asm specifier instead of pm().
961         (avr_assemble_integer): (Ditto.).
962         (avr_output_addr_vec_elt): (Ditto.).
963         (print_operand): Handle "!" code.
964         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
965         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
966         (AVR_HAVE_EIJMP_EICALL): Define.
967         (AVR_3_BYTE_PC): Redefine.
968         (AVR_2_BYTE_PC): (Ditto.).
969         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
970         (LINK_SPEC): Add atmega2560 and atmega2561.
971         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
972         (crtm2561.o).
973         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
974         for 3 byte PC devices.
975         (call_value_insn): (Ditto.).
976         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
977         (indirect_jump): Use only for for 2 byte PC devices.
978         (*tablejump): (Ditto.).
979         (*indirect_jump_avr6): Add insn.
980         (*tablejump_rjmp): Don't use for 3 byte PC devices.
981         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
982         instead of ijmp for 3 byte PC devices.
983         (__tablejump2__): (Ditto.).
984         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
985         (MULITLIB_DIRNAMES): (Ditto.). 
986         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
987
988 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
989
990         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
991         "sse2_umulsidi3".  Use V1DI mode for operand 0.
992         ("mmx_psadbw"): Use V1DI mode for operand 0.
993         * config/i386/i386-modes.def (V1SI): New vector mode.
994         * config/i386/i386.c (struct builtin_description)
995         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
996         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
997         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
998         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
999         v1di_ftype_v8qi_v8qi type.
1000         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
1001
1002         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
1003         __builtin_ia32_pmuludq]: Fix the mode of return value.
1004
1005 2008-03-15  Richard Guenther  <rguenther@suse.de>
1006
1007         PR middle-end/35595
1008         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
1009         being a PHI_NODE.
1010
1011 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
1012         
1013         * doc/invoke.texi (Option Summary, Xtensa Options): Document
1014         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
1015         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
1016         unless TARGET_SERIALIZE_VOLATILE is enabled.
1017         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
1018         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
1019         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
1020
1021 2008-03-14  Richard Guenther  <rguenther@suse.de>
1022
1023         PR tree-optimization/34172
1024         * tree-flow.h (refs_may_alias_p): Declare.
1025         (get_single_def_stmt): Likewise.
1026         (get_single_def_stmt_from_phi): Likewise.
1027         (get_single_def_stmt_with_phi): Likewise.
1028         * tree-dfa.c (refs_may_alias_p): New function.
1029         (get_single_def_stmt): Likewise.
1030         (get_single_def_stmt_from_phi): Likewise.
1031         (get_single_def_stmt_with_phi): Likewise.
1032         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
1033         (vn_reference_lookup_1): New helper function.
1034         (vn_reference_lookup): Walk the virtual use-def chain to
1035         continue searching for a match if the def does not alias the
1036         reference we are looking for.
1037
1038 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
1039
1040         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
1041         archive and Perzl.  Update The Written Word listing.
1042
1043 2008-03-14  Richard Guenther  <rguenther@suse.de>
1044
1045         PR tree-optimization/34043
1046         PR tree-optimization/33989
1047         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
1048         when doing FRE.
1049         (bitmap_find_leader): Use extra argument to verify dominance
1050         relationship inside a basic-block.
1051         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
1052         (find_leader_in_sets): Adjust.
1053         (create_component_ref_by_pieces): Take extra argument for
1054         dominance check, handle lookup failures.
1055         (find_or_generate_expression): Likewise.
1056         (create_expression_by_pieces): Likewise.
1057         (insert_into_preds_of_block): Adjust.
1058         (create_value_expr_from): If asked for, verify all operands
1059         are in the blocks AVAIL_OUT set.
1060         (make_values_for_stmt): Check for SSA_NAMEs that are life
1061         over an abnormal edge.
1062         (compute_avail): Remove such check.
1063         (do_SCCVN_insertion): New function.
1064         (eliminate): If we do not find a leader suitable for replacement
1065         insert a replacement expression from SCCVN if available.
1066         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
1067         (struct vn_ssa_aux): Add needs_insertion flag.
1068         * tree-ssa-sccvn.c (may_insert): New global flag.
1069         (copy_reference_ops_from_ref): Value-number union member access
1070         based on its size, not type and member if insertion is allowed.
1071         (visit_reference_op_load): For a weak match from union type
1072         punning lookup a view-converted value and insert a SSA_NAME
1073         for that value if that is not found.
1074         (visit_use): Make dumps shorter.  Do not disallow value numbering
1075         SSA_NAMEs that are life over an abnormal edge to constants.
1076         (free_scc_vn): Release inserted SSA_NAMEs.
1077         (run_scc_vn): New flag to specify whether insertion is allowed.
1078         Process SSA_NAMEs in forward order.
1079         * tree-ssa-loop-im.c (for_each_index): Handle invariant
1080         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
1081         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
1082         pointer type to/from integral types that do not change the
1083         precision to regular conversions.
1084
1085 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1086
1087         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
1088         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
1089         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
1090         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
1091         input arguments and the mode of return value.  Built-in functions
1092         that operate on whole 64-bit MMX register now use V1DI mode.
1093
1094 2008-03-13  Alon Dayan  <alond@il.ibm.com>
1095             Olga Golovanevsky  <olga@il.ibm.com>
1096
1097         PR tree-optimization/35041
1098         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
1099         to locate the right position in a statement.
1100
1101 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1102
1103         PR target/34000
1104         PR target/35553
1105         * config/i386/xmmintrin.h:  Change all static inline functions to
1106         extern inline and add __gnu_inline__ attribute.
1107         * config/i386/bmintrin.h: Ditto.
1108         * config/i386/smmintrin.h: Ditto.
1109         * config/i386/tmmintrin.h: Ditto.
1110         * config/i386/mmintrin-common.h: Ditto.
1111         * config/i386/ammintrin.h: Ditto.
1112         * config/i386/emmintrin.h: Ditto.
1113         * config/i386/pmmintrin.h: Ditto.
1114         * config/i386/mmintrin.h: Ditto.
1115         * config/i386/mm3dnow.h: Ditto.
1116
1117 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1118
1119         PR middle-end/35185
1120         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
1121         (lower_omp_2): New function.
1122         (lower_omp_1, lower_omp): Rewritten.
1123
1124 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
1125
1126         PR 35054
1127         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
1128         with the phrase "Microsoft Windows compilers".
1129         (Push/Pop Macro Pragmas): New subsection. Document
1130         #pragma push_macro and pragma pop_macro.
1131
1132 2008-03-12  Paul Brook  <paul@codesourcery.com>
1133
1134         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
1135
1136 2008-03-12  Paul Brook  <paul@codesourcery.com>
1137
1138         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
1139         (thumb2_alusi3_short): Exclude PLUS and MINUS.
1140         (thumb2_addsi_shortim): Rename ...
1141         (thumb2_addsi_short): ... to this.  Allow register operands.
1142         (thumb2_subsi_short): New pattern.
1143         (thumb2_one_cmplsi2_short,
1144         thumb2_negsi2_short): New patterns and peepholes.
1145
1146 2008-03-12  Paul Brook  <paul@codesourcery.com>
1147
1148         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
1149
1150 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
1151
1152         * config/i386/i386.md (int_cond): New code iterator.
1153         (fp_cond): Ditto.
1154         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
1155         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
1156         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
1157         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
1158         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
1159         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
1160         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
1161         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
1162
1163 2008-03-12  Paul Brook  <paul@codesourcery.com>
1164
1165         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
1166         instead of {arm,thumb}_compute_save_reg_mask.
1167         (output_return_instruction): Ditto.
1168         (thumb_unexpanded_epilogue): Ditto.
1169         (thumb1_expand_prologue): Ditto.
1170         (thumb1_output_function_prologue): Ditto.
1171         (arm_set_return_address): Ditto.
1172         (thumb_set_return_address): Ditto.
1173         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
1174         regs to achieve stack alignment.
1175         (thumb1_compute_save_reg_mask): Fix compiler warning.
1176         (arm_output_epilogue): Use offsets->saved_regs_mask.
1177         Adjust stack pointer by poping call clobered registers.
1178         (arm_expand_prologue): Use offsets->saved_regs_mask.
1179         Adjust stack pointer by pushing extra registers.
1180         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
1181
1182 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
1183
1184         PR tree-opt/35422
1185         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
1186         conversion to the operands of a multiplication.
1187
1188 2008-03-12  Richard Guenther  <rguenther@suse.de>
1189
1190         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
1191         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
1192         * timevar.def (TV_TREE_PHIPROP): Add.
1193         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
1194         pass description.  Use TV_TREE_PHIPROP.
1195         * tree-ssa-forwprop.c: Remove phiprop code.
1196
1197 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1198
1199         PR middle-end/35549
1200         * omp-low.c (maybe_lookup_decl): Constify first argument.
1201         (use_pointer_for_field): Change last argument from bool to
1202         omp_context *.  Disallow shared copy-in/out in nested
1203         parallel if decl is shared in outer parallel too.
1204         (build_outer_var_ref, scan_sharing_clauses,
1205         lower_rec_input_clauses, lower_copyprivate_clauses,
1206         lower_send_clauses, lower_send_shared_vars): Adjust callers.
1207
1208 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
1209             Ira Rosen  <irar@il.ibm.com>
1210
1211         * tree-vectorizer.c (free_stmt_vec_info): New function.
1212         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
1213         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
1214         * tree-vectorizer.h (free_stmt_vec_info): Declare.
1215         * tree-vect-transform.c (vectorizable_conversion): Free
1216         vec_oprnds0 if it was allocated.
1217         (vect_permute_store_chain): Remove unused VECs.
1218         (vectorizable_store): Free VECs that are allocated in the..
1219         function.
1220         (vect_transform_strided_load, vectorizable_load): Likewise.
1221         (vect_remove_stores): Simplify the code.
1222         (vect_transform_loop): Move code to vect_remove_stores().
1223         Call vect_remove_stores() and free_stmt_vec_info().
1224
1225 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1226
1227         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
1228         TARGET_HPUX.  Revise comment.
1229         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
1230         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
1231         Use sr4 variant of `be' instruction when not generating PIC code.
1232         (attr_length_call): Adjust for above change.
1233
1234 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1235
1236         * ipa-reference.c (static_execute): Remove module_statics_const and
1237         associated setting code.
1238
1239 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
1240
1241         PR target/35540
1242         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
1243         predicate for operand 1.
1244         (paritysi2_cmp): Use register_operand predicate for operand 2.
1245         Use earlyclobber modifier for operand 1.  Remove support for
1246         memory operands.
1247         (paritydi2_cmp): Use register_operand predicate for operand 3.
1248         Use earlyclobber modifier for operand 1.  Remove support for
1249         memory operands.
1250
1251 2008-03-11  Paul Brook  <paul@codesourcery.com>
1252             Vladimir Prus  <vladimir@codesourcery.com>
1253
1254         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
1255         (arm_compute_save_reg0_reg12_mask): Always
1256         check if register 11 must be saved.  Always safe hard frame pointer
1257         when frame_pointer_needeed.
1258         (arm_compute_save_reg_mask): Save IP and PC
1259         only with apcs frames.
1260         (arm_output_epilogue): Adjust Thumb2 codepath to
1261         be also invoked and work for ARM non-apcs frames.
1262         (arm_expand_prologue): Don't bother saving IP
1263         for non-apcs frame, since it's not clobbered by
1264         prologue code.  Implement non-apcs frame
1265         layout.
1266
1267 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
1268
1269         PR rtl-optimization/35281
1270         * expr.c (convert_move): Use a new pseudo for the intermediate
1271         from_mode->word_mode result.
1272
1273 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
1274
1275         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
1276         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
1277         * toplev.c (compile_file): Don't call it.
1278
1279 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
1280
1281         PR middle-end/35526
1282         * expr.c (store_expr): Call emit_block_move if the mode
1283         of "temp" RTX is BLKmode.
1284
1285 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1286             Richard Guenther  <rguenther@suse.de>
1287
1288         PR tree-optimization/31358
1289         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
1290         the step with a NULL_TREE.
1291         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
1292         to sizetype if type is a pointer type.
1293         (add_candidate_1): Don't convert the base and step to
1294         the generic type if the orginal type is a pointer type.
1295         (add_iv_value_candidates): Use sizetype for the step
1296         if type is a pointer type.
1297         (cand_value_at): Likewise.
1298         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
1299         for pointer types.
1300         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
1301         Don't convert the tem affine to the type.
1302         (add_elt_to_tree): Use sizetype for the step if a pointer.
1303         Use POINTER_PLUS_EXPR for pointers.
1304         (aff_combination_to_tree): Use sizetype for the step if a
1305         pointer.
1306
1307 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
1308
1309         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
1310         Remove commutativity hint.
1311
1312 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
1313
1314         PR c/35438
1315         PR c/35439
1316         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
1317         errorneous type.  Check that v is a VAR_DECL.
1318
1319         PR middle-end/35099
1320         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
1321
1322 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         PR tree-optimization/35494
1325         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
1326         may be overriden at link and run time.
1327
1328 2008-03-10  Richard Guenther  <rguenther@suse.de>
1329
1330         PR tree-optimization/34677
1331         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
1332         (poolify_tree): Likewise.
1333         (modify_expr_template): Likewise.
1334         (poolify_modify_stmt): Likewise.
1335         (insert_fake_stores): Handle all component-ref style stores
1336         in addition to INDIRECT_REF.  Also handle complex types.
1337         Do not poolify the inserted load.
1338         (realify_fake_stores): Do not rebuild the tree but only
1339         make it a SSA_NAME copy.
1340         (init_pre): Remove initialzation of modify_expr_template.
1341         Do not allocate modify_expr_node_pool.
1342         (fini_pre): Do not free modify_expr_node_pool.
1343
1344 2008-03-10  Paul Brook  <paul@codesourcery.com>
1345
1346         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
1347         to avoid conflicts.
1348
1349 2008-03-10  Paul Brook  <paul@codesourcery.com>
1350             Mark Shinwell  <shinwell@codesourcery.com>
1351
1352         * config/arm/cortex-r4.md: New.
1353         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
1354         insn attributes.
1355         * config/arm/arm.md: Include cortex-r4.md.
1356         (insn): Add smmls, sdiv and udiv values.
1357         (generic_sched): Don't use generic scheduling for Cortex-R4.
1358         (arm_issue_rate): New function.
1359         (TARGET_SCHED_ISSUE_RATE): Define.
1360
1361 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
1362
1363         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
1364
1365 2008-03-10  Richard Guenther  <rguenther@suse.de>
1366
1367         * tree-ssa-pre.c (get_sccvn_value): Simplify.
1368         (compute_avail): Do not add stmt uses to AVAIL_OUT.
1369
1370 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
1371
1372         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
1373         Set default to true.
1374
1375 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1376
1377         * c.opt (Wsynth): Deprecate.
1378         * doc/invoke.texi (Option Summary, Warning Options): Document
1379         -Wno-format-contains-nul.
1380
1381 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
1382
1383         PR target/35496
1384         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
1385         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
1386
1387 2008-03-09  Ira Rosen  <irar@il.ibm.com>
1388
1389         * config/rs6000/rs6000.c (builtin_description): Rename vector
1390         left shift operations.
1391         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
1392         (altivec_vsl<VI_char>): Rename to ...
1393         (ashl<mode>3): ... new name.
1394         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
1395         gen_ashlv4si3.
1396         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
1397
1398 2008-03-08  Richard Guenther  <rguenther@suse.de>
1399
1400         * coverage.h (tree_coverage_counter_addr): Declare.
1401         * coverage.c (tree_coverage_counter_addr): New function.
1402         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
1403         before using again.
1404         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
1405         (tree_gen_one_value_profiler): Likewise.
1406         (tree_gen_ic_profiler): Likewise.
1407         (tree_gen_average_profiler): Likewise.
1408         (tree_gen_ior_profiler): Likewise.
1409
1410 2008-03-08  Richard Guenther  <rguenther@suse.de>
1411
1412         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
1413         (vn_binary_op_insert): Likewise.
1414         (vn_unary_op_lookup): Likewise.
1415         (vn_unary_op_insert): Likewise.
1416         (vn_nary_op_lookup): Declare.
1417         (vn_nary_op_insert): Likewise.
1418         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
1419         and binary hashes, use a single obstack for unary_op_pool
1420         and binary_op_pool.
1421         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
1422         a single struct vn_nary_op_s.  Store tree code length and
1423         a variable number of operands.
1424         (struct vn_reference_op_struct): Remove unused op2.
1425         (vn_reference_op_eq): Do not compare op2.
1426         (vn_reference_op_compute_hash): Do not compute hash of op2.
1427         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
1428         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
1429         with vn_nary_op_compute_hash.
1430         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
1431         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
1432         vn_nary_op_lookup.
1433         (vn_unary_op_insert, vn_binary_op_insert): Replace with
1434         vn_nary_op_insert.
1435         (visit_unary_op): Call nary functions.
1436         (visit_binary_op): Likewise.
1437         (process_scc): Adjust for struct vn_tables_s changes.
1438         (allocate_vn_table): Likewise.
1439         (free_vn_table): Likewise.
1440         * tree-vn.c (vn_add): Call nary functions.
1441         (vn_lookup): Likewise.
1442
1443 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
1444
1445         PR target/35498
1446         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
1447         wdst back after sync_compare_and_swapqhi_internal.
1448
1449 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
1450
1451         PR target/22152
1452         * config/i386/i386-modes.def (V1DI): New vector mode.
1453         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
1454         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
1455         (MMXMODE248): Ditto.
1456         (MMXMODE): Add V1DI mode.
1457         (mmxvecsize): Change DI mode to V1DI mode.
1458         ("mov<mode>): Use MMXMODEI8 mode iterator.
1459         ("*mov<mode>_internal_rex64"): Ditto.
1460         ("*mov<mode>_internal"): Ditto.
1461         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
1462         ("mmx_sub<mode>3"): Ditto.
1463         ("mmx_adddi3"): Remove insn pattern.
1464         ("mmx_subdi3"): Ditto.
1465         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
1466         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
1467         ("mmx_ashl<mode>3"): Ditto.
1468         ("mmx_lshrdi3"): Remove insn pattern.
1469         ("mmx_ashldi3"): Ditto.
1470         * config/i386/i386.c (classify_argument): Handle V1DImode.
1471         (function_arg_advance_32): Ditto.
1472         (function_arg_32): Ditto.
1473         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
1474         mmx_addv1di3 insn pattern.
1475         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
1476         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
1477         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
1478         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
1479         Remove definitions of built-in functions.
1480         (V1DI_type_node): New node.
1481         (v1di_ftype_v1di_int): Ditto.
1482         (v1di_ftype_v1di_v1di): Ditto.
1483         (v2si_ftype_v2si_si): Ditto.
1484         (v4hi_ftype_v4hi_di): Remove node.
1485         (v2si_ftype_v2si_di): Ditto.
1486         (ix86_init_mmx_sse_builtins): Handle V1DImode.
1487         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
1488         Redefine builtins using def_builtin_const with *_ftype_*_int node.
1489         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
1490         Add new builtins using def_builtin_const.
1491         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
1492         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
1493         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
1494         * config/i386/mmintrin.h (__v1di): New typedef.
1495         (_mm_add_si64): Cast arguments to __v1di type.
1496         (_mm_sub_si64): Ditto.
1497         (_mm_sll_pi16): Cast __count to __v4hi type.
1498         (_mm_sll_pi32): Cast __count to __v2si type.
1499         (_mm_sll_si64): Cast arguments to __v1di type.
1500         (_mm_srl_pi16): Cast __count to __v4hi type.
1501         (_mm_srl_pi32): Cast __count to __v2si type.
1502         (_mm_srl_si64): Cast arguments to __v1di type.
1503         (_mm_sra_pi16): Cast __count to __v4hi type.
1504         (_mm_sra_pi32): Cast __count to __v2si type.
1505         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
1506         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
1507         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
1508         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
1509         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
1510         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
1511         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
1512         (_mm_srai_pi32): Use __builtin_ia32_psradi.
1513         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
1514         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
1515         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
1516         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
1517
1518 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
1519
1520         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
1521
1522 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
1523
1524         PR target/35373
1525         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
1526         reg+const addressing for Altivec modes.  Don't generate reg+reg
1527         addressing for TFmode or TDmode quantities.
1528
1529 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
1530
1531         * c-common.c (vector_types_convertible_p): Call langhook
1532         instead of comptypes.
1533
1534 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1535
1536         PR tree-opt/35402
1537         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
1538         integral and scalar float variables which have a
1539         NULL DECL_INITIAL.
1540
1541 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
1542
1543         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
1544         dwarf_register_span hook when emitting unwind information for
1545         register-to-memory saves.
1546         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
1547         (rs6000_frame_related): Remove call to spe_synthesize_frame.
1548
1549 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1550
1551         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
1552         for the same VAR_DECL.
1553
1554 2008-03-06  Tom Tromey  <tromey@redhat.com>
1555
1556         * treelang: Delete.
1557         * doc/standards.texi (Standards): Don't mention treelang.
1558         * doc/invoke.texi (Overall Options): Don't mention treelang.
1559         * doc/install.texi (Prerequisites): Don't mention bison or
1560         treelang.
1561         (Configuration): Don't mention treelang.
1562         (Building): Likewise.
1563         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
1564
1565 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
1566
1567         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
1568         word-extractions out of a multi-word object.
1569
1570 2008-03-06  Richard Guenther  <rguenther@suse.de>
1571
1572         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
1573         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
1574         result type and precision.
1575         * expr.c (get_inner_reference): Set unsignedp based on the result
1576         type of BIT_FIELD_REF.
1577         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
1578         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
1579         (try_instantiate_multiple_fields): Likewise.  Use the correct type
1580         for BIT_FIELD_REF.
1581         (sra_build_assignment): Likewise.
1582         (sra_build_elt_assignment): Likewise.
1583         (sra_explode_bitfield_assignment): Likewise.
1584         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
1585         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
1586         set BIT_FIELD_REF_UNSIGNED.
1587         (vectorizable_load): Likewise.
1588
1589 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1590
1591         * cse.c (cse_extended_basic_block): Invalidate artificial defs
1592         at bb start.
1593
1594 2008-03-06  Richard Guenther  <rguenther@suse.de>
1595
1596         * alias.c (struct alias_set_entry): Move has_zero_child field
1597         to pack with alias_set.
1598
1599 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1600
1601         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1602         32bit host.
1603
1604 2008-03-05  Ian Lance Taylor  <iant@google.com>
1605
1606         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
1607
1608 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
1609
1610         * fwprop.c (update_df): Support width and offset parameters of
1611         df_ref_create.
1612         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
1613         global_conflicts): Change DF_REF_EXTRACT to either
1614         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1615         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1616         * df-scan.c (df_ref_record, df_defs_record,
1617         df_ref_create_structure, df_def_record_1, df_uses_record,
1618         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
1619         df_bb_refs_collect, df_entry_block_defs_collect,
1620         df_exit_block_uses_collect): Support new width and offset fields.
1621         (ref_extract_pool): New storage pool.
1622         (df_free_ref): New function.
1623         (df_reg_chain_unlink, df_free_collection_rec,
1624         df_sort_and_compress_refs): Call df_free_ref.
1625         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
1626         of df_ref_extract.
1627         (df_ref_create_structure): Allocate df_ref_extract if offset and
1628         width fields are used.
1629         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
1630         (df_uses_record): Get offset and width from ZERO_EXTRACT 
1631         and SIGN_EXTRACT.
1632         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
1633         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1634         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1635         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
1636         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1637         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1638         (df_ref_extract): New structure.
1639         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
1640         (df_ref_create): Add width and offset parameters.
1641         
1642 2008-03-05  Richard Guenther  <rguenther@suse.de>
1643
1644         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1645         Use ranges_overlap_p.
1646         (offset_overlaps_with_access): Rename
1647         to ranges_overlap_p and move ...
1648         * tree-flow-inline.h (ranges_overlap_p): ... here.
1649
1650         * tree.h (get_inner_reference, handled_component_p): Update
1651         comments.
1652
1653         * tree.h (record_component_aliases, get_alias_set,
1654         alias_sets_conflict_p, alias_sets_must_conflict_p,
1655         objects_must_conflict_p): Move declarations ...
1656         * alias.h (record_component_aliases, get_alias_set,
1657         alias_sets_conflict_p, alias_sets_must_conflict_p,
1658         objects_must_conflict_p): ... here.
1659         Include coretypes.h.
1660         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
1661
1662 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
1663
1664         * cfg.c: Include tree-flow.h.
1665         (remove_edge_raw): Call redirect_edge_var_map_clear.
1666         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
1667         * tree-flow-inline.h (redirect_edge_var_map_def): New.
1668         (redirect_edge_var_map_result): New.
1669         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
1670         PENDING_STMT use with redirect_edge_var_map_*.
1671         * tree-ssa.c (edge_var_maps): New definition.
1672         (redirect_edge_var_map_add): New.
1673         (redirect_edge_var_map_clear): New.
1674         (redirect_edge_var_map_dup): New.
1675         (redirect_edge_var_map_vector): New.
1676         (redirect_edge_var_map_destroy): New.
1677         (ssa_redirect_edge): Replace PENDING_STMT use with
1678         redirect_edge_var_map_*.
1679         (flush_pending_stmts): Same.
1680         (delete_tree_ssa): Destroy edge var map.
1681         * tree-flow.h (struct _edge_var_map): New.
1682         Define edge_var_map vector type.
1683         Declare redirect_edge_var_map_* prototypes.
1684         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
1685         * tree-cfg.c (reinstall_phi_args): Replace
1686         PENDING_STMT use with redirect_edge_var_map_*.
1687
1688 2008-03-05  Richard Guenther  <rguenther@suse.de>
1689
1690         PR tree-optimization/35472
1691         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
1692         whose single use_stmt has a overlapping set of loaded and
1693         stored symbols as that use_stmt might be a noop assignment then.
1694
1695 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
1696
1697         * gthr-rtems.h: Implement __gthread_mutex_destroy.
1698
1699 2008-03-05  Richard Guenther  <rguenther@suse.de>
1700
1701         PR c++/35336
1702         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
1703         should be constants.
1704         * tree-cfg.c (verify_expr): Verify it.
1705         * fold-const.c (fold_truthop): Remove code generating
1706         BIT_FIELD_REFs of structure bases.
1707         (fold_binary): Likewise.
1708         (fold_ternary): Position and size of BIT_FIELD_REFs are
1709         always host integers.
1710         (make_bit_field_ref): Remove.
1711         (optimize_bit_field_compare): Remove.
1712         (all_ones_mask_p): Remove.
1713
1714 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
1715
1716         PR gcc/33009
1717         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
1718         (split_block_and_df_analyze): New. Split basic block and rebuild
1719         dataflow.
1720         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
1721         SPLIT_BLOCK.
1722         (split_pattern_seq): Likewise.
1723         (erase_matching_seqs): Likewise.
1724         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
1725
1726 2008-03-04  Geoff Keating  <geoffk@apple.com>
1727
1728         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
1729         declaration and code.
1730         (tree_invalid_nonnegative_warnv_p): Likewise.
1731
1732 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
1733
1734         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
1735         examples.  Truncate option-names then causing overfull hbox.
1736
1737 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1738
1739         PR target/35222
1740         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
1741         on hpux10.
1742         * configure: Rebuilt.
1743
1744 2008-03-04  Rafael Espindola  <espindola@google.com>
1745
1746         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
1747         (tree_unary_nonnegative_warnv_p): New.
1748         (tree_binary_nonnegative_warnv_p): New.
1749         (tree_single_nonnegative_warnv_p): New.
1750         (tree_invalid_nonnegative_warnv_p): New.
1751         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
1752
1753 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1754
1755         PR 28322
1756         * opts.c (handle_option): Postpone 'unknown option' errors only for
1757         warning options.
1758
1759 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
1760
1761         PR target/35453
1762         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
1763         (_SIDD_XXX): This.
1764
1765 2008-03-04  Rafael Espindola  <espindola@google.com>
1766
1767         * fold-const.c (tree_unary_nonzero_warnv_p): New.
1768         (tree_binary_nonzero_warnv_p): New.
1769         (tree_single_nonzero_warnv_p): New.
1770         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
1771
1772 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
1773
1774         PR middle-end/35456
1775         * fold-const.c (fold_cond_expr_with_comparison): Prevent
1776         transformations for modes that have signed zeros.
1777         * ifcvt.c (noce_try_abs): Ditto.
1778
1779 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
1780
1781         * config/i386/i386.c (override_options): Force
1782         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
1783
1784 2008-03-04  Jan Hubicka  <jh@suse.cz>
1785
1786         PR c++/35262
1787         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
1788         in last commit.
1789
1790 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1791
1792         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
1793         label to probe the stack.
1794
1795 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1796
1797         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
1798         (__gthr_win32_mutex_destroy): Declare.
1799         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
1800         __gthr_win32_mutex_destroy.
1801         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
1802
1803 2008-03-03  Jan Hubicka  <jh@suse.cz>
1804
1805         PR c++/35262
1806         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
1807         aggressive on inlining cold calls.
1808
1809 2008-03-03  Richard Guenther  <rguenther@suse.de>
1810
1811         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
1812         struct copies into the expression table.
1813         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
1814         (try_to_simplify): Likewise.
1815         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
1816         integral and pointer arguments which do not change the
1817         precision to NOP_EXPRs.
1818         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
1819         VIEW_CONVERT_EXPR case.
1820
1821 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
1822
1823         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
1824         defined in a loop at depth 0 is invariant.
1825         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
1826         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
1827         be called at loop depth 0.
1828
1829 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
1830
1831         PR driver/35420
1832         * gcc.c (process_command): Update copyright notice dates.
1833         * gcov.c (print_version): Likewise.
1834         * gcov-dump.c (print_version): Likewise.
1835         * mips-tfile.c (main): Likewise.
1836         * mips-tdump.c (main): Likewise.
1837
1838 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1839
1840         PR 24924
1841         * c-common.c (flag_permissive): Delete.
1842         (constant_expression_warnings): Check flags first.
1843         (constant_expression_error): New.
1844         * c-common.h (flag_permissive): Delete.
1845         (constant_expression_error): Declare.
1846         * flags.h (flag_permissive): Declare. Update description.
1847         * diagnostic.c (pedwarn): Update.
1848         (permerror): New.
1849         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
1850         (permissive_error_kind): New.
1851         * toplev.c (flag_permissive): Define. Update description.
1852         * toplev.h (permissive_error_kind): Declare.
1853         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
1854         (pedwarn_c90): Use pedantic_warning_kind.
1855         * c-opts.c (c_common_post_options): flag_permissive does not affect
1856         flag_pedantic_errors.
1857
1858 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
1859
1860         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
1861         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
1862         __absvsi2, __absvDI2): Use unsigned arithmetic.
1863
1864 2008-03-02  Andi Kleen  <ak@suse.de>
1865             Richard Guenther  <rguenther@suse.de>
1866
1867         * struct-equiv.c: Remove file.
1868         * cfg_cleanup.c (condjump_equiv_p): Remove.
1869         * Makefile.in (OBJS-common): Remove struct-equiv.o.
1870         (struct-equiv.o): Remove rule.
1871         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
1872         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
1873         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
1874
1875 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1876
1877         * ifcvt.c (noce_process_if_block): Try to handle only the then
1878         block if the else block exists but isn't suitable.
1879
1880 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1881
1882         PR gcc/35063
1883         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
1884         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
1885         regression from previous patch.
1886
1887 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1888
1889         PR gcc/35063
1890         * gthr.h: Add __gthread_mutex_destroy as a function that must be
1891         implemented.
1892         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
1893         * gthr-single.h (__gthread_mutex_destroy): Likewise.
1894         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
1895         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
1896         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
1897         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
1898         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
1899         (__gthread_mutex_destroy_function): Rename to
1900         __gthread_mutex_destroy.
1901         * gthr-dce.h (__gthread_mutex_destroy): Call
1902         pthread_mutex_destroy.
1903         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
1904         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
1905         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
1906
1907 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1908
1909         * df-scan.c (df_ref_chain_change_bb): Simplify.
1910         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
1911         set_block_for_insn if there's any change.
1912         * df.h ((df_insn_change_bb): Fix prototype.
1913         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
1914         df_insn_change_bb, don't call set_block_for_insn.
1915         * emit-rtl.c (reorder_insns): Likewise.
1916         * haifa-sched.c (move_insn): Likewise.
1917
1918 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1919
1920         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
1921
1922 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1923
1924         * tree-flow-inline.h (next_readonly_imm_use): Return
1925         NULL_USE_OPERAND_P after the end.
1926
1927 2008-03-01  Richard Guenther  <rguenther@suse.de>
1928
1929         PR tree-optimization/35411
1930         * tree-sra.c (sra_build_assignment): Split conversion to
1931         final type to a separate statement if we are not assigning
1932         to a register.
1933
1934 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1935
1936         * fold-const.c (fold_convertible_p): Correct the logic to follow
1937         that in fold_convert().
1938
1939 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
1940
1941         PR c++/35315
1942         * tree-inline.c (build_duplicate_type): When we make a
1943         duplicate type, make it unique in the canonical types system.
1944
1945 2008-02-29  Tom Tromey  <tromey@redhat.com>
1946
1947         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
1948         input_file_stack_history, input_file_stack_restored): Remove.
1949         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
1950         * input.h (struct file_stack): Remove.
1951         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
1952         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
1953         Likewise.
1954         * diagnostic.h (struct diagnostic_context) <last_module>: Change
1955         type.
1956         (diagnostic_last_module_changed): Add 'map' argument.
1957         (diagnostic_set_last_function): Likewise.
1958         * diagnostic.c (undiagnostic_report_current_module): Iterate using
1959         line map, not input_file_stack.
1960         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
1961
1962 2008-02-29  Paul Brook  <paul@codesourcery.com>
1963
1964         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
1965
1966 2008-02-29  Paul Brook  <paul@codesourcery.com>
1967
1968         * config/arm/ieee754-df.S (muldf3): Use RET macros.
1969
1970 2008-02-29  Richard Guenther  <rguenther@suse.de>
1971
1972         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
1973         vn_lookup_or_add.
1974         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
1975         value for comparing for a store match.
1976         (simplify_unary_expression): Do nothing for SSA_NAMEs.
1977         (try_to_simplify): Do not do a full-blown reference lookup.
1978
1979 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1980
1981         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
1982         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
1983
1984         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
1985
1986 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
1987
1988         * tree-loop-linear.c (try_interchange_loops): Compare memory access
1989         strides against cache sizes.
1990
1991 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1992
1993         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
1994         constant to fpul.
1995
1996 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
1997
1998         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
1999         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
2000         is smaller than the original promoted value.
2001         (simplify_subreg): If OP is a SUBREG, try to preserve its
2002         SUBREG_PROMOTED_VAR_P information.
2003
2004 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
2005
2006         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
2007         (VN_INFO_GET): Allocate new objects on the obstack.
2008         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
2009         for rpo_numbers_temp, for consistency.
2010         (free_scc_vn): Free the obstack.
2011
2012 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
2013
2014         * doc/invoke.texi: Document -ftree-loop-distribution.
2015         * tree-loop-distribution.c: New.
2016         * tree-pass.h (pass_loop_distribution): New.
2017         * graphds.h (struct graph): Add htab_t indices.
2018         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
2019         * tree-vectorizer.c (rename_variables_in_loop): Extern.
2020         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
2021         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
2022         * tree-data-ref.c (debug_data_dependence_relations): New.
2023         (dump_data_dependence_relation): Also print data references.
2024         (free_data_ref): Extern.
2025         (same_access_functions): Moved...
2026         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
2027         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2028         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
2029         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
2030         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
2031         (stmts_from_loop): Skip LABEL_EXPR.
2032         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
2033         New.
2034         (build_rdg): Initialize rdg->indices htab.
2035         (free_rdg, stores_from_loop, ref_base_address,
2036         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
2037         have_similar_memory_accesses_1, ref_base_address_1,
2038         remove_similar_memory_refs): New.
2039         * tree-data-ref.h: Depend on tree-chrec.h.
2040         (debug_data_dependence_relations, free_data_ref): Declared.
2041         (same_access_functions): ... here.
2042         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
2043         New.
2044         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
2045         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
2046         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
2047         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2048         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
2049         rdg_vertex_for_stmt): Declared.
2050         (struct rdg_edge): Add level.
2051         (RDGE_LEVEL): New.
2052         (free_rdg, stores_from_loop, remove_similar_memory_refs,
2053         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
2054         Declared.
2055         (rdg_has_similar_memory_accesses): New.
2056         * tree-vect-analyze.c: Remove unused static decls.
2057         * lambda.h (dependence_level): New.
2058         * common.opt (ftree-loop-distribution): New.
2059         * tree-flow.h (mark_virtual_ops_in_bb, 
2060         slpeel_tree_duplicate_loop_to_edge_cfg,
2061         rename_variables_in_loop): Declared.
2062         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
2063         (OBJS-common): Add tree-loop-distribution.o.
2064         (tree-loop-distribution.o): New rule.
2065         * tree-cfg.c (mark_virtual_ops_in_bb): New.
2066         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
2067         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
2068
2069 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
2070
2071         PR target/33963
2072         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
2073         other than structures and unions.
2074
2075 2008-02-28  Richard Guenther  <rguenther@suse.de>
2076
2077         Revert:
2078         2008-02-26  Richard Guenther  <rguenther@suse.de>
2079
2080         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2081         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2082         (lookup_decl_from_uid): Declare.
2083         (remove_decl_from_map): Likewise.
2084         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2085         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2086         (decl_for_uid_map): New global hashtable mapping DECL_UID
2087         to the decl tree.
2088         (init_ttree): Allocate it.
2089         (insert_decl_to_uid_decl_map): New helper function.
2090         (make_node_stat): Insert new decls into the map.
2091         (copy_node_stat): Likewise.
2092         (lookup_decl_from_uid): New function.
2093         (remove_decl_from_map): Likewise.
2094         (print_decl_for_uid_map_statistics): New helper.
2095         (dump_tree_statistics): Call it.
2096
2097         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2098         (referenced_var_iterator): Adjust.
2099         (FOR_EACH_REFERENCED_VAR): Adjust.
2100         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2101         (num_referenced_vars): Adjust.
2102         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2103         (first_referenced_var): Remove.
2104         (end_referenced_vars_p): Likewise.
2105         (next_referenced_var): Likewise.
2106         (referenced_var_iterator_set): New helper function.
2107         * tree-dfa.c (referenced_var_lookup): Adjust.
2108         (referenced_var_check_and_insert): Likewise.
2109         (remove_referenced_var): Likewise.
2110         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2111         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2112         (verify_call_clobbering): Likewise.
2113         (verify_memory_partitions): Likewise.
2114         (init_tree_ssa): Allocate bitmap instead of hashtable for
2115         referenced_vars.
2116         (delete_tree_ssa): Adjust.
2117         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2118         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2119         (compute_tag_properties): Likewise.
2120         (set_initial_properties): Likewise.
2121         (find_partition_for): Likewise.
2122         (update_reference_counts): Likewise.
2123         (dump_may_aliases_for): Likewise.
2124         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2125         (add_call_clobber_ops): Likewise.
2126         (add_call_read_ops): Likewise.
2127         (get_asm_expr_operands): Likewise.
2128         * tree-into-ssa.c (dump_decl_set): Likewise.
2129         (update_ssa): Likewise.
2130         * tree-sra.c (scan_function): Likewise.
2131         (decide_instantiations): Likewise.
2132         (scalarize_parms): Likewise.
2133         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2134         (dsa_named_for): Likewise.
2135         * tree-ssa-structalias.c (update_alias_info): Likewise.
2136         (merge_smts_into): Likewise.
2137
2138 2008-02-27  David Daney  <ddaney@avtrex.com>
2139
2140         PR target/34409
2141         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
2142         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
2143         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
2144         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
2145         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
2146
2147 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
2148
2149         PR target/25477
2150         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
2151         (BUILT_IN_NEXTTOWARD): Remove.
2152         (BUILT_IN_NEXTTOWARDF): Ditto.
2153         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
2154         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
2155
2156 2008-02-27  Tom Tromey  <tromey@redhat.com>
2157
2158         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
2159         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
2160
2161 2008-02-27  Jan Beulich  <jbeulich@novell.com>
2162
2163         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
2164         update the respective field on newdecl.
2165
2166 2008-02-27  Revital Eres  <eres@il.ibm.com>
2167
2168         PR rtl-optimization/34999
2169         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
2170         crossing edges that ends with a call insn.
2171         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
2172         call insn and clear the EDGE_CROSSING flag of the crossing edge
2173         when fixing fallthru edges.
2174
2175 2008-02-27  Richard Guenther  <rguenther@suse.de>
2176
2177         PR middle-end/35390
2178         * fold-const.c (fold_unary): Return the correct argument,
2179         converted to the result type.
2180
2181 2008-02-27  Richard Guenther  <rguenther@suse.de>
2182
2183         PR middle-end/34971
2184         * expr.c (expand_expr_real_1): Assert on rotates that operate
2185         on partial modes.
2186         * fold-const.c (fold_binary): Use the types precision, not the
2187         bitsize of the mode if folding rotate expressions.  Build rotates
2188         only for full modes.
2189
2190 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
2191
2192         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
2193         and CPP_PRAGMA_EOL.
2194         * c-pragma.c (pragma_ns_name): New typedef.
2195         (registered_pp_pragmas): New variable.
2196         (c_pp_lookup_pragma): New function.
2197         (c_register_pragma_1): If flag_preprocess_only, do nothing
2198         for non-expanded pragmas, for expanded ones push pragma's
2199         namespace and name into registered_pp_pragmas vector.
2200         (c_invoke_pragma_handler): Register OpenMP pragmas even when
2201         flag_preprocess_only, don't register GCC pch_preprocess
2202         pragma if flag_preprocess_only.
2203         * c-opts.c (c_common_init): Call init_pragma even if
2204         flag_preprocess_only.
2205         * c-pragma.c (c_pp_lookup_pragma): New prototype.
2206         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
2207         cpp_register_pragma if flag_preprocess_only.
2208
2209 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2210
2211         PR c/28800
2212         * c-parser.c (c_parser_translation_unit): Warn for empty
2213         translation unit, not empty source file.
2214
2215 2008-02-26  Paul Brook  <paul@codesourcery.com>
2216
2217         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
2218         operand for Thumb-2.
2219         * config/arm/arm.h (reg_class): Add CORE_REGS.
2220         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
2221         (BASE_REG_CLASS): Use CORE_REGS.
2222         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
2223         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
2224         (REGNO_OK_FOR_INDEX_P): Exclude SP.
2225         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
2226         ARM_REGNO_OK_FOR_INDEX_P.
2227         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
2228         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
2229         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
2230         (ldm/stm peepholes): Ditto.
2231         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
2232         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
2233         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
2234         * config/arm/constraints.md: Enable "k" constraint on ARM.
2235
2236 2008-02-27  Ben Elliston  <bje@au.ibm.com>
2237
2238         * config/rs6000/rs6000.c: Annotate cache line size field in all
2239         instances of struct processor_costs.
2240
2241 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
2242
2243         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
2244         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
2245         jump_bypass): New counters.
2246         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
2247         * dce.c (gate_ud_dce): Same.
2248         (gate_fast_dce): Same.
2249         * dse.c (gate_dse1): New function.
2250         (gate_dse2): New function.
2251         (gate_dse): Merge results of new gate functions.
2252         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
2253         (gate_handle_jump_bypass): Add dbg_cnt.
2254         (gate_handle_gcse): Add dbg_cnt.
2255         * ifcvt.c (gate_handle_if_conversion): Same.
2256         (gate_handle_if_after_combine): Same.
2257         (gate_handle_if_after_reload): Same.
2258         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
2259
2260 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
2261
2262         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
2263         line sizes.
2264         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
2265
2266 2008-02-26  Jason Merrill  <jason@redhat.com>
2267
2268         PR c++/35315
2269         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
2270         alone if it's the naming decl for the type's main variant.
2271
2272 2008-02-26  Tom Tromey  <tromey@redhat.com>
2273
2274         * system.h (USE_MAPPED_LOCATION): Poison.
2275         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
2276         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
2277         (make_goto_expr_edges): Likewise.
2278         (remove_bb): Likewise.
2279         (execute_warn_function_return): Likewise.
2280         * basic-block.h (struct edge_def) <goto_locus>: Change type to
2281         location_t.
2282         * c-common.c (fname_decl): Remove old location code.
2283         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
2284         location code.
2285         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
2286         variant.
2287         (ASM_INPUT_SOURCE_LOCATION): Likewise.
2288         (gen_rtx_ASM_INPUT): Likewise.
2289         (gen_rtx_ASM_INPUT_loc): Likewise.
2290         (get_rtx_asm_OPERANDS): Remove.
2291         * cfglayout.c (insn_locators_alloc): Remove old location code.
2292         (set_curr_insn_source_location): Likewise.
2293         (curr_insn_locator): Likewise.
2294         * print-tree.c (print_node): Remove old location code.
2295         * tree-mudflap.c (mf_varname_tree): Remove old location code.
2296         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
2297         * cfgexpand.c (expand_gimple_cond_expr): Don't use
2298         location_from_locus.
2299         (construct_exit_block): Remove old location code.
2300         * emit-rtl.c (force_next_line_note): Remove old location code.
2301         * profile.c (branch_prob): Remove old location code.
2302         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2303         LOC_LINE): Remove old-location variants.
2304         * langhooks.c (lhd_print_error_function): Remove old location
2305         code.
2306         * configure, config.in: Rebuilt.
2307         * configure.ac (--enable-mapped-location): Remove.
2308         * c-decl.c (c_init_decl_processing): Remove old location code.
2309         (finish_function): Likewise.
2310         * recog.c (decode_asm_operands): Remove old location code.
2311         * c-pch.c (c_common_read_pch): Remove old location code.
2312         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
2313         variants.
2314         * gimple-low.c (lower_function_body): Remove old location code.
2315         * toplev.c (unknown_location): Remove.
2316         (push_srcloc): Remove old-location variant.
2317         (process_options): Remove old location code.
2318         (lang_dependent_init): Likewise.
2319         * input.h (UNKNOWN_LOCATION): Move definition.
2320         (location_t): Undeprecate.
2321         (source_locus): Remove.
2322         (location_from_locus): Remove.
2323         (struct location_s): Remove.
2324         Remove all old-location code.
2325         (input_line, input_filename): Remove.
2326         * final.c (final_scan_insn): Remove old location code.
2327         * diagnostic.c (diagnostic_build_prefix): Remove
2328         USE_MAPPED_LOCATION test.
2329         * tree.h (gimple_stmt) <locus>: Now a location_t.
2330         (tree_exp) <locus>: Likewise.
2331         (DECL_IS_BUILTIN): Remove old-location variant.
2332         (annotate_with_file_line, annotate_with_locus): Likewise.
2333         (expr_locus, set_expr_locus): Update.
2334         * tree.c (build1_stat): Remove old location code.
2335         (last_annotated_node): Remove.
2336         (annotate_with_file_line): Remove old-location variant.
2337         (annotate_with_locus): Likewise.
2338         (expr_location): Remove old location code.
2339         (set_expr_location): Likewise.
2340         (expr_has_location): Likewise.
2341         (expr_locus): Likewise.
2342         (set_expr_locus): Likewise.
2343         (expr_filename): Don't use location_from_locus.
2344         (expr_lineno): Likewise.
2345         * rtl-error.c (location_for_asm): Remove old location code.
2346         * c-lex.c (cb_line_change): Remove old location code.
2347         (fe_file_change): Likewise.
2348         (cb_def_pragma): Likewise.
2349         (c_lex_with_flags): Likewise.
2350         * gengtype.c (do_typedef): Don't special-case location types.
2351         (define_location_structures): Remove.
2352         (main): Don't call define_location_structures.
2353         * tree-pretty-print.c (dump_implicit_edges): Remove old location
2354         code.
2355
2356 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2357
2358         PR 26264
2359         * builtins.def (BUILT_IN_STDARG_START): Remove.
2360         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
2361         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2362         * tree-inline.c (inline_forbidden_p_1): Likewise.
2363         
2364 2008-02-26  Richard Guenther  <rguenther@suse.de>
2365
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         (remove_decl_from_map): Likewise.
2370         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2371         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2372         (decl_for_uid_map): New global hashtable mapping DECL_UID
2373         to the decl tree.
2374         (init_ttree): Allocate it.
2375         (insert_decl_to_uid_decl_map): New helper function.
2376         (make_node_stat): Insert new decls into the map.
2377         (copy_node_stat): Likewise.
2378         (lookup_decl_from_uid): New function.
2379         (remove_decl_from_map): Likewise.
2380         (print_decl_for_uid_map_statistics): New helper.
2381         (dump_tree_statistics): Call it.
2382
2383         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2384         (referenced_var_iterator): Adjust.
2385         (FOR_EACH_REFERENCED_VAR): Adjust.
2386         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2387         (num_referenced_vars): Adjust.
2388         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2389         (first_referenced_var): Remove.
2390         (end_referenced_vars_p): Likewise.
2391         (next_referenced_var): Likewise.
2392         (referenced_var_iterator_set): New helper function.
2393         * tree-dfa.c (referenced_var_lookup): Adjust.
2394         (referenced_var_check_and_insert): Likewise.
2395         (remove_referenced_var): Likewise.
2396         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2397         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2398         (verify_call_clobbering): Likewise.
2399         (verify_memory_partitions): Likewise.
2400         (init_tree_ssa): Allocate bitmap instead of hashtable for
2401         referenced_vars.
2402         (delete_tree_ssa): Adjust.
2403         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2404         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2405         (compute_tag_properties): Likewise.
2406         (set_initial_properties): Likewise.
2407         (find_partition_for): Likewise.
2408         (update_reference_counts): Likewise.
2409         (dump_may_aliases_for): Likewise.
2410         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2411         (add_call_clobber_ops): Likewise.
2412         (add_call_read_ops): Likewise.
2413         (get_asm_expr_operands): Likewise.
2414         * tree-into-ssa.c (dump_decl_set): Likewise.
2415         (update_ssa): Likewise.
2416         * tree-sra.c (scan_function): Likewise.
2417         (decide_instantiations): Likewise.
2418         (scalarize_parms): Likewise.
2419         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2420         (dsa_named_for): Likewise.
2421         * tree-ssa-structalias.c (update_alias_info): Likewise.
2422         (merge_smts_into): Likewise.
2423
2424 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2425
2426         PR 34351
2427         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
2428         * c-opts.c (c_common_handle_option): Wall enables
2429         Wvolatile-register-var.
2430         * common.opt: Move Wvolatile-register-var to...
2431         * c.opt: ...here.
2432         
2433 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2434
2435         * common.opt (Wlarger-than=): New.
2436         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
2437         -Wlarger-than=.
2438         * opts.c (common_handle_option): Handle -Wlarger-than=.
2439         * optc-gen.awk: Likewise.
2440         * opth-gen.awk: Likewise.
2441         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
2442         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2443         
2444 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2445
2446         * c-common.c (match_case_to_enum_1): Add appropriate
2447         OPT_W* parameter to warning.
2448         (c_do_switch_warnings): Likewise.
2449         * c-typeck.c (warning_init): Add one more parameter following
2450         'warning' function.
2451         (push_init_level): Update call to warning_init.
2452         (pop_init_level): Likewise.
2453         (add_pending_init): Likewise.
2454         (output_init_element: Likewise.
2455
2456 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2457
2458         PR 28322
2459         * toplev.c (toplev_main): If there are warnings or error, print
2460         errors for ignored options.
2461         * opts.c (ignored_options): New static variable.
2462         (postpone_unknown_option_error): New.
2463         (print_ignored_options): New.
2464         (handle_option): Postpone errors for unknown -Wno-* options.
2465         * opts.h (print_ignored_options): Declare.
2466         
2467 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
2468
2469         * config/mips/mips.md (loadgp_blockage, blockage): Change type
2470         to "ghost".
2471
2472 2008-02-25  Richard Guenther  <rguenther@suse.de>
2473
2474         Revert:
2475         2008-02-25  Richard Guenther  <rguenther@suse.de>
2476
2477         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2478         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2479         (lookup_decl_from_uid): Declare.
2480         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2481         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2482         (decl_for_uid_map): New global hashtable mapping DECL_UID
2483         to the decl tree.
2484         (init_ttree): Allocate it.
2485         (insert_decl_to_uid_decl_map): New helper function.
2486         (make_node_stat): Insert new decls into the map.
2487         (copy_node_stat): Likewise.
2488         (lookup_decl_from_uid): New function.
2489         (print_decl_for_uid_map_statistics): New helper.
2490         (dump_tree_statistics): Call it.
2491
2492         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2493         (referenced_var_iterator): Adjust.
2494         (FOR_EACH_REFERENCED_VAR): Adjust.
2495         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2496         (num_referenced_vars): Adjust.
2497         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2498         (first_referenced_var): Remove.
2499         (end_referenced_vars_p): Likewise.
2500         (next_referenced_var): Likewise.
2501         (referenced_var_iterator_set): New helper function.
2502         * tree-dfa.c (referenced_var_lookup): Adjust.
2503         (referenced_var_check_and_insert): Likewise.
2504         (remove_referenced_var): Likewise.
2505         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2506         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2507         (verify_call_clobbering): Likewise.
2508         (verify_memory_partitions): Likewise.
2509         (init_tree_ssa): Allocate bitmap instead of hashtable for
2510         referenced_vars.
2511         (delete_tree_ssa): Adjust.
2512         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2513         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2514         (compute_tag_properties): Likewise.
2515         (set_initial_properties): Likewise.
2516         (find_partition_for): Likewise.
2517         (update_reference_counts): Likewise.
2518         (dump_may_aliases_for): Likewise.
2519         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2520         (add_call_clobber_ops): Likewise.
2521         (add_call_read_ops): Likewise.
2522         (get_asm_expr_operands): Likewise.
2523         * tree-into-ssa.c (dump_decl_set): Likewise.
2524         (update_ssa): Likewise.
2525         * tree-sra.c (scan_function): Likewise.
2526         (decide_instantiations): Likewise.
2527         (scalarize_parms): Likewise.
2528         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2529         (dsa_named_for): Likewise.
2530         * tree-ssa-structalias.c (update_alias_info): Likewise.
2531         (merge_smts_into): Likewise.
2532
2533 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2534
2535         PR fortran/29549
2536         * doc/invoke.texi (-fcx-limited-range): Document new option.
2537         * toplev.c (process_options): Handle -fcx-fortran-rules.
2538         * common.opt: Add documentation for -fcx-fortran-rules.
2539
2540 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2541
2542         PR c/35162
2543         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
2544         actual behaviour and C99.
2545         
2546 2008-02-26  Ben Elliston  <bje@au.ibm.com>
2547
2548         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
2549         (ASM_CPU_POWER6_SPEC): Likewise.
2550         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
2551         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
2552         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
2553
2554 2008-02-25  Richard Guenther  <rguenther@suse.de>
2555
2556         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2557         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2558         (lookup_decl_from_uid): Declare.
2559         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2560         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2561         (decl_for_uid_map): New global hashtable mapping DECL_UID
2562         to the decl tree.
2563         (init_ttree): Allocate it.
2564         (insert_decl_to_uid_decl_map): New helper function.
2565         (make_node_stat): Insert new decls into the map.
2566         (copy_node_stat): Likewise.
2567         (lookup_decl_from_uid): New function.
2568         (print_decl_for_uid_map_statistics): New helper.
2569         (dump_tree_statistics): Call it.
2570
2571         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2572         (referenced_var_iterator): Adjust.
2573         (FOR_EACH_REFERENCED_VAR): Adjust.
2574         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2575         (num_referenced_vars): Adjust.
2576         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2577         (first_referenced_var): Remove.
2578         (end_referenced_vars_p): Likewise.
2579         (next_referenced_var): Likewise.
2580         (referenced_var_iterator_set): New helper function.
2581         * tree-dfa.c (referenced_var_lookup): Adjust.
2582         (referenced_var_check_and_insert): Likewise.
2583         (remove_referenced_var): Likewise.
2584         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2585         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2586         (verify_call_clobbering): Likewise.
2587         (verify_memory_partitions): Likewise.
2588         (init_tree_ssa): Allocate bitmap instead of hashtable for
2589         referenced_vars.
2590         (delete_tree_ssa): Adjust.
2591         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2592         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2593         (compute_tag_properties): Likewise.
2594         (set_initial_properties): Likewise.
2595         (find_partition_for): Likewise.
2596         (update_reference_counts): Likewise.
2597         (dump_may_aliases_for): Likewise.
2598         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2599         (add_call_clobber_ops): Likewise.
2600         (add_call_read_ops): Likewise.
2601         (get_asm_expr_operands): Likewise.
2602         * tree-into-ssa.c (dump_decl_set): Likewise.
2603         (update_ssa): Likewise.
2604         * tree-sra.c (scan_function): Likewise.
2605         (decide_instantiations): Likewise.
2606         (scalarize_parms): Likewise.
2607         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2608         (dsa_named_for): Likewise.
2609         * tree-ssa-structalias.c (update_alias_info): Likewise.
2610         (merge_smts_into): Likewise.
2611
2612 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
2613
2614         PR target/35258
2615         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
2616         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
2617         * alias.h (nonoverlapping_memrefs_p): Likewise.
2618
2619 2008-02-25  Jan Beulich  <jbeulich@novell.com>
2620
2621         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
2622         * config/i386/netware-libgcc.exp: Add __bswap?i2,
2623         __emultls_get_address, __emultls_register_common,
2624         __floatundi?f, and _Unwind_GetIPInfo.
2625         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
2626         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
2627         (gen_regparm_prefix): Likewise.
2628         (i386_nlm_encode_section_info): Sync with
2629         config/i386/winnt.c:i386_pe_encode_section_info().
2630         (i386_nlm_maybe_mangle_decl_assembler_name): New.
2631         i386_nlm_mangle_decl_assembler_name): New.
2632         (netware_override_options): New.
2633         * config/i386/netware.h (netware_override_options): Declare.
2634         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
2635         (i386_nlm_mangle_decl_assembler_name): Declare.
2636         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
2637
2638 2008-02-25  Ben Elliston  <bje@au.ibm.com>
2639
2640         PR other/32948
2641         * c-decl.c (grokdeclarator): Remove unused local variables
2642         `typedef_type' and `type_as_written'.
2643         * bb-reorder.c
2644         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
2645         unused local variable `has_hot_blocks'.
2646         (fix_crossing_conditional_branches): Remove unused local variable
2647         `prev_bb'.
2648         
2649 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
2650
2651         PR middle-end/19984
2652         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
2653         using DEF_C99_BUILTIN.
2654         (BUILT_IN_NANF): Ditto.
2655         (BUILT_IN_NANL): Ditto.
2656
2657 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
2658             Revital Eres  <eres@il.ibm.com>
2659
2660         * modulo-sched.c (calculate_must_precede_follow): Address TODO
2661         regarding the order of two dependent insns in the same row.
2662
2663 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
2664
2665         * stor-layout.c (layout_decl): Do not bump the alignment of a
2666         bit-field to more than byte alignment if it is packed.
2667
2668 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
2669
2670         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
2671         e300c2 and e300c3.
2672
2673 2008-02-24  Diego Novillo  <dnovillo@google.com>
2674
2675         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
2676
2677         PR 33738
2678         * tree-vrp.c (vrp_evaluate_conditional): With
2679         -Wtype-limits, emit a warning when comparing against a
2680         constant outside the natural range of OP0's type.
2681         * c.opt (Wtype-limits): Move ...
2682         * common.opt (Wtype-limits): ... here.
2683
2684 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
2685
2686         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
2687         * config/rs6000/e300c2c3.md: New file.
2688         * config/rs6000/rs6000.c (processor_costs): Add new costs for
2689         e300c2 and e300c3.
2690         (rs6000_override_options): Add e300c2 and e300c3 cases to
2691         processor_target_table. Do not allow usage of Altivec or Spe
2692         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
2693         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
2694         * config/rs6000/rs6000.h (processor_type): Add
2695         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
2696         (ASM_CPU_SPEC): Add e300c2 and e300c3.
2697         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
2698         and ppce300c3. Include e300c2c3.md.
2699
2700 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
2701
2702         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
2703         instead of TARGET_STRICT_ALIGN.
2704
2705 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
2706
2707         * explow.c (memory_address): Assert that the generated address is
2708         valid.
2709
2710 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2711
2712         PR target/25477
2713         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
2714         * config/darwin-ppc-ldouble-patch.def: New file.
2715         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
2716         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
2717         SUBTARGET_INIT_BUILTINS if defined.
2718         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
2719         New functions.
2720
2721 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2722
2723         PR rtl-opt/33512
2724         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
2725         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
2726
2727 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2728
2729         PR pch/35027
2730         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
2731         file" warning condtional on -Winvalid-PCH.
2732
2733 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
2734
2735         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
2736
2737 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
2738
2739         PR target/22076
2740         PR target/34256 
2741         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
2742         prevent reload from using MMX registers.
2743         (*mov<mode>_internal): Ditto.
2744         (*movv2sf_internal_rex64): Ditto.
2745         (*movv2sf_internal): Ditto.
2746
2747 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2748
2749         PR documentation/31569
2750         * doc/install.texi2html: Use makeinfo --no-number-sections.
2751
2752 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2753
2754         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
2755         ensure that we can address an entire entity > 8 bytes.  Don't
2756         generate reg+reg addressing for such data.
2757
2758 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2759
2760         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
2761         strings when optimizing for size, unless the target cares about
2762         alignment.
2763
2764 2008-02-22  Tom Tromey  <tromey@redhat.com>
2765
2766         * regclass.c (current_pass): Remove declaration.
2767
2768 2008-02-22  Anatoly Sokolov <aesok@post.ru>
2769
2770         * config/avr/libgcc.S (__RAMPZ__): Define.
2771         (__do_copy_data): Add for devices with 128KB code memory.
2772
2773 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2774
2775         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2776         Use spe_abi.
2777         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2778
2779 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
2780
2781         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
2782         GENNONACR_REGS.
2783
2784 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2785
2786         PR c/19999
2787         * c-typeck.c (build_binary_op): Warn about floating point
2788         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
2789
2790 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
2791
2792         PR target/34526
2793         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
2794         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
2795         add vrsave.
2796         (rs6000_override_options): Set altivec_abi as default, not override,
2797         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
2798         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
2799         is used; use new member spe_abi.
2800         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
2801         spe_abi and altivec_abi.
2802
2803 2008-02-22  Tomas Bily  <tbily@suse.cz>
2804
2805         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
2806
2807 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2808
2809         PR bootstrap/35273
2810         * config.build (build_file_translate): Set to `CMD //c' only if
2811         it works.
2812         * Makefile.in (build_file_translate): Improve comment.
2813
2814 2008-02-21  Jan Hubicka  <jh@suse.cz>
2815
2816         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
2817         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
2818         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
2819
2820 2008-02-21  Michael Matz  <matz@suse.de>
2821
2822         PR target/35264
2823         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
2824
2825 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
2826
2827         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
2828         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
2829         as insn constraint.
2830         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
2831         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
2832         SSE_VEC_FLOAT_MODE_P as insn constraint.
2833         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
2834         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
2835         sse4a_movntdf using MODEF mode iterator.
2836         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
2837         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
2838         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
2839         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
2840         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
2841         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
2842         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
2843
2844 2008-02-21  Richard Guenther  <rguenther@suse.de>
2845
2846         * tree.def (PAREN_EXPR): New tree code.
2847         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
2848         and PAREN_EXPR.
2849         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
2850         * expr.c (expand_expr_real_1): Likewise.
2851         * tree-inline.c (estimate_num_insns_1): Likewise.
2852         * tree-complex.c (expand_complex_move): Likewise.
2853         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
2854         as plain x.
2855
2856 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2857
2858         PR target/35225
2859         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
2860
2861 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2862
2863         PR target/35190
2864         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
2865
2866         * config/sh/sh.c (find_barrier): Don't go past
2867         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
2868
2869 2008-02-20  DJ Delorie  <dj@redhat.com>
2870
2871         * config/h8300/h8300.md (insv): Force source operand to be a register.
2872
2873         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
2874         as a jump, not as a plain insn.
2875         
2876 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
2877
2878         * doc/invoke.texi (Warning Options): Add new option
2879         -Wframe-larger-than=.
2880         (-Wframe-larger-than): Document.
2881
2882         * flags.h (warn_frame_larger_than, frame_larger_than_size):
2883         Add declarations for new option variables.
2884
2885         * final.c (final_start_function): Check the frame size
2886         before emission and issue a Wframe-larger-than warning.
2887
2888         * opts.c (warn_frame_larger_than, frame_larger_than_size):
2889         Add definitions for new option variables.
2890         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
2891
2892         * common.opt (Wframe-larger-than=): New option.
2893
2894 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
2895
2896         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
2897         (<sse>_div<mode>3): Ditto.
2898         (<sse>_vmdiv<mode>3): Ditto.
2899         (<sse>_vmsqrt<mode>2): Ditto.
2900         (*smax<mode>3): Ditto.
2901         (sse5_frcz<mode>2): Ditto.
2902         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
2903         as insn constraint.
2904
2905 2008-02-20  Richard Guenther  <rguenther@suse.de>
2906
2907         PR middle-end/35265
2908         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
2909         be happy with INTEGRAL_TYPE_P.
2910
2911 2008-02-20  Richard Guenther  <rguenther@suse.de>
2912
2913         * fold-const.c (split_tree): Associate floatig-point expressions
2914         if flag_associative_math is set.
2915
2916 2008-02-20  Richard Guenther  <rguenther@suse.de>
2917
2918         * tree.h (fold_real_zero_addition_p): Declare.
2919         * fold-const.c (fold_real_zero_addition_p): Export.
2920         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
2921         floating-point operations with zero and one.
2922
2923 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
2924
2925         * doc/install.texi: Correct references to CFLAGS, replacing them
2926         with BOOT_CFLAGS.  Document flags used during bootstrap for
2927         target libraries.
2928                                 
2929 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
2930
2931         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
2932         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
2933         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
2934         insn constraint.
2935         (smin<mode>3): Ditto from similar patterns.
2936         (smax<mode>3): Ditto.
2937         (*ieee_smin<mode>3): Ditto.
2938         (*ieee_smax<mode>3): Ditto.
2939         * config/i386/sse.md (sse): New mode attribute.
2940         (mov<mode>): Macroize expander from movv4sf and movv2df using
2941         SSEMODEF2P mode iterator.
2942         (<sse>_movnt<mode>): Ditto from similar patterns. Use
2943         SSE_VEC_FLOAT_MODE_P as insn constraint.
2944         (storent<mode>): Ditto.
2945         (storent<mode>): Macroize expander from storentsf and storentdf using
2946         MODEF mode iterator.
2947         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
2948         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
2949         (abs<mode>2): Ditto from similar patterns.
2950         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
2951         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
2952         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
2953         (<sse>_vmsqrt<mode>2): Ditto.
2954         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
2955         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
2956         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
2957         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
2958         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
2959         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
2960         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
2961         insn constraint.
2962         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
2963         iterator and SSE_FLOAT_MODE_P as insn constraint.
2964         (<sse>_ucomi): Ditto from similar patterns.
2965         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
2966         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
2967         SSE_VEC_FLOAT_MODE_P as insn constraint.
2968         (vcond<mode>): Ditto from similar patterns.
2969         (and<mode>3, *and<mode>3): Ditto.
2970         (<sse>_nand<mode>3): Ditto.
2971         (ior<mode>3, *ior<mode>3): Ditto.
2972         (xor<mode>3, *xor<mode>3): Ditto.
2973         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
2974         iterator and SSE_FLOAT_MODE_P as insn constraint.
2975         (*nand<mode>3): Ditto from similar patterns.
2976         (*ior<mode>3): Ditto.
2977         (*xor<mode>3): Ditto.
2978
2979 2008-02-20  Ira Rosen  <irar@il.ibm.com>
2980
2981         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
2982         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
2983         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
2984
2985 2008-02-19  Jan Hubicka  <jh@suse.cz>
2986
2987         * predict.c (tree_bb_level_predictions): Remove variable next
2988         mistakely introduced by previous commit.
2989
2990 2008-02-19  Jan Hubicka  <jh@suse.cz>
2991
2992         * predict.c (predict_paths_leading_to): Rewrite.
2993         (predict_paths_for_bb): New.
2994         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
2995
2996 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2997
2998         PR bootstrap/35218
2999         * Makefile.in (build_file_translate): New.
3000         (gcc-vers.texi): Use it for translating $(abs_srcdir).
3001         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
3002         * configure.ac (build_file_translate): Substitute it.
3003         * configure: Regenerate.
3004
3005 2008-02-19  Jan Hubicka  <jh@suse.cz>
3006
3007         PR rtl-optimization/34408
3008         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
3009         invalid sharing.
3010
3011 2008-02-19  Jan Hubicka  <jh@suse.cz>
3012
3013         PR middle-end/28779
3014         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
3015         call_expr.
3016
3017 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
3018
3019         PR Ada/35186
3020         * config/i386/i386-modes.def: Revert the last DI alignment
3021         change until Ada people can look into it.
3022
3023 2008-02-19  Nick Clifton  <nickc@redhat.com>
3024
3025         * opts.c (print_specific_help): Fix typo in --help text.
3026
3027 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
3028
3029         PR target/35239
3030         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
3031         32-bit inline asm without asm alternatives for host GCC < 3.0.
3032
3033 2008-02-19  Richard Guenther  <rguenther@suse.de>
3034
3035         PR tree-optimization/34989
3036         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
3037         Allow propagation to INDIRECT_REF if we can simplify only.
3038
3039 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3040
3041         * c-common.c (warn_for_collisions_1): Use appropriate option when
3042         warning.
3043
3044 2008-02-19  Nick Clifton  <nickc@redhat.com>
3045
3046         PR other/31349
3047         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
3048         (handle_options): Fix indentation.
3049         (print_filtered_help): If no language-specific options were
3050         displayed tell the user how to list all the options supported by
3051         the language's front-end.
3052         (print_specific_help): Fix indentation and remove duplicate line.
3053         (common_handle_option): Handle the -v option.
3054         For --help enable the display of undocumented options if the -v
3055         switch has been included on the command line.
3056         For --help= check for overlaps in the arguments between the option
3057         classes and the language names and issue a warning when they
3058         cannot be disambiguated.
3059         * c.opt (v): Pass on to the common option handler.
3060
3061 2008-02-19  Revital Eres  <eres@il.ibm.com> 
3062
3063         * modulo-sched.c (sms_schedule): Change dump message when
3064         create_ddg function fails.
3065         (try_scheduling_node_in_cycle): Rename row to cycle.
3066         (print_partial_schedule): Rename CYCLE to ROW.
3067
3068 2008-02-19  Christian Bruel  <christian.bruel@st.com>
3069             Zdenek Dvorak  <ook@ucw.cz>
3070
3071         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
3072
3073 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
3074
3075         PR target/33555
3076         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
3077         (*x86_movdicc_0_m1_se): Ditto.
3078
3079 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
3080
3081         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
3082         (CMPtype): Define as __gcc_CMPtype.
3083         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
3084         (CMPtype): Define as __gcc_CMPtype.
3085
3086 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
3087
3088         Support valgrind 3.3 for --enable-checking=valgrind.
3089         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
3090         here.
3091         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
3092         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
3093         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
3094         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
3095         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
3096         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
3097         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
3098         respectively.
3099         * ggc-zone.c: Similar.
3100         * ggc-page.c: Similar.
3101
3102 2008-02-19  Paul Brook  <paul@codesourcery.com>
3103
3104         PR target/35071
3105         * config/arm/ieee754-df.S: Fix do_it typo.
3106         * config/arm/ieee754-sf.S: Fix do_it typo.
3107
3108 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3109
3110         PR target/35189
3111         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
3112         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
3113         (OPTION_MASK_ISA_SSE_SET): Likewise.
3114         (OPTION_MASK_ISA_SSE2_SET): Likewise.
3115         (OPTION_MASK_ISA_SSE3_SET): Likewise.
3116         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
3117         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
3118         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
3119         (OPTION_MASK_ISA_SSE4_SET): Likewise.
3120         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
3121         (OPTION_MASK_ISA_SSE5_SET): Likewise.
3122         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
3123         (OPTION_MASK_ISA_MMX_UNSET): Updated.
3124         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
3125         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
3126         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
3127         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
3128         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
3129         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
3130         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
3131         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
3132         (OPTION_MASK_ISA_SSE4): Removed.
3133         (ix86_handle_option): Turn on bits in ix86_isa_flags and
3134         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
3135         (override_options): Don't turn on implied SSE/MMX bits in
3136         ix86_isa_flags.
3137
3138 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3139
3140         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3141         32bit host.
3142
3143 2008-02-18  Joey Ye  <joey.ye@intel.com>
3144
3145         PR middle-end/34921
3146         * tree-nested.c (insert_field_into_struct): Set type alignment
3147         to field alignment if the former is less than the latter.
3148
3149 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
3150
3151         * BASE-VER: Set to 4.4.0.
3152
3153 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3154
3155         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
3156         * doc/cfg.texi: Likewise.
3157         * doc/extend.texi: Likewise.
3158         * doc/gty.texi: Likewise.
3159         * doc/invoke.texi: Likewise.
3160         * doc/loop.texi: Likewise.
3161         * doc/md.texi: Likewise.
3162         * doc/passes.texi: Likewise.
3163         * doc/rtl.texi: Likewise.
3164         * doc/sourcebuild.texi: Likewise.
3165         * doc/tm.texi: Likewise.
3166         * doc/tree-ssa.texi: Likewise.
3167
3168 2008-02-17  Richard Guenther  <rguenther@suse.de>
3169
3170         PR middle-end/35227
3171         * tree-complex.c (init_parameter_lattice_values): Handle parameters
3172         without default definition.
3173
3174 2008-02-17  Richard Guenther  <rguenther@suse.de>
3175
3176         PR tree-optimization/35231
3177         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
3178         if A | B != 1.
3179
3180 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
3181
3182         Revert:
3183         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
3184         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
3185         libgcc_cmp_return mode.
3186
3187 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3188
3189         PR c/28368
3190         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
3191
3192 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
3193
3194         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
3195         multilibs.
3196
3197 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3198
3199         * doc/c-tree.texi: Use `@.' where appropriate.
3200         * doc/extend.texi: Likewise.
3201         * doc/install.texi: Likewise.
3202         * doc/invoke.texi: Likewise.
3203         * doc/loop.texi: Likewise.
3204         * doc/makefile.texi: Likewise.
3205         * doc/md.texi: Likewise.
3206         * doc/passes.texi: Likewise.
3207         * doc/standards.texi: Likewise.
3208         * doc/tm.texi: Likewise.
3209
3210 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3211
3212         PR middle-end/35196
3213         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
3214         in entry_bb.
3215         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
3216         rather than in entry_bb.
3217
3218 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3219
3220         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
3221         libgcc_cmp_return mode.
3222
3223 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3224
3225         PR middle-end/35130
3226         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
3227         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
3228
3229 2008-02-15  Richard Guenther  <rguenther@suse.de>
3230             Zdenek Dvorak  <ook@ucw.cz>
3231
3232         PR tree-optimization/35164
3233         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
3234         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
3235         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3236         Only propagate addresses which do not have abnormal SSA_NAMEs
3237         in their operands.
3238
3239 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
3240
3241         PR target/35088
3242         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
3243
3244 2008-02-15  Jan Hubicka  <jh@suse.cz>
3245
3246         PR middle-end/35149
3247         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
3248
3249 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3250
3251         PR middle-end/34621
3252         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
3253         when calculating alignment_pad.
3254
3255 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
3256
3257         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
3258         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
3259         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
3260         and STACK_BOUNDARY define.
3261
3262 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
3263
3264         PR preprocessor/35061
3265         * c-pragma.c (handle_pragma_pop_macro): Check that
3266         pushed_macro_table has been allocated.
3267
3268 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3269
3270         PR middle-end/35136
3271         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
3272         (force_gimple_operand): Likewise.
3273         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
3274         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
3275         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
3276         (find_interesting_uses_address): Check addressability and alignment
3277         of the base expression only after substituting bases of IVs into it.
3278
3279 2008-02-14  Michael Matz  <matz@suse.de>
3280
3281         PR target/34930
3282         * function.c (instantiate_virtual_regs_in_insn): Reload address
3283         before falling back to reloading the whole operand.
3284
3285 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
3286
3287         * config/s390/s390.c (s390_mainpool_start): Emit the pool
3288         before the first section switch note.
3289
3290 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3291
3292         * doc/bugreport.texi: Update copyright years.
3293         * doc/c-tree.texi: Likewise.
3294         * doc/cfg.texi: Likewise.
3295         * doc/cpp.texi: Likewise.
3296         * doc/cppinternals.texi: Likewise.
3297         * doc/fragments.texi: Likewise.
3298         * doc/frontends.texi: Likewise.
3299         * doc/gcc.texi: Likewise.
3300         * doc/gty.texi: Likewise.
3301         * doc/hostconfig.texi: Likewise.
3302         * doc/implement-c.texi: Likewise.
3303         * doc/libgcc.texi: Likewise.
3304         * doc/loop.texi: Likewise.
3305         * doc/makefile.texi: Likewise.
3306         * doc/options.texi: Likewise.
3307         * doc/passes.texi: Likewise.
3308         * doc/rtl.texi: Likewise.
3309         * doc/sourcebuild.texi: Likewise.
3310         * doc/standards.texi: Likewise.
3311         * doc/tree-ssa.texi: Likewise.
3312         * doc/trouble.texi: Likewise.
3313
3314         * doc/extend.texi: Use @: or add comma where appropriate.
3315         * doc/invoke.texi: Likewise.
3316         * doc/tm.texi: Likewise.
3317
3318 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
3319
3320         PR target/34393
3321         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
3322         to a reg.
3323
3324 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
3325
3326         * doc/md.texi (clz, ctz): Add reference.
3327         * doc/rtl.texi (clz, ctz): Likewise.
3328
3329 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3330
3331         PR other/35148
3332         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
3333         srcdir.
3334
3335 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
3336
3337         * config/s390/s390.c (struct constant_pool): New field
3338         emit_pool_after added.
3339         (s390_mainpool_start): Set the emit_pool_after flag according
3340         to the section switch notes.
3341         (s390_mainpool_finish): Consider emit_pool_after when emitting
3342         the literal pool at the end of the function.
3343         (s390_chunkify_start): Force literal pool splits at section
3344         switch notes.
3345
3346 2008-02-13  Michael Matz  <matz@suse.de>
3347
3348         PR debug/35065
3349         * var-tracking.c (clobber_variable_part): Correctly traverse the
3350         list.
3351
3352 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3353
3354         PR 29673
3355         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
3356         Add -fdump-ipa-inline.
3357         * tree-dump.c (dump_files): Remove tree-inlined dump.
3358         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
3359         
3360 2008-02-12  Richard Guenther  <rguenther@suse.de>
3361
3362         PR tree-optimization/35171
3363         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
3364         default defs.
3365
3366 2008-02-12  Richard Guenther  <rguenther@suse.de>
3367
3368         PR middle-end/35163
3369         * fold-const.c (fold_widened_comparison): Use get_unwidened in
3370         value-preserving mode.  Disallow final truncation.
3371
3372 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3373
3374         PR middle-end/35136
3375         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
3376         code from here to...
3377         (force_gimple_operand): ...here.
3378
3379 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
3380
3381         PR c++/35144
3382         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
3383         non-compatible pointers.
3384         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
3385         different FIELD_DECLs, try harder by comparing field offsets, sizes
3386         and types.
3387
3388         PR inline-asm/35160
3389         * function.c (match_asm_constraints_1): Don't replace the same input
3390         multiple times.
3391
3392 2008-02-12  Anatoly Sokolov <aesok@post.ru>
3393
3394         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
3395         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
3396         (expand_epilogue): Restore RAMPZ register.
3397         * config/avr/avr.md (RAMPZ_ADDR): New constant.
3398
3399 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
3400
3401         * config/i386/cygwin.asm: (__alloca): Correct calling
3402         convention and alignment.
3403         (__chkstk): Force 8 byte stack alignment.
3404
3405 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
3406             Richard Guenther  <rguenther@suse.de>
3407
3408         PR tree-optimization/33992
3409         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
3410         the zero we compare against.
3411
3412 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
3413
3414         PR libfortran/35063
3415         * gthr-win32.h (__gthread_mutex_destroy_function): New function
3416         to CloseHandle after unlocking to prevent accumulation of handle
3417         count.
3418
3419 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3420
3421         PR middle_end/34150
3422         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
3423         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
3424         and update LABEL_NUSES during and after reload.
3425