OSDN Git Service

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