OSDN Git Service

* config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
4
5 2010-04-13  Jan Hubicka  <jh@suse.cz>
6
7         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
8         of optimized out static functions.
9         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10         cost computation.  Also sanity check for overflows.
11         (update_caller_keys): Update cgraph_edge_badness call; properly
12         update fibheap and sanity check that it is up to date.
13         (add_new_edges_to_heap): Update cgraph_edge_badness.
14         (cgraph_decide_inlining_of_small_function): Likewise;
15         add sanity checking that badness in heap is up to date;
16         improve dumping of reason; Update badness of calls to the
17         offline copy of function currently inlined; dump badness
18         of functions not inlined because of unit growth limits.
19
20 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
21
22         PR middle-end/32628
23         * c-common.c (pointer_int_sum): Disregard overflow that occured only
24         because of sign-extension change when converting to sizetype here...
25         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
26
27         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
28         the folding to constants.  Remove redundant final conversion.
29         (fold_binary) <associate>: Do not associate if the re-association of
30         constants alone overflows.
31         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
32         to the end of the list.
33         (multiple_of_p) <COND_EXPR>: New case.
34
35 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36
37         * opt-functions.awk (opt_sanitized_name): New.
38         (opt_enum): New.
39         * optc-gen.awk: Use it
40         * opth-gen.awk: Use it.
41
42 2010-04-13  Martin Jambor  <mjambor@suse.cz>
43
44         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
45         (sra_modify_assign): Delete stmts loading dead data even if racc has no
46         children.  Call replace_uses_with_default_def_ssa_name to handle
47         SSA_NAES on lhs.
48
49 2010-04-13  Michael Matz  <matz@suse.de>
50
51         PR middle-end/43730
52         * builtins.c (expand_builtin_interclass_mathfn): Also create
53         a register if the predicate doesn't match.
54
55 2010-04-13  Diego Novillo  <dnovillo@google.com>
56
57         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
58         * c-pch.c: Include timevar.h.
59         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
60         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
61         * ggc-common.c: Include timevar.h.
62         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
63         * timevar.def (TV_PCH_SAVE): Define.
64         (TV_PCH_CPP_SAVE): Define.
65         (TV_PCH_PTR_REALLOC): Define.
66         (TV_PCH_PTR_SORT): Define.
67         (TV_PCH_RESTORE): Define.
68         (TV_PCH_CPP_RESTORE): Define.
69
70 2010-04-13  Michael Matz  <matz@suse.de>
71
72         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
73         into MINUS_EXPRs.
74         (can_reassociate_p): New function.
75         (break_up_subtract_bb, reassociate_bb): Use it.
76
77 2010-04-13  Richard Guenther  <rguenther@suse.de>
78
79         PR bootstrap/43737
80         * builtins.c (c_readstr): Fix assert.
81
82 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
83
84         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
85         when generating cltd insn.
86
87         (*ashl<mode>3_1): Remove special handling for register operand 2.
88         (*ashlsi3_1_zext): Ditto.
89         (*ashlhi3_1): Ditto.
90         (*ashlhi3_1_lea): Ditto.
91         (*ashlqi3_1): Ditto.
92         (*ashlqi3_1_lea): Ditto.
93         (*<shiftrt_insn><mode>3_1): Ditto.
94         (*<shiftrt_insn>si3_1_zext): Ditto.
95         (*<shiftrt_insn>qi3_1_slp): Ditto.
96         (*<rotate_insn><mode>3_1): Ditto.
97         (*<rotate_insn>si3_1_zext): Ditto.
98         (*<rotate_insn>qi3_1_slp): Ditto.
99
100 2010-04-13  Richard Guenther  <rguenther@suse.de>
101
102         * tree-ssa-structalias.c (callused_id): Remove.
103         (call_stmt_vars): New.
104         (get_call_vi): Likewise.
105         (lookup_call_use_vi): Likewise.
106         (lookup_call_clobber_vi): Likewise.
107         (get_call_use_vi): Likewise.
108         (get_call_clobber_vi): Likewise.
109         (make_transitive_closure_constraints): Likewise.
110         (handle_const_call): Adjust to do per-call call-used handling.
111         (handle_pure_call): Likewise.
112         (find_what_var_points_to): Remove general callused handling.
113         (init_base_vars): Likewise.
114         (init_alias_vars): Initialize call_stmt_vars.
115         (compute_points_to_sets): Process call-used and call-clobbered
116         vars for call statements.
117         (delete_points_to_sets): Free call_stmt_vars.
118
119 2010-04-13  Richard Guenther  <rguenther@suse.de>
120
121         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
122         Only add RW dependence for dependence distance zero.
123         Adjust maximal vectorization factor according to dependences.
124         Move alignment handling ...
125         (vect_find_same_alignment_drs): ... here.  New function.
126         (vect_analyze_data_ref_dependences): Adjust.
127         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
128         (vect_analyze_data_refs): Adjust minimal vectorization factor
129         according to data references.
130         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
131         dependences before determining the vectorization factor.
132         Analyze alignment after determining the vectorization factor.
133         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
134         dependences before alignment.
135         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
136         Adjust prototype.
137         (vect_analyze_data_refs): Likewise.
138         (MAX_VECTORIZATION_FACTOR): New define.
139
140 2010-04-13  Duncan Sands  <baldrick@free.fr>
141
142         * except.h (lang_eh_type_covers): Remove.
143         * except.c (lang_eh_type_covers): Likewise.
144
145 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
146             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
147
148         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
149         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
150         UNITS_PER_LONG where it is ABI relevant.
151         (s390_return_addr_rtx): Likewise.
152         (s390_back_chain_rtx): Likewise.
153         (s390_frame_area): Likewise.
154         (s390_frame_info): Likewise.
155         (s390_initial_elimination_offset): Likewise.
156         (save_gprs): Likewise.
157         (s390_emit_prologue): Likewise.
158         (s390_emit_epilogue): Likewise.
159         (s390_function_arg_advance): Likewise.
160         (s390_function_arg): Likewise.
161         (s390_va_start): Likewise.
162         (s390_gimplify_va_arg): Likewise.
163         (s390_function_profiler): Likewise.
164         (s390_optimize_prologue): Likewise.
165         (s390_rtx_costs): Likewise.
166         (s390_secondary_reload): Likewise.
167         (s390_promote_function_mode): Likewise.
168         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
169         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
170         registers available.
171         (s390_unwind_word_mode): New function.
172         (s390_function_value): Split 64 bit values into register pair if
173         used as return value.
174         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
175         function call parameters.  Handle parallels.
176         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
177         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
178         (DWARF_CIE_DATA_ALIGNMENT): New macro.
179         (s390_expand_setmem): Remove unused variable src_addr.
180         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
181         deal with 64 bit registers.
182         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
183         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
184         (UNITS_PER_LONG): New macro.
185         * libjava/include/s390-signal.h: Define extended ucontext
186         structure containing the upper halfs of the 64 bit registers.
187
188 2010-04-13  Simon Baldwin  <simonb@google.com>
189
190         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
191
192 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
193
194         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
195         rvalue on the RHS if the LHS is of a non-renamable type.
196         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
197
198 2010-04-13  Matthias Klose  <doko@ubuntu.com>
199
200         * gcc.c (cc1_options): Handle -iplugindir before processing
201         the cc1 spec. Only add -iplugindir once.
202         (cpp_unique_options): Add -iplugindir option if -fplugin* options
203         found.
204         * common.opt (iplugindir): Remove `Separate' property, initialize.
205         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
206         option.
207         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
208         (distclean): Remove plugin dir.
209         * doc/invoke.texi: Document -iplugindir.
210
211 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
212
213         * doc/plugins.texi (Loading Plugins): Document short
214         -fplugin=foo option.
215         (Plugin API): Mention default_plugin_dir_name function.
216
217         * gcc.c (find_file_spec_function): Add new declaration.
218         (static_spec_func): Use it for "find-file".
219         (find_file_spec_function): Add new function.
220         (cc1_options): Add -iplugindir option if -fplugin* options found.
221
222         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
223
224         * plugin.c (add_new_plugin): Updated comment, and handle short
225         plugin name.
226         (default_plugin_dir_name): Added new function.
227
228         * common.opt (iplugindir): New option to set the plugin directory.
229
230 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
231
232         * config/i386/i386.md (any_rotate): New code iterator.
233         (rotate_insn): New code attribute.
234         (rotate): Ditto.
235         (SWIM124): New mode iterator.
236         (<rotate_insn>ti3): New expander.
237         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
238         any_rotate code iterator.
239         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
240         using any_rotate code iterator and SWIM124 mode iterator.
241         (ix86_rotlti3): New insn_and_split pattern.
242         (ix86_rotrti3): Ditto.
243         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
244         ix86_rotl{di,ti}3 patterns.
245         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
246         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
247         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
248         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
249         code iterator and SWI mode iterator.
250         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
251         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
252         code iterator.
253         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
254         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
255         (bswap rotatert splitter): Add splitter.
256         (bswap splitter): Macroize splitter using any_rotate code iterator.
257         Add insn predicate to split only for TARGET_USE_XCHGB or when
258         optimizing function for size.
259
260 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
261
262         * config/pa/pa.c (emit_move_sequence): Remove use of
263         deleted variable flag_argument_noalias.
264
265 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
266
267         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
268         configurations.
269         Add to unsupported targets list.
270         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
271         sparc*-sun-solaris2.[567]* from target lists.
272         * configure: Regenerate.
273         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
274         removal.
275         Remove Solaris 7 patch references.
276         (Specific, sparc-sun-solaris2.7): Removed.
277         (sparc-sun-solaris2*): Update Solaris 7 example.
278         (sparc64-*-solaris2*): Likewise.
279
280 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
281
282         * config.build (alpha*-dec-osf4*): Remove.
283         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
284         of obsolete configurations.
285         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
286         support.
287         * config/alpha/t-osf4: Renamed to ...
288         * config/alpha/t-osf5: ... this.
289         * config/alpha/osf.h: Renamed to ...
290         * config/alpha/osf5.h: ... this.
291         Merged old osf5.h contents.
292         Update comments.
293         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
294         (EXTRA_SPECS): Removed.
295         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
296         reflect removal of Tru64 UNIX V4.0/V5.0 support.
297         Document that.
298
299 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
300
301         * doc/contrib.texi (Contributors, Rainer Orth): Update.
302
303 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
304
305         PR/43702
306         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
307         __thiscall convention.
308
309 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
310
311         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
312         orig_base.
313         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
314
315 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
316
317         * function.c (assign_parms_initialize_all): Add unused attribute
318         to fntype.
319
320 2010-04-12  Richard Guenther  <rguenther@suse.de>
321
322         * gsstruct.def (GSS_CALL): New.
323         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
324         * gimple.h: Include tree-ssa-alias.h.
325         (struct gimple_statement_call): New.
326         (union gimple_statement_struct_d): Add gimple_call member.
327         (gimple_call_reset_alias_info): Declare.
328         (gimple_call_use_set): New function.
329         (gimple_call_clobber_set): Likewise.
330         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
331         * gimple.c (gimple_call_reset_alias_info): New function.
332         (gimple_build_call_1): Call it.
333         * lto-streamer-in.c (input_gimple_stmt): Likewise.
334         * tree-inline.c (remap_gimple_stmt): Likewise.
335         (expand_call_inline): Remove callused handling.
336         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
337         * tree-dfa.c (dump_variable): Likewise.
338         * tree-parloops.c (parallelize_loops): Likewise.
339         * tree-ssa.c (init_tree_ssa): Likewise.
340         (delete_tree_ssa): Likewise.
341         * tree-flow-inline.h (is_call_used): Remove.
342         * tree-flow.h (struct gimple_df): Remove callused member.
343         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
344         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
345         (ref_maybe_used_by_call_p_1): Simplify.
346         (call_may_clobber_ref_p_1): Likewise.
347         * tree-ssa-structalias.c (compute_points_to_sets): Set
348         the call stmt used and clobbered sets.
349         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
350         (find_tail_calls): Verify the tail call.
351
352 2010-04-12  Richard Guenther  <rguenther@suse.de>
353
354         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
355         single-iteration always-inline inlining.
356         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
357         (cgraph_decide_inlining): Do not handle always-inline specially.
358         (try_inline): Remove always-inline cycle detection special case.
359         Do not recurse on always-inlines.
360         (cgraph_early_inlining): Do not iterate if not optimizing.
361         (cgraph_gate_early_inlining): remove.
362         (pass_early_inline): Run unconditionally.
363         (gate_cgraph_decide_inlining): New function.
364         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
365         not inlining or optimizing.
366         (cgraph_decide_inlining_of_small_functions): Also consider
367         always-inline functions.
368         (cgraph_default_inline_p): Return true for nodes which should
369         disregard inline limits.
370         (estimate_function_body_sizes): Assume zero size and time for
371         nodes which are marked as disregarding inline limits.
372         (cgraph_decide_recursive_inlining): Do not perform recursive
373         inlining on always-inline nodes.
374
375 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
376
377         PR bootstrap/43699
378         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
379         for exprs satisfying handled_component_p.
380
381 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
382
383         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
384         non-constant aggregate elements.
385
386         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
387         is a real initialization.
388
389 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
390
391         PR c/36774
392         * c-decl.c (start_function): Move forward check for nested function.
393
394 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
395
396         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
397         * config/sh/sh.c: Include reload.h.
398         (sh_legitimize_reload_address): New.
399         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
400         sh_legitimize_reload_address.
401
402 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
403
404         * config/sh/sh.md (*movqi_pop): New insn pattern.
405         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
406
407 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
408
409         * config/i386/i386.md (any_shiftrt): New code iterator.
410         (shiftrt_insn): New code attribute.
411         (shiftrt): Ditto.
412         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
413         using any_shiftrt code iterator.
414         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
415         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
416         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
417         pattern from corresponding peephole2 patterns.
418         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
419         using any_shiftrt code iterator.
420         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
421         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
422         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
423         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
424         *{ashr,lshr}<mode>3_cmp_zext.
425         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
426
427 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
428
429         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
430         scratch register.
431         (*lshr<mode>3_cconly): Ditto.
432
433 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
434
435         * config/i386/i386.md (lshr<mode>3): Macroize expander from
436         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
437         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
438         pattern from *lshr{di,ti}3_1 and corresponding splitters using
439         DWI mode iterator.
440         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
441         from corresponding peephole2 patterns.
442         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
443         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
444         and *lshrdi3_1_rex64 using SWI mode iterator.
445         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
446         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
447         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
448         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
449         and *lshrdi3_cmp_rex64 using SWI mode iterator.
450         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
451         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
452         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
453         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
454         SWI mode iterator.
455
456 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
457
458         * config/i386/i386.md (ashr<mode>3): Macroize expander from
459         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
460         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
461         pattern from *ashr{di,ti}3_1 and corresponding splitters using
462         DWI mode iterator.
463         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
464         from corresponding peephole2 patterns.
465         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
466         (ashrsi3_cvt): Rename from ashrsi3_31.
467         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
468         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
469         and x86_64_shift_adj_3 using SWI48 mode iterator.
470         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
471         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
472         and *ashrdi3_1_rex64 using SWI mode iterator.
473         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
474         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
475         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
476         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
477         and *ashrdi3_cmp_rex64 using SWI mode iterator.
478         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
479         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
480         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
481         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
482         SWI mode iterator.
483         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
484         * config/i386/i386.c (ix86_split_ashr): Update for renamed
485         x86_shift<mode>_adj_3 expanders.
486
487 2010-04-10  Wei Guozhi  <carrot@google.com>
488
489         PR target/42601
490         * config/arm/arm.c (arm_pic_static_addr): New function.
491         (legitimize_pic_address): Call arm_pic_static_addr when it detects
492         a static symbol.
493         (arm_output_addr_const_extra): Output expression for new pattern.
494         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
495
496 2010-04-10  Bernd Schmidt  <bernd.schmidt@codesourcery.com>
497
498         * ira-costs.c (record_reg_classes): Ignore alternatives that are
499         not enabled.
500
501         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
502         * web.c: Include "insn-config.h" and "recog.h".
503         (union_match_dups): New function.
504         (web_main): Call it.
505         (union_defs): Don't try to recognize match_dups.
506
507         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
508         if doing so would replace the entire pattern.
509
510 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
511
512         PR target/43707
513         PR target/43709
514         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
515         and splitter pattern.  Change splitter operand 1 predicate to
516         nonmemory_operand.
517
518 2010-04-09  Martin Jambor  <mjambor@suse.cz>
519
520         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
521         lattices are addresses of CONST_DECLs with the same initial value.
522         (ipcp_print_all_lattices): Print values of CONST_DECLs.
523         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
524
525 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
526             Bernd Schmidt  <bernd.schmidt@codesourcery.com>
527
528         * loop-invariant.c (replace_uses): New static function.
529         (move_invariant_reg): Use it to ensure we can replace the uses.
530
531 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
532
533         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
534         function template.
535         (picochip_override_options): Enable section anchors only above -O1.
536         (picochip_reorg): Fixed a couple of build warnings.
537
538 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
539
540         * configure.ac (plugin -rdynamic test): Log result.
541         * configure: Regenerate.
542         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
543         (RDYNAMIC_SPEC): Define.
544         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
545
546 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
547
548         * configure.ac: Determine Sun ld version numbers.
549         (comdat_group): Restrict GNU ld version checks to gld.
550         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
551         (enable_comdat): Support --enable-comdat.
552         * configure: Regenerate.
553         * doc/install.texi (Configuration): Document --enable-comdat.
554
555 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
556
557         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
558         * config/sol2-gld.h: ... here.
559         * config.gcc (sparc*-*-solaris2*): Reflect this.
560         (i[34567]86-*-solaris2*): Use it.
561
562 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
563
564         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
565         setup_clocks_p.
566         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
567
568 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
569
570         PR 42965
571         * diagnostic.c (diagnostic_initialize): Initialize
572         some_warnings_are_errors.
573         (diagnostic_finish): New.
574         (diagnostic_action_after_output): Call it before exiting.
575         (diagnostic_report_diagnostic): Do not print message here. Set
576         some_warnings_are_errors.
577         * diagnostic.h (diagnostic_context): Delete
578         issue_warnings_are_errors_message. Add some_warnings_are_errors.
579         (diagnostic_finish): Declare.
580         * toplev.c (toplev_main): Call it before exit.
581
582 2010-04-09  Jason Merrill  <jason@redhat.com>
583
584         PR c++/42623
585         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
586         for incomplete type.
587
588         PR c++/41788
589         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
590         based on a warning flag.
591
592 2010-04-09  Richard Guenther  <rguenther@suse.de>
593
594         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
595
596 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
597
598         PR bootstrap/43684
599         * varasm.c (default_assemble_visibility): Wrap vars that are
600         set, but unused, by targets without GAS.
601         * config/rs6000/rs6000.c: (paired_emit_vector_compare):
602         Remove set, but unused, vars.
603         (rs6000_legitimize_tls_address): Likewise.
604         (altivec_expand_dst_builtin): Likewise.
605         * config/darwin.c (machopic_classify_symbol): Likewise.
606         (machopic_indirection_name): Likewise.
607
608 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
609
610         * config/i386/i386.md (DWI): New mode iterator.
611         (S): New mode attribute.
612         (shift_operand): Ditto.
613         (shift_immediate_operand): Ditto.
614         (ashl_input_operand): Ditto.
615         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
616         using SDWIM mode iterator.
617         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
618         pattern from *ashl{di,ti}3_1 and corresponding splitters using
619         DWI mode iterator.
620         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
621         from corresponding peephole2 patterns.
622         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
623         and x86_64_shift_adj_1 using SWI48 mode iterator.
624         (x86_shift<mode>_adj_2): Ditto.
625         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
626         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
627         using SWI48 mode iterator.
628         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
629         *ashldi3_cmp_rex64 using SWI mode iterator.
630         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
631         *ashldi3_cconly_rex64 using SWI mode iterator.
632         * config/i386/i386.c (ix86_split_ashl): Update for renamed
633         x86_shift<mode>_adj_{1,2}.
634         (ix86_split_ashr): Ditto.
635         (ix86_split_lshr): Ditto.
636
637 2010-04-09  Richard Guenther  <rguenther@suse.de>
638
639         * target.h (builtin_conversion): Pass in input and output types.
640         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
641         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
642         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
643         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
644
645         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
646         Handle AVX modes.
647         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
648
649 2010-04-09  Richard Guenther  <rguenther@suse.de>
650
651         PR target/43152
652         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
653
654 2010-04-09  Richard Guenther  <rguenther@suse.de>
655
656         * tree-vectorizer.h (struct _stmt_vec_info): Document
657         that vectype is the type of the LHS.
658         (supportable_widening_operation, supportable_narrowing_operation):
659         Get both input and output vector types as arguments.
660         (vect_is_simple_use_1): Declare.
661         (get_same_sized_vectype): Likewise.
662         * tree-vect-loop.c (vect_determine_vectorization_factor):
663         Set STMT_VINFO_VECTYPE to the vector type of the def.
664         (vectorizable_reduction): Adjust.
665         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
666         Adjust.  Specify the output vector type.
667         (vect_pattern_recog_1): Adjust.
668         * tree-vect-stmts.c (get_same_sized_vectype): New function.
669         (vectorizable_call): Adjust.
670         (vectorizable_conversion): Likewise.
671         (vectorizable_operation): Likewise.
672         (vectorizable_type_demotion): Likewise.
673         (vectorizable_type_promotion): Likewise.
674         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
675         the def.
676         (vect_is_simple_use_1): New function.
677         (supportable_widening_operation): Get both input and output
678         vector types.
679         (supportable_narrowing_operation): Likewise.
680         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
681
682 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
683
684         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
685         __thiscall and _thiscall as predefined macros.
686         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
687         thiscall attribute handling.
688         (ix86_comp_type_attributes): Likewise.
689         (ix86_function_regparm): Likewise.
690         (ix86_return_pops_args): Likewise.
691         (init_cumulative_args): Likewise.
692         (find_drap_reg): Likewise.
693         (ix86_static_chain): Likewise.
694         (x86_this_parameter): Likewise.
695         (x86_output_mi_thunk): Likewise.
696         (ix86_attribute_table): Add description for thiscall attribute.
697         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
698         * doc/extend.texi: Add documentation for thiscall.
699
700 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
701
702         PR c++/28584
703         * c.opt (Wint-to-pointer-cast): Available in C++.
704         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
705
706 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
707
708         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
709         * calls.c (expand_call): Pass the function type to aggregate_value_p.
710         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
711         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
712         function type instead.  Reorder and simplify checks.
713
714         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
715
716 2010-04-08  Jing Yu  <jingyu@google.com>
717             Zdenek Dvorak  <ook@ucw.cz>
718
719         PR tree-optimization/42720
720         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
721         loop unswitch conditions here from ...
722         (tree_unswitch_single_loop): ... here.
723
724 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
725
726         * tree-if-conv.c: Fix comments and simplify logic.
727
728 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
729
730         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
731         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
732         (main_tree_if_conversion): Update call to tree_if_conversion.
733
734 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
735
736         PR 42485
737         * doc/invoke.texi (-b,-V): Delete.
738         * doc/tm.texi: Do not mention -b.
739         * gcc.c (display_help): Delete -b and -V.
740         (process_command): Delete -b and -V.
741         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
742
743 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
744             Wolfgang Gellerich  <gellerich@de.ibm.com>
745
746         Implement target hook for loop unrolling
747         * target.h (loop_unroll_adjust): Add a new target hook function.
748         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
749         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
750         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
751         (s390_loop_unroll_adjust): Implement the new target hook for s390.
752         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
753         target hook.
754         (decide_unroll_stupid): Likewise.
755
756 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
757
758         PR target/43643
759         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
760
761 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
762
763         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
764         (Specific, *-*-solaris2*): Likewise.
765         Don't prefer Sun as over GNU as.
766
767 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
768
769         * config/s390/s390.c (override_options): Adjust the z10
770           defaults for max-unroll-times, max-completely-peeled-insns
771           and max-completely-peel-times.
772
773 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
774
775         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
776         instructions for z10.
777         (s390_expand_setmem): Likewise.
778         (s390_expand_cmpmem): Likewise.
779
780 2010-04-08  Richard Guenther  <rguenther@suse.de>
781
782         PR tree-optimization/43679
783         * tree-ssa-pre.c (eliminate): Only propagate copies.
784
785 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
786
787         PR bootstrap/43681
788         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
789         set but not used variable warning.
790
791 2010-04-08  Wei Guozhi  <carrot@google.com>
792
793         PR target/41653
794         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
795         (arm_size_rtx_costs): Call the new function when optimized for size.
796
797 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
798
799         PR debug/43670
800         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
801         op0 is not a MEM, just return NULL instead of assertion
802         failure.
803         (discover_nonconstant_array_refs): Don't walk debug stmts.
804
805 2010-04-08  Doug Kwan  <dougkwan@google.com>
806
807         * configure.ac: Recognize gold and do not use its version number
808         to test ld features.
809         * configure: Regenerate.
810
811 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
812
813         PR middle-end/40815
814         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
815         (negate_value): Move code to push elements to broken_up_substracts ...
816         (eliminate_plus_minus_pair): ... here.  Push operands that have no
817         negative pair to plus_negates.
818         (repropagate_negates, init_reassoc, fini_reassoc): Update.
819
820 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
821
822         * doc/install.texi (Configuration): Move description of
823         --enable-lto, --with-libelf*, --enable-gold from Java section to
824         general section.
825
826         * doc/generic.texi (Working with declarations)
827         (Function Properties, C and C++ Trees): Fix typos.
828         * doc/sourcebuild.texi (Top Level): Likewise.
829
830 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
831
832         PR c/18624
833         * tree.h (DECL_READ_P): Define.
834         (struct tree_decl_common): Add decl_read_flag.
835         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
836         a set but not used warning.
837         (merge_decls): Merge DECL_READ_P flag.
838         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
839         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
840         * c-common.c (handle_used_attribute, handle_unused_attribute):
841         Likewise.
842         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
843         New prototypes.
844         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
845         New functions.
846         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
847         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
848         c_parser_binary_expression, c_parser_cast_expression,
849         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
850         Call default_function_array_read_conversion instead of
851         default_function_array_conversion where needed.
852         (c_parser_unary_expression, c_parser_conditional_expression,
853         c_parser_postfix_expression_after_primary, c_parser_initelt):
854         Likewise.  Call mark_exp_read where needed.
855         (c_parser_statement_after_labels, c_parser_asm_operands,
856         c_parser_typeof_specifier, c_parser_sizeof_expression,
857         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
858         where needed.
859         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
860         New.
861         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
862         (warn_unused_but_set_parameter): Default to warn_unused
863         && extra_warnings.
864         * doc/invoke.texi: Document -Wunused-but-set-variable and
865         -Wunused-but-set-parameter.
866
867         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
868         used count variable.
869         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
870         when operandN variables aren't used in the body of the expander
871         or splitter.
872         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
873         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
874         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
875         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
876         FOR_EACH_IMM_USE_ON_STMT): Likewise.
877         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
878         * tree.c (PROCESS_ARG): Likewise.
879
880 2010-04-07  Simon Baldwin  <simonb@google.com>
881
882         * diagnostic.h (diagnostic_override_option_index): New macro to
883         set a diagnostic's option_index.
884         * c-tree.h (c_cpp_error): Add warning reason argument.
885         * opts.c (_warning_as_error_callback): New.
886         (register_warning_as_error_callback): Store callback for
887         warnings enabled via enable_warning_as_error.
888         (enable_warning_as_error): Call callback, minor code tidy.
889         * opts.h (register_warning_as_error_callback): Declare.
890         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
891         response to -Werror=.
892         (c_common_init_options): Register warning_as_error_callback in opts.c.
893         * common.opt: Add -Wno-cpp option.
894         * c-common.c (struct reason_option_codes_t): Map cpp warning
895         reason codes to gcc option indexes.
896         * (c_option_controlling_cpp_error): New function, lookup the gcc
897         option index for a cpp warning reason code.
898         * (c_cpp_error): Add warning reason argument, call
899         c_option_controlling_cpp_error for diagnostic_override_option_index.
900         * doc/invoke.texi: Document -Wno-cpp.
901
902 2010-04-07  Richard Guenther  <rguenther@suse.de>
903
904         * ipa-reference.c (mark_load): Use get_base_address.
905         (mark_store): Likewise.
906
907         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
908         inserting GIMPLE_NOPs into the IL.
909         * tree-ssa-structalias.c (get_constraint_for_component_ref):
910         Explicitly strip handled components and indirect references.
911
912         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
913         folding address expressions.
914         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
915         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
916         operand_equal_p to compare decls.
917         (ptr_deref_may_alias_decl_p): Likewise.
918         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
919         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
920         Handle reversed comparison ops.
921         * tree-sra.c (asm_visit_addr): Use get_base_address.
922         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
923         * ipa-reference.c (mark_address): Use get_base_address.
924
925 2010-04-07  Richard Guenther  <rguenther@suse.de>
926
927         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
928         Propagate constants everywhere.
929
930 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
931
932         PR debug/43516
933         * tree.c (MAX_INT_CACHED_PREC): Define.
934         (nonstandard_integer_type_cache): New array.
935         (build_nonstandard_integer_type): Cache results for precision
936         <= MAX_INT_CACHED_PREC.
937
938 2010-04-07  Richard Guenther  <rguenther@suse.de>
939
940         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
941         -fargument-noalias-global, -fargument-noalias-anything): Remove.
942         * common.opt: Likewise.
943         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
944         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
945         (nonoverlapping_memrefs_p): Likewise.
946         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
947         * opts.c (common_handle_option): Handle OPT_fargument_alias,
948         OPT_fargument_noalias, OPT_fargument_noalias_anything and
949         OPT_fargument_noalias_global for backward compatibility.
950
951 2010-04-07  Richard Guenther  <rguenther@suse.de>
952
953         PR tree-optimization/43270
954         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
955         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
956         * tree-ssa-pre.c (phi_translate_1): Adjust.
957         (fully_constant_expression): Split out vn_reference handling to ...
958         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
959         Fold reads from constant strings.
960         (vn_reference_lookup): Handle fully constant references.
961         (vn_reference_lookup_pieces): Likewise.
962         * Makefile.in (expmed.o-warn): Add -Wno-error.
963
964 2010-04-07  Martin Jambor  <mjambor@suse.cz>
965
966         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
967
968 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
969
970         PR driver/41594
971         * gcc.c: Add -static-libstdc++ to list of recognized options.
972
973 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
974
975         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
976
977 2010-04-07  Richard Guenther  <rguenther@suse.de>
978
979         PR middle-end/42617
980         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
981         bases build simple mem attributes to retain points-to information.
982
983 2010-04-07  Richard Guenther  <rguenther@suse.de>
984
985         PR middle-end/42617
986         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
987         preserve points-to related information.
988
989 2010-04-07  Richard Guenther  <rguenther@suse.de>
990
991         PR middle-end/42617
992         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
993         discard plain indirect references.
994         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
995         * tree.c (tree_nop_conversion): Likewise.
996
997 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
998
999         PR debug/43628
1000         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
1001
1002 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
1003
1004         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
1005         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
1006
1007 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
1008
1009         * tree-if-conv.c: Fix indentation and comments.
1010
1011 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
1012
1013         * tree-if-conv.c: Sort static functions in topological order.
1014
1015 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
1016
1017         * tree-if-conv.c: Fix indentation and comments.
1018
1019 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
1020
1021         PR middle-end/43519
1022         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1023         lang_hooks.types.type_for_size instead of
1024         build_nonstandard_integer_type.
1025         When converting an unsigned type to signed, double its precision.
1026         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
1027         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
1028         (graphite_create_new_loop_guard): When ub + 1 wraps around,
1029         use lb <= ub.
1030
1031 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
1032
1033         PR middle-end/43519
1034         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1035         POINTER_PLUS_EXPR for pointer types.
1036
1037 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
1038
1039         PR middle-end/43519
1040         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
1041         * graphite-clast-to-gimple.c: Include langhooks.h.
1042         (max_signed_precision_type): New.
1043         (max_precision_type): Takes two types as arguments.
1044         (precision_for_value): New.
1045         (precision_for_interval): New.
1046         (gcc_type_for_interval): New.
1047         (gcc_type_for_value): New.
1048         (gcc_type_for_clast_term): New.
1049         (gcc_type_for_clast_red): New.
1050         (gcc_type_for_clast_bin): New.
1051         (gcc_type_for_clast_expr): Split up into several functions.
1052         (gcc_type_for_clast_eq): Rewritten.
1053         (compute_bounds_for_level): New.
1054         (compute_type_for_level_1): New.
1055         (compute_type_for_level): New.
1056         (gcc_type_for_cloog_iv): Removed.
1057         (gcc_type_for_iv_of_clast_loop): Rewritten.
1058         (graphite_create_new_loop): Compute the lower and upper bound types
1059         with gcc_type_for_clast_expr.
1060         (graphite_create_new_loop_guard): Same.
1061         (find_cloog_iv_in_expr): Removed.
1062         (compute_cloog_iv_types_1): Removed.
1063         (compute_cloog_iv_types): Removed.
1064         (gloog): Do not call compute_cloog_iv_types.
1065         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1066         GBB_CLOOG_IV_TYPES.
1067         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1068         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1069         (GBB_CLOOG_IV_TYPES): Removed.
1070
1071 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
1072
1073         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1074         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1075         (detect_commutative_reduction): Same.
1076
1077 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
1078
1079         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
1080         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
1081         argument.
1082         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
1083         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
1084         (rewrite_commutative_reductions_out_of_ssa): Same.
1085         * passes.c (execute_function_todo): Call verify_ssa for every pass
1086         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
1087         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
1088         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
1089         with an extra argument.
1090         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
1091         verify_ssa only when the extra argument is true.
1092         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
1093         with an extra argument.
1094         (tree_transform_and_unroll_loop): Same.
1095
1096 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
1097
1098         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
1099         for all the passes of the LNO having LOOP_CLOSED_SSA.
1100         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
1101         * tree-loop-distribution.c (pass_loop_distribution): Same.
1102         * tree-pass.h (TODO_verify_loops): Removed.
1103         * tree-ssa-loop.c (pass_tree_loop_init): Same.
1104         (pass_lim): Same.
1105         (pass_tree_unswitch): Same.
1106         (pass_predcom): Same.
1107         (pass_vectorize): Same.
1108         (pass_linear_transform): Same.
1109         (pass_graphite_transforms): Same.
1110         (pass_iv_canon): Same.
1111         (pass_complete_unroll): Same.
1112         (pass_complete_unrolli): Same.
1113         (pass_parallelize_loops): Same.
1114         (pass_loop_prefetch): Same.
1115         (pass_iv_optimize): Same.
1116
1117 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
1118
1119         PR middle-end/32824
1120         * passes.c (init_optimization_passes): Move pass_lim before
1121         pass_copy_prop and pass_dce_loop.
1122
1123 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
1124
1125         PR target/43667
1126         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
1127         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
1128         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
1129         MULTI_* defines for 4 argument vpermil2p* builtins.
1130
1131 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
1132
1133         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
1134         * config/i386/i386.c (x86_maybe_negate_const_int): New.
1135         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
1136         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
1137         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
1138         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
1139         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
1140         Use x86_maybe_negate_const_int to output insn mnemonic.
1141         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
1142         check from instruction predicate.  Update comments.
1143         * config/i386/sync.md (sync_add<mode>): Use
1144         x86_maybe_negate_const_int to output insn mnemonic.
1145
1146 2010-04-06  Jan Hubicka  <jh@suse.cz>
1147
1148         PR tree-optimization/42906
1149         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
1150         IGNORE_SELF argument.  Set visited_control_parents for fully
1151         processed BBs.
1152         (find_obviously_necessary_stmts): Update call of
1153         mark_control_dependent_edges_necessary.
1154         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
1155
1156 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
1157
1158         * config/i386/i386.md: Remove comment about 'e' and 'E'
1159         operand modifier.
1160
1161 2010-04-06  Richard Guenther  <rguenther@suse.de>
1162
1163         PR tree-optimization/43627
1164         * tree-vrp.c (extract_range_from_unary_expr): Widenings
1165         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
1166         not varying.
1167
1168 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
1169
1170         * BASE-VER: Change to 4.6.0.
1171
1172         PR target/43638
1173         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
1174         handling.
1175
1176 2010-04-06  Richard Guenther  <rguenther@suse.de>
1177
1178         PR middle-end/43661
1179         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
1180
1181 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1182
1183         * doc/invoke.texi (Optimize Options): Document that LTO
1184         won't remove object access purely due to incompatible
1185         declarations.
1186
1187 2010-04-04  Matthias Klose  <doko@ubuntu.com>
1188
1189         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
1190         Initialize variable.
1191
1192 2010-04-03  Richard Guenther  <rguenther@suse.de>
1193
1194         PR middle-end/42509
1195         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
1196         require a non-NULL MEM_OFFSET.
1197
1198 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
1199
1200         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
1201         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
1202         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
1203         config/alpha/predicates.md, config/arm/arm.md,
1204         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
1205         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
1206         config/darwin9.h, config/darwin.c, config/darwin.h,
1207         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
1208         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
1209         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
1210         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
1211         config/mips/mips.md, config/mn10300/mn10300.c,
1212         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
1213         config/rs6000/aix.h, config/rs6000/dfp.md,
1214         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
1215         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
1216         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
1217         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
1218         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
1219         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
1220         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
1221         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
1222         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
1223         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
1224         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
1225         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
1226         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
1227         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
1228         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
1229         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
1230         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
1231         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
1232         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
1233         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
1234         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
1235         opt-functions.awk, opth-gen.awk, params.def, passes.c,
1236         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
1237         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
1238         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
1239         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
1240         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
1241         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
1242         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
1243         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
1244         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1245         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
1246         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1247         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
1248         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
1249         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
1250
1251 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1252
1253         PR other/43620
1254         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
1255         * aclocal.m4: Regenerate.
1256
1257 2010-04-02  Richard Guenther  <rguenther@suse.de>
1258
1259         PR tree-optimization/43629
1260         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
1261         if we have seen a constant value.
1262
1263 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
1264
1265         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
1266
1267 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
1268
1269         PR target/43469
1270         * arm.c (legitimize_tls_address): Adjust call to
1271         gen_tls_load_dot_plus_four.
1272         (arm_note_pic_base): New function.
1273         (arm_cannot_copy_insn_p): Use it.
1274         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
1275         constraint.
1276
1277 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1278
1279         PR bootstrap/43531
1280
1281         Revert:
1282         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1283
1284         * Makefile.in ($(out_object_file)): Depend on
1285         gt-$(basename $(notdir $(out_file))).h.
1286
1287 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
1288
1289         * config.gcc (lm32-*-rtems*): Add t-lm32.
1290
1291 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
1292
1293         * config.gcc: Add lm32-*-rtems*.
1294         * config/lm32/rtems.h: New file.
1295
1296 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
1297
1298         PR target/42609
1299         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
1300
1301 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
1302
1303         * dwarf2out.c (output_compilation_unit_header): For
1304         -gdwarf-4 use version 4 instead of version 3.
1305         (output_line_info): For version 4 and above emit additional
1306         maximum ops per insn header field.
1307         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
1308
1309         * dwarf2out.c (is_c_family, is_java): Remove.
1310         (lower_bound_default): New function.
1311         (add_bound_info, gen_descr_array_type_die): Use it.
1312
1313 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
1314
1315         PR debug/43325
1316         * dwarf2out.c (gen_variable_die): Allow debug info for variable
1317         re-declaration when it happens in a function.
1318
1319 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
1320
1321         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
1322         (cgraph_remove_function_insertion_hook): Same.
1323         (cgraph_call_function_insertion_hooks): Same.
1324
1325 2010-04-01  Richard Guenther  <rguenther@suse.de>
1326
1327         PR middle-end/43614
1328         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
1329         and TREE_THIS_VOLATILE.
1330         (copy_ref_info): Likewise.
1331         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
1332         * tree.c (build6_stat): Ignore side-effects of all but arg5
1333         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
1334         TARGET_MEM_REF.
1335
1336 2010-04-01  Richard Guenther  <rguenther@suse.de>
1337
1338         PR tree-optimization/43607
1339         * ipa-type-escape.c (check_call): Do not access non-existing
1340         arguments.
1341
1342 2010-04-01  Richard Guenther  <rguenther@suse.de>
1343
1344         PR middle-end/43602
1345         Revert
1346         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
1347                     Jack Howarth <howarth@bromo.med.uc.edu>
1348
1349         * tree-profile.c (tree_init_ic_make_global_vars): Make static
1350         variables TLS.
1351
1352 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1353
1354         * doc/install.texi (Prerequisites): Document libelf usability on
1355         IRIX 5/6 and Solaris 2.
1356         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
1357         Update GNU as, GNU ld requirements.
1358         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
1359         Document Sun Studio compiler download.
1360         Update and simplify as, ld recommendations.
1361         (Specific, *-*-solaris2.7): Note obsoletion, removal.
1362
1363 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1364
1365         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
1366         with_tune_32 to pentium4.
1367
1368 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
1369
1370         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
1371
1372 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1373
1374         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
1375         obsoletion, removal.
1376         Update IDO URL.
1377         Document GNU as requirement.
1378         Update configure requirements.
1379         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
1380         Recomment IRIX 6.5.18+.
1381         Document IDF/IDL requirement.
1382         Document GNU as requirement.
1383         Document GNU ld bootstrap failure.
1384         Remove freeware.sgi.com reference.
1385
1386 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1387
1388         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
1389         UNIX V4.0, V5.0 obsoletion, removal.
1390         Remove --with-gc=simple reference.
1391         Update VM requirements during bootstrap.
1392         Remove -oldas bootstrap description.
1393         Update binutils reference.
1394         Remove comparison failure note.
1395
1396 2010-03-31  Richard Guenther  <rguenther@suse.de>
1397             Zdenek Dvorak  <ook@ucw.cz>
1398             Sebastian Pop  <sebastian.pop@amd.com>
1399
1400         PR middle-end/43464
1401         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1402         with multiple arguments.
1403         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1404
1405 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
1406
1407         * graphite-dependences.c (print_pddr): Call print_pdr with an
1408         extra argument.
1409         * graphite-poly.c (debug_pdr): Add an extra argument for the
1410         verbosity level.
1411         (print_pdr): Same.
1412         (print_pbb_domain): Same.
1413         (print_pbb): Same.
1414         (print_scop_context): Same.
1415         (print_scop): Same.
1416         (print_cloog): Same.
1417         (debug_pbb_domain): Same.
1418         (debug_pbb): Same.
1419         (print_pdrs): Same.
1420         (debug_pdrs): Same.
1421         (debug_scop_context): Same.
1422         (debug_scop): Same.
1423         (debug_cloog): Same.
1424         (print_scop_params): Same.
1425         (debug_scop_params): Same.
1426         (print_iteration_domain): Same.
1427         (print_iteration_domains): Same.
1428         (debug_iteration_domain): Same.
1429         (debug_iteration_domains): Same.
1430         (print_scattering_function): Same.
1431         (print_scattering_functions): Same.
1432         (debug_scattering_function): Same.
1433         (debug_scattering_functions): Same.
1434         * graphite-poly.h (debug_pdr): Update declaration.
1435         (print_pdr): Same.
1436         (print_pbb_domain): Same.
1437         (print_pbb): Same.
1438         (print_scop_context): Same.
1439         (print_scop): Same.
1440         (print_cloog): Same.
1441         (debug_pbb_domain): Same.
1442         (debug_pbb): Same.
1443         (print_pdrs): Same.
1444         (debug_pdrs): Same.
1445         (debug_scop_context): Same.
1446         (debug_scop): Same.
1447         (debug_cloog): Same.
1448         (print_scop_params): Same.
1449         (debug_scop_params): Same.
1450         (print_iteration_domain): Same.
1451         (print_iteration_domains): Same.
1452         (debug_iteration_domain): Same.
1453         (debug_iteration_domains): Same.
1454         (print_scattering_function): Same.
1455         (print_scattering_functions): Same.
1456         (debug_scattering_function): Same.
1457         (debug_scattering_functions): Same.
1458
1459 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
1460
1461         * graphite-poly.c (print_scattering_function_1): New.
1462         (print_scattering_function): Call it.
1463         (print_scop_params): Remove spaces at the end of lines.
1464         (print_cloog): New.
1465         (debug_cloog): New.
1466         * graphite-poly.h (print_cloog): Declared.
1467         (debug_cloog): Declared.
1468
1469 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
1470
1471         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1472         in loop->header.
1473         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1474         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1475         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1476         to switch between adding the IV bump in loop->latch or in loop->header.
1477
1478 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
1479
1480         * graphite-poly.c (print_scattering_function): Pretty print following
1481         the scoplib format.
1482         (print_pdr): Same.
1483         (print_pbb_domain): Same.
1484         (dump_gbb_cases): Same.
1485         (dump_gbb_conditions): Same.
1486         (print_pdrs): Same.
1487         (print_pbb): Same.
1488         (print_scop_params): Same.
1489         (print_scop_context): Same.
1490         (print_scop): Same.
1491         (print_pbb_body): New.
1492         (lst_indent_to): New.
1493         (print_lst): Start new lines with a #.
1494         * graphite-poly.h (pbb_bb): New.
1495         (pbb_index): Use pbb_bb.
1496         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1497         disjuncts.
1498         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1499
1500 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
1501
1502         * dwarf2out.c (size_of_die): For -gdwarf-4 use
1503         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
1504         and 0 instead of 1 for dw_val_class_flag.
1505         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
1506         dw_val_class_range_list, dw_val_class_loc_list,
1507         dw_val_class_lineptr and dw_val_class_macptr, use
1508         DW_FORM_flag_present for dw_val_class_flag and
1509         DW_FORM_exprloc for dw_val_class_loc.
1510         (output_die): For -gdwarf-4 print dw_val_class_loc
1511         size as uleb128 instead of 1 or 2 bytes and don't print
1512         anything for dw_val_class_flag.
1513
1514         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
1515         instead of cselib_lookup following by tweaking locs->setting_insn.
1516
1517         PR bootstrap/43596
1518         * cselib.c (cselib_process_insn): Clear cselib_current_insn
1519         even before returning from label, setjmp call or volatile asm
1520         handling.
1521
1522 2010-03-31  Richard Guenther  <rguenther@suse.de>
1523
1524         PR middle-end/43600
1525         * cgraphunit.c (cgraph_output_in_order): Do not allocate
1526         temporary data on stack.
1527
1528 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1529
1530         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
1531         (PUSHSECTION_ASM_OP): Remove.
1532         (POPSECTION_ASM_OP): Remove.
1533         (PUSHSECTION_FORMAT): Remove.
1534         * config/sol2.h (PUSHSECTION_FORMAT): Define.
1535         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
1536         * config/sol2.c (solaris_output_init_fini): Use it.
1537
1538 2010-03-31  Jie Zhang  <jie@codesourcery.com>
1539
1540         PR 43574
1541         * opt-functions.awk (var_type_struct): Use signed char type
1542         for simple variables.
1543
1544 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1545
1546         * config/sol2.c: Include output.h.
1547         (solaris_assemble_visibility): New function.
1548         * config/t-sol2 (sol2.o): Add output.h dependency.
1549         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
1550         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
1551         Redefine.
1552
1553 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
1554
1555         PR target/43580
1556         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
1557         V2SImode or XFmode on PRE_DEC.
1558
1559         PR debug/43557
1560         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
1561         BLKmode.
1562
1563 2010-03-31  Jie Zhang  <jie@codesourcery.com>
1564
1565         PR 43562
1566         * reload.h (caller_save_initialized_p): Declare.
1567         * toplev.c (backend_init_target): Don't call
1568         init_caller_save but set caller_save_initialized_p to false.
1569         * caller-save.c (caller_save_initialized_p): Define.
1570         (init_caller_save): Check caller_save_initialized_p.
1571         * ira.c (ira): Call init_caller_save if flag_caller_saves.
1572
1573 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1574
1575         PR target/39048
1576         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
1577         and soft-fp/t-softfp to tmake_file.
1578         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
1579         (LIBGCC2_TF_CEXT): Define.
1580         (TF_SIZE): Define.
1581
1582 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
1583
1584         PR debug/42977
1585         * cselib.c (n_useless_values): Document handling of debug locs.
1586         (n_useless_debug_values, n_debug_values): New variables.
1587         (new_elt_loc_list): Don't add to debug values, keep count.
1588         (promote_debug_loc): New.
1589         (cselib_reset_table): Zero new variables.
1590         (entry_and_rtx_equal_p): Promote debug locs.
1591         (discard_useless_locs): Increment n_useless_debug_values for
1592         debug values.
1593         (remove_useless_values): Adjust n_useless_values and n_debug_values
1594         with n_useless_debug_values.
1595         (add_mem_for_addr): Promote debug locs.
1596         (cselib_lookup_mem): Likewise.
1597         (cselib_lookup_addr): Renamed to...
1598         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
1599         (cselib_log_lookup): ... this.  Turn into...
1600         (cselib_lookup_addr): ... new wrapper.
1601         (cselib_lookup_from_insn): New.
1602         (cselib_invalidate_regno): Increment n_useless_debug_values for
1603         debug values.
1604         (cselib_invalidate_mem): Likewise.
1605         (cselib_process_insn): Take n_deleted and n_debug_values into
1606         account to guard remove_useless_value call.
1607         (cselib_finish): Zero n_useless_debug_values.
1608         * cselib.h (cselib_lookup_from_insn): Declare.
1609         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
1610         (sched_analyze_2): Likewise.
1611
1612 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
1613
1614         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
1615         functions.
1616         (adjust_mems): Replace narrowing SUBREG of expression containing
1617         just PLUS, MINUS, MULT and ASHIFT of registers and constants
1618         with operations in the narrower mode.
1619
1620         PR debug/43593
1621         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
1622         regs_invalidated_by_call instead all call_used_reg_set registers.
1623
1624 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
1625
1626         PR middle-end/43430
1627         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
1628         pointer comparisons with types_compatible_p.
1629         * tree-vect-stmts.c (vectorizable_call): Same.
1630         (vectorizable_condition): Same.
1631
1632 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1633
1634         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
1635         stack check if the mask would be zero.
1636
1637 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
1638             Jack Howarth <howarth@bromo.med.uc.edu>
1639
1640         * tree-profile.c (tree_init_ic_make_global_vars): Make static
1641         variables TLS.
1642
1643 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
1644
1645         PR other/25232
1646         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
1647         and __unordtf2.
1648         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
1649         Include ___unordxf2 and ___unordtf2.
1650         * config/i386/libgcc-glibc.ver: Do not define inheritance from
1651         GCC_4.4.0 here.
1652
1653 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
1654
1655         * config/lm32/t-lm32: New file.
1656         * config.gcc: Use the above file when targetting lm32.
1657
1658 2010-03-28  Duncan Sands  <baldrick@free.fr>
1659
1660         * Makefile.in (PLUGIN_HEADERS): Add except.h.
1661
1662 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
1663
1664         PR middle-end/43431
1665         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
1666         Improve vectorization cost model diagnostic.
1667
1668 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
1669
1670         PR middle-end/43436
1671         * tree-vect-data-refs.c (vect_analyze_data_refs): When
1672         compute_data_dependences_for_loop returns false, early exit
1673         and output an extra diagnostic for the failed data reference
1674         analysis.
1675
1676 2010-03-29  Richard Guenther  <rguenther@suse.de>
1677
1678         PR tree-optimization/43560
1679         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
1680         (can_sm_ref_p): Treat stores to readonly locations as trapping.
1681
1682 2010-03-29  Jie Zhang  <jie@codesourcery.com>
1683
1684         PR 43564
1685         * toplev.c (process_options): Set optimization_default_node
1686         and optimization_current_node.
1687         * opts.c (decode_options): Don't set optimization_default_node
1688         and optimization_current_node.
1689
1690 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
1691
1692         * config/rtems.h: Abandon -qrtems_debug.
1693
1694 2010-03-28  Jan Hubicka  <jh@suse.cz>
1695
1696         PR tree-optimization/43505
1697         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
1698         map should not be copied.
1699
1700 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1701
1702         PR middle-end/41674
1703         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
1704         cdtors, set DECL_PRESERVE_P.
1705         * ipa.c (cgraph_externally_visible_p): Return true if declaration
1706         should be preseved.
1707
1708 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
1709
1710         PR tree-optimization/43528
1711         * stor-layout.c (place_field): Check that constant fits into
1712         unsigned HWI when skipping calculation of MS bitfield layout.
1713
1714 2010-03-27  Jan Hubicka  <jh@suse.cz>
1715
1716         PR middle-end/43391
1717         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
1718         notice_global_symbol work.
1719
1720 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
1721
1722         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
1723         instead of dwarf2out_decl.
1724         (struct var_loc_node): Remove section_label field.
1725         (dwarf2out_function_decl): New function.
1726         (dwarf2out_var_location): Don't set section_label field.
1727         (dwarf2out_begin_function): Don't empty decl_loc_table here.
1728
1729 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1730
1731         PR tree-optimization/43544
1732         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
1733         First argument for builtin vectorized function hook is now a
1734         tree to be able to distinguish between machine specific and
1735         standard builtins.
1736         * targhooks.c (default_builtin_vectorized_function): Ditto.
1737         * targhooks.h (default_builtin_vectorized_function): Ditto.
1738         * target.h (struct gcc_target): Ditto.
1739         * tree-vect-stmts.c (vectorizable_function): Ditto.
1740         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
1741         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
1742         Ditto.
1743
1744 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
1745
1746         PR c/43381
1747         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
1748         nested binding iff it is a FUNCTION_DECL.
1749         (store_parm_decls_newstyle): Pass nested=true to bind for
1750         FUNCTION_DECLs amongst parameters.
1751
1752 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
1753
1754         * var-tracking.c (vt_expand_loc_callback): Don't run
1755         cselib_expand_value_rtx_cb in dummy mode if
1756         cselib_dummy_expand_value_rtx_cb returned false.
1757
1758         * var-tracking.c (emit_note_insn_var_location): For one part
1759         notes with offset 0, don't add EXPR_LIST around the location.
1760         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
1761         add_location_or_const_value_attribute): Adjust for that change.
1762
1763         PR debug/43540
1764         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
1765         into first operand and location into second.
1766         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
1767         dw_cfi_oprnd_loc for DW_CFA_expression.
1768         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
1769         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
1770         assume first argument is regnum and second argument is location.
1771
1772 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
1773
1774         PR target/42113
1775         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
1776         of scratch register to DImode.  Split to DImode comparison operator.
1777         Use SImode subreg of scratch register in the multiplication.
1778         (*cmp_sadd_sidi): Ditto.
1779         (*cmp_ssub_si): Ditto.
1780         (*cmp_ssub_sidi): Ditto.
1781
1782 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
1783
1784         PR target/43524
1785         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
1786         Remove invalid assert and wrong comment.
1787
1788 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
1789
1790         PR debug/43516
1791         * flags.h (final_insns_dump_p): New extern.
1792         * final.c (final_insns_dump_p): New variable.
1793         (rest_of_clean_state): Set it before -fdump-final-insns=
1794         dumping, clear afterwards.
1795         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
1796         MEM_ALIAS_SET on MEMs.
1797
1798 2010-03-26  David S. Miller  <davem@davemloft.net>
1799
1800         * configure.ac: Fix sparc GOTDATA_OP bug check.
1801         * configure: Rebuild.
1802
1803 2010-03-26  Alan Modra  <amodra@gmail.com>
1804
1805         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
1806
1807 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1808
1809         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
1810         TLS_SECTION_ASM_FLAG.
1811
1812 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
1813
1814         PR bootstrap/43511
1815         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
1816         Clear first_function_block_is_cold.
1817
1818         PR c/43385
1819         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
1820         argument if the argument is truth_value_p.
1821
1822 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1823
1824         * config/rs6000/constraints.md: Update copyright year for my changes.
1825
1826         PR target/43484
1827         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
1828         used in reg+reg addressing, swap registers.
1829
1830 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
1831
1832         PR debug/43293
1833         * target.h (struct gcc_target): Add code_end hook.
1834         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
1835         if not yet defined.
1836         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
1837         * toplev.c (compile_file): Call targetm.asm_out.code_end
1838         hook before unwind info/debug info output.
1839         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
1840         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
1841         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
1842         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
1843         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
1844         * config/i386/i386.c (ix86_file_end): Renamed to...
1845         (ix86_code_end): ... this.  Make static.  Don't call
1846         file_end_indicate_exec_stack.  Emit unwind info using
1847         final_start_function/final_end_function.
1848         (darwin_x86_file_end): Remove.
1849         (TARGET_ASM_CODE_END): Define.
1850         * config/i386/i386.h (TARGET_ASM_FILE_END,
1851         NEED_INDICATE_EXEC_STACK): Don't define.
1852         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
1853         (TARGET_ASM_FILE_END): Define to darwin_file_end.
1854         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
1855         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
1856
1857         PR target/43498
1858         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
1859         at the beginning and final_end_function at the end.
1860         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1861
1862 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1863
1864         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
1865         and Sun as TLS syntax.
1866         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
1867         * configure: Regenerate.
1868         * config.in: Regenerate.
1869         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
1870         (default_elf_asm_named_section): Use it.
1871         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
1872         (i386_output_dwarf_dtprel): Likewise.
1873         (output_addr_const_extra): Likewise.
1874         (output_pic_addr_const): Lowercase @GOTTPOFF.
1875         (output_addr_const_extra): Likewise.
1876         (output_pic_addr_const): Lowercase @GOTNTPOFF.
1877         (output_addr_const_extra): Likewise.
1878         (output_pic_addr_const): Lowercase @INDNTPOFF.
1879         (output_addr_const_extra): Likewise.
1880         (output_pic_addr_const): Lowercase @NTPOFF.
1881         (output_addr_const_extra): Likewise.
1882         (output_pic_addr_const): Lowercase @TPOFF.
1883         (output_addr_const_extra): Likewise.
1884         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
1885         (*tls_global_dynamic_64): Likewise.
1886         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
1887         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
1888
1889         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
1890         (ASM_OUTPUT_TLS_COMMON): Use it.
1891         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
1892
1893         PR target/38118
1894         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
1895         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
1896         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
1897         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
1898         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
1899         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
1900
1901 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1902
1903         * config/i386/i386.c (override_options): Don't accept
1904         -mtls-dialect=sun any longer.
1905         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
1906         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
1907         (*tls_local_dynamic_base_32_sun): Likewise.
1908         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
1909
1910 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
1911
1912         PR debug/43508
1913         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
1914         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
1915
1916         PR debug/43479
1917         * ira.c (adjust_cleared_regs): New function.
1918         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
1919
1920         PR debug/19192
1921         PR debug/43479
1922         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
1923         from gimple_block.
1924         * expr.c (expand_expr_real): Restore previous
1925         curr_insn_source_location and curr_insn_block after
1926         expand_expr_real_1 call.
1927         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
1928         instead of expand_expr_real_1.
1929
1930 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
1931
1932         PR rtl-optimization/43413
1933         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
1934         hard regs too.
1935
1936 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
1937
1938         PR target/43348
1939         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
1940         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
1941
1942 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1943
1944         * config/i386/i386.c (ix86_target_string): Add -mfma.
1945         Fix a typo in comment.
1946
1947 2010-03-22  Mike Stump  <mikestump@comcast.net>
1948
1949         PR target/23071
1950         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
1951         Don't overly align based upon packed packed fields.
1952
1953 2010-03-22  Jason Merrill  <jason@redhat.com>
1954
1955         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
1956         Use () rather than [], and move before the element type.
1957
1958 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1959
1960         * doc/configfiles.texi (Configuration Files): Removed
1961         fixinc/Makefile*, intl/Makefile.*.
1962         * doc/makefile.texi: Fixed markup. Abstract from version
1963         control system used.
1964         (Makefile): Removed obsolete gcc/java/parse.y example.
1965         * doc/sourcebuild.texi: Likewise.
1966         (Top Level): Added config, gnattools, libdecnumber, libgcc,
1967         libgomp, libssp.  Removed fastjar.
1968         (Miscellaneous Docs): Clarify location.
1969         Added COPYING3, COPYING3.LIB.
1970         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
1971
1972 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1973
1974         PR target/38085
1975         * config/i386/i386.c (x86_function_profiler)
1976         [!NO_PROFILE_COUNTERS]: Fix typo.
1977         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
1978         instead of callq.
1979
1980 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
1981             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1982
1983         * doc/sourcebuild.texi (Test Directives): Split into six
1984         subsections, with most of the current text in new subsections
1985         Directives, Selectors, and Final Actions.
1986         (Directives): Split list of test directives into multiple
1987         subsubsections.
1988         (Selectors): Describe use and syntax of selectors.
1989         (Effective-Target Keywords): Describe all existing keywords.
1990         (Add Options): Describe features for dg-add-options.
1991         (Require Support): Describe variants of dg-require-support.
1992         (Final Actions): Describe commands to use in dg-final.
1993
1994 2010-03-22  Michael Matz  <matz@suse.de>
1995
1996         PR middle-end/43475
1997         * recog.c (validate_replace_rtx_group): Replace also in
1998         REG_EQUAL and REG_EQUIV notes.
1999
2000 2010-03-22  Richard Guenther  <rguenther@suse.de>
2001
2002         PR tree-optimization/43390
2003         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
2004         sure vector extracts are type correct.
2005
2006 2010-03-22  Richard Guenther  <rguenther@suse.de>
2007
2008         PR middle-end/40106
2009         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
2010         x * sqrt (x) even when optimizing for size if the target
2011         has native support for sqrt.
2012
2013 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
2014
2015         * varasm.c (make_decl_rtl_for_debug): Also clear
2016         flag_mudflap for the duration of make_decl_rtl call.
2017
2018         PR debug/43443
2019         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
2020         locs from preserved VALUEs.
2021
2022 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2023
2024         PR middle-end/42718
2025         * pa.md (movmemsi): Set align to one if zero.
2026         (movmemdi): Likewise.
2027
2028 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
2029
2030         PR target/42321
2031         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
2032         with their corresponding prologue pushes.
2033
2034 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
2035
2036         PR target/43156
2037         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
2038         at the begining or end.
2039         (spu_expand_epilogue): Likewise.
2040
2041 2010-03-20  Richard Guenther  <rguenther@suse.de>
2042
2043         PR rtl-optimization/43438
2044         * combine.c (make_extraction): Properly zero-/sign-extend an
2045         extraction of the low part of a CONST_INT.  Also handle
2046         CONST_DOUBLE.
2047
2048 2010-03-19  Mike Stump  <mikestump@comcast.net>
2049
2050         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
2051         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
2052         (override_options): Use SUBTARGET32_DEFAULT_CPU.
2053
2054 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
2055
2056         PR c/43211
2057         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
2058         an error.
2059
2060 2010-03-19  Bernd Schmidt  <bernd.schmidt@codesourcery.com>
2061
2062         PR rtl-optimization/42258
2063         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
2064         use that may match DEF.
2065
2066         PR target/40697
2067         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
2068         the cost of loading the constant rather than assuming
2069         COSTS_N_INSNS (1).
2070         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
2071         outer code is AND, do the same tests as the andsi3 expander and
2072         return COSTS_N_INSNS (1) if and is cheap.
2073
2074         * optabs.c (avoid_expensive_constant): Fix formatting.
2075
2076 2010-03-19  Michael Matz  <matz@suse.de>
2077
2078         PR c++/43116
2079         * attribs.c (decl_attributes): When rebuilding a function pointer
2080         type use the same qualifiers as the original pointer type.
2081
2082 2010-03-19  Martin Jambor  <mjambor@suse.cz>
2083
2084         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
2085         and is_gimple_ip_invariant_address.
2086
2087 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2088
2089         Revert
2090         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2091
2092         * config/arm/arm.c (arm_override_options): Turn off
2093         flag_dwarf2_cfi_asm for AAPCS variants.
2094
2095 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2096
2097         PR target/43399
2098         * config/arm/arm.c (emit_multi_reg_push): Update comments.
2099         Use PRE_MODIFY instead of PRE_DEC.
2100         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
2101         (vfp_emit_fstmd): Likewise.
2102
2103 2010-03-19  Michael Matz  <matz@suse.de>
2104
2105         PR target/43305
2106         * builtins.c (expand_builtin_interclass_mathfn,
2107         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
2108         if that fails.
2109
2110 2010-03-19  Richard Guenther  <rguenther@suse.de>
2111
2112         PR tree-optimization/43415
2113         * tree-ssa-pre.c (phi_translate): Split out worker to ...
2114         (phi_translate_1): ... this.
2115         (phi_translate): Move all caching here.  Cache all NARY
2116         and REFERENCE translations.
2117
2118 2010-03-19  David S. Miller  <davem@davemloft.net>
2119
2120         With help from Eric Botcazou.
2121         * config/sparc/sparc.c: Include dwarf2out.h.
2122         (emit_pic_helper): Delete.
2123         (pic_helper_symbol_name): Delete.
2124         (pic_helper_emitted_p): Delete.
2125         (pic_helper_needed): New.
2126         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
2127         (get_pc_thunk_name): New.
2128         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
2129         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
2130         Set pic_helper_needed to true.  Don't call emit_pic_helper.
2131         (sparc_expand_prologue): Update load_pic_register call.
2132         (sparc_output_mi_thunk): Likewise.
2133         (sparc_file_end): Emit a hidden comdat symbol for the PIC
2134         thunk if possible.  Output CFI information as needed.
2135
2136 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2137             Jack Howarth <howarth@bromo.med.uc.edu>
2138
2139         PR target/36399
2140         * config/i386/i386.h: Fix ABI on darwin x86-32.
2141
2142 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
2143
2144         * tree.h: Declare make_decl_rtl_for_debug.
2145         * varasm.c (make_decl_rtl_for_debug): New.
2146         * dwarf2out.c (rtl_for_decl_location): Call it.
2147         * cfgexpand.c (expand_debug_expr): Call it.
2148
2149 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
2150
2151         PR bootstrap/43399
2152         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
2153         mem_mode.
2154
2155         PR bootstrap/43403
2156         * var-tracking.c (vt_init_cfa_base): Do nothing if
2157         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
2158
2159 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
2160
2161         PR debug/42873
2162         * var-tracking.c (canonicalize_vars_star): New.
2163         (dataflow_post_merge_adjust): Use it.
2164
2165 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
2166
2167         PR debug/43058
2168         * var-tracking.c (non_suitable_const): New function.
2169         (add_uses): For DEBUG_INSNs with constants, don't record any
2170         value, instead just the constant value itself.
2171         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
2172         is not VAR_LOC_UNKNOWN_P, set var to the constant.
2173         (emit_notes_in_bb): Likewise.
2174         (emit_note_insn_var_location): For onepart variables if
2175         cur_loc is a VOIDmode constant, use DECL_MODE.
2176
2177 2010-03-18  Martin Jambor  <mjambor@suse.cz>
2178
2179         PR middle-end/42450
2180         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
2181         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
2182         all non-clones.  Moved call redirection...
2183         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
2184         (cgraph_materialize_all_clones): Dispose of all
2185         combined_args_to_skip bitmaps.
2186         (verify_cgraph_node): Do not check for edges pointing to wrong
2187         nodes in inline clones.
2188         * tree-inline.c (copy_bb): Call
2189         cgraph_redirect_edge_call_stmt_to_callee.
2190         * ipa.c (cgraph_remove_unreachable_nodes): Call
2191         cgraph_node_remove_callees even when there are used clones.
2192
2193 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
2194
2195         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
2196
2197 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
2198
2199         PR target/43383
2200         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
2201         for 32bit.
2202
2203 2010-03-18  Michael Matz  <matz@suse.de>
2204
2205         PR middle-end/43419
2206         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
2207         into sqrt(x) if we need to preserve signed zeros.
2208
2209 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
2210             Eric Botcazou  <ebotcazou@adacore.com>
2211
2212         PR rtl-optimization/43360
2213         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
2214         note if we don't know its invariant status.
2215
2216 2010-03-18  Michael Matz  <matz@suse.de>
2217
2218         PR tree-optimization/43402
2219         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
2220         PHI chains of ssa names registered for update.
2221
2222 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
2223
2224         PR target/42427
2225         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
2226         non-offsettable and pre_modify update addressing.
2227         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
2228         and "2" alternatives "#".
2229         (*movdd_softfloat32): Make all alternatives "#";
2230         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
2231         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
2232         (*movdf_softfloat32): Make all alternatives "#";
2233         (movdi): Use the new DIFD mode iterator to create a common splitter
2234         for movdi, movdf and movdd patterns.
2235
2236 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
2237
2238         * common.opt (dumpdir): Remove redundant tab.
2239
2240 2010-03-17  Martin Jambor  <mjambor@suse.cz>
2241
2242         PR tree-optimization/43347
2243         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
2244         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
2245
2246 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2247
2248         PR rtl-optimization/42216
2249         * regrename.c (create_new_chain): New function, broken out from...
2250         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
2251         appending a use to an empty chain.
2252         (build_def_use): Remove previous changes that convert OP_INOUT to
2253         OP_OUT operands; instead detect the case where an OP_INOUT operand
2254         uses a previously untracked register and create an empty chain for it.
2255
2256 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2257
2258         * doc/extend.texi (Function Attributes): Rewrite unfinished
2259         sentence in ms_abi documentation.
2260
2261 2010-03-17  Alan Modra  <amodra@gmail.com>
2262
2263         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
2264         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
2265         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
2266         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
2267
2268 2010-03-16  Richard Henderson  <rth@redhat.com>
2269
2270         PR middle-end/43365
2271         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
2272         (lower_try_finally): Save and restore eh_seq around the expansion
2273         of the try-finally.
2274
2275 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
2276
2277         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
2278         statements before splitting block.
2279
2280 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2281
2282         * doc/sourcebuild.texi (Testsuites): Fix markup.
2283         Use pathnames relative to gcc/testsuite.
2284         (Test Directives): Move description of how timeout is determined.
2285         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
2286         (C Tests): Correct gcc.misc-tests directory.
2287         Framework tests now live in gcc.test-framework.
2288
2289 2010-03-16  Richard Guenther  <rguenther@suse.de>
2290
2291         PR middle-end/43379
2292         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
2293         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
2294
2295 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
2296             Alexandre Oliva  <aoliva@redhat.com>
2297
2298         PR tree-optimization/42917
2299         * lambda-code.c (remove_iv): Skip debug statements.
2300         (lambda_loopnest_to_gcc_loopnest): Likewise.
2301         (not_interesting_stmt): Debug statements are not interesting.
2302
2303 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
2304
2305         PR debug/43051
2306         PR debug/43092
2307         * cselib.c (cselib_preserve_constants,
2308         cfa_base_preserved_val): New static variables.
2309         (preserve_only_constants): New function.
2310         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
2311         clear its REG_VALUES.  If cselib_preserve_constants, don't
2312         empty the whole hash table, but preserve there VALUEs with constants,
2313         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
2314         (cselib_preserve_cfa_base_value): New function.
2315         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
2316         (cselib_init): Change argument to int bitfield.  Set
2317         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
2318         is in it.
2319         (cselib_finish): Clear cselib_preserve_constants and
2320         cfa_base_preserved_val.
2321         * cselib.h (enum cselib_record_what): New enum.
2322         (cselib_init): Change argument to int.
2323         (cselib_preserve_cfa_base_value): New prototype.
2324         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
2325         * dse.c (dse_step1): Likewise.
2326         * cfgcleanup.c (thread_jump): Likewise.
2327         * sched-deps.c (sched_analyze): Likewise.
2328         * gcse.c (local_cprop_pass): Likewise.
2329         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
2330         If FN is non-NULL, call the callback always and whenever it returns
2331         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
2332         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
2333         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
2334         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
2335         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
2336         * var-tracking.c: Include recog.h.
2337         (bb_stack_adjust_offset): Remove.
2338         (vt_stack_adjustments): Don't call it, instead just gather the
2339         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
2340         (adjust_stack_reference): Remove.
2341         (compute_cfa_pointer): New function.
2342         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
2343         (struct adjust_mem_data): New type.
2344         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
2345         functions.
2346         (get_address_mode): New function.
2347         (replace_expr_with_values): Use it.
2348         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
2349         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
2350         (adjust_sets): Remove.
2351         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
2352         Use get_address_mode.
2353         (get_adjusted_src): Remove.
2354         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
2355         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
2356         (add_with_sets): Don't call adjust_sets.
2357         (fp_setter, vt_init_cfa_base): New functions.
2358         (vt_initialize): Change return type to bool.  Move most of pool etc.
2359         initialization to the beginning of the function from end.  Pass
2360         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
2361         If !frame_pointer_needed, call vt_stack_adjustment before mos
2362         vector is filled, call vt_init_cfa_base if argp/framep has been
2363         eliminated to sp.  If frame_pointer_needed and argp/framep has
2364         been eliminated to hard frame pointer, set
2365         hard_frame_pointer_adjustment and call vt_init_cfa_base after
2366         encountering fp setter in the prologue.  For MO_ADJUST, call
2367         log_op_type before pusing the op into mos vector, not afterwards.
2368         Call adjust_insn before cselib_process_insn/add_with_sets,
2369         call cancel_changes (0) afterwards.
2370         (variable_tracking_main_1): Adjust for vt_initialize calling
2371         vt_stack_adjustments and returning whether it succeeded or not.
2372
2373 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
2374
2375         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
2376         debug statements.
2377
2378 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
2379
2380         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
2381         has been set.
2382         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
2383         drap_reg has not been set.
2384
2385 2010-03-15  Michael Matz  <matz@suse.de>
2386
2387         PR middle-end/43300
2388         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
2389         use it to expand block copies.
2390         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
2391         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
2392         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
2393
2394 2010-03-15  Richard Guenther  <rguenther@suse.de>
2395
2396         PR tree-optimization/43367
2397         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
2398         elimination check.
2399
2400 2010-03-15  Richard Guenther  <rguenther@suse.de>
2401
2402         PR tree-optimization/43317
2403         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
2404
2405 2010-03-15  Martin Jambor  <mjambor@suse.cz>
2406
2407         PR tree-optimization/43141
2408         * tree-sra.c (create_abstract_origin): New function.
2409         (modify_function): Call create_abstract_origin.
2410
2411 2010-03-15  Chris Demetriou  <cgd@google.com>
2412
2413         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
2414         wasn't copied.
2415
2416 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2417
2418         PR middle-end/43354
2419         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
2420         call insert_out_of_ssa_copy for default definitions.
2421
2422 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2423
2424         * graphite-clast-to-gimple.c (my_long_long): Defined.
2425         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
2426         * graphite-sese-to-poly.c (my_long_long): Defined.
2427         (scop_ivs_can_be_represented): Use it.
2428
2429 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2430
2431         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
2432         graphite-max-bbs-per-function, and loop-block-tile-size.
2433         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
2434         with "maximum".
2435         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
2436
2437 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2438
2439         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
2440         forward declaration.
2441         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
2442         (add_upper_bounds_from_estimated_nit): New.
2443         (build_loop_iteration_domains): Use it.
2444
2445 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2446
2447         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
2448
2449 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2450
2451         PR middle-end/43306
2452         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
2453         should be an INTEGER_CST.  Also handle CASE_CONVERT.
2454
2455 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2456
2457         * graphite.c (graphite_initialize): To bound the number of bbs per
2458         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
2459         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
2460         * doc/invoke.texi: Document it.
2461
2462 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2463
2464         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
2465         * graphite-sese-to-poly.h (build_poly_scop): Same.
2466
2467 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2468
2469         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
2470         the number of parameters in the scop.  Use as an upper bound
2471         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
2472         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
2473         * doc/invoke.texi: Document it.
2474
2475 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
2476
2477         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
2478         * doc/c-tree.texi: Remove.
2479         * doc/generic.texi: Merge c-tree.texi here.
2480         * doc/gccint.texi (Trees): Remove menu entry.
2481         (c-tree.texi): Remove @include.
2482         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
2483         * doc/languages.texi (Reading RTL): Ditto.
2484
2485 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
2486
2487         PR target/42869
2488         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
2489
2490 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2491
2492         PR middle-end/42431
2493         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
2494         code added to work around reload clobbering CONST insns.
2495
2496 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
2497
2498         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
2499         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
2500         (cselib_preserve_only_values): Remove retain argument, don't
2501         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
2502         * cselib.h (cselib_preserve_only_values): Remove retain argument.
2503         * var-tracking.c (micro_operation): Move insn field before union.
2504         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
2505         (struct variable_tracking_info_def): Remove n_mos field, change
2506         mos into a vector of micro_operations.
2507         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
2508         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
2509         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
2510         changing into a vector.
2511         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
2512         come before all other uops generated by add_stores.
2513         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
2514         argument removal.
2515         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
2516         a vector.  Run just one pass over the bbs instead of separate counting
2517         and computation phase.
2518         (vt_finalize): Free VTI (bb)->mos vector instead of array.
2519
2520         PR debug/43329
2521         * tree-inline.c (remap_decls): Put old_var rather than origin_var
2522         into *nonlocalized_list vector.
2523         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
2524         even if origin is non-NULL.
2525         (gen_variable_die): Likewise.
2526         (process_scope_var): Don't change origin.
2527         (gen_decl_die): Likewise.
2528         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
2529         before adding new edges instead of after it, fix moving over
2530         debug stmts.
2531
2532 2010-03-11  David S. Miller  <davem@davemloft.net>
2533
2534         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
2535         of four.
2536         * configure: Rebuild.
2537
2538 2010-03-11  Martin Jambor  <mjambor@suse.cz>
2539
2540         PR tree-optimization/43257
2541         * tree.c (assign_assembler_name_if_neeeded): New function.
2542         (free_lang_data_in_cgraph): Assembler name assignment moved to the
2543         above new function.
2544         * tree.h (assign_assembler_name_if_neeeded): Declare.
2545         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
2546         the function if needed.
2547
2548 2010-03-11  Chris Demetriou  <cgd@google.com>
2549
2550         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
2551         include/stdint-gcc.h, and include/stdint.h world-readable.
2552
2553 2010-03-11  Richard Guenther  <rguenther@suse.de>
2554
2555         PR tree-optimization/43255
2556         * tree-vrp.c (process_assert_insertions_for): Do not insert
2557         asserts for trivial conditions.
2558
2559 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2560
2561         PR tree-optimization/43280
2562         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
2563         generation.  Move calculation of size out of the if branch.
2564         (find_bswap): Modify compare number generation.
2565
2566 2010-03-11  Richard Guenther  <rguenther@suse.de>
2567
2568         PR lto/43200
2569         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
2570         (input_gimple_stmt): Fixup handled component types during
2571         operand read.  Also fix up decls in ADDR_EXPRs.
2572
2573 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
2574
2575         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
2576         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
2577
2578 2010-03-10  Jan Hubicka  <jh@suse.cz>
2579
2580         PR c/43288
2581         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
2582         * varasm.c (get_variable_section): Don't do that here...
2583         (make_decl_rtl): ... and here.
2584         (do_assemble_alias): Produce decl RTL.
2585         (assemble_alias): Likewise.
2586
2587 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
2588
2589         PR debug/43290
2590         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
2591         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
2592         of fde->vdrap_reg.
2593         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
2594         (based_loc_descr): Only express drap or vdrap regno based expressions
2595         using DW_OP_fbreg when not optimizing.
2596         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
2597         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
2598         REG_CFA_SET_VDRAP note.
2599
2600 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
2601
2602         PR tree-optimization/43236
2603         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
2604         error in calculation of base address in reverse iteration case.
2605         (generate_builtin): Take number of latch executions if the statement
2606         is in the latch.
2607
2608 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
2609
2610         PR middle-end/42859
2611         * tree-eh.c: Include pointer-set.h.
2612         (lower_eh_dispatch): Filter out duplicate case labels and
2613         remove the unneeded edge when the label is unused.  Return
2614         true when some edges are removed.
2615         (execute_lower_eh_dispatch): When any lowering resulted in
2616         removing an edge, also delete unreachable blocks.
2617
2618 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
2619
2620         PR bootstrap/43287
2621         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2622         UNSPEC_MACHOPIC_OFFSET.
2623
2624 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
2625
2626         PR target/43294
2627         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
2628         (m68k_delegitimize_address): New function.
2629
2630 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
2631
2632         PR debug/43299
2633         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
2634
2635         PR debug/43299
2636         * var-tracking.c (adjust_sets): New function.
2637         (count_with_sets, add_with_sets): Use it.
2638         (get_adjusted_src): New inline function.
2639         (add_stores): Use it.
2640
2641         PR debug/43304
2642         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
2643         call cselib_dummy_expand_value_rtx_cb instead of
2644         cselib_expand_value_rtx_cb.
2645
2646         PR debug/43293
2647         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
2648         * config/i386/i386.c: Include debug.h and dwarf2out.h.
2649         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
2650         and .cfi_endproc around the pic thunks.
2651         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
2652         all queued unwind info register saves are saved before the call.
2653         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
2654         considered as sp-=4 for unwind info and the pop as sp+=4 which
2655         also clobbers dest, but doesn't actually restore it.
2656
2657         PR debug/43290
2658         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
2659         RTX_FRAME_RELATED_P.
2660
2661 2010-03-09  Jie Zhang  <jie@codesourcery.com>
2662
2663         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
2664         whitespaces in output template.
2665
2666 2010-03-09  Jie Zhang  <jie@codesourcery.com>
2667
2668         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
2669         out array boundary.
2670
2671 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
2672
2673         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
2674         builtins.exp in a separate job.
2675
2676 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2677
2678         * graphite-sese-to-poly.c (add_param_constraints): Use
2679         lower_bound_in_type and upper_bound_in_type.
2680
2681 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2682
2683         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
2684         instead of unsigned_type_node.
2685
2686 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2687             Reza Yazdani  <reza.yazdani@amd.com>
2688
2689         PR middle-end/43065
2690         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
2691         on pointer type parameters.
2692
2693 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2694
2695         PR middle-end/42644
2696         PR middle-end/42130
2697         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
2698         handle conversions from pointer to integers.
2699         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
2700         induction variable, to be able to work with code generated by CLooG.
2701         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
2702         (build_poly_scop): Bail out if we cannot codegen a loop.
2703
2704 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2705
2706         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
2707         code generation with gloog_error.
2708
2709 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2710
2711         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
2712         Call fold_convert on all the returned values.
2713         (expand_scalar_variables_expr): Pass to
2714         expand_scalar_variables_ssa_name the type of the resulting expression.
2715
2716 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2717
2718         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
2719         ppl_min_for_le_pointset.
2720         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
2721         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
2722
2723 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2724
2725         * graphite-dependences.c (map_into_dep_poly): Removed.
2726         (dependence_polyhedron_1): Use combine_context_id_scat.
2727
2728 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2729
2730         * graphite-poly.h (struct poly_scattering): Add layout documentation.
2731         (struct poly_bb): Same.
2732         (combine_context_id_scat): New.
2733
2734 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2735
2736         PR middle-end/42326
2737         * sese.c (name_defined_in_loop_p): Return false for default
2738         definitions.
2739
2740 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2741
2742         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
2743         and clean up the logic.
2744
2745 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
2746
2747         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
2748         early return.
2749
2750 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
2751
2752         * var-tracking.c (remove_cselib_value_chains): Define only for
2753         ENABLE_CHECKING.
2754         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
2755         delete_slot_part, emit_notes_for_differences_1): Don't call
2756         remove_cselib_value_chains here.
2757         (set_slot_part, emit_notes_for_differences_2): Don't call
2758         add_cselib_value_chains here.
2759         (preserved_values): New vector.
2760         (preserve_value): New function.
2761         (add_uses, add_stores, vt_add_function_parameters): Use it
2762         instead of cselib_preserve_value.
2763         (changed_values_stack): New vector.
2764         (check_changed_vars_0): New function.
2765         (check_changed_vars_1, check_changed_vars_2): Use it.
2766         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
2767         changed_values_stack VALUEs.
2768         (vt_emit_notes): For all preserved_values call
2769         add_cselib_value_chains.  If ENABLE_CHECKING call
2770         remove_cselib_value_chains before verifying value_chains is empty.
2771         Initialize and free changed_values_stack.
2772         (vt_initialize): Initialize preserved_values.
2773         (vt_finalize): Free preserved_values.
2774
2775 2010-03-08  Richard Guenther  <rguenther@suse.de>
2776
2777         PR tree-optimization/43269
2778         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
2779         region detection.
2780
2781 2010-03-08  Martin Jambor  <mjambor@suse.cz>
2782
2783         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
2784         (ipa_is_param_called): Removed.
2785         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
2786         (ipa_print_node_params): Do not print the called flag.
2787         (ipa_write_node_info): Do not stream the called flag.
2788         (ipa_read_node_info): Likewise.
2789
2790 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
2791
2792         PR debug/43176
2793         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
2794         * cselib.c (struct expand_value_data): Add dummy field.
2795         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
2796         dummy to false.
2797         (cselib_dummy_expand_value_rtx_cb): New function.
2798         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
2799         any rtl.
2800         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
2801         * var-tracking.c: Include pointer-set.h.
2802         (variable): Change n_var_parts to char from int.  Add
2803         cur_loc_changed and in_changed_variables fields.
2804         (variable_canonicalize): Remove.
2805         (shared_var_p): New inline function.
2806         (unshare_variable): Maintain cur_loc_changed and
2807         in_changed_variables fields.  If var was in changed_variables,
2808         replace it there with new_var.  Just copy cur_loc instead of
2809         resetting it to something else.
2810         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
2811         (dataflow_set_union): Don't call variable_canonicalize.
2812         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
2813         of their DEBUG_EXPR_TREE_DECLs.
2814         (canonicalize_loc_order_check): Verify that cur_loc is NULL
2815         and in_changed_variables and cur_loc_changed is false.
2816         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
2817         and cur_loc_changed.  Don't update cur_loc here.
2818         (variable_merge_over_src): Don't call variable_canonicalize.
2819         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
2820         removing loc that is equal to cur_loc, clear cur_loc,
2821         set cur_loc_changed and ensure variable_was_changed is called.
2822         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
2823         compare pointers in cur_loc check, if it is equal to loc,
2824         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
2825         (variable_different_p): Remove compare_current_location argument,
2826         don't compare cur_loc.
2827         (dataflow_set_different_1): Adjust variable_different_p caller.
2828         (variable_was_changed): If dv had some var in changed_variables
2829         already, reset in_changed_variables flag for it and propagate
2830         cur_loc_changed over to the new variable.  On empty var
2831         always set cur_loc_changed.  Set in_changed_variables on whatever
2832         var is added to changed_variables.
2833         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
2834         Use shared_var_p.  When removing loc that is equal to cur_loc,
2835         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
2836         end, don't set it to something else, just call variable_was_changed.
2837         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
2838         loc being removed, clear cur_loc and set cur_loc_changed.
2839         Set cur_loc_changed if all locations have been removed.
2840         (struct expand_loc_callback_data): New type.
2841         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
2842         allocated.  Always create SUBREGs if simplify_subreg failed.
2843         Prefer to use cur_loc, when that fails and still in
2844         changed_variables (and seen first time) recompute it.  Set
2845         cur_loc_changed of variables which had to change cur_loc and
2846         compute elcd->cur_loc_changed if any of the subexpressions used
2847         had to change cur_loc.
2848         (vt_expand_loc): Adjust to pass arguments in
2849         expand_loc_callback_data structure.
2850         (vt_expand_loc_dummy): New function.
2851         (emitted_notes): New variable.
2852         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
2853         that weren't used for any other decl in current
2854         emit_notes_for_changes call call vt_expand_loc_dummy to update
2855         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
2856         first loc_chain location if NULL before.  Always use just
2857         cur_loc instead of first loc_chain location.  When cur_loc_changed
2858         is false, when not --enable-checking=rtl just don't emit any note.
2859         When rtl checking, compute the note and assert it is the same
2860         as previous note.  Clear cur_loc_changed and in_changed_variables
2861         at the end before removing from changed_variables.
2862         (check_changed_vars_3): New function.
2863         (emit_notes_for_changes): Traverse changed_vars to call
2864         check_changed_vars_3 on each changed var.
2865         (emit_notes_for_differences_1): Clear cur_loc_changed and
2866         in_changed_variables.  Recompute cur_loc of new_var.
2867         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
2868         (vt_emit_notes): Initialize and destroy emitted_notes.
2869
2870 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2871
2872         PR rtl-optimization/42220
2873         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
2874         Use verify_reg_tracked to determine if we should use OP_OUT rather
2875         than OP_INOUT.
2876         (build_def_use): If we see an in-out operand for a register that we
2877         know nothing about, treat is an output if possible, fail the block if
2878         not.
2879
2880 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
2881
2882         PR debug/42897
2883         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
2884         permanently.
2885
2886 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
2887
2888         PR debug/42897
2889         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
2890         uses of relevant DEFs that are dead outside the loop too.
2891
2892 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
2893
2894         * var-tracking.c (dataflow_set_merge): Swap src and src2.
2895         Reverted:
2896         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
2897         PR debug/41371
2898         * var-tracking.c (values_to_unmark): New variable.
2899         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
2900         values_to_unmark vector.  Moved body to...
2901         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
2902         instead queue it into values_to_unmark vector.
2903         (vt_find_locations): Free values_to_unmark vector.
2904
2905 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2906
2907         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
2908         (site.exp): Export them when plugins are enabled.
2909
2910 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
2911
2912         PR middle-end/42326
2913         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
2914         that contain scevs.
2915         (chrec_fold_multiply): Same.
2916
2917 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
2918
2919         PR c/43248
2920         * c-decl.c (build_compound_literal): Return early if init is
2921         an error_mark_node.
2922
2923 2010-03-04  Martin Jambor  <mjambor@suse.cz>
2924
2925         PR tree-optimization/43164
2926         PR tree-optimization/43191
2927         * tree-sra.c (type_consists_of_records_p): Reject records with
2928         zero-size bit-fields at the end.
2929
2930 2010-03-04  Mike Stump  <mikestump@comcast.net>
2931
2932         * Makefile.in (TAGS): Remove *.y.
2933
2934 2010-03-04  Richard Guenther  <rguenther@suse.de>
2935
2936         PR tree-optimization/40761
2937         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
2938         in reverse order.
2939         (my_rev_post_order_compute): New function.
2940         (init_pre): Call it.
2941
2942 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
2943
2944         PR middle-end/43209
2945         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
2946         decrease the cost of an IV candidate when the cost is infinite.
2947
2948 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2949
2950         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
2951         Use '3DNow!' for the extension of that name, ensure normal space
2952         after the string.
2953         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
2954
2955 2010-03-03  Jeff Law  <law@redhat.com>
2956
2957         * PR middle-end/32693
2958         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
2959         than gen_rtx_SUBREG.
2960         (extract_bit_field_1): Likewise.
2961
2962 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
2963
2964         * doc/sourcebuild.texi (Test directives): Document that arguments
2965         include-opts and exclude-opts are now optional for dg-skip-if,
2966         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
2967
2968 2010-03-03  Jason Merrill  <jason@redhat.com>
2969
2970         PR c++/12909
2971         * cgraph.h (varpool_node): Add extra_name field.
2972         * varpool.c (varpool_extra_name_alias): New.
2973         (varpool_assemble_decl): Emit extra name aliases.
2974         (varpool_mark_needed_node): Look past an extra name alias.
2975         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
2976         * lto-streamer-in.c (lto_input_tree): Read it.
2977         * lto-streamer-out.c (output_unreferenced_globals): Write it.
2978
2979 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
2980
2981         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
2982         (sparc*-*-solaris2*): ...this.
2983
2984 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
2985
2986         PR debug/43229
2987         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
2988         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
2989         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
2990         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
2991
2992         PR debug/43237
2993         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
2994         fallthrough to default handling, just with want_address 0 instead of 2.
2995         For single element lists, add_AT_loc directly, otherwise create an
2996         artificial variable DIE and stick location list to it.
2997
2998         PR debug/43177
2999         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
3000         (VAL_EXPR_HAS_REVERSE): Define.
3001         (reverse_op): New function.
3002         (add_stores): For reversible operations add an extra MO_VAL_USE.
3003
3004 2010-03-02  Jason Merrill  <jason@redhat.com>
3005
3006         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
3007
3008 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
3009
3010         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
3011         (sparc64-*-linux*): Likewise.
3012         (sparc64-*-solaris2*): Include assembler files before linker ones.
3013         (sparc-*-solaris2*): Simplify and reorder to match previous case.
3014         * config/sparc/gas.h: Delete.
3015         * config/sparc/sol2-64.h: Add copyright notice.
3016         * config/sparc/sol2-gas-bi.h: Likewise.
3017         * config/sparc/sol2-gld.h: Likewise.
3018         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
3019         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
3020         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
3021         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
3022         (sparc_elf_asm_named_section): Rename into...
3023         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
3024
3025 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
3026
3027         * config/alpha/alpha.c (override_options): Fix -mtune error message.
3028
3029 2010-03-02  Jeff Law  <law@redhat.com>
3030
3031         PR middle-end/42431
3032         * reload1.c (rtx_p, substitute_stack): Declare.
3033         (substitute): Record addresses of changed rtxs.
3034         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
3035         Restore the original rtx when complete.
3036         (reload): Free subsitute_stack when complete.
3037
3038 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
3039
3040         * doc/gccint.texi (menu): Add Testsuites as a chapter.
3041         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
3042         new chapter.
3043         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
3044         LTO Testing, gcov Testing, profopt Testing, compat Testing,
3045         Torture Tests): Change from subsection to section.
3046
3047 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
3048             Steven Bosscher  <steven@gcc.gnu.org>
3049
3050         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
3051         instead of bb.
3052
3053 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
3054
3055         PR middle-end/42640
3056         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
3057         the assignment from the new induction variable to the assignment
3058         of the value from the original loop PHI function.
3059
3060 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
3061             Daniel Jacobowitz  <dan@codesourcery.com>
3062
3063         * doc/sourcebuild.texi (Test directives): Clarify options to
3064         dg-skip-if.
3065
3066 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3067
3068         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
3069         Disable cfi directives unless GCC and gas agree on using read-only
3070         .eh_frame sections for 64-bit.
3071         * configure: Regenerate.
3072
3073 2010-03-01  Richard Guenther  <rguenther@suse.de>
3074
3075         PR tree-optimization/43220
3076         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
3077         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
3078
3079 2010-03-01  Richard Guenther  <rguenther@suse.de>
3080             Martin Jambor  <mjambor@suse.cz>
3081
3082         PR middle-end/41250
3083         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
3084         gimplified parameters.
3085
3086 2010-03-01  Christian Bruel  <christian.bruel@st.com>
3087
3088         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
3089
3090 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
3091
3092         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
3093
3094 2010-03-01  Richard Guenther  <rguenther@suse.de>
3095
3096         PR middle-end/43213
3097         * expr.c (expand_assignment): Use the alias-oracle to tell
3098         if the rhs aliases the result decl.
3099
3100 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3101
3102         PR pch/14940
3103         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
3104         to sol_gt_pch_get_address.
3105         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
3106         64-bit, SPARC and x86.
3107         (sol_gt_pch_get_address): New function.
3108
3109 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
3110
3111         * toplev.h (inform_n, error_n): Declare.
3112         * diagnostic.c (inform_n, error_n): New function.
3113
3114 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
3115
3116         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
3117         has no rtl yet when processing local_decls, queue it and recheck
3118         if deferred stack allocation hasn't assigned it rtl.
3119
3120 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3121
3122         * config/sh/sh.c (unspec_bbr_uid): New.
3123         (gen_block_redirect): Use it instead of INSN_UID.
3124         (gen_far_branch): Likewise.
3125
3126 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
3127
3128         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
3129         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
3130
3131 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3132
3133         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
3134         (Warning Options): -Wno-conversion-null is valid for
3135         Objective-C++ as well.
3136         * doc/tm.texi (Named Address Spaces): Likewise.
3137         * doc/plugins.texi (Plugins): Replace TABs with spaces.
3138         * doc/tree-ssa.texi (Tree SSA): Likewise.
3139
3140 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3141
3142         PR bootstrap/43202
3143         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
3144         by default.  Don't set the default arch for
3145         i[34567]86-*-darwin*|x86_64-*-darwin*.
3146
3147 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         PR bootstrap/43202
3150         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
3151         default.  Set the default 32bit/64bit archs with $with_arch
3152         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
3153
3154 2010-02-27  Richard Guenther  <rguenther@suse.de>
3155
3156         PR tree-optimization/43186
3157         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
3158         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
3159         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
3160         unroller iterations.
3161
3162 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3163
3164         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
3165         required and i[34567]86-*-* targets don't support 64bit ISA.
3166
3167 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
3168
3169         PR ada/43096
3170         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
3171         the same alias set.
3172
3173 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
3174
3175         * config.gcc: Set the default arch at least to Prescott for
3176         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
3177         if SSE math is enabled.
3178
3179 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3180
3181         * diagnostic.c (diagnostic_initialize): Update.
3182         (diagnostic_report_diagnostic): Test inhibit_notes_p for
3183         informative notes.
3184         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
3185         (diagnostic_inhibit_notes): New.
3186         * toplev.c (process_options): inhibit notes with -fcompare-debug.
3187
3188 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3189
3190         PR c/20631
3191         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
3192         * doc/standards.texi: Likewise.
3193         * doc/extend.texi: Likewise.
3194         * doc/trouble.texi: Likewise.
3195         * doc/cppopts.texi: Likewise.
3196         * doc/install.texi: Likewise.
3197         * c.opt (std=c90,std=gnu90): New options.
3198         * c-opts.c (c_common_handle_option): Handle them.
3199
3200 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3201
3202         PR c/24577
3203         * c-decl.c (undeclared_variable): Use an informative note.
3204
3205 2010-02-26  Richard Guenther  <rguenther@suse.de>
3206
3207         PR tree-optimization/43186
3208         * gimple.h (gimple_fold): Remove.
3209         * gimple.c (gimple_fold): Remove.  Inline into single user ...
3210         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
3211         Try harder for conditions.
3212
3213 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
3214
3215         PR debug/43190
3216         * function.c (used_types_insert): Don't skip through named pointer
3217         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
3218         and it is different from the main variant's type.
3219
3220 2010-02-26  Nick Clifton  <nickc@redhat.com>
3221
3222         * config/rx/rx.md (sminsi3): Remove bogus alternative.
3223
3224 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
3225
3226         * config.gcc: Support --with-fpmath=sse for x86.
3227
3228         * config/i386/ssemath.h: New.
3229
3230         * doc/install.texi (--with-fpmath=sse): Documented.
3231
3232 2010-02-26  Richard Guenther  <rguenther@suse.de>
3233
3234         PR tree-optimization/43188
3235         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
3236         vector types of over-aligned element type.
3237
3238 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
3239
3240         PR target/43175
3241         * config/i386/i386.c (expand_vec_perm_blend): Use correct
3242         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
3243
3244 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3245
3246         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
3247
3248 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
3249
3250         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
3251         * var-tracking.c: Include diagnostic.h.
3252         (debug_dv): New function.
3253         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
3254
3255         PR debug/43160
3256         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
3257         (add_value_chain, add_value_chains, remove_value_chain,
3258         remove_value_chains): Handle DEBUG_EXPRs.
3259         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
3260
3261         PR debug/43161
3262         * regcprop.c (struct queued_debug_insn_change): New type.
3263         (struct value_data_entry): Add debug_insn_changes field.
3264         (struct value_data): Add n_debug_insn_changes field.
3265         (debug_insn_changes_pool): New variable.
3266         (free_debug_insn_changes, apply_debug_insn_changes,
3267         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
3268         (kill_value_one_regno): Call free_debug_insn_changes if needed.
3269         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
3270         fields.
3271         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
3272         changes for them.
3273         (copyprop_hardreg_forward_1): Don't call apply_change_group for
3274         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
3275         changes, call cprop_find_used_regs via note_stores.
3276         (copyprop_hardreg_forward): When copying vd from predecessor
3277         which has any queued DEBUG_INSN changes, make sure the pointers are
3278         cleared.  At the end call df_analyze and then if there are any
3279         DEBUG_INSN changes queued at the end of some basic block for still
3280         live registers, apply them.
3281         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
3282
3283 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
3284
3285         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
3286         (arm*-*-*): Ditto.
3287
3288 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
3289
3290         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
3291         targets.  Set the default with_cpu/with_arch from arch/cpu.
3292         Allow x86-64 and native for with_cpu/with_arch.
3293
3294 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
3295
3296         * ebitmap.c: Change calls to verify_popcount with calls to
3297         sbitmap_verify_popcount.
3298         (ebitmap_clear_bit): Fixed map->cacheindex test and
3299         map>cache update when bit clearing results in an empty
3300         element.
3301
3302 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3303
3304         PR target/43154
3305         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
3306         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
3307         and support both V2DF and V2DI modes.
3308         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
3309         support both V2DF and V2DI modes.
3310         (general): Delete trailing whitespace from a few patterns.
3311
3312         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3313         V2DF/V2DI interleave high/low builtins.
3314
3315         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
3316         new VSX builtins.
3317
3318         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
3319         interleave high/low functions.
3320
3321 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
3322
3323         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
3324         #pragma extern_prefix.
3325
3326 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
3327
3328         PR debug/43166
3329         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
3330         BLKmode, assert op0 is a MEM and just adjust its mode.
3331
3332         PR debug/43165
3333         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
3334         if bitpos isn't multiple of mode's bitsize.
3335
3336 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3337
3338         * c.opt (-ftemplate-depth=): New.
3339         (-ftemplate-depth-): Deprecate.
3340         * optc-gen.awk: Handle -ftemplate-depth=.
3341         * opth-gen.awk: Likewise.
3342         * c-opts.c (c_common_handle_option): Likewise.
3343         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
3344
3345 2010-02-24  Jason Merrill  <jason@redhat.com>
3346
3347         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
3348
3349 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3350
3351         * cfg.c (alloc_aux_for_block): Remove inline.
3352         (alloc_aux_for_edge): Likewise.
3353
3354 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3355
3356         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
3357
3358 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3359
3360         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
3361         * config/i386/sol2-gas.h: New file.
3362         * config.gcc (i[34567]86-*-solaris2*): Use it.
3363
3364 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3365
3366         PR c/43128
3367         * c-typeck.c (ep_convert_and_check): New.
3368         (build_conditional_expr): Use it.
3369         (build_binary_op): Likewise.
3370
3371 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
3372
3373         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
3374
3375         PR debug/43150
3376         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
3377         bounds even for -O+.
3378         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
3379         expr needs to have DECL_NAME set.
3380
3381 2010-02-24  Nick Clifton  <nickc@redhat.com>
3382
3383         * config/mep/mep.c: Include gimple.h.
3384         (mep_function_uses_sp): Delete unused function.
3385         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
3386         parameters.  Use unsigned integers to count args.  Return a
3387         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
3388
3389 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
3390
3391         PR target/43107
3392         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
3393         greater or equal to nelt instead of 2 * nelt.
3394         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
3395         with nelt - 1.
3396
3397 2010-02-23  Jason Merrill  <jason@redhat.com>
3398
3399         PR debug/42800
3400         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
3401         in cfun->local_decls even if they have register types.
3402
3403         PR c++/42837
3404         * stor-layout.c (place_field): Don't warn about unnecessary
3405         DECL_PACKED if the type is packed.
3406
3407 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
3408
3409         PR target/43139
3410         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
3411         GOTOFF relocs, even when the base reg isn't pic pointer.
3412
3413 2010-02-23  Michael Matz  <matz@suse.de>
3414
3415         PR debug/43077
3416         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
3417         (expand_gimple_basic_block): Generate and use debug temps if there
3418         are debug uses left after the last real use of TERed ssa names.
3419         Unlink debug immediate uses when they are expanded.
3420
3421 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3422
3423         PR 43123
3424         * config/i386/i386.c (override_options): Reorganise to provide
3425         better error messages.
3426
3427 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
3428
3429         PR middle-end/43083
3430         * graphite-scop-detection.c (create_single_exit_edge): Move
3431         the call to find_single_exit_edge to....
3432         (create_sese_edges): ...here.  Don't handle multiple edges
3433         exiting the function.
3434         (build_graphite_scops): Don't handle multiple edges
3435         exiting the function.
3436
3437 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
3438
3439         PR middle-end/43097
3440         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
3441         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
3442
3443 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
3444
3445         PR middle-end/43026
3446         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
3447
3448 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3449
3450         PR c++/43126
3451         * c-typeck.c (convert_arguments): Print declaration location.
3452         * c-common.c (validate_nargs): Rename as
3453         builtin_function_validate_nargs.
3454         (check_builtin_function_arguments): Update.
3455
3456 2010-02-22  Richard Guenther  <rguenther@suse.de>
3457
3458         PR lto/43045
3459         * tree-inline.c (declare_return_variable): Use the type of
3460         the call stmt lhs if available.
3461
3462 2010-02-22  Duncan Sands  <baldrick@free.fr>
3463
3464         * passes.c (register_pass): Always consider all pass lists when
3465         ref_pass_instance_number is zero.
3466
3467 2010-02-22  Richard Guenther  <rguenther@suse.de>
3468
3469         PR tree-optimization/42749
3470         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
3471         parameter.  Do arithmetic in the original type.
3472         (update_accumulator_with_ops): Likewise.
3473         (adjust_accumulator_values): Adjust.
3474
3475 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3476
3477         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
3478         (QI to BLKmode splitter): New splitter.
3479
3480 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
3481
3482         * config/i386/i386.c (initial_ix86_tune_features): Turn on
3483         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
3484
3485 2010-02-22  Richard Guenther  <rguenther@suse.de>
3486
3487         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
3488
3489 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
3490
3491         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
3492         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
3493         ($(T)crti.o, $(T)crtn.o): Remove rules.
3494
3495 2010-02-21  Tobias Burnus  <burnus@net-b.de>
3496
3497         PR fortran/35259
3498         * doc/invoke.texi (-fassociative-math): Document that this
3499         option is automatically enabled for Fortran.
3500
3501 2010-02-20  David S. Miller  <davem@davemloft.net>
3502
3503         * configure.ac: Test if linker and assembler properly support
3504         GOTDATA_OP relocations.
3505         * configure: Rebuild.
3506         * config.in: Likewise.
3507         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
3508         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
3509         (movsi_high_pic): Likewise.
3510         (movdi_lo_sum_pic): Likewise.
3511         (movdi_high_pic): Likewise.
3512         (movsi_pic_gotdata_op): New pattern.
3513         (movdi_pic_gotdata_op): Likewise.
3514         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
3515         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
3516
3517 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
3518
3519         PR target/43067
3520         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
3521         attribute to ssemul.
3522         (xop_mulv2div2di3_high): Ditto.
3523
3524 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3525
3526         PR c++/35669
3527         * c.opt (Wconversion-null): New option.
3528         * doc/invoke.texi (Wconversion-null): Document.
3529
3530 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3531
3532         * common.opt (Wlarger-than-): Add Undocumented.
3533
3534 2010-02-19  Mike Stump  <mikestump@comcast.net>
3535
3536         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
3537
3538 2010-02-19  Jason Merrill  <jason@redhat.com>
3539
3540         PR target/40332
3541         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
3542         * configure: Likewise.
3543
3544 2010-02-20  Alan Modra  <amodra@gmail.com>
3545
3546         PR middle-end/42344
3547         * cgraph.h (cgraph_make_decl_local): Declare.
3548         * cgraph.c (cgraph_make_decl_local): New function.
3549         (cgraph_make_node_local): Use it.
3550         * cgraphunit.c (cgraph_function_versioning): Likewise.
3551         * ipa.c (function_and_variable_visibility): Likewise.
3552
3553 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
3554
3555         PR bootstrap/43121
3556         * except.c (sjlj_emit_function_enter): Don't call
3557         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
3558         directly.
3559         * rtl.h (add_reg_br_prob_note): Remove prototype.
3560
3561 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3562
3563         PR 41779
3564         * c-common.c (conversion_warning): Remove widening conversions
3565         before checking the conversion of integers to reals.
3566
3567 2010-02-19  Mike Stump  <mikestump@comcast.net>
3568
3569         PR middle-end/43125
3570         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
3571
3572         PR objc/43061
3573         * cgraphunit.c (process_function_and_variable_attributes): Check
3574         DECL_PRESERVE_P instead of looking up attribute "used".
3575         * ipa-pure-const.c (check_decl): Likewise.
3576         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
3577         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
3578         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
3579         instead of attribute "used".
3580         * config/sol2-c.c (solaris_pragma_init): Likewise.
3581         (solaris_pragma_fini): Likewise.
3582
3583 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
3584
3585         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
3586         Use XCNEW instead of xcalloc.
3587         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
3588         XNEW instead of xmalloc.
3589         (get_fields): Use XNEWVEC instead of xmalloc.
3590
3591         PR debug/43084
3592         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
3593         populate vars array.
3594         (create_new_general_access): For debug stmts just reset value.
3595         (get_stmt_accesses): For accesses within debug stmts just record them
3596         using add_access_to_acc_sites instead of preventing the peeling or
3597         counting them as accesses.
3598
3599         PR middle-end/42233
3600         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
3601
3602 2010-02-19  Richard Guenther  <rguenther@suse.de>
3603
3604         PR tree-optimization/42916
3605         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
3606         instructions.
3607
3608 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3609
3610         * configure.ac: Replace all uses of changequote in macro arguments
3611         with proper quoting.
3612
3613 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
3614
3615         PR middle-end/42233
3616         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
3617
3618 2010-02-19  Richard Guenther  <rguenther@suse.de>
3619
3620         PR tree-optimization/42944
3621         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
3622         test for aliasing with errno.
3623
3624 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
3625
3626         PR middle-end/42233
3627         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
3628         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
3629         * dojump.c: Include output.h.
3630         (inv): New inline function.
3631         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
3632         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
3633         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
3634         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
3635         argument, pass it down to other calls.
3636         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
3637         add REG_BR_PROB note to the conditional jump.
3638         * cfgexpand.c (add_reg_br_prob_note): Removed.
3639         (expand_gimple_cond): Don't call it, add the probability
3640         as last argument to jumpif_1/jumpifnot_1.
3641         * Makefile.in (dojump.o): Depend on output.h.
3642         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
3643         callers.
3644         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
3645         * stmt.c (do_jump_if_equal): Likewise.
3646         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
3647         * loop-unswitch.c (compare_and_jump_seq): Likewise.
3648         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
3649         Likewise.
3650         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
3651         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
3652         jumpifnot_1 callers.
3653         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
3654         callers.
3655         (store_expr): Adjust jumpifnot caller.
3656         (store_constructor): Adjust jumpif caller.
3657
3658         PR middle-end/42233
3659         * gimplify.c (gimple_boolify): For __builtin_expect call
3660         gimple_boolify also on its first argument.
3661
3662 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
3663
3664         * configure.ac (gnu-unique-object): Wrap regexps using [] in
3665         changequote block.
3666         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
3667         * configure: Regenerated.
3668
3669 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3670
3671         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
3672         lang_hooks.types_compatible_p instead of comptypes.
3673
3674 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
3675
3676         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
3677         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
3678         if __prefer_thumb__ is defined.
3679
3680 2010-02-18  Martin Jambor  <mjambor@suse.cz>
3681
3682         PR tree-optimization/43066
3683         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
3684         array with zero-sized element type.
3685
3686 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
3687
3688         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
3689         rtx, allocate struct var_loc_node here and return it to the
3690         caller, and only if it is actually needed.
3691         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
3692         move it earlier and return immediately if it returns NULL.
3693
3694 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
3695
3696         * config/sparc/gas.h: New file.  Restore
3697         TARGET_ASM_NAMED_SECTION to its ELF default.
3698         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
3699         check !HAVE_GNU_AS.
3700         * config/sparc/sparc.c (sparc_elf_asm_named_section):
3701         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
3702         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
3703         after sparc/sysv4.h.
3704
3705 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
3706
3707         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
3708
3709 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
3710
3711         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
3712         patterns from predicated pattern.
3713
3714 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
3715
3716         PR target/43103
3717         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
3718         for insn mnemonic suffix.
3719
3720 2010-02-17  Richard Guenther  <rguenther@suse.de>
3721
3722         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
3723         to loop PHI nodes.
3724
3725 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
3726
3727         PR debug/42918
3728         * caller-save.c (save_call_clobbered_regs): If BB ends with
3729         a DEBUG_INSN, move any notes in between last real insn and the last
3730         DEBUG_INSN after the last DEBUG_INSN.
3731
3732 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3733
3734         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
3735         Fix return type.  Fix argument type.  Explain meaning of return value.
3736
3737 2010-02-16  Richard Guenther  <rguenther@suse.de>
3738
3739         PR tree-optimization/41043
3740         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
3741         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
3742         statements ...
3743         (vrp_visit_phi_node): ... but only for loop PHI nodes.
3744
3745 2010-02-16  Ira Rosen <irar@il.ibm.com>
3746
3747         PR tree-optimization/43074
3748         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
3749         * tree-vect-loop.c (vect_analyze_loop_operations): Add
3750         vectorizable cycles in hybrid SLP check.
3751         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
3752
3753 2010-02-16  Richard Guenther  <rguenther@suse.de>
3754
3755         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
3756         (true_dependence): If memrefs_conflict_p computes must-alias
3757         trust it.  Move TBAA check after offset-based disambiguation.
3758         (canon_true_dependence): Likewise.
3759
3760 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
3761
3762         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
3763         * doc/invoke.texi: Document it.
3764         * var-tracking.c: Include toplev.h and params.h.
3765         (vt_find_locations): Return bool indicating success.  Compute
3766         hash sizes unconditionally.  Check new parameter, report.
3767         (variable_tracking_main_1): Check vt_find_locations results and
3768         retry.  Renamed from...
3769         (variable_tracking_main): ... this.  New wrapper to preserve
3770         flag_var_tracking_assignments.
3771         * Makefile.in (var-tracking.o): Adjust dependencies.
3772
3773 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
3774             Jakub Jelinek <jakub@redhat.com>
3775
3776         PR target/42854
3777         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
3778         if weak_import attribute is present.
3779         * config/darwin.c (machopic_select_section): Likewise.
3780
3781 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
3782
3783         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
3784         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
3785         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
3786         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
3787
3788         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument types.
3789
3790         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3791         Fix argument types.
3792
3793         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
3794         Rewrite text to refer to the names.
3795
3796 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
3797
3798         * config/i386/i386-builtin-types.def
3799         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
3800         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
3801         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
3802         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
3803         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
3804         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
3805         IX86_BUILTIN_VPERMIL2PS256.
3806         (MULTI_ARG_4_DF2_DI_I): Defined.
3807         (MULTI_ARG_4_DF2_DI_I1): Defined.
3808         (MULTI_ARG_4_SF2_SI_I): Defined.
3809         (MULTI_ARG_4_SF2_SI_I1): Defined.
3810         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
3811         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
3812         __builtin_ia32_vpermil2ps256.
3813         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
3814         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
3815         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
3816         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
3817         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
3818         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
3819         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
3820         CODE_FOR_xop_vpermil2v8sf3.
3821         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
3822         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
3823         * config/i386/xopintrin.h (_mm_permute2_pd): New.
3824         (_mm256_permute2_pd): New.
3825         (_mm_permute2_ps): New.
3826         (_mm256_permute2_ps): New.
3827
3828 2010-02-15  Nick Clifton  <nickc@redhat.com>
3829
3830         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
3831         boolean parameters.  Use emit_jump_insn when emitting a pop
3832         instruction containing a return insn.
3833         (push): Use 'true' rather than '1' as second parameter to F.
3834         (h8300_expand_prologue): Likewise.
3835         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
3836         (h8300_expand_epilogue): Likewise.
3837
3838 2010-02-15  Richard Guenther  <rguenther@suse.de>
3839
3840         PR middle-end/43068
3841         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
3842         if that is zero.
3843
3844 2010-02-15  Nick Clifton  <nickc@redhat.com>
3845
3846         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
3847         delta.
3848
3849 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
3850
3851         * intl.c (fake_ngettext): New function.
3852         * intl.h (fake_ngettext): Declare.
3853         (ngettext): Define macro.
3854         * collect2.c (notice_translated): New function.
3855         (main): Use notice_translated and ngettext.
3856         * collect2.h (notice_translated): Declare.
3857
3858 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
3859
3860         * reorg.c (delete_computation): Comment fixes.
3861         * caller-save.c (setup_save_areas): Idem.
3862         * sel-sched-dump.c (dump_lv_set): Idem.
3863         * rtl.def: Idem.
3864
3865 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3866
3867         * config/s390/s390.c (s390_sched_init): New function.
3868         (TARGET_SCHED_INIT): Target hook defined.
3869
3870 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
3871             Jack Howarth  <howarth@bromo.med.uc.edu>
3872             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3873
3874         PR target/42982
3875         Partial revert of unintended change in fix for PR41605.
3876         * config/darwin.h: Fix typo.
3877         * config/darwin9.h: Same.
3878
3879 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
3880
3881         * c-pch.c (pch_init): Clear v.
3882
3883 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
3884
3885         PR middle-end/42930
3886         * graphite-scop-detection.c (graphite_can_represent_scev): Call
3887         graphite_can_represent_init for MULT_EXPR.
3888
3889 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
3890
3891         PR middle-end/42914
3892         PR middle-end/42530
3893         * graphite-sese-to-poly.c (remove_phi): New.
3894         (translate_scalar_reduction_to_array): Call remove_phi.
3895
3896 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
3897
3898         PR middle-end/42771
3899         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
3900         * graphite-clast-to-gimple.h (gloog): Update declaration.
3901         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
3902         * graphite-poly.h (struct poly_bb): Add missing comments.
3903         (struct scop): Add poly_scop_p field.
3904         (POLY_SCOP_P): New.
3905         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
3906         * graphite.c (graphite_transform_loops): Build the polyhedral
3907         representation for each scop before code generation.
3908         * sese.c (rename_variables_in_operand): Removed.
3909         (rename_variables_in_expr): Return the renamed expression.
3910         (rename_sese_parameters): New.
3911         * sese.h (rename_sese_parameters): Declared.
3912
3913 2010-02-11  Richard Guenther  <rguenther@suse.de>
3914
3915         PR tree-optimization/42998
3916         * tree-ssa-pre.c (create_expression_by_pieces): Treat
3917         POINTER_PLUS_EXPR properly.
3918
3919 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
3920             Changpeng Fang  <changpeng.fang@amd.com>
3921
3922         PR middle-end/40886
3923         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
3924         the cost of an IV candidate when the IV is used in a test against zero.
3925
3926         * gcc.dg/tree-ssa/ivopts-3.c: New.
3927
3928 2010-02-11  Richard Guenther  <rguenther@suse.de>
3929
3930         PR lto/41664
3931         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
3932         pointer-vs-decl case by swapping refs.  Handle some cases
3933         of pointer-vs-decl disambiguations more conservatively.
3934         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
3935         to false after expanding.
3936
3937 2010-02-11  Richard Guenther  <rguenther@suse.de>
3938
3939         PR driver/43021
3940         * gcc.c (process_command): Handle LTO file@offset case more
3941         appropriately.
3942
3943 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
3944
3945         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
3946         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
3947         of DEBUG_INSNs.
3948         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
3949
3950         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
3951         if MEM's mode size isn't DWARF2_ADDR_SIZE.
3952         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
3953         Optimize eq/ne comparisons when both arguments are known to be
3954         zero-extended.
3955         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
3956         Don't mask operands unnecessarily if they are known to be already
3957         zero-extended.
3958
3959 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
3960
3961         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
3962         instead of loop.
3963
3964 2010-02-10  Richard Guenther  <rguenther@suse.de>
3965
3966         PR tree-optimization/43017
3967         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
3968         for wrapping signed arithmetic.
3969
3970 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
3971
3972         PR debug/43010
3973         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
3974         if no debug info should be emitted for it.
3975
3976 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3977
3978         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
3979         note when flag_exceptions is set.
3980
3981 2010-02-10  Duncan Sands  <baldrick@free.fr>
3982
3983         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
3984
3985 2010-02-10  Richard Guenther  <rguenther@suse.de>
3986
3987         PR c/43007
3988         * tree.c (get_unwidened): Handle constants.
3989         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
3990
3991 2010-02-10  Martin Jambor  <mjambor@suse.cz>
3992
3993         PR lto/42985
3994         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
3995         check for variable argument counts independently.
3996
3997 2010-02-10  Christian Bruel  <christian.bruel@st.com>
3998
3999         PR target/42841
4000         * config/sh/sh.c (find_barrier): Increase length for non delayed
4001         conditional branches.
4002
4003 2010-02-10  Christian Bruel  <christian.bruel@st.com>
4004
4005         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
4006
4007 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
4008
4009         * builtins.c (set_builtin_user_assembler_name): Also handle
4010         ffs if int is smaller than word.
4011
4012 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
4013
4014         PR middle-end/42973
4015         * ira-conflicts.c (get_dup): Remove.
4016         (process_reg_shuffles): Add new parameter.  Use it as an
4017         additional guard for copy generation.
4018         (add_insn_allocno_copies): Rewrite.
4019
4020 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
4021
4022         * common.opt (fsched2-use-traces): Preserved for backward
4023         compatibility.
4024         * doc/invoke.texi: Remove the documentation about option
4025         -fsched2-use-traces.
4026         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
4027         flag_sched2_use_traces.
4028         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
4029         the backward compatibility flag section.
4030
4031 2010-02-09  Richard Guenther  <rguenther@suse.de>
4032
4033         PR tree-optimization/43008
4034         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
4035         make HEAP variables initialized from global memory if they
4036         are not known builtin functions.
4037         (find_func_aliases): Adjust.
4038
4039 2010-02-09  Richard Guenther  <rguenther@suse.de>
4040
4041         PR tree-optimization/43000
4042         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
4043         arithmetic manually.