OSDN Git Service

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